Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 768099 - dev-lang/spidermonkey-78.6.0 - /work/firefox-78.6.0/js/src/util/Utility.cpp:109: undefined reference to `__stack_chk_fail_local' (on musl)
Summary: dev-lang/spidermonkey-78.6.0 - /work/firefox-78.6.0/js/src/util/Utility.cpp:1...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2021-01-31 19:40 UTC by ernsteiswuerfel
Modified: 2021-09-25 17:50 UTC (History)
3 users (show)

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


Attachments
build.log (dev-lang:spidermonkey-78.6.0:20210131-192543.log,361.88 KB, text/plain)
2021-01-31 19:40 UTC, ernsteiswuerfel
Details
emerge --info (file_768099.txt,6.28 KB, text/plain)
2021-01-31 19:41 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2021-01-31 19:40:07 UTC
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
Comment 1 ernsteiswuerfel archtester 2021-01-31 19:41:02 UTC
Created attachment 685323 [details]
emerge --info
Comment 2 tt_1 2021-02-04 17:53:44 UTC
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
Comment 3 ernsteiswuerfel archtester 2021-02-04 18:16:46 UTC
(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.
Comment 4 Jory A. Pratt gentoo-dev 2021-09-15 01:27:47 UTC
(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
Comment 5 Jory A. Pratt gentoo-dev 2021-09-25 17:50:47 UTC
Gcc not links libssp_nonshared.a for all archs.