Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 660324 - 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'
Summary: dev-util/cmake - In function `std::locale::locale<codecvt>(std::locale const&...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-04 00:01 UTC by john kofe
Modified: 2019-07-16 22:51 UTC (History)
1 user (show)

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


Attachments
log of emerge (build.log.xz,12.56 KB, text/plain)
2018-07-04 23:15 UTC, john kofe
Details
emerge --info output (emergeinfo.xz,2.98 KB, application/octet-stream)
2018-07-04 23:21 UTC, john kofe
Details
build.log (build.log,374.41 KB, text/plain)
2019-04-25 04:56 UTC, Michael Palimaka (kensington)
Details
emerge --info (emerge,5.97 KB, text/plain)
2019-04-25 04:57 UTC, Michael Palimaka (kensington)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description john kofe 2018-07-04 00:01:40 UTC
dev-util/cmake-3.9.6 , dev-util/cmake-3.10.2 , dev-util/cmake-3.11.4 , dev-util/cmake-3.12.0_rc2 somehow have the same problem for me during the compilation. Because of the last message before error I think it occures in the makefile.

Reproducible: Always

Steps to Reproduce:
1.emerge --ask --verbose ~dev-util/cmake-3.9.6
2.hit enter
3.wait to the until ~80-90% compiled
Actual Results:  
make: *** [Makefile:163: all] Error 2
 * ERROR: dev-util/cmake-3.9.6::gentoo failed (compile phase):

Expected Results:  
Everything compiled, I'm satisfied.

Before that I had no cmake somehow so I downloaded (without merging) cmake 3.8.2, but as I suspect it isn't related to the bug in the makefile, if it is makefile's problem.
Before that I also had a bug with rhash lib while compiling cmake, but version recommended  to merge in other bug report helped.
After the first fail I have got latest snapshot & did emerge --sync.
Comment 1 john kofe 2018-07-04 23:15:26 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.
Comment 2 john kofe 2018-07-04 23:21:43 UTC
Created attachment 538410 [details]
emerge --info output
Comment 3 Michael Palimaka (kensington) gentoo-dev 2019-04-25 04:55:56 UTC
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....
Comment 4 Michael Palimaka (kensington) gentoo-dev 2019-04-25 04:56:37 UTC
Created attachment 574090 [details]
build.log
Comment 5 Michael Palimaka (kensington) gentoo-dev 2019-04-25 04:57:33 UTC
Created attachment 574092 [details]
emerge --info
Comment 6 Michael Palimaka (kensington) gentoo-dev 2019-04-25 10:12:29 UTC
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?