Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 561726 - =www-client/chromium-45.0.2454.101 fails to build with clang 3.5
Summary: =www-client/chromium-45.0.2454.101 fails to build with clang 3.5
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: systemwide-clang
  Show dependency tree
 
Reported: 2015-09-28 11:37 UTC by Markus Hauschild
Modified: 2015-09-29 01:34 UTC (History)
0 users

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


Attachments
build.log (build.log,82.04 KB, text/x-log)
2015-09-28 11:38 UTC, Markus Hauschild
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Hauschild 2015-09-28 11:37:27 UTC
=www-client/chromium-45.0.2454.101 fails to build with clang 3.5

Reproducible: Always

Steps to Reproduce:
emerge chromium
Actual Results:  
[...]
x86_64-pc-linux-gnu-g++: error: unrecognized command line option ‘-fcolor-diagnostics’
x86_64-pc-linux-gnu-g++: error: unrecognized command line option ‘-Wheader-hygiene’
x86_64-pc-linux-gnu-g++: error: unrecognized command line option ‘-Wstring-conversion’
ninja: build stopped: subcommand failed.
 * ERROR: www-client/chromium-45.0.2454.101::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  93:  Called src_compile
 *   environment, line 5077:  Called die
 * The specific snippet of code:
 *       eninja -C out/Release mksnapshot || die;
 * 
 * If you need support, post the output of `emerge --info '=www-client/chromium-45.0.2454.101::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=www-client/chromium-45.0.2454.101::gentoo'`.
 * 
 * MemTotal:        8043464 kB
 * SwapTotal:       8388604 kB
 * 
 * The complete build log is located at '/var/log/portage/www-client:chromium-45.0.2454.101:20150928-060254.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/www-client/chromium-45.0.2454.101/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-client/chromium-45.0.2454.101/temp/environment'.
 * Working directory: '/var/tmp/portage/www-client/chromium-45.0.2454.101/work/chromium-45.0.2454.101'
 * S: '/var/tmp/portage/www-client/chromium-45.0.2454.101/work/chromium-45.0.2454.101'


Portage 2.2.20.1 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-4.8.5, glibc-2.20-r2, 4.2.0-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.2.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-2640M_CPU_@_2.80GHz-with-gentoo-2.2
KiB Mem:     8043464 total,    678864 free
KiB Swap:    8388604 total,   8387536 free
Timestamp of repository gentoo: Mon, 28 Sep 2015 04:45:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p39::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.2.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.8.5::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000

kde
    location: /var/lib/layman/kde
    masters: gentoo
    priority: 0

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 1

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=corei7-avx -mtune=corei7-avx"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0"
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="-O2 -pipe -march=corei7-avx -mtune=corei7-avx"
DISTDIR="/usr/local/portage/distfiles"
EMERGE_DEFAULT_OPTS="-j2"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/local/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"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 avx berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit corefonts cracklib crypt cups cxx dbus declarative dhcpcd dri dts dvd dvdr dvdread emboss encode exif faac faad fakevim fam ffmpeg firefox flac fontconfig fortran g3dvl gdbm gif git glamor gpm gtk iconv infinality iproute2 ipv6 jabber java jpeg kde kerberos kipi laptop lcms ldap libnotify mad matroska mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nfs nls nptl nsplugin ogg openal opengl openmp opus pam pango pcre pdf phonon plasma png policykit ppds pulseaudio python qemu qml qt3support qt4 qt5 rdesktop rdp readline rtmp rtsp samba sdl seccomp semantic-desktop session smp spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification subversion svg svgvaapi tcpd threads tiff truetype udev udisks unicode upower usb vaapi vim-syntax vnc vorbis widgets wxwidgets x264 xa xattr xcb xcomposite xinerama xml xscreensaver xv xvid xvmc zlib zsh-completion" ABI_X86="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="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="avx mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="i386 x86_64" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel" 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, USE_PYTHON
Comment 1 Markus Hauschild 2015-09-28 11:38:05 UTC
Created attachment 413154 [details]
build.log
Comment 2 Markus Hauschild 2015-09-28 12:55:15 UTC
Further information:
sys-devel/clang is version 3.5.0-r100{tbz2}
sys-devel/llvm is version 3.5.0

Environment has been set as per https://wiki.gentoo.org/wiki/Clang (not using LTO or distcc)
Comment 3 Mike Gilbert gentoo-dev 2015-09-28 15:58:05 UTC
Looks like it is using gcc for CXX.host, but still passing clang-related CXXFLAGS.
Comment 4 Mike Gilbert gentoo-dev 2015-09-29 01:34:24 UTC
commit 0632d91c0b15668d32d7a32336bf196e7c25e850
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Mon Sep 28 21:33:15 2015 -0400

    www-client/chromium: Fix build with clang
    
    Only set host vars when cross-compiling.
    This lets a native clang build work by default.
    
    https://bugs.gentoo.org/561726
    
    Package-Manager: portage-2.2.22_p3

 www-client/chromium/chromium-45.0.2454.101.ebuild | 14 ++++++++------
 www-client/chromium/chromium-46.0.2490.42.ebuild  | 14 ++++++++------
 www-client/chromium/chromium-47.0.2516.0.ebuild   | 14 ++++++++------
 3 files changed, 24 insertions(+), 18 deletions(-)