| Summary: | dev-util/cmake - In function `std::locale::locale<codecvt>(std::locale const&, codecvt*)': cmGeneratedFileStream.cxx:(.text._ZNSt6localeC2I7codecvtEERKS_PT_[_ZNSt6localeC5I7codecvtEERKS_PT_]+0xf6): undefined reference to `__atomic_fetch_add_4' | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | john kofe <kapokofe> |
| Component: | Current packages | Assignee: | Gentoo KDE team <kde> |
| Status: | RESOLVED NEEDINFO | ||
| Severity: | normal | CC: | jstein |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
log of emerge
emerge --info output build.log emerge --info |
||
|
Description
john kofe
2018-07-04 00:01:40 UTC
Created attachment 538408 [details]
log of emerge
emerge --verbose ~dev-util/cmake-3.12.0_rc2 call list, as I think potential error is in the end.
Created attachment 538410 [details]
emerge --info output
From the build log: [ 76%] Linking CXX executable ../bin/cmake cd /var/tmp/portage/dev-util/cmake-3.9.6/work/cmake-3.9.6_build/Source && /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmake.dir/link.txt --verbose=1 /usr/bin/i686-pc-linux-gnu-g++ -O1 -march=i386 -pipe -Wl,-O1 -Wl,--as-needed -rdynamic CMakeFiles/cmake.dir/cmakemain.cxx.o CMakeFiles/cmake.dir/cmcmd.cxx.o -o ../bin/cmake libCMakeLib.a kwsys/libcmsys.a -ldl -lexpat -lz -larchive ../Utilities/cmcompress/libcmcompress .a -lcurl ../Utilities/cmjsoncpp/libcmjsoncpp.a /usr/lib/librhash.so libCMakeLib.a(cmGeneratedFileStream.cxx.o): In function `std::locale::locale<codecvt>(std::locale const&, codecvt*)': cmGeneratedFileStream.cxx:(.text._ZNSt6localeC2I7codecvtEERKS_PT_[_ZNSt6localeC5I7codecvtEERKS_PT_]+0xf6): undefined reference to `__atomic_fetch_add_4' collect2: error: ld returned 1 exit status make[2]: *** [Source/CMakeFiles/cmake.dir/build.make:130: bin/cmake] Error 1 make[2]: Leaving directory '/var/tmp/portage/dev-util/cmake-3.9.6/work/cmake-3.9.6_build' make[1]: *** [CMakeFiles/Makefile2:1540: Source/CMakeFiles/cmake.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... Created attachment 574090 [details]
build.log
Created attachment 574092 [details]
emerge --info
I understand that on i386, explicit linking to libatomic is required while not necessary on i586 and later. Is there any particular reason you're using -march=i386 instead of -march=1686? |