Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 603436 - dev-qt/qtcore-5.7.1 fails to build - error: failure memory model cannot be stronger than success memory model for ‘__atomic_compare_exchange’
Summary: dev-qt/qtcore-5.7.1 fails to build - error: failure memory model cannot be st...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-22 08:43 UTC by Frank Noack
Modified: 2016-12-22 17:03 UTC (History)
0 users

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


Attachments
emerge.info (file_603436.txt,6.36 KB, text/plain)
2016-12-22 08:43 UTC, Frank Noack
Details
Build log (build.log,308.64 KB, text/plain)
2016-12-22 08:53 UTC, Frank Noack
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Noack 2016-12-22 08:43:23 UTC
Created attachment 457072 [details]
emerge.info

reproducable: always
compile ends with following error message:
./../include -I../../include/QtCore -I../../include/QtCore/5.7.1 -I../../include/QtCore/5.7.1/QtCore -I.moc -I../../mkspecs/linux-g++ -o .obj/qthreadstorage.o thread/qthreadstorage.cpp
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.4/include/g++-v4/atomic:41:0,
                 from ../../include/QtCore/../../src/corelib/arch/qatomic_cxx11.h:45,
                 from ../../include/QtCore/qatomic_cxx11.h:1,
                 from ../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:53,
                 from ../../include/QtCore/qbasicatomic.h:1,
                 from ../../include/QtCore/../../src/corelib/thread/qatomic.h:46,
                 from ../../include/QtCore/qatomic.h:1,
                 from global/qglobal.h:1145,
                 from ../../mkspecs/linux-g++/qplatformdefs.h:45,
                 from thread/qreadwritelock.cpp:42:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.4/include/g++-v4/bits/atomic_base.h: In static member function ‘static QReadWriteLockPrivate* QReadWriteLockPrivate::allocate()’:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.4/include/g++-v4/bits/atomic_base.h:848:70: error: failure memory model cannot be stronger than success memory model for ‘__atomic_compare_exchange’
  return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 0, __m1, __m2);
                                                                      ^
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.4/include/g++-v4/bits/atomic_base.h:581:70: error: failure memory model cannot be stronger than success memory model for ‘__atomic_compare_exchange’
  return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 0, __m1, __m2);
                                                                      ^
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.4/include/g++-v4/bits/atomic_base.h: In member function ‘void QReadWriteLockPrivate::release()’:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.4/include/g++-v4/bits/atomic_base.h:581:70: error: failure memory model cannot be stronger than success memory model for ‘__atomic_compare_exchange’
  return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 0, __m1, __m2);
                                                                      ^
Makefile:11814: recipe for target '.obj/qreadwritelock.o' failed
make: *** [.obj/qreadwritelock.o] Error 1
make: *** Waiting for unfinished jobs....
 * ERROR: dev-qt/qtcore-5.7.1::gentoo failed (compile phase):
 *   emake failed
Comment 1 Michael Palimaka (kensington) gentoo-dev 2016-12-22 08:46:49 UTC
Please also attach the full build log.
Comment 2 Frank Noack 2016-12-22 08:53:39 UTC
Created attachment 457074 [details]
Build log
Comment 3 Michael Palimaka (kensington) gentoo-dev 2016-12-22 08:56:01 UTC
Odd, your CFLAGS from emerge --info are:
> -O2 -march=amdfam10  -mpopcnt -pipe

but in the compile log:
> -march=k8-sse3 -Os -pipe
Comment 4 Frank Noack 2016-12-22 09:23:09 UTC
There was a different CFLAG set in /etc/portage/env/qt-core.conf in 2013. No idea where it is from. Thanks for support. Now it works fine.