dev-util/cmake-3.26.3 became stable and will not compile on my system. Reproducible: Always Steps to Reproduce: 1.MAKEOPTS=-j1 emerge -a dev-util/cmake 2.Also happens with -j14 but -j1 was done to make errors obvious 3. Actual Results: ... /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: libCMakeLib.a(cmGeneratorExpressionEvaluator.cxx.o): in function `GeneratorExpressionContent::Evaluate[abi:cxx11](cmGeneratorExpressionContext*, cmGeneratorExpressionDAGChecker*) const': cmGeneratorExpressionEvaluator.cxx:(.text+0x274a): undefined reference to `Json::Value::Value(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' collect2: error: ld returned 1 exit status make[2]: *** [Source/CMakeFiles/cmake.dir/build.make:123: bin/cmake] Error 1 make[2]: Leaving directory '/var/tmp/portage/dev-util/cmake-3.26.3/work/cmake-3.26.3_build' make[1]: *** [CMakeFiles/Makefile2:456: Source/CMakeFiles/cmake.dir/all] Error 2 make[1]: Leaving directory '/var/tmp/portage/dev-util/cmake-3.26.3/work/cmake-3.26.3_build' make: *** [Makefile:156: all] Error 2 ERROR: dev-util/cmake-3.26.3::gentoo failed (compile phase): emake failed Expected Results: cmake to be compiled and installed
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.