| Summary: | sys-devel/gcc-config-1.8-r1 - /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Thomas Deutschmann (RETIRED) <whissi> |
| Component: | Current packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | CC: | bkohler, email |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Thomas Deutschmann (RETIRED)
2016-09-30 13:45:00 UTC
confirmed here but it's also broken with =sys-devel/binutils-2.27 and switching to 2.26 doesn't work as stated above. dup of #603798 *** This bug has been marked as a duplicate of bug 603798 *** This is not a dupe. Bug 603798 was about the faulty pre gcc-5.5.0 patch set. you haven't posted emerge info, so i can only guess at settings here what version of gcc ? binutils ? did you upgrade binutils, upgrade gcc, then switch binutils to an older version ? 1) I extracted stage3-amd64-20160922.tar.bz2 which had =sys-devel/gcc-4.9.3 and =sys-devel/binutils:2.25.1 at this time. 2) I chroot into the new system 3) Adjusted some basic files like /etc/timezone, /etc/locale.gen, /etc/conf.d/hostname, /etc/hosts, /etc/dispatch-conf.conf, /etc/fstab. 4) I set CFLags following https://wiki.gentoo.org/wiki/Safe_CFLAGS#Find_CPU-specific_options, in my case I set CFLAGS="-O2 -pipe -march=ivybridge -mtune=ivybridge" 5) I changed ACCEPT_KEYWORDS="amd64" into ACCEPT_KEYWORDS="~amd64" 6) I updated gcc: # emerge --ask --oneshot --update sys-devel/gcc # gcc-config -l # gcc-config 2 # env-update && source /etc/profile # emerge --oneshot sys-devel/libtool # emerge --prune --ask sys-devel/gcc # /usr/share/gcc-data/x86_64-pc-linux-gnu/5.4.0/fix_libtool_files.sh 4.9.3 (the last command found nothing) 7) Now I tried to update world, i.e. # emerge --ask --verbose --update --deep --with-bdeps=y --newuse world ...and while updating world (well, you first have to update perl/python on your own...) sys-devel/gcc-config-1.8-r1 failed with the shown output. This was reproducible. The problem went away after updating binutils manually (emerge -a1 sys-devel/binutils && eselect binutils list && eselect binutils set 2 (which was sys-devel/binutils-2.26.1 at this time)). Has anyone seen this problem in the wild lately? Should this block stabilization in bug 626646? > /../../../lib64/crti.o: unrecognized relocation (0x2a) in section `.init' That bug is not specific to gcc-config. It's a case when glibc is built with too new binutils: https://bugs.gentoo.org/622690 *** This bug has been marked as a duplicate of bug 622690 *** |