[LLVMdev] trouble compiling llvm-gcc4 1.9
Chris Lattner
sabre at nondot.org
Sun Apr 1 01:38:45 PDT 2007
On Sat, 31 Mar 2007, 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?
I don't know. Two suggestions:
1. Make sure you a precisely following the information described in
README.LLVM at the top-level of llvm-gcc source tarball.
2. If that doesn't work, please try mainline svn (along with mainline
cvs). There have been many bug fixes and improvements since 1.9...
-Chris
> Here's the relevant part of the error message:
>
>
> /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-crt2.c -o crt2.o
> make \
> CFLAGS="-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
> -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros
> -Wold-style-definition " \
> CONFIG_H="config.h auto-host.h
> ../../llvm-gcc4-1.9.source/gcc/../include/ansidecl.h" \
> MAKEOVERRIDES= \
> -f libgcc.mk all
> make
> GCC_FOR_TARGET="/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" \
> AR_FOR_TARGET="/opt/local/bin/odar" \
> AR_CREATE_FOR_TARGET="/opt/local/bin/odar rc" \
> AR_EXTRACT_FOR_TARGET="/opt/local/bin/odar x" \
> AR_FLAGS_FOR_TARGET="" \
> CC="/usr/bin/gcc-4.0" CFLAGS="-g -O2 -W -Wall -Wwrite-strings
> -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long
> -Wno-variadic-macros -Wold-style-definition " \
> BUILD_PREFIX="" \
> BUILD_PREFIX_1="loser-" \
> LANGUAGES="" \
> LIBGCC2_CFLAGS="-O2 -DIN_GCC -W -Wall -Wwrite-strings
> -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
> -isystem ./include -Wa,-force_cpusubtype_ALL -pipe -g
> -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED " \
> MULTILIB_CFLAGS="" T= crt3.o
> /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
> /var/tmp//cc2EAqwg.s:626:Complex expression. Absolute segment assumed.
> /var/tmp//cc2EAqwg.s:627:Complex expression. Absolute segment assumed.
> /var/tmp//cc2EAqwg.s:628:Complex expression. Absolute segment assumed.
> /var/tmp//cc2EAqwg.s:629:Complex expression. Absolute segment assumed.
> /var/tmp//cc2EAqwg.s:630:Complex expression. Absolute segment assumed.
> /var/tmp//cc2EAqwg.s:631:Complex expression. Absolute segment assumed.
> make[3]: *** [crt3.o] Error 1
> make[2]: *** [extra] Error 2
> make[1]: *** [stmp-multilib] Error 2
> make: *** [all-gcc] Error 2
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
More information about the llvm-dev
mailing list