Created attachment 685320 [details] build.log [...] /usr/lib/gcc/i686-gentoo-linux-musl/10.2.0/../../../../i686-gentoo-linux-musl/bin/ld: /var/tmp/portage/dev-lang/spidermonkey-78.6.0/work/build/js/src/build/../Utility.o: in function `js::InitMallocAllocator()': /var/tmp/portage/dev-lang/spidermonkey-78.6.0/work/firefox-78.6.0/js/src/util/Utility.cpp:109: undefined reference to `__stack_chk_fail_local' /usr/lib/gcc/i686-gentoo-linux-musl/10.2.0/../../../../i686-gentoo-linux-musl/bin/ld: /var/tmp/portage/dev-lang/spidermonkey-78.6.0/work/build/js/src/build/../Interpreter.o: in function `js::WriteBarriered<js::Shape*>::pre()': /var/tmp/portage/dev-lang/spidermonkey-78.6.0/work/firefox-78.6.0/js/src/gc/Barrier.h:458: undefined reference to `__stack_chk_fail_local' /usr/lib/gcc/i686-gentoo-linux-musl/10.2.0/../../../../i686-gentoo-linux-musl/bin/ld: /var/tmp/portage/dev-lang/spidermonkey-78.6.0/work/build/js/src/build/../Interpreter.o: in function `JSFunction::getOrCreateScript(JSContext*, JS::Handle<JSFunction*>)': /var/tmp/portage/dev-lang/spidermonkey-78.6.0/work/firefox-78.6.0/js/src/vm/JSFunction.h:420: undefined reference to `__stack_chk_fail_local' /usr/lib/gcc/i686-gentoo-linux-musl/10.2.0/../../../../i686-gentoo-linux-musl/bin/ld: /var/tmp/portage/dev-lang/spidermonkey-78.6.0/work/build/js/src/build/../Interpreter.o: in function `ComputeImplicitThis(JSObject*)': /var/tmp/portage/dev-lang/spidermonkey-78.6.0/work/firefox-78.6.0/js/src/vm/Interpreter.cpp:1408: undefined reference to `__stack_chk_fail_local' /usr/lib/gcc/i686-gentoo-linux-musl/10.2.0/../../../../i686-gentoo-linux-musl/bin/ld: /var/tmp/portage/dev-lang/spidermonkey-78.6.0/work/build/js/src/build/../Interpreter.o: in function `js::jit::JitScript::MonitorAssign(JSContext*, JS::Handle<JSObject*>, JS::PropertyKey)': /var/tmp/portage/dev-lang/spidermonkey-78.6.0/work/firefox-78.6.0/js/src/vm/TypeInference-inl.h:781: undefined reference to `__stack_chk_fail_local' /usr/lib/gcc/i686-gentoo-linux-musl/10.2.0/../../../../i686-gentoo-linux-musl/bin/ld: /var/tmp/portage/dev-lang/spidermonkey-78.6.0/work/build/js/src/build/../Interpreter.o:/var/tmp/portage/dev-lang/spidermonkey-78.6.0/work/firefox-78.6.0/js/src/vm/JSObject-inl.h:155: more undefined references to `__stack_chk_fail_local' follow collect2: error: ld returned 1 exit status
Created attachment 685323 [details] emerge --info
I recently build spidermonkey-78.7.0 in an older amd64-musl chroot and didn't have this error, here is my toolchain: binutils-2.35.1-r1 gcc-9.3.0-r2::musl musl-1.1.23 rust-bin-1.41.1 from musl overlay* * = https://github.com/gentoo/musl/pull/366 hope this helps you a bit with finding the cause
(In reply to tt_1 from comment #2) > I recently build spidermonkey-78.7.0 in an older amd64-musl chroot and > didn't have this error, here is my toolchain: The error is 32bit-specific (x86, most probably also ppc), it does not happen on 64bit archs.
(In reply to ernsteiswuerfel from comment #3) > (In reply to tt_1 from comment #2) > > I recently build spidermonkey-78.7.0 in an older amd64-musl chroot and > > didn't have this error, here is my toolchain: > The error is 32bit-specific (x86, most probably also ppc), it does not > happen on 64bit archs. This has been addressed in the overlay gcc, simple solution is to sync up the overlay and re-emerge gcc at that point you will not see an issue with __stack_chk_fail_local
Gcc not links libssp_nonshared.a for all archs.