Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dev-qt/qtcore-5.7.1 does not compile [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
deranonyme
Guru
Guru


Joined: 09 Jul 2005
Posts: 364

PostPosted: Wed Dec 21, 2016 12:02 pm    Post subject: dev-qt/qtcore-5.7.1 does not compile [solved] Reply with quote

Today I tried to update to QT 5.7.1 and KDE 16.12 both unstable.
dev-qt/qtcore-5.7.1 stops emerging with following error:
Code:
../../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/qthread.o thread/qthread.cpp
x86_64-pc-linux-gnu-g++ -c -march=k8-sse3 -Os -pipe -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -std=c++1y -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -Wvla -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_EVDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DELF_INTERPRETER=\"/lib64/ld-linux-x86-64.so.2\" -DQT_USE_JOURNALD -DQT_USE_ICU -DQT_HAVE_POLL -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -I. -Iglobal -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4 -I../3rdparty/sha3 -I../3rdparty/double-conversion/include -I../3rdparty/double-conversion/include/double-conversion -I../3rdparty/forkfd -I../../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/qthreadpool.o thread/qthreadpool.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


Code:
emerge --info '=dev-qt/qtcore-5.7.1::gentoo'
Portage 2.3.0 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/plasma/systemd, gcc-4.9.4, glibc-2.22-r4, 4.4.26-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.4.26-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1100T_Processor-with-gentoo-2.3
KiB Mem:    16476944 total,   6045124 free
KiB Swap:    8372220 total,   8372220 free
Timestamp of repository gentoo: Wed, 21 Dec 2016 08:00:01 +0000
Timestamp of repository xwing: Wed, 21 Dec 2016 08:00:06 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.3_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.4::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 4.9.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: --timeout=500

Local-Overlay
    location: /usr/local/portage
    masters: gentoo
    priority: 0

anyc
    location: /var/lib/layman/anyc
    masters: gentoo
    priority: 50

xwing
    location: /var/lib/layman/xwing
    masters: gentoo
    priority: 50

Installed sets: @system
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=amdfam10 -mcx16 -mpopcnt -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /home/mythtv/ /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=amdfam10 -mcx16 -mpopcnt -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp.wh2.tu-dresden.de/pub/mirrors/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=500"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 amr apng asf aspell audiofile berkdb bluetooth branding bzip2 cairo calendar cdda cddb cdr cli colord cracklib crypt css cups cxx dbus declarative divx dri drm dts dv dvb dvd dvdr emboss encode exif expoblending fam fax faxonly fbcondecor ffmpeg firefox flac foomaticdb fortran geo gif gimp gimpprint git glamor glamour gnutls gphoto2 gpm gpssync gpu gtk gtk2 hbci i8x0 iconv id3tag ieee1394 imagemagick ipv6 java jpeg jpeg2k kde kipi lame lcms ldap lensfun libnotify libsamplerate lm_sensors mad mjpeg mmx mmxext mng modules mp3 mp4 mpeg msn mtp multilib multimedia ncurses nls nptl nsplugin nvidia ogg opencl opencore-amr openct opengl openmp openrc oscar pam pango pcre pdf phonon plasma png policykit ppds qml qt3support qt4 qt5 readline real realmedia redeyes reiserfs rss sasl scanner sdl seccomp semantic-desktop session sndfile socks5 sound spell sqlite sse sse2 ssl startup-notification svg systemd taglib tcpd theora tiff timidity truetype twolame udev udisks unicode upower usb v4l v4l2 vaapi vcd vdpau visualization vorbis webkit widgets wma wmf wxwidgets x264 xanim xattr xcb xcomposite xine xinerama xml xmltv xmp xscreensaver xulrunner xv xvid xvmc zip zlib" ABI_X86="64" ALSA_CARDS="intel8x0" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" DVB_CARDS="cx23885" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev wacom" KERNEL="linux" L10N="de en_GB" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en_GB" LIRC_DEVICES="serial" OFFICE_IMPLEMENTATION="openoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" SANE_BACKENDS="genesys epson plustek" USERLAND="GNU" VIDEO_CARDS="radeon radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON


Any hints?


Last edited by deranonyme on Thu Dec 22, 2016 10:04 am; edited 1 time in total
Back to top
View user's profile Send private message
mir3x
Guru
Guru


Joined: 02 Jun 2012
Posts: 427

PostPosted: Wed Dec 21, 2016 1:49 pm    Post subject: Reply with quote

Use never gcc.
_________________
Installation aborted to prevent system self-destruction
Back to top
View user's profile Send private message
deranonyme
Guru
Guru


Joined: 09 Jul 2005
Posts: 364

PostPosted: Wed Dec 21, 2016 2:40 pm    Post subject: Reply with quote

mir3x wrote:
Use never gcc.


Very helpful! Thank you.
Back to top
View user's profile Send private message
i4dnf
Apprentice
Apprentice


Joined: 18 Sep 2005
Posts: 265
Location: Bucharest, Romania

PostPosted: Wed Dec 21, 2016 3:34 pm    Post subject: Reply with quote

mir3x wrote:
Use never gcc.

qtcore compiled just fine with gcc-4.9.4 here ...

Try with just -march=native instead of -march=amdfam10 -mcx16 -mpopcnt, in particular -mcx16 sems to be related to your failure.
_________________
"The only difference between me and a madman is that I am not MAD" (SALVATOR DALI)
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6276

PostPosted: Wed Dec 21, 2016 4:06 pm    Post subject: Reply with quote

deranonyme wrote:
mir3x wrote:
Use never gcc.

Very helpful! Thank you.

I suppose that he means newer gcc; and it might be that he is right: Possibly current qt requires gcc-6 (or at least a current c++ dialect as default).
Back to top
View user's profile Send private message
deranonyme
Guru
Guru


Joined: 09 Jul 2005
Posts: 364

PostPosted: Wed Dec 21, 2016 4:23 pm    Post subject: Reply with quote

mv wrote:
deranonyme wrote:
mir3x wrote:
Use never gcc.

Very helpful! Thank you.

I suppose that he means newer gcc; and it might be that he is right: Possibly current qt requires gcc-6 (or at least a current c++ dialect as default).


gcc-6 is not stable at the moment, it is masked in the gentoo three. Are there any experiences with 5.3.0 or 5.4.0? According to http://doc.qt.io/qt-5/supported-platforms-and-configurations.html gcc-4.9 should not be a problem.
Back to top
View user's profile Send private message
i4dnf
Apprentice
Apprentice


Joined: 18 Sep 2005
Posts: 265
Location: Bucharest, Romania

PostPosted: Wed Dec 21, 2016 4:51 pm    Post subject: Reply with quote

As i've mentioned above, qtcore-5.7.1 builds fine here with gcc-4.9.4.
It seems the -mcx16 flag is related to your failure, try without it.
_________________
"The only difference between me and a madman is that I am not MAD" (SALVATOR DALI)
Back to top
View user's profile Send private message
deranonyme
Guru
Guru


Joined: 09 Jul 2005
Posts: 364

PostPosted: Wed Dec 21, 2016 5:52 pm    Post subject: Reply with quote

i4dnf wrote:

It seems the -mcx16 flag is related to your failure, try without it.

I'll try it, but at the moment I have a problem with a strange block.
Code:

[nomerge       ] kde-apps/gwenview-16.08.3:5::gentoo  USE="X handbook kipi semantic-desktop -debug -raw {-test}"
[nomerge       ]  kde-frameworks/baloo-5.29.0:5/5.29::gentoo  USE="-debug {-test}"
[nomerge       ]   dev-qt/qtdeclarative-5.7.1:5/5.7::gentoo [5.6.2:5/5.6::gentoo] USE="jit widgets xml -debug -gles2 -localstorage {-test}"
[blocks b      ]    <dev-qt/qtquickcontrols-5.7:5 ("<dev-qt/qtquickcontrols-5.7:5" is blocking dev-qt/qtdeclarative-5.7.1)
[ebuild     U ~]     dev-qt/qtquickcontrols-5.7.1:5/5.7::gentoo [5.6.2:5/5.6::gentoo] USE="widgets -debug {-test}" 0 KiB


package.keywords are set
Code:

dev-qt/qtdeclarative ~amd64
dev-qt/qtgraphicaleffects  ~amd64
dev-qt/qtquickcontrols ~amd64
dev-qt/qtxml ~amd64
dev-qt/qtprintsupport ~amd64

Code:
dev-qt/qtquickcontrols
     Verfügbare Versionen:   (5) 5.6.1(5/5.6)^t 5.6.2(5/5.6)^t (~)5.7.1(5/5.7)^t
       {debug test +widgets}
     Installierte Versionen: 5.6.2(5)^t(08:44:01 15.10.2016)(widgets -debug -test)
   
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 6825
Location: Austria

PostPosted: Wed Dec 21, 2016 9:07 pm    Post subject: Reply with quote

That block is autosolved, it can't be an issue.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
deranonyme
Guru
Guru


Joined: 09 Jul 2005
Posts: 364

PostPosted: Thu Dec 22, 2016 8:13 am    Post subject: Reply with quote

Another day, another try. The block isn't there anymore. 8O
But I get the same error message:
Code:

./../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

I have changed the CFLAGS, but no success.

Code:

emerge --info '=dev-qt/qtcore-5.7.1::gentoo'
Portage 2.3.0 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/plasma/systemd, gcc-4.9.4, glibc-2.22-r4, 4.4.26-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.4.26-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1100T_Processor-with-gentoo-2.3
KiB Mem:    16476944 total,   9113916 free
KiB Swap:    8372220 total,   8372220 free
Timestamp of repository gentoo: Thu, 22 Dec 2016 06:30:01 +0000
Timestamp of repository xwing: Thu, 22 Dec 2016 06:00:12 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.3_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.6.3::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.4::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 4.9.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: --timeout=500

Local-Overlay
    location: /usr/local/portage
    masters: gentoo
    priority: 0

anyc
    location: /var/lib/layman/anyc
    masters: gentoo
    priority: 50

xwing
    location: /var/lib/layman/xwing
    masters: gentoo
    priority: 50

Installed sets: @system
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=amdfam10  -mpopcnt -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /home/mythtv/ /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=amdfam10  -mpopcnt -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp.wh2.tu-dresden.de/pub/mirrors/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=500"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 amr apng asf aspell audiofile berkdb bluetooth branding bzip2 cairo calendar cdda cddb cdr cli colord cracklib crypt css cups cxx dbus declarative divx dri drm dts dv dvb dvd dvdr emboss encode exif expoblending fam fax faxonly fbcondecor ffmpeg firefox flac foomaticdb fortran geo gif gimp gimpprint git glamor glamour gnutls gphoto2 gpm gpssync gpu gtk gtk2 hbci i8x0 iconv id3tag ieee1394 imagemagick ipv6 java jpeg jpeg2k kde kipi lame lcms ldap lensfun libnotify libsamplerate lm_sensors mad mjpeg mmx mmxext mng modules mp3 mp4 mpeg msn mtp multilib multimedia ncurses nls nptl nsplugin nvidia ogg opencl opencore-amr openct opengl openmp openrc oscar pam pango pcre pdf phonon plasma png policykit ppds qml qt3support qt4 qt5 readline real realmedia redeyes reiserfs rss sasl scanner sdl seccomp semantic-desktop session sndfile socks5 sound spell sqlite sse sse2 ssl startup-notification svg systemd taglib tcpd theora tiff timidity truetype twolame udev udisks unicode upower usb v4l v4l2 vaapi vcd vdpau visualization vorbis webkit widgets wma wmf wxwidgets x264 xanim xattr xcb xcomposite xine xinerama xml xmltv xmp xscreensaver xulrunner xv xvid xvmc zip zlib" ABI_X86="64" ALSA_CARDS="intel8x0" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" DVB_CARDS="cx23885" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev wacom" KERNEL="linux" L10N="de en_GB" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en_GB" LIRC_DEVICES="serial" OFFICE_IMPLEMENTATION="openoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" SANE_BACKENDS="genesys epson plustek" USERLAND="GNU" VIDEO_CARDS="radeon radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON
Back to top
View user's profile Send private message
mir3x
Guru
Guru


Joined: 02 Jun 2012
Posts: 427

PostPosted: Thu Dec 22, 2016 8:32 am    Post subject: Reply with quote

So use oldeЯ gcc :D 4.8 will work.
_________________
Installation aborted to prevent system self-destruction
Back to top
View user's profile Send private message
deranonyme
Guru
Guru


Joined: 09 Jul 2005
Posts: 364

PostPosted: Thu Dec 22, 2016 9:30 am    Post subject: solved Reply with quote

In /etc/portage/env/qt-core.conf was, I don't know why, a different CFLAG (-march=k8-sse3 -Os -pipe) set. Now it works fine.
btw "-O2 -march=amdfam10 -mcx16 -mpopcnt -pipe" is a save flag for my processor according to the gentoo wiki https://wiki.gentoo.org/wiki/Safe_CFLAGS#A4.2FA6.2FA8-XXXX_.2F_XXXXM
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3210
Location: Gainesville, Florida

PostPosted: Thu Dec 22, 2016 4:26 pm    Post subject: Reply with quote

deranonyme,
FWIW, I'm running three qt-5.7.1 with latest kde stuff Gentoo systems compiled with gcc-5.4.0, with no problems. However, I'm using pure ~amd64 (so-called "unstable"), so perhaps that's a factor.
As I understood it, gcc-5.4.0 introduced the current c++ dialect, and since I haven't manually added any c++ package specific configurations after moving to gcc-5.4.0 I would think that whatever qt-5.7.1 and kde now require, gcc-5.4.0 must have it covered by default. At least that's my current theory, until mv tells me different. :wink:
_________________
Main box- AsRock x370 Gaming K4
Ryzen 1700, 3.0GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
Gentoo ~amd64 plasma, glibc-2.29-r2, gcc-8.3.0-r1 kernel-5.0.7-gentoo USE=experimental
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 6825
Location: Austria

PostPosted: Thu Dec 22, 2016 4:29 pm    Post subject: Reply with quote

@wrc1944: It builds fine with GCC-4.9.3. -Os was probably the culprit.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
deranonyme
Guru
Guru


Joined: 09 Jul 2005
Posts: 364

PostPosted: Thu Dec 22, 2016 8:54 pm    Post subject: Reply with quote

asturm wrote:
-Os was probably the culprit.


It wasn't -Os. There was the standard CFLAGS config in make.conf
Code:
CFLAGS="-O2 -march=amdfam10  -mpopcnt -pipe"

And there was another CFLAGS configuration especially for qtcore in /etc/portage/env/qt-core.conf
Code:
FLAGS= "-march=k8-sse3 -Os -pipe"
.
This special (mis)configuration was the culprit. I have no idea when and why I wrote this config. Until now it worked perfectly. 8) 8O :roll:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum