Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 637654 - www-client/chromium-64.0.3260.2: clang (LLVM option parsing): Unknown command line argument '-instcombine-lower-dbg-declare=0'.
Summary: www-client/chromium-64.0.3260.2: clang (LLVM option parsing): Unknown command...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-16 08:26 UTC by Miroslav Šulc
Modified: 2017-12-16 23:24 UTC (History)
0 users

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


Attachments
build.log (build.log.bz2,10.04 KB, application/x-bzip)
2017-11-16 08:26 UTC, Miroslav Šulc
Details
Modified chromium-clang-r1.patch for chromium-64.0.3282.14 (chromium-clang-r1.patch,808 bytes, patch)
2017-12-10 11:29 UTC, Ingo Brunberg
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Miroslav Šulc gentoo-dev 2017-11-16 08:26:23 UTC
Created attachment 504484 [details]
build.log

$ emerge -pqv '=www-client/chromium-64.0.3260.2::gentoo'
[ebuild     U ] www-client/chromium-64.0.3260.2 [63.0.3230.0] USE="cups hangouts (pic) proprietary-codecs pulseaudio suid system-ffmpeg -component-build -custom-cflags -gnome-keyring -kerberos (-neon) (-selinux) (-system-icu) (-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" 

$ equery list llvm
 * Searching for llvm ...
[IP-] [  ] sys-devel/llvm-5.0.0:5

$ emerge --info '=www-client/chromium-64.0.3260.2::gentoo
Portage 2.3.14 (python 3.4.6-final-0, hardened/linux/amd64, gcc-6.4.0, glibc-2.26-r3, 4.13.9-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.13.9-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-gentoo-2.4.1
KiB Mem:    32880296 total,  16015544 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 16 Nov 2017 06:30:01 +0000
Head commit of repository gentoo: 4434f7ad872bfc995efa99d7f9b98171f8156aeb
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.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.7::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
sys-devel/gcc-config:     1.9.0::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

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/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 berkdb bzip2 cdda cdr cli cracklib crypt cups cxx d3d9 dbus dia dri dssi dvb dvd exif ffmpeg flac gdbm gegl gif gphoto2 gsm gtk gtk3 hardened http2 iconv icu id3tag ipv6 jack jacksession jpeg justify ladspa latex lcms libass libnotify libproxy lilypond lv2 mad modplug modules mp3 mpeg mtp multilib musepack ncurses nls nptl ocr ogg opengl openmp opus pam pcre pdf pie png pulseaudio raw readline samba scanner seccomp session sf2 sndfile soundio speex spell ssl ssp startup-notification svg taglib theora tiff timidity tk tray truetype unicode urandom 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" 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
Comment 1 Ingo Brunberg 2017-12-10 11:29:24 UTC
Created attachment 509232 [details, diff]
Modified chromium-clang-r1.patch for chromium-64.0.3282.14
Comment 2 Ingo Brunberg 2017-12-10 11:34:00 UTC
The flag -instcombine-lower-dbg-declare seems to be a very recent addition to llvm, so it is not usable with llvm-5.

With the modified chromium-clang-r1.patch chromium-64.0.3282.14 does compile.
Comment 3 Larry the Git Cow gentoo-dev 2017-12-16 23:24:23 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7803280172901a7f2b13d7886fe60a0eb69925c4

commit 7803280172901a7f2b13d7886fe60a0eb69925c4
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2017-12-16 23:24:04 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2017-12-16 23:24:18 +0000

    www-client/chromium: fix build with clang
    
    Closes: https://bugs.gentoo.org/637654
    Package-Manager: Portage-2.3.19_p1, Repoman-2.3.6_p35

 www-client/chromium/chromium-64.0.3282.24.ebuild  |  1 +
 www-client/chromium/files/chromium-clang-r2.patch | 21 +++++++++++++++++++++
 2 files changed, 22 insertions(+)