Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 906580 - dev-util/cmake-3.26.3 will not compile
Summary: dev-util/cmake-3.26.3 will not compile
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-16 19:10 UTC by Francis Norberg
Modified: 2023-05-17 00:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info (emerge-info.txt,6.26 KB, text/plain)
2023-05-16 19:13 UTC, Francis Norberg
Details
build.log (build.log,597.04 KB, text/plain)
2023-05-16 19:14 UTC, Francis Norberg
Details
build log after emerge -1 dev-libs/jsoncpp (build.log,8.19 KB, text/plain)
2023-05-16 22:57 UTC, Francis Norberg
Details
sys-devel/clang and sys-libs/libcxx depends (clang-deps.txt,3.44 KB, text/plain)
2023-05-16 23:23 UTC, Francis Norberg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francis Norberg 2023-05-16 19:10:55 UTC
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
Comment 1 Francis Norberg 2023-05-16 19:13:10 UTC
Created attachment 861811 [details]
emerge-info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-16 19:13:42 UTC
Plese always attach the full build.log.
Comment 3 Francis Norberg 2023-05-16 19:14:44 UTC
Created attachment 861812 [details]
build.log
Comment 4 Mike Gilbert gentoo-dev 2023-05-16 19:31:35 UTC
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.
Comment 5 Francis Norberg 2023-05-16 22:57:28 UTC
Created attachment 861821 [details]
build log after emerge -1 dev-libs/jsoncpp
Comment 6 Francis Norberg 2023-05-16 22:58:26 UTC
Rebuilt dev-libs/jsoncpp
Now different and much earlier failure to compile
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-16 23:00:34 UTC
Are you building some packages on your system with clang using libcxx?
Comment 8 Francis Norberg 2023-05-16 23:22:46 UTC
If I understand the question, sys-devel/clang-common appears to depend on both sys-devel/clang and sys-libs/libcxx
Comment 9 Francis Norberg 2023-05-16 23:23:22 UTC
Created attachment 861822 [details]
sys-devel/clang and sys-libs/libcxx depends
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-16 23:27:48 UTC
Please try: mv /usr/bin/cmake /usr/bin/cmake.bak and then emerge -v1 dev-util/cmake.
Comment 11 Francis Norberg 2023-05-16 23:36:49 UTC
Success. 
dev-util/cmake-3.26.3 merged.
Comment 12 Mike Gilbert gentoo-dev 2023-05-17 00:09:57 UTC
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.