#17941: build binutils fail for Target System (x86_64)
-----------------------+------------------------
  Reporter:  Galen     |      Owner:  developers
      Type:  defect    |     Status:  new
  Priority:  normal    |  Milestone:
 Component:  packages  |    Version:  Trunk
Resolution:            |   Keywords:
-----------------------+------------------------

Comment (by Galen):

 My build server is
 uname -a
 Linux 3.13.0-35-generic #62-Ubuntu SMP Fri Aug 15 01:58:42 UTC 2014 x86_64
 x86_64 x86_64 GNU/Linux

 and I have googled for it:

 http://cblfs.cross-lfs.org/index.php/Anjuta
 {{{
 On x86_64 you may have a problem building the Valgrind plugin because the
 libiberty.a provided by binutils was not compiled with -fPIC. You may see
 an error like the following.
 /usr/bin/ld: /usr/lib64/gcc/x86_64-unknown-linux-
 gnu/4.1.1/../../../../lib64/libiberty.a(cplus-dem.o):
 relocation R_X86_64_32S against `_sch_istable' can not be used when making
 a shared object; recompile with
 -fPIC
 /usr/lib64/gcc/x86_64-unknown-linux-
 gnu/4.1.1/../../../../lib64/libiberty.a: could not read symbols: Bad
 value
 The first solution is to disable the valgrind plugin by passing the
 following to configure:
 --disable-plugin-valgrind
 The second solution is to refer to the CLFS book to build Binutils and
 install the pic version of the libiberty.a library with the following
 command:
 On Non-Multilib systems:
 cp libiberty/pic/libiberty.a /usr/lib
 On Multilib systems:
 cp libiberty/pic/libiberty.a /usr/lib64
 }}}

 http://ubuntuforums.org/showthread.php?t=261294

 http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=3
 {{{
 3. HOWTO fix -fPIC errors

 }}}

 http://blog.gmane.org/gmane.linux.lfs.hardened/month=20061201

--
Ticket URL: <https://dev.openwrt.org/ticket/17941#comment:1>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to