Bug 139126

Summary: Failed to load LLVM library at libllvmForJSC.so
Product: WebKit Reporter: Seo Sanghyeon <sanxiyn>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ossy
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Linux   
Attachments:
Description Flags
test none

Seo Sanghyeon
Reported 2014-12-01 06:52:32 PST
r176590. To reproduce: Tools/Scripts/build-jsc --gtk --ftl-jit WebKitBuild/Release/bin/jsc --verboseFTLCompilation=true some.js This is a regression. If I set USE_LD_GOLD to OFF it works fine. https://bugs.webkit.org/show_bug.cgi?id=137953 My understanding is that ld and gold have different defaults so that ld sets RPATH, but gold sets RUNPATH. RPATH is applied transitively but RUNPATH is not. Before, jsc had RPATH, jsc links to libjavascriptcoregtk-4.0.so, which dlopen libllvmForJSC.so using RPATH from jsc, but this doesn't happen with RUNPATH. To use RUNPATH, libjavascriptcoregtk-4.0.so should have RUNPATH, not jsc. Here is a good explanation: http://blog.qt.digia.com/blog/2011/10/28/rpath-and-runpath/
Attachments
test (697 bytes, patch)
2014-12-02 05:54 PST, Csaba Osztrogonác
no flags
Csaba Osztrogonác
Comment 1 2014-12-02 05:18:07 PST
I can't reproduce this bug on Ubuntu 14.04. Maybe your ld and ld.gold have different default settings. Could you check if passing --enable-new-dtags or --disable-new-dtags to your linker fixes this issue or not?
Seo Sanghyeon
Comment 2 2014-12-02 05:48:43 PST
How can I pass --disable-new-dtags to my linker? I am not that familiar with the build system to know.
Seo Sanghyeon
Comment 3 2014-12-02 05:53:24 PST
By the way, I am on Ubuntu 14.04 too. I needed to do clean rebuild to get USE_LD_GOLD change to take effect. Maybe you are still using ld?
Csaba Osztrogonác
Comment 4 2014-12-02 05:54:26 PST
Created attachment 242406 [details] test (In reply to comment #2) > How can I pass --disable-new-dtags to my linker? I am not that familiar with > the build system to know. Try the attached patch.
Csaba Osztrogonác
Comment 5 2014-12-02 05:57:05 PST
(In reply to comment #3) > Maybe you are still using ld? No, I do use ld.gold.
Seo Sanghyeon
Comment 6 2014-12-02 06:06:18 PST
Passing --disable-new-dtags using the attached patch does fix the issue. Thanks.
Seo Sanghyeon
Comment 7 2014-12-02 06:20:42 PST
I found that although my system is Ubuntu 14.04, my binutils package is from Ubuntu 14.10. I installed GCC 4.9 from Ubuntu 14.10 repository, which also pulled binutils, but I forgot about it. Sorry for confusion.
Csaba Osztrogonác
Comment 8 2015-01-20 07:51:52 PST
*** This bug has been marked as a duplicate of bug 140049 ***
Note You need to log in before you can comment on or make changes to this bug.