Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 641556 - www-client/chromium-65.0.3294.5 fails to compile: invalid linker name in argument '-fuse-ld=lld'
Summary: www-client/chromium-65.0.3294.5 fails to compile: invalid linker name in argu...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-18 13:23 UTC by Miroslav Šulc
Modified: 2018-01-28 20:06 UTC (History)
0 users

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


Attachments
build.log (build.log.bz2,24.67 KB, application/x-bzip)
2017-12-18 13:23 UTC, Miroslav Šulc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Miroslav Šulc gentoo-dev 2017-12-18 13:23:46 UTC
Created attachment 510696 [details]
build.log

# emerge --info '=www-client/chromium-65.0.3294.5::gentoo'
Portage 2.3.19 (python 3.4.6-final-0, default/linux/amd64/17.0/hardened, gcc-7.2.0, glibc-2.26-r3, 4.14.6-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.14.6-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-gentoo-2.4.1
KiB Mem:    32879916 total,  13364304 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 18 Dec 2017 13:00:01 +0000
Head commit of repository gentoo: f847d777f140a6e6c66d330f1061b068b25b947f
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p2) 2.29.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.26.1-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.6-r1::gentoo, 3.5.4-r1::gentoo, 3.6.3-r1::gentoo
dev-util/cmake:           3.10.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0::gentoo, 7.2.0::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-vcs-ignore: true
    sync-rsync-extra-opts: 

fordfrog
    location: /usr/src/fordfrog.git
    masters: gentoo
    priority: 0

local
    location: /usr/local/portage
    masters: gentoo

audio-overlay
    location: /var/lib/layman/audio-overlay
    masters: gentoo
    priority: 50

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

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

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

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--misspell-suggestions n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict 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://distfiles.gentoo.org"
LANG="cs_CZ.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="X a52 aac acl alsa amd64 bzip2 cdda cddb cdr cracklib crypt cups cxx d3d9 dbus dia dssi dvb dvd exif ffmpeg flac gegl gif gphoto2 gsm gtk gtk3 hardened http2 iconv icu id3tag ipv6 jack jacksession jpeg justify ladspa lastfm latex lcms libass libnotify libproxy lilypond lv2 mad modplug mp3 mpeg mtp multilib musepack ncurses nls nptl ocr ogg opengl openmp opus pam pcre pdf pie png pulseaudio raw readline samba scanner seccomp sf2 sndfile soundio speex spell ssl ssp startup-notification svg taglib theora tiff timidity tk tray truetype unicode usb vaapi vdpau visio vorbis vpx vst wavpack webp wmf x264 x265 xattr xinerama xtpax xv xvid zlib" ABI_X86="32 64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="alias auth_basic authn_core authn_file authz_core authz_host authz_user deflate dir expires filter headers http2 include info log_config mime mime_magic negotiation proxy proxy_ajp rewrite setenvif socache_shmcb status unixd vhost_alias" APACHE2_MPMS="event" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx f16c mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics wacom" KERNEL="linux" L10N="cs cs-CZ en en-US en-UK" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="cs cs_CZ en en_US en_UK" NETBEANS_MODULES="*" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4 python3_5 python3_6" RUBY_TARGETS="ruby21 ruby22 ruby23 ruby24" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="intel i915 i965 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


# emerge -pqv '=www-client/chromium-65.0.3294.5::gentoo'
[ebuild     U ] www-client/chromium-65.0.3294.5 [63.0.3230.0] USE="cups hangouts (pic) proprietary-codecs pulseaudio suid system-ffmpeg system-icu* -component-build -custom-cflags -gnome-keyring -kerberos (-neon) (-selinux) (-system-libvpx) (-tcmalloc) -widevine" L10N="cs -am -ar -bg -bn -ca -da -de -el -en-GB -es -es-419 -et -fa -fi -fil -fr -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt-BR -pt-PT -ro -ru -sk -sl -sr -sv -sw -ta -te -th -tr -uk -vi -zh-CN -zh-TW"
Comment 1 Miroslav Šulc gentoo-dev 2017-12-18 13:43:44 UTC
i just got exactly the same error with www-client/chromium-64.0.3282.24
Comment 2 Miroslav Šulc gentoo-dev 2017-12-18 13:48:00 UTC
i found out sys-devel/lld is not pulled in by chromium, which i guess was the cause
Comment 3 Mike Gilbert gentoo-dev 2017-12-18 16:28:03 UTC
What version of clang are you using?
Comment 4 Miroslav Šulc gentoo-dev 2017-12-18 16:31:45 UTC
$ equery list clang
 * Searching for clang ...
[IP-] [  ] sys-devel/clang-5.0.0:5
Comment 5 Mike Gilbert gentoo-dev 2017-12-18 16:56:29 UTC
Heh, this was working by accident for me because I have "-fuse-ld=gold" in LDFLAGS, which overrides the -fuse-ld=lld injected by the build system.
Comment 6 Larry the Git Cow gentoo-dev 2017-12-18 16:57:23 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01b116d0d18bca42b6b1c9bb8285af993b72bb1c

commit 01b116d0d18bca42b6b1c9bb8285af993b72bb1c
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2017-12-18 16:56:56 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2017-12-18 16:57:18 +0000

    www-client/chromium: disable forced -fuse-ld=lld
    
    Closes: https://bugs.gentoo.org/641556
    Package-Manager: Portage-2.3.19_p1, Repoman-2.3.6_p35

 www-client/chromium/chromium-64.0.3282.24.ebuild | 3 +++
 www-client/chromium/chromium-65.0.3294.5.ebuild  | 3 +++
 2 files changed, 6 insertions(+)
Comment 7 Larry the Git Cow gentoo-dev 2018-01-22 16:22:02 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00129840d4988ff105623ff33f6a5b8ce50309fe

commit 00129840d4988ff105623ff33f6a5b8ce50309fe
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2018-01-22 16:20:29 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2018-01-22 16:20:29 +0000

    www-client/chromium: apply use_lld fix to M63
    
    Bug: https://bugs.gentoo.org/641556
    Closes: https://bugs.gentoo.org/645334

 www-client/chromium/chromium-63.0.3239.132.ebuild | 3 +++
 1 file changed, 3 insertions(+)}
Comment 8 Ingo Brunberg 2018-01-28 19:51:42 UTC
As I have LDFLAGS="-fuse-ld=lld" in my environment for compiling chromium, I wonder if it would not be cleaner to have a use flag for this (defaulting to false, of course).
Comment 9 Mike Gilbert gentoo-dev 2018-01-28 20:06:55 UTC
(In reply to Ingo Brunberg from comment #8)
> As I have LDFLAGS="-fuse-ld=lld" in my environment for compiling chromium, I
> wonder if it would not be cleaner to have a use flag for this (defaulting to
> false, of course).

That should work fine, though you may need to enable the "custom-cflags" USE flag.

Disableing use_lld just prevents the chromium build system from forceably adding it.