[LLVMdev] trouble compiling llvm-gcc4 1.9

Dale Johannesen dalej at apple.com
Mon Apr 2 14:20:08 PDT 2007


On Mar 31, 2007, at 11:35 PM, Erick Tryzelaar wrote:
> I'm having some trouble getting llvm-gcc4 to compile. It's unable to
> compile darwin-crt3.c. It's mentioning "Complex expression. Absolute
> segment assumed." but I'm not sure if that's a real error message. Has
> anyone run into this before? I'm running on a G4 apple 10.4.8, kernel
> version 8.6.0. I googled around and found a bug with the same error  
> message:
>
> http://llvm.org/bugs/show_bug.cgi?id=958
>
> but it looks like this was for the gcc3 frontend. I tried using the
> odcctools from macports, but it didn't work. Any ideas what's wrong?

Not in detail, but that file is the first thing it's using the built  
llvm-gcc4 to compile,
so something is wrong with that.  It looks like it might be  
misconfigured somehow.
That message is coming from the assembler and I suggest looking at the
assembler (.s) file, you may be able to figure it out from that.
To get that add -save-temps to the compilation line, which is this:

> /opt/local/var/db/dports/build/ 
> _unencrypted_erickt_Projects_macports-trunk_dports_lang_llvm-gcc4/ 
> work/build/gcc/xgcc
> -B/opt/local/var/db/dports/build/ 
> _unencrypted_erickt_Projects_macports-trunk_dports_lang_llvm-gcc4/ 
> work/build/gcc/
> -B/opt/local/powerpc-apple-darwin8/bin/
> -B/opt/local/powerpc-apple-darwin8/lib/ -isystem
> /opt/local/powerpc-apple-darwin8/include -isystem
> /opt/local/powerpc-apple-darwin8/sys-include -DIN_GCC    -W -Wall
> -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
> -Wold-style-definition  -isystem ./include  -I. -I.
> -I../../llvm-gcc4-1.9.source/gcc -I../../llvm-gcc4-1.9.source/gcc/.
> -I../../llvm-gcc4-1.9.source/gcc/../include
> -I../../llvm-gcc4-1.9.source/gcc/../libcpp/include -I/opt/local/ 
> include
> -I/opt/local/include
> -I/opt/local/var/db/dports/build/ 
> _unencrypted_erickt_Projects_macports-trunk_dports_lang_llvm/work/ 
> llvm-1.9/include
> -I/opt/local/lib/llvm/include  \
> -mlongcall \
>   -c ../../llvm-gcc4-1.9.source/gcc/config/darwin-crt3.c -o crt3.o




More information about the llvm-dev mailing list