>>> Compiling source in /var/tmp/portage/dev-qt/qtgui-5.7.1-r1/work/qtbase-opensource-src-5.7.1 ... * Running emake in src/gui make -j2 -s * Running emake in src/openglextensions make -j2 -s * Running emake in src/platformheaders make -j2 -s * Running emake in src/platformsupport make -j2 -s * Running emake in src/plugins/generic make -j2 -s * Running emake in src/plugins/imageformats make -j2 -s /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../lib64/libQt5Core.so:(*IND*+0x0): multiple definition of `__bss_start' /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../lib64/libQt5Core.so:(*IND*+0x0): multiple definition of `__bss_start' /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../lib64/libQt5Core.so:(*IND*+0x0): multiple definition of `_edata' /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../lib64/libQt5Core.so:(*IND*+0x0): multiple definition of `_edata' /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../lib64/libQt5Core.so:(*IND*+0x0): multiple definition of `_end' /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../lib64/libQt5Core.so:(*IND*+0x0): multiple definition of `_end' collect2: error: ld returned 1 exit status make[1]: *** [Makefile:138: ../../../../plugins/imageformats/libqjpeg.so] Error 1 make: *** [Makefile:45: sub-jpeg-make_first] Error 2 make: *** Waiting for unfinished jobs.... * ERROR: dev-qt/qtgui-5.7.1-r1::gentoo failed (compile phase): * emake failed
Created attachment 511694 [details] emerge --info '=dev-qt/qtgui-5.7.1-r1::gentoo'
emerge -pqv '=dev-qt/qtgui-5.7.1-r1::gentoo' ==================================================== [ebuild R ] dev-qt/qtgui-5.7.1-r1 USE="accessibility dbus egl eglfs* evdev* gif jpeg libinput png udev xcb -debug (-gles2) -gtk -ibus {-test} -tslib -tuio"
Created attachment 511696 [details] /var/tmp/portage/dev-qt/qtgui-5.7.1-r1/temp/build.log
Created attachment 511698 [details] /var/tmp/portage/dev-qt/qtgui-5.7.1-r1/temp/environment
This happens at the last step of the required upgrade sequence (emerge @world): =============================================================================== If not already done, * Use gcc-config to select gcc-6.4.0 or later as system compiler * Re-source /etc/profile: . /etc/profile * Re-emerge libtool emerge -1 sys-devel/libtool Then, * Select the new profile with eselect * Re-emerge, in this sequence, gcc, binutils, and glibc emerge -1 sys-devel/gcc:6.4.0 emerge -1 sys-devel/binutils emerge -1 sys-libs/glibc * Rebuild your entire system emerge -e @world Switching the profile from 13.0 to 17.0 modifies the settings of GCC 6 to generate PIE executables by default; thus, you need to do the rebuilds even if you have already used GCC 6 beforehand. If you do not follow these steps you may get spurious build failures when the linker tries unsuccessfully to combine non-PIE and PIE code.
The Qt4 versiones emerges perfectly fine, though.
Hm yes, try a rebuild in the right order, this should help, see https://forums.gentoo.org/viewtopic-p-8159812.html#8159812
cheers mate, that does it, We can close this.
*** This bug has been marked as a duplicate of bug 623566 ***