[cfe-dev] Bug with -O4

Shantonu Sen ssen at apple.com
Tue Apr 28 07:42:48 PDT 2009


There may be rev-locks between the Mac OS X linker and the version of / 
Developer/usr/lib/libLTO.dylib (which is built out of the llvm source  
tree). Also you need clang installed in /Developer/usr/bin (not in a  
local build tree) so that it uses /Developer/usr/bin/ld for linking  
and doesn't back to /usr/bin/ld, which won't find ../lib/libLTO.dylib

So I'd suggest first installing clang in /Developer/usr/bin and clang- 
cc in /Developer/usr/libexec, and see if that just works. If not, try  
installing libLTO.dylib to /Developer/usr/lib (and keep a backup). If  
that doesn't work, you may need to get more creative...

Shantonu

Sent from my MacBook

On Apr 28, 2009, at 6:13 AM, Anton Korobeynikov wrote:

> Hello, Robert
>
>> NuzMfl.o, file is not of required architecture
>> Undefined symbols:
>>   "_main", referenced from:
>>       start in crt1.10.5.o
> O4 is for LTO. And you need linker support for it.
>
> -- 
> With best regards, Anton Korobeynikov
> Faculty of Mathematics and Mechanics, Saint Petersburg State  
> University
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




More information about the cfe-dev mailing list