Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 896374 - www-client/firefox-102.8.0 - ld.bfd: /usr /lib/gcc/x86_64-gentoo-linux-musl/12/crtbeginS.o:(.text+0x7c): undefined reference to `__cxa_finalize'
Summary: www-client/firefox-102.8.0 - ld.bfd: /usr /lib/gcc/x86_64-gentoo-linux-musl/1...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2023-02-25 01:21 UTC by ernsteiswuerfel
Modified: 2023-03-17 09:03 UTC (History)
0 users

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


Attachments
build.log.xz (firefox-102.8.0:20230224-232823.log.xz,803.23 KB, application/x-xz)
2023-02-25 01:21 UTC, ernsteiswuerfel
Details
emerge --info (file_896374.txt,7.19 KB, text/plain)
2023-02-25 01:22 UTC, ernsteiswuerfel
Details
firefox-102.8.0-musl-build.log (build.log.xz,341.44 KB, text/plain)
2023-02-25 16:18 UTC, Joonas Niilola
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2023-02-25 01:21:32 UTC
Created attachment 854490 [details]
build.log.xz

[...]
80:36.62 /usr/bin/x86_64-gentoo-linux-musl-gcc -std=gnu99 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -march=bdver2 -mtune=bdver2 -pipe -fPIC -ffunction-sections -fdata-sections -fno-math-errno -pthread -pipe -O2 -fomit-frame-pointer -funwind-tables -Wall -Wempty-body -Wignored-qualifiers -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wduplicated-cond -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=coverage-mismatch -Wno-error=free-nonheap-object -Wno-multistatement-macros -Wno-error=class-memaccess -Wno-error=deprecated-copy -Wformat -Wformat-security -Wformat-overflow=2 -Wno-psabi  -shared -Wl,-z,defs -Wl,--gc-sections -Wl,-h,libmozgtk.so -o libmozgtk.so mozgtk.o   -lpthread -Wl,-O1 -Wl,--as-needed -Wl,--compress-debug-sections=zlib -Wl,-rpath=/usr/lib/firefox,--enable-new-dtags -fuse-ld=bfd -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,-z,nocopyreloc -Wl,-Bsymbolic-functions -fstack-protector-strong -Wl,-rpath-link,/var/tmp/portage/www-client/firefox-102.8.0/work/firefox_build/dist/bin -Wl,-rpath-link,/usr/lib  -fdiagnostics-color     -Wl,--no-as-needed -lgtk-3 -lgdk-3 -Wl,--as-needed
80:36.69 /usr/lib/gcc/x86_64-gentoo-linux-musl/12/../../../../x86_64-gentoo-linux-musl/bin/ld.bfd: /usr/lib/gcc/x86_64-gentoo-linux-musl/12/crtbeginS.o:(.text+0x7c): undefined reference to `__cxa_finalize'
80:36.69 /usr/lib/gcc/x86_64-gentoo-linux-musl/12/../../../../x86_64-gentoo-linux-musl/bin/ld.bfd: /usr/lib/gcc/x86_64-gentoo-linux-musl/12/crtbeginS.o:(.text+0x8f): undefined reference to `__cxa_finalize'
80:36.69 collect2: error: ld returned 1 exit status
80:36.70 gmake[4]: *** [/var/tmp/portage/www-client/firefox-102.8.0/work/firefox-102.8.0/config/rules.mk:540: libmozgtk.so] Error 1
80:36.70 gmake[4]: Leaving directory '/var/tmp/portage/www-client/firefox-102.8.0/work/firefox_build/widget/gtk/mozgtk'
80:36.70 gmake[3]: *** [/var/tmp/portage/www-client/firefox-102.8.0/work/firefox-102.8.0/config/recurse.mk:72: widget/gtk/mozgtk/target] Error 2
80:36.70 gmake[3]: *** Waiting for unfinished jobs....
[...]
80:58.87 /var/tmp/portage/www-client/firefox-102.8.0/work/firefox-102.8.0/toolkit/components/telemetry/core/ipc/TelemetryIPCAccumulator.cpp:249:28: note: at offset 8 into object 'eventsToSend' of size 8
80:58.87   249 |   nsTArray<ChildEventData> eventsToSend;
80:58.87       |                            ^~~~~~~~~~~~
80:59.49 gmake[4]: Leaving directory '/var/tmp/portage/www-client/firefox-102.8.0/work/firefox_build/toolkit/components/telemetry'
80:59.49 gmake[3]: Leaving directory '/var/tmp/portage/www-client/firefox-102.8.0/work/firefox_build'
80:59.49 gmake[2]: *** [/var/tmp/portage/www-client/firefox-102.8.0/work/firefox-102.8.0/config/recurse.mk:34: compile] Error 2
80:59.49 gmake[2]: Leaving directory '/var/tmp/portage/www-client/firefox-102.8.0/work/firefox_build'
80:59.49 gmake[1]: *** [/var/tmp/portage/www-client/firefox-102.8.0/work/firefox-102.8.0/config/rules.mk:361: default] Error 2
80:59.49 gmake[1]: Leaving directory '/var/tmp/portage/www-client/firefox-102.8.0/work/firefox_build'
80:59.49 gmake: *** [client.mk:63: build] Error 2
80:59.51 11 compiler warnings present.
 * ERROR: www-client/firefox-102.8.0::gentoo failed (compile phase):
 *   (no error message)
Comment 1 ernsteiswuerfel archtester 2023-02-25 01:22:07 UTC
Created attachment 854492 [details]
emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-25 01:22:57 UTC
Is this, by chance, the machine where you had to build it unstripped for mold?
Comment 3 ernsteiswuerfel archtester 2023-02-25 01:32:16 UTC
(In reply to Sam James from comment #2)
> Is this, by chance, the machine where you had to build it unstripped for
> mold?
Nope. This was my Talos II (see: https://github.com/rui314/mold/issues/987).

This is an amd64 box and also plain old bfd ld is used here. ;)
Comment 4 Joonas Niilola gentoo-dev 2023-02-25 13:28:23 UTC
I don't see anything obvious there, so most likely musl/ppc64 issue. Can't help with it here :\
Comment 5 ernsteiswuerfel archtester 2023-02-25 13:59:31 UTC
(In reply to Joonas Niilola from comment #4)
> I don't see anything obvious there, so most likely musl/ppc64 issue. Can't
> help with it here :\
No ppc64 here in this bug. It's musl/amd64.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-25 14:51:43 UTC
Could you try reproducing this in a clean chroot (with steps to get there)?
Comment 7 Joonas Niilola gentoo-dev 2023-02-25 16:14:33 UTC
Hmm I was unable to compile this on musl with your use flags, but it failed to different error:
error: failed to run custom build command for `neqo-crypto v0.5.7 (https://github.com/mozilla/neqo?tag=v0.5.7#f3de275b)`
...
thread 'main' panicked at 'Unable to find libclang: "the `libclang` shared library at /usr/lib/llvm/15/lib/libclang.so.15.0.7 could not be opened: Dynamic loading not supported"', /var/tmp/portage/www-client/firefox-102.8.0/work/firefox-102.8.0/third_party/rust/bindgen/src/lib.rs:1922:31
Comment 8 Joonas Niilola gentoo-dev 2023-02-25 16:18:04 UTC
Created attachment 854612 [details]
firefox-102.8.0-musl-build.log
Comment 9 ernsteiswuerfel archtester 2023-02-27 23:37:35 UTC
(In reply to Sam James from comment #6)
> Could you try reproducing this in a clean chroot (with steps to get there)?
Won't happen on this machine as it's at my parents place which I'll visit once on a month or so.

But if I happen to reproduce it on one of my other boxes I'll take a closer look. ;)
Comment 10 ernsteiswuerfel archtester 2023-03-17 09:03:04 UTC
I was not ably to replicate this on any of my other boxes. So the system was probably b0rked.. ;)

I have switched to profile "[33]  default/linux/amd64/17.0/musl/clang (exp)" on this machine and get no firefox build problems any longer.

Closing here.