Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 581024 - dev-qt/qtscript-5.6.0 fails to link with LTO -> error: undefined reference to 'cti_vm_throw'
Summary: dev-qt/qtscript-5.6.0 fails to link with LTO -> error: undefined reference to...
Status: RESOLVED DUPLICATE of bug 581022
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-24 09:43 UTC by Petros
Modified: 2017-05-14 20:39 UTC (History)
1 user (show)

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


Attachments
build.log (dev-qt:qtscript-5.6.0:20160424-090908.log.tar.gz,43.32 KB, text/plain)
2016-04-24 09:48 UTC, Petros
Details
emerge --info (info,25.84 KB, text/plain)
2016-04-24 09:49 UTC, Petros
Details
build.log (dev-qt:qtscript-5.6.0:20160424-090908.log.tar.gz,43.32 KB, application/x-gzip)
2016-04-24 09:54 UTC, Petros
Details
patch (fix-cti_vm_throw.patch,795 bytes, patch)
2017-05-14 20:39 UTC, Petross404(Petros S)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Petros 2016-04-24 09:43:13 UTC
dev-qt/qtscript-5.6.0 can not be compiled because of error: undefined reference to 'cti_vm_throw'.

I tried to investigate it a little further but no success.

PC ~ # grep -r cti_vm_throw /usr/lib64/
grep: /usr/lib64/libQt5Designer.so.5.5: no such file or directory
grep: /usr/lib64/libQt5DesignerComponents.so.5.5: no such file or directory
grep: /usr/lib64/libQt5DesignerComponents.so.5.5.1: no such file or directory
grep: /usr/lib64/libQt5Designer.so.5.5.1: no such file or directory

Let me tell you that from all dev-qt/qt*:5 packages that was to be emerged, qtscript was the first (but not the only one) to fail at compilation. qtcore:5, qtgui:5 etc were built fine with the same {X}FLAGS and toolchain.
Comment 1 Petros 2016-04-24 09:48:09 UTC
Created attachment 431790 [details]
build.log
Comment 2 Petros 2016-04-24 09:49:23 UTC
Created attachment 431792 [details]
emerge --info
Comment 3 Petros 2016-04-24 09:54:05 UTC
Created attachment 431794 [details]
build.log
Comment 4 David Kredba 2016-04-24 18:49:20 UTC
Add __attribute__((used)) to the end of cti_vm_throw line in the 
/var/tmp/portage/dev-qt/qtscript-5.6.0/work/qtscript-opensource-src-5.6.0/src/3rdparty/javascriptcore/JavaScriptCore/jit/JITStubs.h file.

Unfortunetly slim LTO build is broken more for qtwebkit-5.5 and 5.6.
Comment 5 Davide Pesavento gentoo-dev 2016-04-25 14:29:55 UTC

*** This bug has been marked as a duplicate of bug 581022 ***
Comment 6 Petross404(Petros S) 2017-05-14 20:39:47 UTC
Created attachment 472628 [details, diff]
patch

(In reply to David Kredba from comment #4)
> Add __attribute__((used)) to the end of cti_vm_throw line in the 
> /var/tmp/portage/dev-qt/qtscript-5.6.0/work/qtscript-opensource-src-5.6.0/
> src/3rdparty/javascriptcore/JavaScriptCore/jit/JITStubs.h file.

I placed at the beggining and it worked. As I recall when I placed at the end it didn't work.