Summary: | www-client/chromium-54.0.2840.59 fails to build with LD environment variable set to ld.gold | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | nE0sIghT <ykonotopov> |
Component: | Current packages | Assignee: | Chromium Project <chromium> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://codereview.chromium.org/2422203002/ | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log.bz2 |
Description
nE0sIghT
2016-10-15 21:07:16 UTC
I use ld.gold as system default linker and had no problems building Chromium 54.0.2840.59 on my ~x86_64 system. (In reply to Matt Whitlock from comment #1) > I use ld.gold as system default linker and had no problems building Chromium > 54.0.2840.59 on my ~x86_64 system. With same USE flags and ninja generator? Without "LD=ld.gold" environment variable it builds fine. > Without "LD=ld.gold" environment variable it builds fine.
Why would you set LD=ld.gold in your environment?
(In reply to Mike Gilbert from comment #3) > > Why would you set LD=ld.gold in your environment? I set it in /etc/portage/package.env for several packages commit 1056f45c6d5733e899383b265df42f74af61e2c2 Author: Mike Gilbert <floppym@gentoo.org> Date: Mon Oct 17 00:12:45 2016 -0400 www-client/chromium: work around invalid LD in environment Bug: https://bugs.gentoo.org/597218 Package-Manager: portage-2.3.2 www-client/chromium/chromium-54.0.2840.59.ebuild | 4 ++++ www-client/chromium/chromium-55.0.2873.0.ebuild | 4 ++++ 2 files changed, 8 insertions(+) (In reply to nE0sIghT from comment #4) > I set it in /etc/portage/package.env for several packages Don't do that. LD should almost never be set to "ld.gold". Do this instead: LDFLAGS="${LDFLAGS} -fuse-ld=gold" (In reply to Mike Gilbert from comment #6) > (In reply to nE0sIghT from comment #4) > > Don't do that. LD should almost never be set to "ld.gold". > > Do this instead: > > LDFLAGS="${LDFLAGS} -fuse-ld=gold" If I understand correctly this is gcc specific and will not work with clang. Also LD="ld.gold" is recommended in Clang Gentoo wiki: https://wiki.gentoo.org/wiki/Clang#Setting_Gold_as_the_default_linker_using_make.conf Interesting. We should probably teach bootstrap.py to ignore it instead. |