<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>139126</bug_id>
          
          <creation_ts>2014-12-01 06:52:32 -0800</creation_ts>
          <short_desc>Failed to load LLVM library at libllvmForJSC.so</short_desc>
          <delta_ts>2015-01-20 07:51:52 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>140049</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Seo Sanghyeon">sanxiyn</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ossy</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1051434</commentid>
    <comment_count>0</comment_count>
    <who name="Seo Sanghyeon">sanxiyn</who>
    <bug_when>2014-12-01 06:52:32 -0800</bug_when>
    <thetext>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&apos;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/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1051806</commentid>
    <comment_count>1</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2014-12-02 05:18:07 -0800</bug_when>
    <thetext>I can&apos;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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1051816</commentid>
    <comment_count>2</comment_count>
    <who name="Seo Sanghyeon">sanxiyn</who>
    <bug_when>2014-12-02 05:48:43 -0800</bug_when>
    <thetext>How can I pass --disable-new-dtags to my linker? I am not that familiar with the build system to know.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1051817</commentid>
    <comment_count>3</comment_count>
    <who name="Seo Sanghyeon">sanxiyn</who>
    <bug_when>2014-12-02 05:53:24 -0800</bug_when>
    <thetext>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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1051818</commentid>
    <comment_count>4</comment_count>
      <attachid>242406</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2014-12-02 05:54:26 -0800</bug_when>
    <thetext>Created attachment 242406
test

(In reply to comment #2)
&gt; How can I pass --disable-new-dtags to my linker? I am not that familiar with
&gt; the build system to know.

Try the attached patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1051819</commentid>
    <comment_count>5</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2014-12-02 05:57:05 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; Maybe you are still using ld?
No, I do use ld.gold.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1051823</commentid>
    <comment_count>6</comment_count>
    <who name="Seo Sanghyeon">sanxiyn</who>
    <bug_when>2014-12-02 06:06:18 -0800</bug_when>
    <thetext>Passing --disable-new-dtags using the attached patch does fix the issue. Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1051824</commentid>
    <comment_count>7</comment_count>
    <who name="Seo Sanghyeon">sanxiyn</who>
    <bug_when>2014-12-02 06:20:42 -0800</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1062735</commentid>
    <comment_count>8</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2015-01-20 07:51:52 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 140049 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>242406</attachid>
            <date>2014-12-02 05:54:26 -0800</date>
            <delta_ts>2014-12-02 05:54:26 -0800</delta_ts>
            <desc>test</desc>
            <filename>1.patch</filename>
            <type>text/plain</type>
            <size>697</size>
            <attacher name="Csaba Osztrogonác">ossy</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9jbWFrZS9PcHRpb25zQ29tbW9uLmNtYWtlIGIvU291cmNlL2Nt
YWtlL09wdGlvbnNDb21tb24uY21ha2UKaW5kZXggZDkxNzE1My4uNjc3ZGExMyAxMDA2NDQKLS0t
IGEvU291cmNlL2NtYWtlL09wdGlvbnNDb21tb24uY21ha2UKKysrIGIvU291cmNlL2NtYWtlL09w
dGlvbnNDb21tb24uY21ha2UKQEAgLTY3LDYgKzY3LDggQEAgaWYgKFVTRV9MRF9HT0xEKQogICAg
IGlmICgiJHtMRF9WRVJTSU9OfSIgTUFUQ0hFUyAiR05VIGdvbGQiKQogICAgICAgICBzZXQoQ01B
S0VfQ19GTEFHUyAiJHtDTUFLRV9DX0ZMQUdTfSAtZnVzZS1sZD1nb2xkIikKICAgICAgICAgc2V0
KENNQUtFX0NYWF9GTEFHUyAiJHtDTUFLRV9DWFhfRkxBR1N9IC1mdXNlLWxkPWdvbGQiKQorICAg
ICAgICBzZXQoQ01BS0VfRVhFX0xJTktFUl9GTEFHUyAiJHtDTUFLRV9FWEVfTElOS0VSX0ZMQUdT
fSAtV2wsLS1kaXNhYmxlLW5ldy1kdGFncyIpCisgICAgICAgIHNldChDTUFLRV9TSEFSRURfTElO
S0VSX0ZMQUdTICIke0NNQUtFX0VYRV9MSU5LRVJfRkxBR1N9IC1XbCwtLWRpc2FibGUtbmV3LWR0
YWdzIikKICAgICBlbHNlICgpCiAgICAgICAgIG1lc3NhZ2UoV0FSTklORyAiR05VIGdvbGQgbGlu
a2VyIGlzbid0IGF2YWlsYWJsZSwgdXNpbmcgdGhlIGRlZmF1bHQgc3lzdGVtIGxpbmtlci4iKQog
ICAgIGVuZGlmICgpCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>