Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 642350 - Cannot compile dev-qt/qtgui-5.7.1-r1 after moving from profile 3 to profile 16
Summary: Cannot compile dev-qt/qtgui-5.7.1-r1 after moving from profile 3 to profile 16
Status: RESOLVED DUPLICATE of bug 623566
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal blocker (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-26 21:19 UTC by Bèrto 'd Sèra
Modified: 2017-12-27 08:41 UTC (History)
3 users (show)

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


Attachments
emerge --info '=dev-qt/qtgui-5.7.1-r1::gentoo' (file_642350.txt,6.60 KB, text/plain)
2017-12-26 21:20 UTC, Bèrto 'd Sèra
Details
/var/tmp/portage/dev-qt/qtgui-5.7.1-r1/temp/build.log (file_642350.txt,41.20 KB, text/plain)
2017-12-26 21:25 UTC, Bèrto 'd Sèra
Details
/var/tmp/portage/dev-qt/qtgui-5.7.1-r1/temp/environment (environment,120.23 KB, text/plain)
2017-12-26 21:27 UTC, Bèrto 'd Sèra
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bèrto 'd Sèra 2017-12-26 21:19:36 UTC
>>> 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
Comment 1 Bèrto 'd Sèra 2017-12-26 21:20:20 UTC
Created attachment 511694 [details]
emerge --info '=dev-qt/qtgui-5.7.1-r1::gentoo'
Comment 2 Bèrto 'd Sèra 2017-12-26 21:21:57 UTC
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"
Comment 3 Bèrto 'd Sèra 2017-12-26 21:25:26 UTC
Created attachment 511696 [details]
/var/tmp/portage/dev-qt/qtgui-5.7.1-r1/temp/build.log
Comment 4 Bèrto 'd Sèra 2017-12-26 21:27:38 UTC
Created attachment 511698 [details]
/var/tmp/portage/dev-qt/qtgui-5.7.1-r1/temp/environment
Comment 5 Bèrto 'd Sèra 2017-12-26 21:30:20 UTC
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.
Comment 6 Bèrto 'd Sèra 2017-12-26 21:30:55 UTC
The Qt4 versiones emerges perfectly fine, though.
Comment 7 josef.95 2017-12-26 22:18:19 UTC
Hm yes, try a rebuild in the right order, this should help, see
https://forums.gentoo.org/viewtopic-p-8159812.html#8159812
Comment 8 Bèrto 'd Sèra 2017-12-27 01:11:34 UTC
cheers mate, that does it, We can close this.
Comment 9 Michael Palimaka (kensington) gentoo-dev 2017-12-27 08:41:13 UTC

*** This bug has been marked as a duplicate of bug 623566 ***