Created attachment 824345 [details] build.log.xz Note that libcxx isn't slotted, so >= libcxx 15 can be used with say, LLVM 14. --- 7:40.70 third_party/sipcc/sdp_services_unix.o 7:40.84 error: failed to run custom build command for `gecko-profiler v0.1.0 (/var/tmp/portage/www-client/firefox-105.0.2/work/firefox-105.0.2/tools/profiler/rust-api)` 7:40.84 Caused by: 7:40.84 process didn't exit successfully: `/var/tmp/portage/www-client/firefox-105.0.2/work/firefox_build/release/build/gecko-profiler-12277edcfabc3f0f/build-script-build` (signal: 11, SIGSEGV: invalid memory reference) 7:40.84 --- stdout ---- # emerge --info Portage 3.0.38.1 (python 3.10.8-final-0, default/linux/amd64/17.0/musl/clang, gcc-12, musl-1.2.3-r4, 5.15.73-gentoo-dist-hardened x86_64) ================================================================= System uname: Linux-5.15.73-gentoo-dist-hardened-x86_64-AMD_Ryzen_9_3950X_16-Core_Processor-with-libc KiB Mem: 65765036 total, 22052628 free KiB Swap: 8290300 total, 8203004 free Timestamp of repository gentoo: Sat, 15 Oct 2022 22:49:00 +0000 sh dash 0.5.11.5 ld GNU ld (Gentoo 2.39 p5) 2.39.0 ccache version 4.6.3 [disabled] app-misc/pax-utils: 1.3.5::gentoo app-shells/bash: 5.1_p16-r2::gentoo dev-lang/perl: 5.36.0::gentoo dev-lang/python: 3.10.8::gentoo, 3.11.0_rc2_p1::gentoo dev-lang/rust: 1.64.0-r1::gentoo dev-util/ccache: 4.6.3::gentoo dev-util/cmake: 3.24.2::gentoo dev-util/meson: 0.63.2-r1::gentoo sys-apps/baselayout: 2.9::gentoo sys-apps/openrc: 0.45.2-r1::gentoo sys-apps/sandbox: 2.29::gentoo sys-devel/autoconf: 2.13-r3::gentoo, 2.71-r4::gentoo sys-devel/automake: 1.16.5::gentoo sys-devel/binutils: 2.39-r3::gentoo sys-devel/binutils-config: 5.4.1::gentoo sys-devel/clang: 13.0.1::gentoo, 14.0.6-r1::gentoo, 15.0.2::gentoo, 16.0.0_pre20221010::gentoo sys-devel/gcc: 12.2.1_p20221008::gentoo sys-devel/gcc-config: 2.8::gentoo sys-devel/libtool: 2.4.7::gentoo sys-devel/lld: 13.0.1-r1::gentoo, 14.0.6-r1::gentoo, 16.0.0_pre20221010-r1::gentoo sys-devel/llvm: 13.0.1::gentoo, 14.0.6-r2::gentoo, 15.0.2::gentoo, 16.0.0_pre20221010::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 6.0::gentoo (virtual/os-headers) sys-libs/musl: 1.2.3-r4::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-max-age: 24 sync-rsync-verify-jobs: 1 sync-rsync-verify-metamanifest: yes sync-rsync-extra-opts: local location: /var/db/repos/local masters: gentoo Installed sets: @llvm, @sam ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" ADDR2LINE="llvm-addr2line" AR="llvm-ar" AS="clang -c" CBUILD="x86_64-gentoo-linux-musl" CC="clang" CFLAGS="-O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches" CHOST="x86_64-gentoo-linux-musl" CONFIG_PROTECT="/etc /usr/share/config /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CPP="clang-cpp" CXX="clang++" CXXFLAGS="-O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--keep-going=y --complete-graph" 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 XDG_STATE_HOME" FCFLAGS="-O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox network-sandbox news parallel-fetch parallel-install 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 -march=native -fdiagnostics-color=always -frecord-gcc-switches" GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo/ http://www.mirrorservice.org/sites/distfiles.gentoo.org/ http://mirrors.soeasyto.com/distfiles.gentoo.org/" INSTALL_MASK="charset.alias /usr/share/locale/locale.alias" LANG="C.UTF8" LD="ld.lld" LDFLAGS="-Wl,-O1 -Wl,--as-needed -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0" NM="llvm-nm" OBJCOPY="llvm-objcopy" OBJDUMP="llvm-objdump" 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" RANLIB="llvm-ranlib" READELF="llvm-readelf" STRINGS="llvm-strings" STRIP="llvm-strip" USE="acl amd64 bzip2 clang cli crypt dri fortran hunspell iconv ipv6 libglvnd libtirpc llvm-libunwind ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl system-av1 system-binutils system-boost system-bootstrap system-cairo system-clang system-digest system-ffmpeg system-harfbuzz system-heimdal system-icu system-jpeg system-leveldb system-libevent system-libs system-libvpx system-libyaml system-llvm system-lz4 system-mitkrb5 system-sqlite system-ssl system-tbb system-uulib system-webp system-zlib test-rust timidity unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2020" 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="musl" 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" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: ARFLAGS, ASFLAGS, CCLD, CONFIG_SHELL, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS, SHELL, SIZE, YACC, YFLAGS
(gdb) file /var/tmp/portage/www-client/firefox-105.0.2/work/firefox_build/release/build/gecko-profiler-12277edcfabc3f0f/build-script-build Reading symbols from /var/tmp/portage/www-client/firefox-105.0.2/work/firefox_build/release/build/gecko-profiler-12277edcfabc3f0f/build-script-build... (No debugging symbols found in /var/tmp/portage/www-client/firefox-105.0.2/work/firefox_build/release/build/gecko-profiler-12277edcfabc3f0f/build-script-build) (gdb) core /core warning: core file may not match specified executable file. [New LWP 1894430] warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available. Core was generated by `/var/tmp/portage/www-client/firefox-105.0.2/work/firefox_build/release/build/ge'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007faa22a4d7c0 in memcpy () from /lib/ld-musl-x86_64.so.1 (gdb) bt #0 0x00007faa22a4d7c0 in memcpy () from /lib/ld-musl-x86_64.so.1 #1 0x00007faa2176dc77 in ?? () from /usr/lib/llvm/14/lib/libclang.so.14.0.6libcxx #2 0x00007faa216ffbce in ?? () from /usr/lib/llvm/14/lib/libclang.so.14.0.6libcxx #3 0x0000561998e8bb00 in clang_sys::clang_getFieldDeclBitWidth () #4 0x0000561998d55204 in bindgen::clang::visit_children () #5 0x00007faa215fbb15 in ?? () from /usr/lib/llvm/14/lib/libclang.so.14.0.6libcxx #6 0x00007faa215fbc78 in ?? () from /usr/lib/llvm/14/lib/libclang.so.14.0.6libcxx #7 0x00007faa215fc9ab in ?? () from /usr/lib/llvm/14/lib/libclang.so.14.0.6libcxx #8 0x00007faa215fa483 in ?? () from /usr/lib/llvm/14/lib/libclang.so.14.0.6libcxx #9 0x00007faa21608a0e in clang_visitChildren () from /usr/lib/llvm/14/lib/libclang.so.14.0.6libcxx #10 0x0000561998e8c740 in clang_sys::clang_visitChildren () #11 0x0000561998d6ddaf in bindgen::ir::comp::CompInfo::from_ty () #12 0x0000561998df0778 in bindgen::ir::ty::Type::from_clang_ty () #13 0x0000561998d7b922 in <bindgen::ir::item::Item as bindgen::parse::ClangItemParser>::from_ty_with_id () #14 0x0000561998d7a058 in <bindgen::ir::item::Item as bindgen::parse::ClangItemParser>::parse () #15 0x0000561998d54b22 in bindgen::clang::visit_children () #16 0x00007faa215fbb15 in ?? () from /usr/lib/llvm/14/lib/libclang.so.14.0.6libcxx #17 0x00007faa215fbc78 in ?? () from /usr/lib/llvm/14/lib/libclang.so.14.0.6libcxx #18 0x00007faa215fc9ab in ?? () from /usr/lib/llvm/14/lib/libclang.so.14.0.6libcxx #19 0x00007faa215fa483 in ?? () from /usr/lib/llvm/14/lib/libclang.so.14.0.6libcxx #20 0x00007faa21608a0e in clang_visitChildren () from /usr/lib/llvm/14/lib/libclang.so.14.0.6libcxx #21 0x0000561998e8c740 in clang_sys::clang_visitChildren () #22 0x0000561998d6ddaf in bindgen::ir::comp::CompInfo::from_ty () #23 0x0000561998df0778 in bindgen::ir::ty::Type::from_clang_ty () #24 0x0000561998d7b922 in <bindgen::ir::item::Item as bindgen::parse::ClangItemParser>::from_ty_with_id () #25 0x0000561998d7a058 in <bindgen::ir::item::Item as bindgen::parse::ClangItemParser>::parse () #26 0x0000561998d54b22 in bindgen::clang::visit_children () #27 0x00007faa215fbb15 in ?? () from /usr/lib/llvm/14/lib/libclang.so.14.0.6libcxx #28 0x00007faa215fbc78 in ?? () from /usr/lib/llvm/14/lib/libclang.so.14.0.6libcxx #29 0x00007faa215fc9ab in ?? () from /usr/lib/llvm/14/lib/libclang.so.14.0.6libcxx #30 0x00007faa215fdb25 in ?? () from /usr/lib/llvm/14/lib/libclang.so.14.0.6libcxx #31 0x00007faa215fa483 in ?? () from /usr/lib/llvm/14/lib/libclang.so.14.0.6libcxx #32 0x00007faa21608a0e in clang_visitChildren () from /usr/lib/llvm/14/lib/libclang.so.14.0.6libcxx #33 0x0000561998e8c740 in clang_sys::clang_visitChildren () #34 0x0000561998d6ddaf in bindgen::ir::comp::CompInfo::from_ty () #35 0x0000561998df1261 in bindgen::ir::ty::Type::from_clang_ty () #36 0x0000561998d7b922 in <bindgen::ir::item::Item as bindgen::parse::ClangItemParser>::from_ty_with_id () #37 0x0000561998d7a058 in <bindgen::ir::item::Item as bindgen::parse::ClangItemParser>::parse () #38 0x0000561998d57826 in bindgen::clang::visit_children () #39 0x00007faa215fbb15 in ?? () from /usr/lib/llvm/14/lib/libclang.so.14.0.6libcxx #40 0x00007faa215fbc78 in ?? () from /usr/lib/llvm/14/lib/libclang.so.14.0.6libcxx #41 0x00007faa215fa483 in ?? () from /usr/lib/llvm/14/lib/libclang.so.14.0.6libcxx #42 0x00007faa21608a0e in clang_visitChildren () from /usr/lib/llvm/14/lib/libclang.so.14.0.6libcxx #43 0x0000561998e8c740 in clang_sys::clang_visitChildren () #44 0x0000561998d7967b in <bindgen::ir::item::Item as bindgen::parse::ClangItemParser>::parse () #45 0x0000561998d57826 in bindgen::clang::visit_children () #46 0x00007faa215fbb15 in ?? () from /usr/lib/llvm/14/lib/libclang.so.14.0.6libcxx #47 0x00007faa215fbc78 in ?? () from /usr/lib/llvm/14/lib/libclang.so.14.0.6libcxx #48 0x00007faa215fa483 in ?? () from /usr/lib/llvm/14/lib/libclang.so.14.0.6libcxx #49 0x00007faa21608a0e in clang_visitChildren () from /usr/lib/llvm/14/lib/libclang.so.14.0.6libcxx #50 0x0000561998e8c740 in clang_sys::clang_visitChildren () #51 0x0000561998d7967b in <bindgen::ir::item::Item as bindgen::parse::ClangItemParser>::parse () #52 0x0000561998d55f6a in bindgen::clang::visit_children () #53 0x00007faa215fbb15 in ?? () from /usr/lib/llvm/14/lib/libclang.so.14.0.6libcxx #54 0x00007faa215fbc78 in ?? () from /usr/lib/llvm/14/lib/libclang.so.14.0.6libcxx #55 0x00007faa215fa7cc in ?? () from /usr/lib/llvm/14/lib/libclang.so.14.0.6libcxx #56 0x00007faa21608a0e in clang_visitChildren () from /usr/lib/llvm/14/lib/libclang.so.14.0.6libcxx #57 0x0000561998e8c740 in clang_sys::clang_visitChildren () #58 0x0000561998d4f04c in bindgen::Builder::generate () #59 0x0000561998d3acc3 in build_script_build::main () #60 0x0000561998d3d3f3 in std::sys_common::backtrace::__rust_begin_short_backtrace () #61 0x0000561998d3d3c9 in _ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17h01d0316d0af9f1a4E.llvm.6364411002243962556 () #62 0x0000561998ef4b92 in std::rt::lang_start_internal () #63 0x0000561998d3b162 in main ()
The patch from https://github.com/rust-lang/rust-bindgen/issues/2272 (https://github.com/rust-lang/rust-bindgen/commit/a5848cf44e02645cddf020609ea67340cf6e3d24.patch) fixes the issue for me when applied to www-client/firefox's third_party/rust/bindgen. Please consider adding. Thanks!
I wonder if that's landed in 106 (probably not). I'll add the patch for 106 which is out in 2-3 days if needed.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d52d5a3733acdf481f514dd1e7733d438a33941a commit d52d5a3733acdf481f514dd1e7733d438a33941a Author: Joonas Niilola <juippis@gentoo.org> AuthorDate: 2022-10-18 12:49:49 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2022-10-18 12:54:47 +0000 www-client/firefox: add 106.0 - add a patch to update bindgen cargo crate, - llvm:15 can't still be enabled due to rust lacking support - it wouldn't work for everyone, - pinned lld dependencies on slots, now that lld is gloriously slotted, - rebased our no-warnings-as-errors patch, - rebased our system-av1 patch, - upstream enabled support for mold linker, but we can't enable it yet (easily) before support is added to toolchain-funcs.eclass. Track the support in bug #877539. Bug: https://bugs.gentoo.org/873823 Bug: https://bugs.gentoo.org/877539 Closes: https://bugs.gentoo.org/877267 Signed-off-by: Joonas Niilola <juippis@gentoo.org> www-client/firefox/Manifest | 99 +++ www-client/firefox/firefox-106.0.ebuild | 1321 +++++++++++++++++++++++++++++++ 2 files changed, 1420 insertions(+)