Summary: | dev-qt/qtscript-5.15.5 with -flto - .../temp/ccKpdSnw.ltrans0.ltrans.o: In function `ctiVMThrowTrampoline': <artificial>:(.text+0x4c): undefined reference to `cti_vm_throw' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Alexander Miller <alex.miller> |
Component: | Current packages | Assignee: | Qt Bug Alias <qt> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | arsen, kocelfc, marduk, sam, skobkin-ru, steffen |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://bugreports.qt.io/browse/QTBUG-42989 | ||
See Also: |
https://bugs.webkit.org/show_bug.cgi?id=56088 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46820 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50676 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107779 https://codereview.qt-project.org/c/qt/qtscript/+/308863 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 618550 |
Description
Alexander Miller
2018-04-01 21:32:56 UTC
Hi, there is a patch out there for the issue: --- a/src/3rdparty/javascriptcore/JavaScriptCore/jit/JITStubs.h.orig 2016-02-03 13:46:12.000000000 +0100 +++ b/src/3rdparty/javascriptcore/JavaScriptCore/jit/JITStubs.h 2016-04-24 14:24:42.396004500 +0200 @@ -316,7 +316,7 @@ EncodedJSValue JIT_STUB cti_op_to_primitive(STUB_ARGS_DECLARATION); EncodedJSValue JIT_STUB cti_op_typeof(STUB_ARGS_DECLARATION); EncodedJSValue JIT_STUB cti_op_urshift(STUB_ARGS_DECLARATION); - EncodedJSValue JIT_STUB cti_vm_throw(STUB_ARGS_DECLARATION); + EncodedJSValue JIT_STUB cti_vm_throw(STUB_ARGS_DECLARATION) __attribute__((used)); EncodedJSValue JIT_STUB cti_to_object(STUB_ARGS_DECLARATION); JSObject* JIT_STUB cti_op_construct_JSConstruct(STUB_ARGS_DECLARATION); JSObject* JIT_STUB cti_op_new_array(STUB_ARGS_DECLARATION); See also: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48056 Why it was neither integrated in portage nor upstream? Still present in 5.13.2... Why the patch is not used in mainstream repository? Iade Gesso, PhD (in Computer Science) Please submit it upstream. This has been fixed in JavaScriptCore years ago https://trac.webkit.org/changeset/118344/webkit Someone needs to backport it to the copy of JSC bundled in qtscript and submit it upstream (Qt upstream) lto_tinderbox has reproduced this issue with version 5.15.5 - Updating summary. here's what a former Gentoo contributor put to upstream: https://codereview.qt-project.org/gitweb?p=qt/qtscript.git;a=blobdiff;f=src/3rdparty/javascriptcore/JavaScriptCore/jit/JITStubs.h;h=adf6d5dc807fb526e4d8684fabc609e183880b4b;hp=da801332e6f566ec6d6d5b4dfa0d585a5cec852b;hb=7004c3fe3148b1f081c1575341257dca18e804b2;hpb=0f6ea3515260438b3a51bc6e4d4e4480261484ff seems reasonable to backport The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d51131e1ec7aa03f22a2f2864237fdc3d4dc146 commit 2d51131e1ec7aa03f22a2f2864237fdc3d4dc146 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2023-12-07 17:56:50 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2023-12-12 12:56:01 +0000 qt5-build.eclass: filter-lto Closes: https://bugs.gentoo.org/650488 Closes: https://bugs.gentoo.org/692078 Closes: https://bugs.gentoo.org/713850 Closes: https://bugs.gentoo.org/908419 Closes: https://bugs.gentoo.org/652158 Closes: https://bugs.gentoo.org/919043 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> eclass/qt5-build.eclass | 3 +++ 1 file changed, 3 insertions(+) |