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

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>10300</bug_id>
          
          <creation_ts>2016-09-17 21:58:08 +0000</creation_ts>
          <short_desc>libunwind fails to build with ld-is-gold</short_desc>
          <delta_ts>2018-02-08 12:24:54 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jussi Kukkonen">jku</reporter>
          <assigned_to name="Maxin B. John">maxin.john</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>raj.khem</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>66285</commentid>
    <comment_count>0</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2016-09-17 21:58:08 +0000</bug_when>
    <thetext>gold complains &quot;cannot make copy relocation for protected symbol &apos;_Ux86_local_addr_space&apos;&quot; on qemux86 with ld-is-gold distro feature.



Making all in tests
make[1]: Entering directory &apos;/home/jku/src/poky/build/tmp/work/i586-poky-linux/libunwind/1.1+gitAUTOINC+bc8698fd7e-r0/build/tests&apos;
../i586-poky-linux-libtool  --tag=CC   --mode=link i586-poky-linux-gcc  -m32 -march=i586 --sysroot=/home/jku/src/poky/build/tmp/sysroots/qemux86  -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/jku/src/poky/build/tmp/work/i586-poky-linux/libunwind/1.1+gitAUTOINC+bc8698fd7e-r0=/usr/src/debug/libunwind/1.1+gitAUTOINC+bc8698fd7e-r0 -fdebug-prefix-map=/home/jku/src/poky/build/tmp/sysroots/x86_64-linux= -fdebug-prefix-map=/home/jku/src/poky/build/tmp/sysroots/qemux86=   -fexceptions -Wall -Wsign-compare  -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o Gperf-simple Gperf-simple.o ../src/libunwind-x86.la ../src/libunwind.la -latomic_ops 
i586-poky-linux-libtool: link: i586-poky-linux-gcc -m32 -march=i586 --sysroot=/home/jku/src/poky/build/tmp/sysroots/qemux86 -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/jku/src/poky/build/tmp/work/i586-poky-linux/libunwind/1.1+gitAUTOINC+bc8698fd7e-r0=/usr/src/debug/libunwind/1.1+gitAUTOINC+bc8698fd7e-r0 -fdebug-prefix-map=/home/jku/src/poky/build/tmp/sysroots/x86_64-linux= -fdebug-prefix-map=/home/jku/src/poky/build/tmp/sysroots/qemux86= -fexceptions -Wall -Wsign-compare -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o .libs/Gperf-simple Gperf-simple.o  ../src/.libs/libunwind-x86.so /home/jku/src/poky/build/tmp/work/i586-poky-linux/libunwind/1.1+gitAUTOINC+bc8698fd7e-r0/build/src/.libs/libunwind.so ../src/.libs/libunwind.so -lc -lgcc_s /home/jku/src/poky/build/tmp/sysroots/qemux86/usr/lib/libatomic_ops.a
/home/jku/src/poky/build/tmp/sysroots/x86_64-linux/usr/libexec/i586-poky-linux/gcc/i586-poky-linux/6.2.0/ld: error: Gperf-simple.o: cannot make copy relocation for protected symbol &apos;_Ux86_local_addr_space&apos;, defined in ../src/.libs/libunwind-x86.so
collect2: error: ld returned 1 exit status
Makefile:1038: recipe for target &apos;Gperf-simple&apos; failed
make[1]: *** [Gperf-simple] Error 1
make[1]: Leaving directory &apos;/home/jku/src/poky/build/tmp/work/i586-poky-linux/libunwind/1.1+gitAUTOINC+bc8698fd7e-r0/build/tests&apos;
Makefile:595: recipe for target &apos;all-recursive&apos; failed
make: *** [all-recursive] Error 1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68106</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-11-08 17:16:45 +0000</bug_when>
    <thetext>Khem, do you have any thoughts?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68109</commentid>
    <comment_count>2</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2016-11-08 17:24:45 +0000</bug_when>
    <thetext>I think its related to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65248</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79363</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-02-06 12:03:43 +0000</bug_when>
    <thetext>Maxin, can you see if the toolchain we have in master has fixed this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79367</commentid>
    <comment_count>4</comment_count>
    <who name="Maxin B. John">maxin.john</who>
    <bug_when>2018-02-06 15:15:40 +0000</bug_when>
    <thetext>Hi Ross,

(In reply to comment #3)
&gt; Maxin, can you see if the toolchain we have in master has fixed this?

Fixed in GCC 5.

Built libunwind (qemux86 using ld-is-gold distro feature) with latest master ( commit: dafa1ac8646954fa02db2a3e572adc6a957edd39 ) 

# bitbake libunwind

Build didn&apos;t fail.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79394</commentid>
    <comment_count>5</comment_count>
    <who name="Maxin B. John">maxin.john</who>
    <bug_when>2018-02-08 12:24:54 +0000</bug_when>
    <thetext>Works fine in master.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>