ld.gold can't find libc

Bug #780455 reported by Jay Foad
24
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://lists.cs.uiuc.edu/pipermail/llvmdev/2011-May/039988.html) It ultimately fails with:

/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://bugs.launchpad.net/bugs/738098

... so that it knows to look in multiarch directories?

I'm using binutils 2.21.0.20110327-2ubuntu2 on Ubuntu 11.04.

Related branches

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package binutils - 2.21.53.20110810-0ubuntu2

---------------
binutils (2.21.53.20110810-0ubuntu2) oneiric; urgency=low

  * 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

Changed in binutils (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers