[LLVMdev] building cross llvm-gcc for new target

james woodyatt jhwoodyatt at mac.com
Thu May 1 17:33:23 PDT 2008


On May 1, 2008, at 15:20, Mike Stump wrote:
> On Apr 30, 2008, at 11:19 PM, james woodyatt wrote:
>>> $TMPFILE:66: Error: internal_relocation (type: OFFSET_IMM) not
>>> fixed  up
>
> You need to run the compile with -save-temps and then look at the .s
> file.  If you like it, it is an assembler bug.  If you don't like it,
> it is a bug in the compiler.  If you don't know if you like it, as
> your assembler vendor (binutils) if it is valid.

Did all that.  My previous message shows the relevant excerpts.

p1. It doesn't look to me like obviously invalid assembly.

p2. Compiling with -O0 makes the problem go away.

p3. I think the recent change to $LLVM_GCC/gcc/llvm-backend.cpp to  
respect the -fno-inline-functions flag makes the need for the -O0  
workaround go away.

I still think there might be something broken in the compiler there  
somewhere, but whatever...

Now, I'm seeing this...

> GNU C version 4.2.1 (Based on Apple Inc. build 5555) (LLVM build)
> 	compiled by GNU C version 4.0.1 (Apple Inc. build 5478).
> GGC heuristics: --param ggc-min-expand=100 --param ggc-min- 
> heapsize=131072
> Compiler executable checksum: 20fbcaab58f1b058dae351db930ef9ce
> Assertion failed: (0 && "Do not know how to return this many  
> arguments!"), function LowerRET, file /Volumes/Space/p4client/orca/ 
> import/llvm.org/llvm/lib/Target/ARM/ARMISelLowering.cpp, line 667.
> ../../../../../../import/llvm.org/llvm-gcc/gcc/libgcc2.c:1914:  
> internal compiler error: Abort trap
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://developer.apple.com/bugreporter> for instructions.
> make[2]: *** [libgcc/./_muldc3.o] Error 1
> make[1]: *** [stmp-multilib] Error 2
> make: *** [all-gcc] Error 2


I'm pretty sure this is a compiler bug.  I'm grinding away on it, but  
I'm a total newbie here.


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

-- 
j h woodyatt <jhw at conjury.org>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080501/a86bf1e9/attachment.html>


More information about the llvm-dev mailing list