ld.gold can't find libc
Bug #780455 reported by
Jay Foad
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
binutils (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: binutils
With binutils-gold installed, I can't build llvm-gcc-4.2 from source. (For more details see http://
/usr/bin/ld: error: cannot find -lc
The problem seems to be that ld.gold can't locate libc, but ld.bfd can:
$ ld.gold -lc
ld.gold: error: cannot find -lc
$ ld.bfd -lc
ld.bfd: warning: cannot find entry symbol _start; not setting start address
Maybe ld.gold needs a similar fix to the one ld.bfd got in this bug:
https:/
... so that it knows to look in multiarch directories?
I'm using binutils 2.21.0.
Related branches
To post a comment you must log in.
This bug was fixed in the package binutils - 2.21.53. 20110810- 0ubuntu2
--------------- 20110810- 0ubuntu2) oneiric; urgency=low
binutils (2.21.53.
* Build with proposed patch for PR ld/12965. LP: #641126.
* Don't ship .la files in the cross binutils packages. LP: #760420.
* For native builds, add the multiarch directories to the default
search path. LP: #780455.
-- Matthias Klose <email address hidden> Wed, 07 Sep 2011 15:36:22 +0200