Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

Unable to compile firefox or librewolf on musl system

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
stdnt
n00b
n00b
Posts: 6
Joined: Thu Apr 25, 2024 11:54 pm

Unable to compile firefox or librewolf on musl system

  • Quote

Post by stdnt » Thu Jun 05, 2025 11:56 pm

Code: Select all

* Messages for package www-client/librewolf-138.0.4_p1:

* ERROR: www-client/librewolf-138.0.4_p1::librewolf failed (compile phase):
*   (no error message)
*
* Call stack:
*     ebuild.sh, line 136:  Called src_compile
*   environment, line 4521:  Called die
* The specific snippet of code:
*       ${virtx_cmd} ./mach build --verbose || die
*
* If you need support, post the output of `emerge --info '=www-client/librewolf-138.0.4_p1::librewolf'`,
* the complete build log and the output of `emerge -pqv '=www-client/librewolf-138.0.4_p1::librewolf'`.
* The complete build log is located at '/var/tmp/portage/www-client/librewolf-138.0.4_p1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/www-client/librewolf-138.0.4_p1/temp/environment'.
* Working directory: '/var/tmp/portage/www-client/librewolf-138.0.4_p1/work/librewolf-138.0.4-1'
* S: '/var/tmp/portage/www-client/librewolf-138.0.4_p1/work/librewolf-138.0.4-1'
emerge --info '=www-client/librewolf-138.0.4_p1::librewolf:

Code: Select all

Portage 3.0.67 (python 3.13.3-final-0, default/linux/amd64/23.0/musl/hardened, gcc-14, musl-1.2.5-r3, 6.12.28-gentoo-dist x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.12.28-gentoo-dist-x86_64-AMD_Ryzen_5_8400F_6-Core_Processor-with-libc
KiB Mem:    48506344 total,  30753476 free
KiB Swap:   98566140 total,  94567312 free
Timestamp of repository gentoo: Sat, 31 May 2025 18:45:00 +0000
Head commit of repository gentoo: 501fafd77c118f6ac09db8a3a019df2ea425c392
Timestamp of repository guru: Sat, 31 May 2025 07:09:05 +0000
Head commit of repository guru: 3508006c0c4f53b24b1c3f8467721acbb795ffec

Head commit of repository librewolf: fffef2e4997634eb59179111ce3a4b9841760077

sh bash 5.2_p37
ld GNU ld (Gentoo 2.44 p1) 2.44.0
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.72-r1::gentoo
dev-build/automake:        1.17-r2::gentoo
dev-build/cmake:           3.31.7-r1::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.7.2::gentoo
dev-lang/perl:             5.40.2::gentoo
dev-lang/python:           3.12.10_p1::gentoo, 3.13.3_p1::gentoo
dev-lang/rust-bin:         1.85.1::gentoo
llvm-core/clang:           19.1.7::gentoo
llvm-core/lld:             19.1.7::gentoo
llvm-core/llvm:            19.1.7::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.56::gentoo
sys-apps/sandbox:          2.46::gentoo
sys-devel/binutils:        2.44-r1::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             14.2.1_p20241221::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.12::gentoo (virtual/os-headers)
sys-libs/musl:             1.2.5-r3::gentoo
Repositories:

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

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

librewolf
    location: /var/db/repos/librewolf
    sync-type: git
    sync-uri: https://codeberg.org/librewolf/gentoo.git
    masters: gentoo
    volatile: False

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64_musl_hardened

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-musl"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-musl"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
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"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://gentoo.osuosl.org/"
INSTALL_MASK="charset.alias /usr/share/locale/locale.alias"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j12"
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"
SHELL="/bin/bash"
USE="X acl amd64 bzip2 cet crypt dbus hardened iconv ipv6 libtirpc ncurses openmp pam pcre pic pie pulseaudio readline seccomp ssl ssp test-rust unicode wayland xattr xtpax zlib" ABI_X86="64" ADA_TARGET="gcc_14" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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="musl" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres17" PYTHON_SINGLE_TARGET="python3_13" PYTHON_TARGETS="python3_13 python3_12" RUBY_TARGETS="ruby32 ruby33" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
emerge -pqv '=www-client/librewolf-138.0.4_p1::librewolf'

Code: Select all

[ebuild  N    ] www-client/librewolf-138.0.4_p1  USE="X clang dbus gmp-autoupdate hardened jumbo-build openh264 pulseaudio system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-webp wayland -debug -eme-free -hwaccel -jack -jpegxl -libproxy -pgo (-selinux) -sndio -system-png -telemetry -test -valgrind -wasm-sandbox -wifi" L10N="-ach -af -an -ar -ast -az -be -bg -bn -br -bs -ca -ca-valencia -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 -fur -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 -ne -nl -nn -oc -pa -pl -pt-BR -pt-PT -rm -ro -ru -sc -sco -si -sk -skr -sl -son -sq -sr -sv -szl -ta -te -th -tl -tr -trs -uk -ur -uz -vi -xh -zh-CN -zh-TW" LLVM_SLOT="19 -20"
[Administrator edit: added [code] tags to preserve output layout. -Hu]
Top
GDH-gentoo
Advocate
Advocate
User avatar
Posts: 2111
Joined: Sat Jul 20, 2019 7:02 pm
Location: South America

Re: Unable to compile firefox or librewolf on musl system

  • Quote

Post by GDH-gentoo » Fri Jun 06, 2025 4:56 pm

stdnt wrote:

Code: Select all

* If you need support, post [...] the complete build log and [...]
* The complete build log is located at '/var/tmp/portage/www-client/librewolf-138.0.4_p1/temp/build.log'.
You forgot this.
Ionen wrote:As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Top
stdnt
n00b
n00b
Posts: 6
Joined: Thu Apr 25, 2024 11:54 pm

Re: Unable to compile firefox or librewolf on musl system

  • Quote

Post by stdnt » Fri Jun 06, 2025 8:45 pm

GDH-gentoo wrote:
stdnt wrote:

Code: Select all

* If you need support, post [...] the complete build log and [...]
* The complete build log is located at '/var/tmp/portage/www-client/librewolf-138.0.4_p1/temp/build.log'.
You forgot this.
5mb of text here:
https://gofile.io/d/qsWr8X
Top
sMueggli
l33t
l33t
Posts: 627
Joined: Sat Sep 03, 2022 9:22 am

  • Quote

Post by sMueggli » Sat Jun 07, 2025 8:22 am

The error seems to be:

Code: Select all

8 0:30.94^O error: failed to run custom build command for `serde v1.0.219`^O^O
8 0:30.94^O note: To improve backtraces for build dependencies, set the CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation.^O^O
8 0:30.94^O Caused by:^O^O
8 0:30.95^O   process didn't exit successfully: `CARGO=/opt/rust-bin-1.85.1/bin/cargo CARGO_CFG_FEATURE=alloc,default,derive,rc,serde_derive,std CARGO_CFG_PANIC=unwind CARGO_CFG_TARGET_ABI='' CARGO_CFG_TARGET_ARCH=x86_64 CARGO_CFG_TARGET_ENDIAN=little CARGO_CFG_TARGET_ENV=musl CARGO_CFG_TARGET_FAMILY=unix CARGO_CFG_TARGET_FEATURE=fxsr,sse,sse2 CARGO_CFG_TARGET_HAS_ATOMIC=16,32,64,8,ptr CARGO_CFG_TARGET_OS=linux CARGO_CFG_TARGET_POINTER_WIDTH=64 CARGO_CFG_TARGET_VENDOR=unknown CARGO_CFG_UNIX='' CARGO_ENCODED_RUSTFLAGS='--cap-lints^_warn^_-C^_codegen-units=1' CARGO_FEATURE_ALLOC=1 CARGO_FEATURE_DEFAULT=1 CARGO_FEATURE_DERIVE=1 CARGO_FEATURE_RC=1 CARGO_FEATURE_SERDE_DERIVE=1 CARGO_FEATURE_STD=1 CARGO_MANIFEST_DIR=/var/tmp/portage/www-client/librewolf-138.0.4_p1/work/librewolf-138.0.4-1/third_party/rust/serde CARGO_MANIFEST_PATH=/var/tmp/portage/www-client/librewolf-138.0.4_p1/work/librewolf-138.0.4-1/third_party/rust/serde/Cargo.toml CARGO_PKG_AUTHORS='Erick Tryzelaar <erick.tryzelaar@gmail.com>:David Tolnay <dtolnay@gmail.com>' CARGO_PKG_DESCRIPTION='A generic serialization/deserialization framework' CARGO_PKG_HOMEPAGE='https://serde.rs' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=serde CARGO_PKG_README=crates-io.md CARGO_PKG_REPOSITORY='https://github.com/serde-rs/serde' CARGO_PKG_RUST_VERSION=1.31 CARGO_PKG_VERSION=1.0.219 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=219 CARGO_PKG_VERSION_PRE='' DEBUG=false HOST=x86_64-unknown-linux-musl LD_LIBRARY_PATH='/var/tmp/portage/www-client/librewolf-138.0.4_p1/work/librewolf_build/release/deps:/var/tmp/portage/www-client/librewolf-138.0.4_p1/work/librewolf_build/release:/opt/rust-bin-1.85.1/lib/rustlib/x86_64-unknown-linux-musl/lib' NUM_JOBS=12 OPT_LEVEL=2 OUT_DIR=/var/tmp/portage/www-client/librewolf-138.0.4_p1/work/librewolf_build/x86_64-unknown-linux-musl/release/build/serde-2ff15eb3c22c899b/out PROFILE=release RUSTC=/opt/rust-bin-1.85.1/bin/rustc RUSTC_LINKER=/var/tmp/portage/www-client/librewolf-138.0.4_p1/work/librewolf-138.0.4-1/build/cargo-linker RUSTDOC=/opt/rust-bin-1.85.1//bin/rustdoc TARGET=x86_64-unknown-linux-musl /var/tmp/portage/www-client/librewolf-138.0.4_p1/work/librewolf_build/release/build/serde-94b0e258e2a3ab8f/build-script-build` (signal: 11, SIGSEGV: invalid memory reference)^O^O
8 0:30.96^O warning: build failed, waiting for other jobs to finish...^O^O
Top
stdnt
n00b
n00b
Posts: 6
Joined: Thu Apr 25, 2024 11:54 pm

  • Quote

Post by stdnt » Sat Jun 07, 2025 6:02 pm

sMueggli wrote:The error seems to be:

Code: Select all

8 0:30.94^O error: failed to run custom build command for `serde v1.0.219`^O^O
8 0:30.94^O note: To improve backtraces for build dependencies, set the CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation.^O^O
8 0:30.94^O Caused by:^O^O
8 0:30.95^O   process didn't exit successfully: `CARGO=/opt/rust-bin-1.85.1/bin/cargo CARGO_CFG_FEATURE=alloc,default,derive,rc,serde_derive,std CARGO_CFG_PANIC=unwind CARGO_CFG_TARGET_ABI='' CARGO_CFG_TARGET_ARCH=x86_64 CARGO_CFG_TARGET_ENDIAN=little CARGO_CFG_TARGET_ENV=musl CARGO_CFG_TARGET_FAMILY=unix CARGO_CFG_TARGET_FEATURE=fxsr,sse,sse2 CARGO_CFG_TARGET_HAS_ATOMIC=16,32,64,8,ptr CARGO_CFG_TARGET_OS=linux CARGO_CFG_TARGET_POINTER_WIDTH=64 CARGO_CFG_TARGET_VENDOR=unknown CARGO_CFG_UNIX='' CARGO_ENCODED_RUSTFLAGS='--cap-lints^_warn^_-C^_codegen-units=1' CARGO_FEATURE_ALLOC=1 CARGO_FEATURE_DEFAULT=1 CARGO_FEATURE_DERIVE=1 CARGO_FEATURE_RC=1 CARGO_FEATURE_SERDE_DERIVE=1 CARGO_FEATURE_STD=1 CARGO_MANIFEST_DIR=/var/tmp/portage/www-client/librewolf-138.0.4_p1/work/librewolf-138.0.4-1/third_party/rust/serde CARGO_MANIFEST_PATH=/var/tmp/portage/www-client/librewolf-138.0.4_p1/work/librewolf-138.0.4-1/third_party/rust/serde/Cargo.toml CARGO_PKG_AUTHORS='Erick Tryzelaar <erick.tryzelaar@gmail.com>:David Tolnay <dtolnay@gmail.com>' CARGO_PKG_DESCRIPTION='A generic serialization/deserialization framework' CARGO_PKG_HOMEPAGE='https://serde.rs' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=serde CARGO_PKG_README=crates-io.md CARGO_PKG_REPOSITORY='https://github.com/serde-rs/serde' CARGO_PKG_RUST_VERSION=1.31 CARGO_PKG_VERSION=1.0.219 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=219 CARGO_PKG_VERSION_PRE='' DEBUG=false HOST=x86_64-unknown-linux-musl LD_LIBRARY_PATH='/var/tmp/portage/www-client/librewolf-138.0.4_p1/work/librewolf_build/release/deps:/var/tmp/portage/www-client/librewolf-138.0.4_p1/work/librewolf_build/release:/opt/rust-bin-1.85.1/lib/rustlib/x86_64-unknown-linux-musl/lib' NUM_JOBS=12 OPT_LEVEL=2 OUT_DIR=/var/tmp/portage/www-client/librewolf-138.0.4_p1/work/librewolf_build/x86_64-unknown-linux-musl/release/build/serde-2ff15eb3c22c899b/out PROFILE=release RUSTC=/opt/rust-bin-1.85.1/bin/rustc RUSTC_LINKER=/var/tmp/portage/www-client/librewolf-138.0.4_p1/work/librewolf-138.0.4-1/build/cargo-linker RUSTDOC=/opt/rust-bin-1.85.1//bin/rustdoc TARGET=x86_64-unknown-linux-musl /var/tmp/portage/www-client/librewolf-138.0.4_p1/work/librewolf_build/release/build/serde-94b0e258e2a3ab8f/build-script-build` (signal: 11, SIGSEGV: invalid memory reference)^O^O
8 0:30.96^O warning: build failed, waiting for other jobs to finish...^O^O
What should I do about it?
Im able to compile every other app that uses rust just fine

In the meantime Ill compile dev-lang/rust and try again
Top
sam_
Developer
Developer
User avatar
Posts: 2816
Joined: Fri Aug 14, 2020 12:33 am

  • Quote

Post by sam_ » Sat Jun 07, 2025 8:59 pm

Try using dev-lang/rust (not dev-lang/rust-bin). It's a quirk with how the musl target is specified.
Top
stdnt
n00b
n00b
Posts: 6
Joined: Thu Apr 25, 2024 11:54 pm

  • Quote

Post by stdnt » Sat Jun 07, 2025 9:39 pm

sam_ wrote:Try using dev-lang/rust (not dev-lang/rust-bin). It's a quirk with how the musl target is specified.
yep, that was it. Thanks guys
Top
Post Reply

7 posts • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic