| Summary: | dev-util/cmake-3.26.3 will not compile | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Francis Norberg <chode128> |
| Component: | Current packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | AMD64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
emerge-info
build.log build log after emerge -1 dev-libs/jsoncpp sys-devel/clang and sys-libs/libcxx depends |
||
|
Description
Francis Norberg
2023-05-16 19:10:55 UTC
Created attachment 861811 [details]
emerge-info
Plese always attach the full build.log. Created attachment 861812 [details]
build.log
From the log: /usr/bin/x86_64-pc-linux-gnu-g++ -O2 -pipe -Wl,-O1 -Wl,--as-needed CMakeFiles/cmake.dir/cmakemain.cxx.o CMakeFiles/cmake.dir/cmcmd.cxx.o -o ../bin/cmake libCMakeLib.a ../Utilities/std/libcmstd.a kwsys/libcmsys.a -ldl /usr/lib64/libcurl.so /usr/lib64/libexpat.so /usr/lib64/libjsoncpp.so /usr/lib64/libarchive.so /usr/lib64/librhash.so /usr/lib64/libuv.so /usr/lib64/libz.so /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: libCMakeLib.a(cmMakefile.cxx.o): in function `cmMakefile::PrintCommandTrace(cmListFileFunction const&, cmListFileBacktrace const&, cmMakefile::CommandMissingFromStack) const': cmMakefile.cxx:(.text+0x1946e): undefined reference to `Json::StreamWriterBuilder::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' Please try rebuilding dev-libs/jsoncpp. Created attachment 861821 [details]
build log after emerge -1 dev-libs/jsoncpp
Rebuilt dev-libs/jsoncpp Now different and much earlier failure to compile Are you building some packages on your system with clang using libcxx? If I understand the question, sys-devel/clang-common appears to depend on both sys-devel/clang and sys-libs/libcxx Created attachment 861822 [details]
sys-devel/clang and sys-libs/libcxx depends
Please try: mv /usr/bin/cmake /usr/bin/cmake.bak and then emerge -v1 dev-util/cmake. Success. dev-util/cmake-3.26.3 merged. I suspect you have a mix of packages built against libstdc++ and libcxx. Mixing C++ standard libraries will lead to failures like the one you ran into. Don't do that. |