[LLVMdev] building llvm-gcc on Ubuntu 11.04 Natty Narwhal
Duncan Sands
baldrick at free.fr
Tue May 10 04:33:38 PDT 2011
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.
More information about the llvm-dev
mailing list