Skip to content

Building babble from source fails linking because of libfmt #17

@virtualritz

Description

@virtualritz

This is on Pop!_OS 22.04 LTS (Ubuntu-based).

I am building babble against llvm-17, build fails at the linking stage:

[ 42%] Linking CXX executable bbl-genbind
/usr/bin/ld: CMakeFiles/bbl-genbind.dir/src/bbl-genbind.cpp.o: in function `create_method_from_cmd(clang::CXXMethodDecl const*, bool, clang::CXXRecordDecl const*, clang::PrintingPolicy const&)':
bbl-genbind.cpp:(.text+0xd93): undefined reference to `fmt::v8::vformat[abi:cxx11](fmt::v8::basic_string_view<char>, fmt::v8::basic_format_args<fmt::v8::basic_format_context<fmt::v8::appender, char> >)'
/usr/bin/ld: CMakeFiles/bbl-genbind.dir/src/bbl-genbind.cpp.o: in function `create_constructor_from_ccd(clang::CXXConstructorDecl const*, clang::CXXRecordDecl const*, clang::PrintingPolicy const&)':
bbl-genbind.cpp:(.text+0x1048): undefined reference to `fmt::v8::vformat[abi:cxx11](fmt::v8::basic_string_view<char>, fmt::v8::basic_format_args<fmt::v8::basic_format_context<fmt::v8::appender, char> >)'
[...]

libfmt-dev (8.1.1) is installed as a dependency of the required libspdlog-dev.
Also tried building & installing libfmt manually but no luck.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions