Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 747001 - www-client/firefox-78.3.1 fails to build both with clang and without
Summary: www-client/firefox-78.3.1 fails to build both with clang and without
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-07 06:33 UTC by Giuseppe Foti
Modified: 2020-10-10 16:53 UTC (History)
0 users

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


Attachments
clang build log (firefox-build_clang.log.gz,380.26 KB, application/gzip)
2020-10-07 06:39 UTC, Giuseppe Foti
Details
gcc build log (firefox-build_gcc.log.gz,476.18 KB, application/gzip)
2020-10-07 06:40 UTC, Giuseppe Foti
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Giuseppe Foti 2020-10-07 06:33:42 UTC
emerge www-client/firefox
arises compile errors

Reproducible: Always




# emerge --info
fatal: not a git repository (or any of the parent directories): .git
Portage 3.0.4 (python 3.7.8-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-9.3.0, glibc-2.31-r6, 5.4.66-gentoo x86_64)
=================================================================
System uname: Linux-5.4.66-gentoo-x86_64-Intel-R-_Core-TM-_i7-4700HQ_CPU_@_2.40GHz-with-gentoo-2.7
KiB Mem:    15820272 total,   3332508 free
KiB Swap:   33554428 total,  32070140 free
Timestamp of repository gentoo: Wed, 07 Oct 2020 05:30:01 +0000
Head commit of repository gentoo: c436e473c444e05ccc6a66cfd36bdba3875f16bf
sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18-r2::gentoo, 3.6.11-r2::gentoo, 3.7.8-r2::gentoo, 3.8.5::gentoo
dev-util/cmake:           3.17.4-r1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.34-r2::gentoo
sys-devel/gcc:            9.3.0-r1::gentoo
sys-devel/gcc-config:     2.3.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r6::gentoo
Repositories:

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

Overlay-Personale
    location: /usr/local/portage
    sync-type: git
    sync-uri: git://me.org/me
    masters: gentoo

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

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

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

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

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core-avx2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /lib/systemd/system /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /var/lib/i2pd/certificates"
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.3/ext-active/ /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core-avx2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH 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="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.modulix.net/gentoo/ ftp://mirrors.soeasyto.com/distfiles.gentoo.org/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://gentoo.mirrors.ovh.net/gentoo-distfiles/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/"
LANG="it_IT.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="it"
MAKEOPTS="-j8"
PKGDIR="/var/cache/binpkgs"
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 aalib acl acpi afs alsa amd64 berkdb bluetooth branding bzip2 cairo cdb cdda cddb cdparanoia cdr cli colord cracklib crypt css cuda cups cvs dbi dbm dbus dga directfb djvu dri dts dv dvb dvd dvdr eds emboss encode evo exif ffmpeg firmware flac fontconfig foomaticdb fortran ftp gdbm gif gnome gnome-keyring gnome-online-accounts gphoto2 gpm gsm gstreamer gtk gui gzip hddtemp iconv icu ieee1394 imagemagick introspection ipv6 jack java javascript jpeg jpeg2k kerberos lcms ldap libcaca libglvnd libnotify libsecret libtirpc libwww lzma lzo mad mhash mime mmap mms mmx mng modules mp3 mp4 mpeg mplayer multilib nas nautilus ncurses networkmanager nls nptl offensive ogg opencl opencv openexr opengl openmp pam pango pcmcia pcre pda pdf png policykit ppds pulseaudio qt5 radius rdesktop readline samba scanner sdl seccomp smp snmp spell split-usr sse sse2 sse3 ssl startup-notification svg systemd tcpd theora tidy tiff tracker truecrypt truetype udev udisks unicode upnp upnp-av upower usb v4l vcd vnc vorbis wayland webkit wifi wxwidgets x264 xattr xcb xcomposite xine xml xscreensaver xv xvid zeroconf zlib zsh-completion" ABI_X86="64 32" ADA_TARGET="gnat_2018" 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 http2 log_forensic proxy proxy_fcgi auth_digest brotli" APACHE2_MPMS="event" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="synaptics evdev keyboard mouse joystick" KERNEL="linux" L10N="it" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="nvidia intel nouveau nv" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Giuseppe Foti 2020-10-07 06:39:29 UTC
Created attachment 664159 [details]
clang build log
Comment 2 Giuseppe Foti 2020-10-07 06:40:52 UTC
Created attachment 664162 [details]
gcc build log
Comment 3 Ionen Wolkens gentoo-dev 2020-10-07 08:00:58 UTC
See a lot of repeated "Rustfmt failed at stdin"

Haven't tested with USE=rustfmt on rust myself, but previous ebuilds would block rustfmt usage as a result of bug #669548, this workaround seems gone in 0/esr78 and 0/81. Perhaps related?
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2020-10-07 14:03:37 UTC
I cannot reproduce. I just emerged thunderbird-78.3.2 with USE=clang using clang:10 and rust-bin[rustfmt]-1.45.2 like you in a stable chroot.

Please check your rustfmt provider.
Comment 5 Thomas Deutschmann (RETIRED) gentoo-dev 2020-10-07 14:21:05 UTC
And I just finished building =www-client/firefox-78.3.1 with the same settings.
Comment 6 Giuseppe Foti 2020-10-07 18:02:33 UTC
This is my situation for rust and clang where issue arises:

[ebuild   R    ] dev-lang/rust-1.45.2:stable/1.45::gentoo  USE="-clippy -debug -doc -libressl (-miri) (-nightly) (-parallel-compiler) -rls -rustfmt (-system-bootstrap) (-system-llvm) -wasm" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="sse2" LLVM_TARGETS="(X86) -AArch64 -AMDGPU -ARM -BPF -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -RISCV -Sparc -SystemZ -WebAssembly -XCore"

[ebuild   R    ] sys-devel/clang-10.0.1:10::gentoo  USE="static-analyzer xml -debug -default-compiler-rt -default-libcxx -default-lld -doc -test" ABI_X86="32 (64) (-x32)" LLVM_TARGETS="AMDGPU BPF NVPTX (X86) -AArch64 -ARC -ARM -AVR -Hexagon -Lanai -MSP430 -Mips -PowerPC -RISCV -Sparc -SystemZ -WebAssembly -XCore" PYTHON_SINGLE_TARGET="python3_7 -python3_6 -python3_8 (-python3_9)"


Now I will try to emerge rust[rustfmt] and then build firefox and thunderbird with [clang]
Comment 7 Giuseppe Foti 2020-10-07 18:06:28 UTC
[ebuild   R    ] dev-lang/rust-bin-1.45.2:stable::gentoo  USE="-clippy -doc -rls -rustfmt" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="sse2"

I will rebuild this with [rustfmt] too
Comment 8 Ionen Wolkens gentoo-dev 2020-10-07 18:55:18 UTC
Wait, you mean your current rust was built with -rustfmt? Then you shouldn't have rustfmt at all, yet firefox found and used it.

Maybe it was an ancient broken version that's now causing trouble since the ebuild allow it again (but that's not the ebuild's problem if current versions work).
Comment 9 Thomas Deutschmann (RETIRED) gentoo-dev 2020-10-07 21:12:46 UTC
At least when you switch between rust-bin[rustfmt] and rust-bin[-rustfmt] ebuild should call eselect module which will clean up /usr/bin/rustfmt symlink. But yeah, make sure you don't have any dead leftover... see `eselect rust`.
Comment 10 Giuseppe Foti 2020-10-07 21:40:04 UTC
equery b /usr/bin/rustfmt
 * Searching for /usr/bin/rustfmt ... 
dev-util/rustfmt-0.8.6 (/usr/bin/rustfmt)

This is no more in portage.
Now I removed dev-util/rustfmt-0.8.6 (emerge -C)
then again I built rust-bin:

# equery b /usr/bin/rustfmt
 * Searching for /usr/bin/rustfmt ... 
dev-lang/rust-1.45.2 (/usr/bin/rustfmt-1.45.2)

# rustfmt -V
rustfmt 1.4.17-stable ( )

#eselect rust list
Available Rust versions:
  [1]   rust-bin-1.45.2
  [2]   rust-1.45.2 *


#emerge www-client/firefox
[...]
www-client/firefox-78.3.1 merged.
Comment 11 Thomas Deutschmann (RETIRED) gentoo-dev 2020-10-10 16:53:28 UTC
So firefox finally works for you, yes?

Closing as INVALID because it was a problem on user's system -- not a problem in package we could fix.