Error when building kfilemetadata module for workspace (kdesrc-build)

Hi all,

I am 2/3 done with compiling workspace(qt 6) with kdesrc-build.

When doing kdesrc-build workspace, it is stuck with kfilemetadata module. Error is here:

It is not missing dependencies, gitlab master looks ok for kfilemetadata.
Any suggestions?


Your error is compiling a test:

FAILED: bin/appimageextractortest 
: && /usr/bin/c++ -pipe -fno-operator-names -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Werror=init-self -Werror=undef -Wvla -Wdate-time -Wsuggest-override -Wlogical-op -pedantic -Wzero-as-null-pointer-constant -Wmissing-include-dirs -fdiagnostics-color=always -fexceptions -fexceptions -fexceptions -fexceptions -fexceptions -O2 -g -DNDEBUG -Wl,--enable-new-dtags autotests/CMakeFiles/appimageextractortest.dir/appimageextractortest_autogen/mocs_compilation.cpp.o autotests/CMakeFiles/appimageextractortest.dir/appimageextractortest.cpp.o autotests/CMakeFiles/appimageextractortest.dir/__/src/extractors/appimageextractor.cpp.o -o bin/appimageextractortest  -Wl,-rpath,/home/bad63r/kde/build/kfilemetadata/bin:/home/bad63r/kde/usr/lib/x86_64-linux-gnu  /usr/lib/x86_64-linux-gnu/  bin/  /home/bad63r/kde/usr/lib/x86_64-linux-gnu/  /usr/lib/x86_64-linux-gnu/  /usr/lib/x86_64-linux-gnu/  /usr/lib/x86_64-linux-gnu/  /usr/lib/x86_64-linux-gnu/  /usr/lib/x86_64-linux-gnu/  /usr/lib/x86_64-linux-gnu/  /usr/lib/x86_64-linux-gnu/libappimage_shared.a  /usr/lib/x86_64-linux-gnu/libappimage_hashlib.a  -lpthread  /usr/lib/x86_64-linux-gnu/  -lm  /usr/lib/x86_64-linux-gnu/  /usr/lib/x86_64-linux-gnu/  /usr/lib/x86_64-linux-gnu/  /usr/lib/x86_64-linux-gnu/  /usr/lib/x86_64-linux-gnu/  -ldl  -Wl,-rpath-link,/home/bad63r/kde/usr/lib/x86_64-linux-gnu && :
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/ undefined reference to `std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::_M_high_mark() const'

The error message seems to imply your libappimage is too up-to-date compared to your compiler.
This is very unlikely.
Try flushing you build dir and rebuild once.

std::basic_stringbuf - is c++11 but should really be available if you compiled some kde frameworks 6 that require c++17 at least.

The good news is, it concerned a test, you can probably skip building it and resume building the rest.

1 Like

libappimage is well-known for causing trouble. I’d recommend to remove libappimage-dev and thus build without the appimage extractor


It worked when I’ve deleted build directory and started again. Thank you

How can I skip some packaged/modules when building workspace? I have some issues with discover, and I know it is not essential for workspace to work. It is just an application.

You can skip it via:

kdesrc-build workspace --ignore-modules discover