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? 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
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/
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
Dale Johannesen wrote:> 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:Thanks Chris and Dale! Turns out that I had a bad xcode. I had 2.2, but I thought I had 2.4. Thanks for your help. -e