Duncan, Can you try another experiment please? I get: $ ls -l `which ld` lrwxrwxrwx 1 root root 7 2011-05-06 19:26 /usr/bin/ld -> ld.gold $ ld.gold -lc ld.gold: error: cannot find -lc $ ld.bfd -lc ld.bfd: warning: cannot find entry symbol _start; not setting start address What do you get? Thanks! Jay.
Duncan Sands
2011-May-10 11:33 UTC
[LLVMdev] building llvm-gcc on Ubuntu 11.04 Natty Narwhal
Hi Jay,> Can you try another experiment please? I get:I wasn't using the gold linker. However if I do (built today) then I get the following:> > $ ls -l `which ld` > lrwxrwxrwx 1 root root 7 2011-05-06 19:26 /usr/bin/ld -> ld.gold$ ls -l `which ld` -rwxr-xr-x 4 duncan duncan 47105033 2011-05-10 10:20 /usr/local/bin/ld> $ ld.gold -lc > ld.gold: error: cannot find -lc$ /usr/local/bin/ld -lc /usr/local/bin/ld: error: cannot find -lc> $ ld.bfd -lc > ld.bfd: warning: cannot find entry symbol _start; not setting start address$ /usr/bin/ld -lc /usr/bin/ld: warning: cannot find entry symbol _start; not setting start address> > What do you get?The llvm-gcc build fails with: /usr/local/bin/ld: warning: wildcard match appears in both version 'GCC_3.0' and 'GCC_4.3.0' in script /usr/local/bin/ld: error: cannot find -lc This can be worked around using LIBRARY_PATH. Ciao, Duncan.> > Thanks! > Jay.
> I wasn't using the gold linker.OK, that explains the difference. I installed package binutils-gold ages ago. I've reported this as a bug against ld.gold here: https://bugs.launchpad.net/bugs/780455> This can be worked around using LIBRARY_PATH.Yes, this works for me too -- thanks! Jay.
Possibly Parallel Threads
- [LLVMdev] building llvm-gcc on Ubuntu 11.04 Natty Narwhal
- [LLVMdev] building llvm-gcc on Ubuntu 11.04 Natty Narwhal
- [LLVMdev] building llvm-gcc on Ubuntu 11.04 Natty Narwhal
- [LLVMdev] building llvm-gcc on Ubuntu 11.04 Natty Narwhal
- [LLVMdev] building llvm-gcc on Ubuntu 11.04 Natty Narwhal