[LLVMdev] LLVM-GCC builds on OS X 10.5, fails on 10.6

Jim Grosbach grosbach at apple.com
Fri Jan 28 07:37:47 PST 2011


On Jan 28, 2011, at 7:26 AM, Trevor Harmon wrote:

> On Jan 27, 2011, at 1:42 PM, Jim Grosbach wrote:
> 
>> It looks like you're building a 32-bit llvm-gcc and trying to link it against 64-bit llvm libraries. Try specifying the triple as x86_64-apple-darwin10 instead of i686-apple-darwin9.
> 
> Yep, that was it... thanks!
> 
> It looks like I can generalize the TRIPLE setting to:
> 
>  export TRIPLE=$MACHTYPE
> 
> and it will pick up either x86_64-apple-darwin10 or i686-apple-darwin9 as appropriate.


Excellent! Glad things are working properly for you.

-Jim



More information about the llvm-dev mailing list