[cfe-dev] need help

Eric Christopher echristo at apple.com
Tue May 31 15:41:04 PDT 2011


On May 30, 2011, at 9:54 PM, Andy Somerville wrote:

> System is ubuntu 11.04 (mistake in last post)
> 
> crtbegin.o lives in /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/
> or any of the 4.[45].x dirs as I have several version of gcc
> installed.
> 

That directory looks very very odd with both an i386-linux-gnu and an
i686-linux-gnu. Is that the normal directory?

> clang++ -v output you see in the post you replied to.
> 

So there's already 11.04 support in clang for the platform. Have you
installed multiple compilers over what is normally there or moved
things around? AFAIK a generic install should work.

-eric



>    Andy
> 
> On Tue, May 31, 2011 at 12:47 AM, Eric Christopher <echristo at apple.com> wrote:
>> 
>>> I dont known if the OP replied, but I'm at latest with llvm (r132323)
>>> and clang(132321) running on Ubuntu 10.04 and am still having this
>>> same issue:
>>> 
>>> 
>> 
>> 
>> Things have to be changed for each platform so this wouldn't matter for you. If you give me the information I asked for from the OP I can probably help.
>> 
>> -eric
>> 
>>> clang++ test.o -v
>>> clang version 3.0 (trunk 132323)
>>> Target: i386-pc-linux-gnu
>>> Thread model: posix
>>> "/usr/bin/ld" -z relro --hash-style=gnu --build-id --eh-frame-hdr -m
>>> elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o a.out
>>> /usr/lib/../lib/crt1.o /usr/lib/../lib/crti.o crtbegin.o -L
>>> -L/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/../../..
>>> -L/usr/lib/ test.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc
>>> crtend.o /usr/lib/../lib/crtn.o
>>> /usr/bin/ld: cannot find crtbegin.o: No such file or directory
>>> /usr/bin/ld: cannot find -lstdc++
>>> /usr/bin/ld: cannot find -lgcc_s
>>> /usr/bin/ld: cannot find -lgcc
>>> clang: error: linker command failed with exit code 1 (use -v to see invocation)
>>> 
>>> 
>>>      Andy
>> 
>> 




More information about the cfe-dev mailing list