Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 666928 - www-client/chromium versions any from (67.x to 69.x) - fatal error: 'stddef.h' file not found
Summary: www-client/chromium versions any from (67.x to 69.x) - fatal error: 'stddef.h...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-23 21:43 UTC by Denis Descheneaux
Modified: 2018-09-25 21:28 UTC (History)
2 users (show)

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


Attachments
build.log (chromium.build.log,18.04 KB, text/x-log)
2018-09-23 21:46 UTC, Denis Descheneaux
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Descheneaux 2018-09-23 21:43:10 UTC
I have been unable to emerge chromium any from 67 to 69 versions

the only way i can emerge them fine is by modifying the ebuild

add a new custom use to facilitate building without forced clang <gcc-build>

IUSE="component-build cups gnome-keyring +hangouts jumbo-build kerberos neon pic +proprietary-codecs pulseaudio selinux +suid +system-ffmpeg +system-icu +system-libvpx +tcmalloc widevine gcc-build"

and in src_configure() 

..
..

	if ! use gcc-build ; then
		# Use clang
		CC=${CHOST}-clang
		CXX=${CHOST}-clang++
		strip-unsupported-flags
	fi

	if use gcc-build ; then
		# Use gcc
		CC=${CHOST}-gcc
		CXX=${CHOST}-g++
		strip-unsupported-flags
	fi

..
..
Comment 1 Denis Descheneaux 2018-09-23 21:44:16 UTC
$ genlop -i chromium
 * www-client/chromium


   Total builds: 33
   Global build time: 1 day, 12 hours, 7 minutes and 58 seconds.
   Average merge time: 6 hours, 11 minutes and 9 seconds.

   Info about currently installed ebuild:

   * www-client/chromium-69.0.3497.100
   Install date: Thu Sep 20 13:06:18 2018
   USE="cups gnome-keyring jumbo-build kerberos pic pulseaudio selinux widevine gcc-build -component-build -+hangouts -neon -+proprietary-codecs -+suid -+system-ffmpeg -+system-icu -+system-libvpx -+tcmalloc"
   CFLAGS="-march=sandybridge -O2 -pipe -ftree-vectorize -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity -mindirect-branch=thunk -mindirect-branch-register"   CXXFLAGS="-march=sandybridge -O2 -pipe -ftree-vectorize -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity -mindirect-branch=thunk -mindirect-branch-register"   LDFLAGS="-Wl,-O1 -Wl,--as-needed"
Comment 2 Denis Descheneaux 2018-09-23 21:45:07 UTC
And if i try to let it build with default clang

# USE="-gcc-build" emerge -a1 =chromium-69.0.3497.100

These are the packages that would be merged, in order:

Calculating dependencies      ... done!                  
[ebuild   R    ] www-client/chromium-69.0.3497.100::maolang  USE="cups custom-cflags gnome-keyring hangouts jumbo-build kerberos (pic) proprietary-codecs pulseaudio (selinux) suid widevine -component-build -gcc-build* (-neon) (-system-ffmpeg) (-system-icu) (-system-libvpx) (-tcmalloc)" L10N="de fr ru -am -ar -bg -bn -ca -cs -da -el -en-GB -es -es-419 -et -fa -fi -fil -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt-BR -pt-PT -ro -sk -sl -sr -sv -sw -ta -te -th -tr -uk -vi -zh-CN -zh-TW" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] yes
Comment 3 Denis Descheneaux 2018-09-23 21:46:53 UTC
Created attachment 547732 [details]
build.log
Comment 4 Denis Descheneaux 2018-09-23 21:47:47 UTC
emerge --info

Portage 2.3.49 (python 3.7.0-final-0, default/linux/amd64/17.0/desktop/gnome/systemd, gcc-8.2.0, glibc-2.27-r6, 4.14.71-gentoo x86_64)
=================================================================
System uname: Linux-4.14.71-gentoo-x86_64-Intel-R-_Core-TM-_i7-2630QM_CPU_@_2.00GHz-with-gentoo-2.6
KiB Mem:    24627392 total,   2022748 free
KiB Swap:   28310520 total,  27495416 free
Timestamp of repository gentoo: Sun, 23 Sep 2018 19:00:01 +0000
Head commit of repository gentoo: 62269ba0c6a992f6bc4b2fec63e929882b8c4e3c

sh bash 4.4_p23
ld GNU ld (Gentoo 2.31.1 p2) 2.31.1
ccache version 3.4.3 [disabled]
app-shells/bash:          4.4_p23::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15-r1::maolang, 3.5.5-r2::maolang, 3.6.6-r1::maolang, 3.7.0-r1::maolang
dev-util/ccache:          3.4.3::gentoo
dev-util/cmake:           3.12.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo, 8.2.0-r2::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.17::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage/
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: no
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1

maolang
    location: /etc/portage/local
    masters: gentoo
    priority: 100

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeAIRSDK AdobeFlash-11.x dotnet-eula FraunhoferFDK genymotion google-chrome icaclient MEGA-Code-Review MSjdbcEULA40 NVIDIA-CUDA OPERA-2014 Oracle-BCLA-JavaSE teamspeak3 PUEL RAR TeamViewer Vivaldi intel-ucode-20180807"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=sandybridge -O2 -ftree-vectorize -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity -ftree-parallelize-loops=4 -mindirect-branch=thunk -mindirect-branch-register -fopenmp -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/grs/systems.conf /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/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.2/ext-active/ /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=sandybridge -O2 -ftree-vectorize -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity -ftree-parallelize-loops=4 -mindirect-branch=thunk -mindirect-branch-register -fopenmp -pipe"
DISTDIR="/usr/portage/distfiles/dist~"
EMERGE_DEFAULT_OPTS="  --alert=y --ask-enter-invalid --color=y --keep-going --verbose --verbose-conflicts"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=sandybridge -O2 -ftree-vectorize -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity -ftree-parallelize-loops=4 -mindirect-branch=thunk -mindirect-branch-register -fopenmp -pipe"
FEATURES="assume-digests binpkg-logs binpkg-multi-instance buildpkg candy clean-logs config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch parallel-install preserve-libs protect-owned sandbox selinux sesandbox sfperms split-elog split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=sandybridge -O2 -ftree-vectorize -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity -ftree-parallelize-loops=4 -mindirect-branch=thunk -mindirect-branch-register -fopenmp -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="fr_CA.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -fuse-ld=gold"
LINGUAS="de en fr ru"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/distfiles/bin~"
PORTAGE_BINHOST="http://packages.gentooexperimental.org/packages/amd64-unstable/"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9"
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 Xaw3d a52 aac acl acpi alsa amd64 apparmor asyncns avahi bash-completion berkdb bluetooth boost branding byte-compile bzip2 cairo caps cdda cdr clang cleartype_hinting cli colord compiler-rt cracklib crypt cups custom-cflags custom-optimization cxx dbus default-compiler-rt dri dts dvd dvdr eds emboss encode evo exif fam flac fontconfig fortran gdbm gif glamor glib gmp gnome gnome-keyring gnome-online-accounts gold gpm graphite gstreamer gtk gtkstyle harfbuzz hscolour hwloc iconv icu initramfs introspection ipv6 ithreads jack jit jpeg kmod lcms ldap libcxx libcxxabi libinput libnotify libsamplerate libsecret libtirpc lirc mad math mng modules mp3 mp4 mpeg mtp multilib multiuser nautilus ncurses nethack nls nptl ocamlopt offensive ogg ompt open_perms opengl openmp oss pam pango pcre pdf peer_perms pic pie png policykit postgres ppds pulseaudio qt5 readline realtime scanner sdl seccomp selinux smp spell ssl ssp startup-notification static stemmer svg symlink systemd tcpd threads tiff tinfo toolbar tracker truetype ubac udev udisks unconfined unicode upower usb v4l vorbis wxwidgets x264 xattr xcb xinerama xml xv xvid zeroconf zlib" 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_EXPERIMENTAL_FEATURES="braindump stage" CALLIGRA_FEATURES="author braindump flow gemini karbon kexi krita plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory network rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" ENLIGHTENMENT_MODULES="appmenu backlight battery bluez4 clock conf conf-applications conf-bindings conf-dialogs conf-display conf-interaction conf-intl conf-menus conf-paths conf-performance conf-randr conf-shelves conf-theme conf-window-manipulation conf-window-remembers connman cpufreq everything fileman fileman-opinfo gadman geolocation ibar ibox lokker mixer msgbus music-control notification packagekit pager pager-plain policy-mobile quickaccess shot start syscon systray tasks teamwork temperature tiling time winlist wireless wizard wl-desktop-shell wl-drm wl-text-input wl-weekeyboard wl-wl wl-x11 xkbswitch xwayland" 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" GRUB_PLATFORMS="emu efi-64 pc" INPUT_DEVICES="elographics evdev libinput lirc synaptics wacom" KERNEL="linux" L10N="de en fr ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" LLVM_TARGETS="AArch64 AMDGPU NVPTXX86" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6 3_7" PYTHON_TARGETS="python3_6 python3_7" QEMU_SOFTMMU_TARGETS="x86_64 aarch64 arm i386 ppc ppc64 ppcemb" QEMU_USER_TARGETS="x86_64 aarch64 arm i386 ppc ppc64 ppc64abi32 ppc64le" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu dummy i915 i965 intel modesetting nvidia qxl radeon radeonsi virgl vmware" XFCE_PLUGINS="brightness clock multiload-nandhp power trash" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Denis Descheneaux 2018-09-23 21:49:39 UTC
I have btw done this without custom-cflags, ccache and plain -O2 -pipe with clang build it always is down with the very same error whichever the version and build is between 67-69 of chromium
Comment 6 Denis Descheneaux 2018-09-23 21:52:50 UTC
qlist -ISv clang llvm libcxx
sys-devel/clang-7.0.0:7
sys-devel/clang-common-7.0.0:0
sys-devel/clang-runtime-7.0.0:7.0.0
sys-devel/llvm-7.0.0:7
sys-devel/llvm-common-7.0.0:0
sys-devel/llvmgold-7:0
sys-libs/libcxx-7.0.0:0
sys-libs/libcxxabi-7.0.0:0


eix clang -I
[I] sys-devel/clang
     Available versions:  
     (0)    ~*3.4.2-r100(0/3.4) ~*3.5.2-r100(0/3.5) ~*3.6.2-r100(0/3.6) ~*3.7.1-r100(0/3.7) ~*3.9.1-r100(0/3.9.1)
     (4)    4.0.1
     (5)    5.0.2
     (6)    6.0.1^t
     (7)    (~)7.0.0^t{xpak} **7.0.9999^t
     (8)    **9999^t
       {debug default-compiler-rt default-libcxx doc multitarget python +static-analyzer test xml z3 ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32" ELIBC="musl" KERNEL="FreeBSD" LLVM_TARGETS="AArch64 AMDGPU ARM AVR BPF Hexagon Lanai MSP430 Mips NVPTX Nios2 PowerPC RISCV Sparc SystemZ WebAssembly X86 XCore" PYTHON_TARGETS="python2_7"}
     Installed versions:  7.0.0(7)^t{xpak}(02:53:49 AM 09/20/2018)(default-compiler-rt doc static-analyzer xml -debug -default-libcxx -test -z3 ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32" KERNEL="-FreeBSD" LLVM_TARGETS="AArch64 AMDGPU X86 -ARM -BPF -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -Sparc -SystemZ -XCore" PYTHON_TARGETS="python2_7")
     Homepage:            https://llvm.org/
     Description:         C language family frontend for LLVM

[I] sys-devel/clang-common
     Available versions:  6.0.1 (~)7.0.0{xpak} **7.0.9999 **9999
     Installed versions:  7.0.0{xpak}(09:25:46 PM 09/19/2018)
     Homepage:            https://llvm.org/
     Description:         Common files shared between multiple slots of clang

[I] sys-devel/clang-runtime
     Available versions:  
     (0)    3.9.1
     (4.0.1) 4.0.1 (~)4.0.1-r1
     (5.0.2) 5.0.2
     (6.0.1) 6.0.1
     (7.0.0) (~)7.0.0{xpak} **7.0.9999
     (8.0.0) **9999
       {+compiler-rt crt libcxx openmp +sanitize ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  7.0.0(7.0.0){xpak}(03:03:56 AM 09/20/2018)(compiler-rt libcxx openmp sanitize -crt ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32")
     Homepage:            https://clang.llvm.org/
     Description:         Meta-ebuild for clang runtime libraries


eix llvm -I
[I] sys-devel/llvm
     Available versions:  
     (0)    ~*3.4.2-r100(0/3.4) ~*3.5.2-r100(0/3.5) ~*3.6.2-r100(0/3.6) ~*3.7.1-r3(0/3.7.1) ~*3.9.1-r1(0/3.9.1)
     (4)    4.0.1-r1
     (5)    5.0.2
     (6)    6.0.1^t (~)6.0.1-r1^t
     (7)    (~)7.0.0^t{xpak} **7.0.9999^t
     (8)    **9999^t
       {clang debug default-compiler-rt default-libcxx doc exegesis gold libedit +libffi lldb multitarget ncurses ocaml python +sanitize +static-analyzer test xar xml ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32" ELIBC="musl" KERNEL="Darwin FreeBSD linux" LLVM_TARGETS="AArch64 AMDGPU ARM AVR BPF Hexagon Lanai MSP430 Mips NVPTX Nios2 PowerPC RISCV Sparc SystemZ WebAssembly X86 XCore" PYTHON_TARGETS="python2_7" VIDEO_CARDS="radeon"}
     Installed versions:  7.0.0(7)^t{xpak}(11:55:43 PM 09/19/2018)(doc gold libffi ncurses xml -debug -libedit -test -xar ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32" KERNEL="-Darwin" LLVM_TARGETS="AArch64 AMDGPU X86 -ARM -BPF -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -Sparc -SystemZ -XCore")
     Homepage:            https://llvm.org/
     Description:         Low Level Virtual Machine

[I] sys-devel/llvm-common
     Available versions:  4.0.1 5.0.2 6.0.1 (~)7.0.0{xpak} **7.0.9999 **9999
     Installed versions:  7.0.0{xpak}(09:25:02 PM 09/19/2018)
     Homepage:            https://llvm.org/
     Description:         Common files shared between multiple slots of LLVM

[I] sys-devel/llvmgold
     Available versions:  4 5 6 (~)7{xpak} **8
     Installed versions:  7{xpak}(11:56:32 PM 09/19/2018)
     Homepage:            https://llvm.org/
     Description:         LLVMgold plugin symlink for autoloading

eix libcxx -I
[I] sys-libs/libcxx
     Available versions:  (~)3.7.1 3.9.1 4.0.1 5.0.2 6.0.1^t (~)7.0.0^t{xpak} **7.0.9999^t **9999^t {(+)libcxxabi (+)libcxxrt (+)libunwind +static-libs test ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32" ELIBC="glibc musl"}
     Installed versions:  7.0.0^t{xpak}(12:04:16 AM 09/20/2018)(libcxxabi static-libs -libcxxrt -libunwind -test ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32" ELIBC="glibc -musl")
     Homepage:            https://libcxx.llvm.org/
     Description:         New implementation of the C++ standard library, targeting C++11

[I] sys-libs/libcxxabi
     Available versions:  3.9.1 (~)3.9.1[1] 4.0.1 5.0.2 6.0.1^t 7.0.0^t{xpak} **7.0.9999^t **9999^t {(+)libunwind +static-libs test ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32" ELIBC="musl"}
     Installed versions:  7.0.0^t{xpak}(11:57:47 PM 09/19/2018)(static-libs -libunwind -test ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32" ELIBC="-musl")
     Homepage:            https://libcxxabi.llvm.org/
     Description:         Low level support for a standard C++ library
Comment 7 Mike Gilbert gentoo-dev 2018-09-24 00:56:22 UTC
chromium frequently fails to build with GCC. I don't have the time to support it.

Your clang is somehow broken horribly if it cannot find stddef.h.
Comment 8 Denis Descheneaux 2018-09-24 03:03:35 UTC
It would be nice to have an idea in which direction to go from here, cause at the moment, this issue continues to exist and i have no idea how to solve it

and just keep things clear, i have around 3400 packages installed that build all fine except chromium between 67-69 un-forcing clang out of the way and back to building with GCC, but from chromium 70 and up that trick does not work and cannot build now with GCC and still not with Clang
Comment 9 Denis Descheneaux 2018-09-24 04:39:25 UTC
seems no one knows what to do about this issue #gentoo or even cares it seems to figure out a reason why this is failing all pointing fingers to reason X etc.

You may not have a few moments to look at this issue, think on the fact that i have also wasted days of CPU build time on fails building this Chromium but i guess this does not matter cause it is not your time used for it....

And since GCC often fails to build and its the only way for me to build up to 69.x and always builds without issues which goes against what you are saying, clang has not succeeded one time for me on Chromium and on 3400+ packages installed the only one i am forced to build with clang fails, something must be terribly wrong with my clang.... Good luck have to run.... and do other things
Comment 10 Mike Gilbert gentoo-dev 2018-09-24 16:32:33 UTC
> You may not have a few moments to look at this issue, think on the fact that
> i have also wasted days of CPU build time on fails building this Chromium
> but i guess this does not matter cause it is not your time used for it....

I understand your frustration, but please remember that I am an unpaid volunteer, and I don't owe you anything. This attempt to guilt me into helping you is a bit rude. Anyway, we don't need to dwell on this.

I notice you have "default-compiler-rt" enabled on clang; I'm not sure it will help, but maybe try disabling this.

@llvm: Any idea why clang would be unable to find stddef.h?
Comment 11 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-09-24 16:44:30 UTC
Get the build to fail, cd into the build directory and rerun the 'clang' command with extra '-v' to get verbose output.  Clang generally has its own stddef.h, so even without gcc it should be able to find it.
Comment 12 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-09-24 16:47:42 UTC
Or maybe something simpler first:

$ clang++ -v -c -x c++ - <<<'#include <cstddef>'
Comment 13 Denis Descheneaux 2018-09-24 21:11:52 UTC
> I notice you have "default-compiler-rt" enabled on clang; I'm not sure it
> will help, but maybe try disabling this.
> 

I wonder if i could get your exact USES for the different packages for clang, llvm, libcxx etc, as i can try one USE at a time or straight rebuild the whole clang/llvm in one go and then go from there

In the past this system used to be 75% system-wide clang, but in the end reverted to GCC only, so perhaps there could be some leftovers from that time

I use CCACHE solely for Chromium with the CCACHE recommended settings from Chromium's own tips for it, though ccache a rebuild is done in 30 minutes, without it is well around 4 1/2 and 5 hours
Comment 14 Mike Gilbert gentoo-dev 2018-09-24 21:18:40 UTC
I don't have libcxx installed. Here's llvm and clang.

% emerge -pv1O llvm clang

These are the packages that would be merged, in order:

[ebuild   R    ] sys-devel/llvm-7.0.0:7::gentoo  USE="gold libffi ncurses xml -debug -doc -exegesis -libedit -test -xar" ABI_X86="32 (64) -x32" LLVM_TARGETS="AArch64 AMDGPU ARM BPF NVPTX Sparc (X86) -Hexagon -Lanai -MSP430 -Mips -PowerPC -SystemZ -XCore" 0 KiB
[ebuild   R    ] sys-devel/clang-7.0.0:7::gentoo  USE="static-analyzer xml -debug -default-compiler-rt -default-libcxx -doc -test (-z3)" ABI_X86="32 (64) -x32" LLVM_TARGETS="AArch64 AMDGPU ARM BPF NVPTX Sparc (X86) -Hexagon -Lanai -MSP430 -Mips -PowerPC -SystemZ -XCore" PYTHON_TARGETS="python2_7" 0 KiB

Total: 2 packages (2 reinstalls), Size of downloads: 0 KiB
Comment 15 Denis Descheneaux 2018-09-24 22:41:18 UTC
Will try chromium once the current build ends for clang, runtime + depclean
Comment 16 Denis Descheneaux 2018-09-25 18:17:12 UTC
Well many hours later and a good 40-50 failures later...

All the changes above did was get rid of the

'fatal error: 'stddef.h' file not found' error to replace it by others

However the version from 68,69.70 and 71 of chromium and however stripped and bare the USES, with and without jumbo-build, including trying to force using system-icu

It fails with similar fails with anything from

../../third_party/

Basically what ever i force to use system, fails to the next in line ../../third_party/

I am completely out of idea and frankly exhausted on the Chromium

It will always fail in the first compile phase the one which counts up to around 600 before it starts the big chunk of 8000+

The first bit if done with GCC will be done 100% to the end and then move on to the rest and succeed, is there anyway to have the first bit done in GCC and rest done with the first bit done successfully?
Comment 17 Mike Gilbert gentoo-dev 2018-09-25 18:42:56 UTC
(In reply to Denis Descheneaux from comment #16)
> The first bit if done with GCC will be done 100% to the end and then move on
> to the rest and succeed, is there anyway to have the first bit done in GCC
> and rest done with the first bit done successfully?

I'm not going implement anything like that in the official ebuild.
Comment 18 Denis Descheneaux 2018-09-25 19:25:21 UTC
I am not asking you to do it, i am asking if its possible?
Comment 19 Denis Descheneaux 2018-09-25 19:31:45 UTC
is it even possible to NOT build that damn clang to build chromium but use the one which is already installed on the system, to me this is getting ridiculous and a case where this package in its current state is impossible to build

This is really a case where an optional binary version of the package should be added, there is one for Libreoffice, Firefox and its not like the binary chromium needs to be built to a binary, the job is already done and its available

I dont think its much to ask to have a choice especially on one of the longest and worst package to build in gentoo....
Comment 20 Denis Descheneaux 2018-09-25 21:28:28 UTC
I may seem blunt, but even following the instructions here

https://chromium.googlesource.com/chromium/src/+/master/docs/linux_build_instructions.md

Does not work halfway through....