[LLVMdev] building cross llvm-gcc for new target

james woodyatt jhw at conjury.org
Wed Apr 30 23:19:15 PDT 2008


everyone--

I'm trying to build LLVM-GCC as a cross-compiler for a new target.

I've successfully patched binutils, the FSF GCC, LLVM and Clang to  
build for this new target-- they work fine, but the LLVM-gcc build is  
failing for me.  All my llvm.org sources are tracking the Subversion  
trunk, but my problem is probably not related to any ongoing churn  
there.  I'm doing something dumb, and I need to figure out what.

I get errors trying to build from crtbegin.o, and they look like this  
(replacing the long temporary filename with $TMPFILE):

> $TMPFILE: Assembler messages:
> $TMPFILE:66: Error: internal_relocation (type: OFFSET_IMM) not fixed  
> up
> $TMPFILE:71: Error: internal_relocation (type: OFFSET_IMM) not fixed  
> up
> $TMPFILE:76: Error: internal_relocation (type: OFFSET_IMM) not fixed  
> up
> $TMPFILE:87: Error: internal_relocation (type: OFFSET_IMM) not fixed  
> up
> $TMPFILE:91: Error: internal_relocation (type: OFFSET_IMM) not fixed  
> up
> $TMPFILE:180: Error: internal_relocation (type: OFFSET_IMM) not  
> fixed up
> $TMPFILE:184: Error: internal_relocation (type: OFFSET_IMM) not  
> fixed up
> $TMPFILE:185: Error: internal_relocation (type: OFFSET_IMM) not  
> fixed up
> $TMPFILE:188: Error: internal_relocation (type: OFFSET_IMM) not  
> fixed up
> $TMPFILE:193: Error: internal_relocation (type: OFFSET_IMM) not  
> fixed up
> $TMPFILE:200: Error: internal_relocation (type: OFFSET_IMM) not  
> fixed up
> make[3]: *** [crtbegin.o] Error 1
> make[2]: *** [extra] Error 2
> make[1]: *** [stmp-multilib] Error 2
> make: *** [all-gcc] Error 2

Any tips that lead to the isolation of this issue will be graciously  
accepted.  If I figure this out, I'll report back here what I'm doing  
wrong.  If I don't, then I will probably bag on compiling libgcc2 for  
now and come back to it later.


—
j h woodyatt <jhw at conjury.org>
http://jhw.vox.com/





More information about the llvm-dev mailing list