Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Building Firefox without clang/llvm
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
theBlackDragon
l33t
l33t


Joined: 23 Nov 2002
Posts: 766
Location: Belgium

PostPosted: Mon Jun 29, 2020 6:32 pm    Post subject: Building Firefox without clang/llvm Reply with quote

I have -clang and -llvm set as USE flags but that doesn't seem to make any difference:

Code:
]% emerge -pv firefox

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

Calculating dependencies... done!
[ebuild  N     ] net-libs/http-parser-2.9.3:0/2.9.0::gentoo  USE="-static-libs" ABI_X86="(64) -32 (-x32)" 51 KiB
[ebuild  N     ] acct-group/messagebus-0::gentoo  0 KiB
[ebuild  N     ] sys-devel/llvm-common-9.0.1::gentoo  0 KiB
[ebuild  N     ] acct-user/messagebus-0::gentoo  0 KiB
[ebuild  N     ] app-arch/zip-3.0-r3::gentoo  USE="bzip2 crypt unicode -natspec" 1,258 KiB
[ebuild  N     ] net-libs/nghttp2-1.41.0:0/1.14::gentoo  USE="threads -cxx -debug -hpack-tools -jemalloc -libressl -static-libs -test -utils -xml" ABI_X86="(64) -32 (-x32)" 1,603 KiB
[ebuild  N     ] x11-themes/hicolor-icon-theme-0.17::gentoo  52 KiB
[ebuild  N     ] app-eselect/eselect-rust-20200419::gentoo  50 KiB
[ebuild  N     ] media-video/ffmpeg-4.2.3:0/56.58.58::gentoo  USE="X alsa bzip2 encode gpl iconv network postproc threads zlib -amr -amrenc (-appkit) -bluray -bs2b -cdio -chromaprint -chromium -codec2 -cpudetection (-cuda) -dav1d -debug -doc -fdk -flite -fontconfig -frei0r -fribidi -gcrypt -gme -gmp -gnutls -gsm -hardcoded-tables -iec61883 -ieee1394 -jack -jpeg2k -kvazaar -ladspa -libaom -libaribb24 -libass -libcaca -libdrm -libilbc -libressl -librtmp -libsoxr -libtesseract -libv4l -libxml2 -lv2 -lzma (-mipsdspr1) (-mipsdspr2) (-mipsfpu) (-mmal) -modplug -mp3 -openal -opencl -opengl -openh264 -openssl -opus -oss -pic -pulseaudio -rubberband -samba -sdl -snappy -speex -srt -ssh -static-libs -svg -test -theora -truetype -twolame -v4l -vaapi -vdpau -vidstab -vorbis -vpx -wavpack -webp -x264 -x265 -xvid -zeromq -zimg -zvbi" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="mmx mmxext sse sse2 -3dnow -3dnowext -aes -avx -avx2 -fma3 -fma4 -sse3 -sse4_1 -sse4_2 -ssse3 -xop" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher" VIDEO_CARDS="-nvidia" 10,709 KiB
[ebuild  N     ] dev-libs/libevent-2.1.11:0/2.1-7::gentoo  USE="ssl threads -debug -libressl -static-libs -test" ABI_X86="(64) -32 (-x32)" 1,057 KiB
[ebuild  N     ] dev-lang/yasm-1.3.0::gentoo  USE="nls -python" PYTHON_SINGLE_TARGET="python2_7" 1,458 KiB
[ebuild  N     ] net-libs/libssh2-1.9.0_p20190913::gentoo  USE="zlib -gcrypt -libressl -mbedtls" ABI_X86="(64) -32 (-x32)" 457 KiB
[ebuild  N     ] media-libs/libaom-1.0.0-r2::gentoo  USE="-doc -examples" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="mmx sse sse2 -avx -avx2 -sse3 -sse4_1 -ssse3" 2,711 KiB
[ebuild  N    ~] media-libs/libvpx-1.8.2:0/6::gentoo  USE="highbitdepth postproc threads -doc -static-libs -svc -test" ABI_X86="(64) -32 (-x32)" 5,189 KiB
[ebuild  NS    ] app-text/docbook-xml-dtd-4.2-r3:4.2::gentoo [4.1.2-r7:4.1.2::gentoo, 4.3-r2:4.3::gentoo, 4.4-r3:4.4::gentoo, 4.5-r2:4.5::gentoo] 77 KiB
[ebuild  N     ] dev-libs/libgit2-1.0.0-r1:0/1.0::gentoo  USE="ssh threads -examples -gssapi -libressl -test -trace" 5,188 KiB
[ebuild  N     ] dev-lang/rust-1.43.1:stable/1.43::gentoo  USE="-clippy -debug -doc -libressl (-miri) (-nightly) (-parallel-compiler) -rls -rustfmt (-system-bootstrap) (-system-llvm) -wasm" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="sse2" LLVM_TARGETS="(X86) -AArch64 -AMDGPU -ARM -BPF -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -RISCV -Sparc -SystemZ -WebAssembly -XCore" 200,422 KiB
[ebuild  N     ] virtual/rust-1.43.1::gentoo  ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] dev-util/cbindgen-0.14.2::gentoo  USE="-debug" 8,755 KiB
[ebuild  N     ] app-text/xmlto-0.0.28-r1::gentoo  USE="-latex -text" 125 KiB
[ebuild  N     ] dev-util/gdbus-codegen-2.62.6::gentoo  PYTHON_SINGLE_TARGET="python3_7 -python3_6 (-python3_8)" 0 KiB
[ebuild  N     ] media-libs/dav1d-0.5.2:0/3::gentoo  USE="10bit 8bit asm" ABI_X86="(64) -32 (-x32)" 542 KiB
[ebuild  N     ] sys-devel/llvm-9.0.1:9::gentoo  USE="libffi ncurses -debug -doc -exegesis -gold -libedit -test -xar -xml -z3" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="AMDGPU BPF NVPTX (X86) -AArch64 -ARM -Hexagon -Lanai -MSP430 -Mips -PowerPC -RISCV -Sparc -SystemZ -WebAssembly -XCore" 0 KiB
[ebuild  N     ] sys-libs/libomp-9.0.1::gentoo  USE="(-cuda) -hwloc -offload -ompt -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  NS    ] sys-devel/autoconf-2.13-r1:2.1::gentoo [2.69-r4:2.69::gentoo] USE="(-emacs%)" 434 KiB
[ebuild  N     ] sys-libs/compiler-rt-9.0.1:9.0.1::gentoo  USE="-clang -test" 0 KiB
[ebuild  N     ] sys-libs/compiler-rt-sanitizers-9.0.1:9.0.1::gentoo  USE="libfuzzer profile sanitize xray -clang -test" 0 KiB
[ebuild  N     ] sys-devel/clang-runtime-9.0.1:9.0.1::gentoo  USE="compiler-rt openmp sanitize -libcxx" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] sys-apps/dbus-1.12.18::gentoo  USE="X -debug -doc -elogind (-selinux) -static-libs -systemd -test -user-session" ABI_X86="(64) -32 (-x32)" 2,046 KiB
[ebuild  N     ] dev-libs/nspr-4.25::gentoo  USE="-debug" ABI_X86="(64) -32 (-x32)" 1,055 KiB
[ebuild  N     ] dev-libs/icu-67.1:0/67.1::gentoo  USE="-debug -doc -examples -static-libs" ABI_X86="(64) -32 (-x32)" 23,944 KiB
[ebuild  N     ] net-dns/c-ares-1.16.1:0/2::gentoo  USE="-static-libs" ABI_X86="(64) -32 (-x32)" 1,343 KiB
[ebuild  N     ] dev-libs/nss-3.52.1-r1::gentoo  USE="-cacert -utils" ABI_X86="(64) -32 (-x32)" 79,319 KiB
[ebuild  N     ] net-libs/nodejs-14.4.0::gentoo  USE="icu npm snapshot ssl system-ssl -debug -doc -inspector -pax_kernel -systemtap -test" CPU_FLAGS_X86="sse2" 32,232 KiB
[ebuild  N     ] dev-libs/dbus-glib-0.110::gentoo  USE="-debug -static-libs -test" ABI_X86="(64) -32 (-x32)" 817 KiB
[ebuild  N     ] dev-libs/atk-2.34.1::gentoo  USE="introspection -gtk-doc" ABI_X86="(64) -32 (-x32)" 287 KiB
[ebuild  N     ] gnome-base/gsettings-desktop-schemas-3.34.0::gentoo  USE="introspection" 636 KiB
[ebuild  N     ] app-accessibility/at-spi2-core-2.34.0:2::gentoo  USE="X introspection -gtk-doc -test" ABI_X86="(64) -32 (-x32)" 183 KiB
[ebuild  N     ] dev-util/gtk-update-icon-cache-3.24.16::gentoo  90 KiB
[ebuild  N     ] x11-themes/gnome-themes-standard-3.28::gentoo  2,885 KiB
[ebuild  N     ] app-accessibility/at-spi2-atk-2.34.2:2::gentoo  USE="-test" ABI_X86="(64) -32 (-x32)" 95 KiB
[ebuild  N     ] x11-libs/gtk+-3.24.16:3::gentoo  USE="X introspection (-aqua) -broadway -cloudprint -colord -cups -examples -gtk-doc -test -vim-syntax -wayland -xinerama" ABI_X86="(64) -32 (-x32)" 19,940 KiB
[ebuild  N     ] x11-themes/adwaita-icon-theme-3.32.0::gentoo  USE="-branding" 18,106 KiB
[ebuild  N     ] virtual/freedesktop-icon-theme-0-r3::gentoo  0 KiB
[ebuild  N     ] x11-libs/gtk+-2.24.32-r1:2::gentoo  USE="introspection (-aqua) -cups -examples -test -vim-syntax -xinerama" ABI_X86="(64) -32 (-x32)" 12,339 KiB
[ebuild  N     ] x11-themes/gtk-engines-adwaita-3.28::gentoo  ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] sys-devel/clang-9.0.1:9::gentoo  USE="static-analyzer -debug -default-compiler-rt -default-libcxx -doc -test -xml" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="AMDGPU BPF NVPTX (X86) -AArch64 -ARM -Hexagon -Lanai -MSP430 -Mips -PowerPC -RISCV -Sparc -SystemZ -WebAssembly -XCore" PYTHON_SINGLE_TARGET="python3_7 -python3_6 (-python3_8)" 0 KiB
[ebuild  N     ] sys-devel/clang-common-9.0.1::gentoo  0 KiB
[ebuild  N    ~] www-client/firefox-77.0.1::gentoo  USE="gmp-autoupdate screenshot system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-webp -bindist -clang -custom-cflags -custom-optimization -debug -eme-free -geckodriver -hardened -hwaccel -jack -lto -pgo -pulseaudio (-selinux) -startup-notification -test -wayland -wifi" CPU_FLAGS_X86="-avx2" L10N="-ach -af -an -ar -ast -az -be -bg -bn -br -bs -ca -cak -cs -cy -da -de -dsb -el -en-CA -en-GB -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -ia -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mk -mr -ms -my -nb -nl -nn -oc -pa -pl -pt-BR -pt-PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv -ta -te -th -tr -uk -ur -uz -vi -xh -zh-CN -zh-TW" 326,229 KiB

Total: 49 packages (47 new, 2 in new slots), Size of downloads: 761,665 KiB

 * IMPORTANT: 10 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.



Is this expected behaviour? Googling doesn't give me any clear answers, I just find people attempting to build Firefox with llvm/clang, which makes me wonder what's wrong here since that's what I don't want...

Note that stable or ~arch makes absolutely no difference here.

emerge --tree seems to suggest it's a direct dependency of Firefox, then why bother with a "clang" use flag? All I could find was that Mozilla switched the default compiler, but that there would be support for GCC, did they change their minds and ditch GCC? Or is this a problem/policy on Gentoo's side?

emerge --info for completeness' sake:
Code:
Portage 2.3.99 (python 3.7.7-final-0, default/linux/amd64/17.1, gcc-9.3.0, glibc-2.30-r8, 5.4.28-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-5.4.28-gentoo-x86_64-x86_64-AMD_Opteron-tm-_Processor_148-with-gentoo-2.6
KiB Mem:     1005208 total,    238480 free
KiB Swap:     979928 total,    945368 free
Timestamp of repository gentoo: Mon, 29 Jun 2020 13:30:01 +0000
Head commit of repository gentoo: db365bacbc0122deac04a5add301d2d86c505aab
sh bash 5.0_p17
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
app-shells/bash:          5.0_p17::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18::gentoo, 3.6.10-r2::gentoo, 3.7.7-r2::gentoo, 3.8.2-r2::gentoo
dev-util/cmake:           3.16.5::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.33.1-r1::gentoo
sys-devel/gcc:            9.3.0::gentoo
sys-devel/gcc-config:     2.2.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.30-r8::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE @FREE @BINARY-REDISTRIBUTABLE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="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://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
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 acl alsa amd64 berkdb bzip2 cli crypt dri fortran gdbm iconv ipv6 libtirpc multilib ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl tcpd unicode xattr zlib" ABI_X86="64" 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" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" 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="libinput" 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="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="fbdev mach64 nouveau vesa" 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, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


_________________
Fvwm|Fvwm forum
Back to top
View user's profile Send private message
Banana
Guru
Guru


Joined: 21 May 2004
Posts: 571
Location: Germany

PostPosted: Mon Jun 29, 2020 6:57 pm    Post subject: Reply with quote

should be this: https://forums.gentoo.org/viewtopic-t-1096420-start-0.html
_________________
My personal space
Back to top
View user's profile Send private message
theBlackDragon
l33t
l33t


Joined: 23 Nov 2002
Posts: 766
Location: Belgium

PostPosted: Wed Jul 01, 2020 3:19 pm    Post subject: Reply with quote

Banana wrote:
should be this: https://forums.gentoo.org/viewtopic-t-1096420-start-0.html


Ah thank you, that explains why Rust didn't explicitly pull in llvm. Certainly does suck, building llvm takes forever even on a decent system, and chromium is just as horrible.

Might need to figure out a way to use packages since all modern browsers appear to just be massive piles of bloat :(
_________________
Fvwm|Fvwm forum
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 3861
Location: Germany

PostPosted: Wed Jul 01, 2020 3:52 pm    Post subject: Reply with quote

theBlackDragon,
is the build host machine not ideal for building these packages self, then www-client/firefox-bin is a good alternative :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum