Cyrille Mescam
2005-Jun-13 09:49 UTC
[LLVMdev] problem compiling the cfrontend on Linux/PPC
Hi, When compiling the cfrontend for Linux/PPC architecture on a powermac G5, i got the following error : -------------------------------Compilation error listing if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi make GCC_FOR_TARGET="/usr/local/home/cyrille/project/llvm/cfrontend/build/gcc/xgcc -B/usr/local/home/cyrille/project/llvm/cfrontend/build/gcc/ -B/usr/local/home/cyrille/project/llvm/cfrontend/install/powerpc-unknown-linux-gnu/bin/ -B/usr/local/home/cyrille/project/llvm/cfrontend/install/powerpc-unknown-linux-gnu/lib/ -isystem /usr/local/home/cyrille/project/llvm/cfrontend/install/powerpc-unknown-linux-gnu/include -isystem /usr/local/home/cyrille/project/llvm/cfrontend/install/powerpc-unknown-linux-gnu/sys-include" \ AR_FOR_TARGET="powerpc-unknown-linux-gnu-ar" \ AR_CREATE_FOR_TARGET="powerpc-unknown-linux-gnu-ar rc" \ AR_EXTRACT_FOR_TARGET="powerpc-unknown-linux-gnu-ar x" \ AR_FLAGS_FOR_TARGET="" \ CC="gcc" CFLAGS="-O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -fno-common " \ BUILD_PREFIX="" \ BUILD_PREFIX_1="loser-" \ LANGUAGES="" \ LIBGCC2_CFLAGS="-O2 -DIN_GCC -DDEFAULT_TARGET_MACHINE=\"powerpc-unknown-linux-gnu\" -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -fPIC -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -fPIC -mstrict-align " \ MULTILIB_CFLAGS=" -fPIC -mstrict-align" T= ecrti.o make[3]: Entering directory `/usr/local/home/cyrille/project/llvm/cfrontend/build/gcc' /usr/local/home/cyrille/project/llvm/cfrontend/build/gcc/xgcc -B/usr/local/home/cyrille/project/llvm/cfrontend/build/gcc/ -B/usr/local/home/cyrille/project/llvm/cfrontend/install/powerpc-unknown-linux-gnu/bin/ -B/usr/local/home/cyrille/project/llvm/cfrontend/install/powerpc-unknown-linux-gnu/lib/ -isystem /usr/local/home/cyrille/project/llvm/cfrontend/install/powerpc-unknown-linux-gnu/include -isystem /usr/local/home/cyrille/project/llvm/cfrontend/install/powerpc-unknown-linux-gnu/sys-include -DIN_GCC -DDEFAULT_TARGET_MACHINE=\"powerpc-unknown-linux-gnu\" -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -I. -I. -I../../src/gcc -I../../src/gcc/. -I../../src/gcc/../include -fPIC -mstrict-align -c ecrti.S -o ecrti.o gccas: /tmp/ccxlWeFz.s:1: syntax error, unexpected $undefined /tmp/ccxlWeFz.s:1: while reading token: '#' make[3]: *** [ecrti.o] Erreur 1 make[3]: Leaving directory `/usr/local/home/cyrille/project/llvm/cfrontend/build/gcc' make[2]: *** [ecrti.o] Erreur 2 make[2]: Leaving directory `/usr/local/home/cyrille/project/llvm/cfrontend/build/gcc' make[1]: *** [stmp-multilib] Erreur 2 make[1]: Leaving directory `/usr/local/home/cyrille/project/llvm/cfrontend/build/gcc' make: *** [all-gcc] Erreur 2 -------------------------------END Compilation error listing It seems that error has to do with gccas which failed to parse a file (?!) If anyone has an idea... Regards. Cyrille Mescam -- M. Cyrille Mescam (o_ UPMC-LIP6-SRC //\ 8 rue du Capitaine Scott v_/_ 75015 Paris, France http://vvm.lip6.fr/
Marco Matthies
2005-Jun-13 15:43 UTC
[LLVMdev] problem compiling the cfrontend on Linux/PPC
Hi, just a guess, but on my x86-64 box I had to compile the gcc frontend with --disable-multilib Good luck ! Marco
John Criswell
2005-Jun-13 16:02 UTC
[LLVMdev] problem compiling the cfrontend on Linux/PPC
Cyrille Mescam wrote:> Hi, > > > When compiling the cfrontend for Linux/PPC architecture on a powermac > G5, i got > the following error :I hate to ask a silly question, but are you using "make bootstrap" to build the cfrontend? Your output looks like gccas is being given a native code assembly language file to parse, and I seem to recall that that happens if you try doing a "make bootstrap". Our cfrontend doesn't follow the standard GCC build procedures (mainly because we haven't gotten the cfrontend to compile itself with LLVM). Instead, you have to follow our CFE build procedures (http://llvm.cs.uiuc.edu/docs/CFEBuildInstrs.html) to get it to build. -- John T.> > -------------------------------Compilation error listing > > if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi > make > GCC_FOR_TARGET="/usr/local/home/cyrille/project/llvm/cfrontend/build/gcc/xgcc > > -B/usr/local/home/cyrille/project/llvm/cfrontend/build/gcc/ > -B/usr/local/home/cyrille/project/llvm/cfrontend/install/powerpc-unknown-linux-gnu/bin/ > > -B/usr/local/home/cyrille/project/llvm/cfrontend/install/powerpc-unknown-linux-gnu/lib/ > > -isystem > /usr/local/home/cyrille/project/llvm/cfrontend/install/powerpc-unknown-linux-gnu/include > > -isystem > /usr/local/home/cyrille/project/llvm/cfrontend/install/powerpc-unknown-linux-gnu/sys-include" > > \ > AR_FOR_TARGET="powerpc-unknown-linux-gnu-ar" \ > AR_CREATE_FOR_TARGET="powerpc-unknown-linux-gnu-ar rc" \ > AR_EXTRACT_FOR_TARGET="powerpc-unknown-linux-gnu-ar x" \ > AR_FLAGS_FOR_TARGET="" \ > CC="gcc" CFLAGS="-O2 -W -Wall -Wwrite-strings -Wstrict-prototypes > -Wmissing-prototypes -pedantic -Wno-long-long -fno-common " \ > BUILD_PREFIX="" \ > BUILD_PREFIX_1="loser-" \ > LANGUAGES="" \ > LIBGCC2_CFLAGS="-O2 -DIN_GCC > -DDEFAULT_TARGET_MACHINE=\"powerpc-unknown-linux-gnu\" -W -Wall > -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem > ./include -fPIC -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -fPIC > -mstrict-align " \ > MULTILIB_CFLAGS=" -fPIC -mstrict-align" T= ecrti.o > make[3]: Entering directory > `/usr/local/home/cyrille/project/llvm/cfrontend/build/gcc' > /usr/local/home/cyrille/project/llvm/cfrontend/build/gcc/xgcc > -B/usr/local/home/cyrille/project/llvm/cfrontend/build/gcc/ > -B/usr/local/home/cyrille/project/llvm/cfrontend/install/powerpc-unknown-linux-gnu/bin/ > > -B/usr/local/home/cyrille/project/llvm/cfrontend/install/powerpc-unknown-linux-gnu/lib/ > > -isystem > /usr/local/home/cyrille/project/llvm/cfrontend/install/powerpc-unknown-linux-gnu/include > > -isystem > /usr/local/home/cyrille/project/llvm/cfrontend/install/powerpc-unknown-linux-gnu/sys-include > > -DIN_GCC -DDEFAULT_TARGET_MACHINE=\"powerpc-unknown-linux-gnu\" -W -Wall > -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem > ./include -I. > -I. -I../../src/gcc -I../../src/gcc/. -I../../src/gcc/../include -fPIC > -mstrict-align -c ecrti.S -o ecrti.o > gccas: /tmp/ccxlWeFz.s:1: syntax error, unexpected $undefined > /tmp/ccxlWeFz.s:1: while reading token: '#' > make[3]: *** [ecrti.o] Erreur 1 > make[3]: Leaving directory > `/usr/local/home/cyrille/project/llvm/cfrontend/build/gcc' > make[2]: *** [ecrti.o] Erreur 2 > make[2]: Leaving directory > `/usr/local/home/cyrille/project/llvm/cfrontend/build/gcc' > make[1]: *** [stmp-multilib] Erreur 2 > make[1]: Leaving directory > `/usr/local/home/cyrille/project/llvm/cfrontend/build/gcc' > make: *** [all-gcc] Erreur 2 > > -------------------------------END Compilation error listing > > It seems that error has to do with gccas which failed to parse a file (?!) > > If anyone has an idea... > > Regards. > > Cyrille Mescam >-- John T. Criswell Research Programmer University of Illinois at Urbana-Champaign "It's today!" said Piglet. "My favorite day," said Pooh.
Cyrille Mescam
2005-Jun-13 16:07 UTC
[LLVMdev] problem compiling the cfrontend on Linux/PPC
On Mon, Jun 13, 2005 at 11:02:10AM -0500, John Criswell wrote:> Cyrille Mescam wrote: > >Hi, > > > > > >When compiling the cfrontend for Linux/PPC architecture on a powermac > >G5, i got > >the following error : > > I hate to ask a silly question, but are you using "make bootstrap" to > build the cfrontend? Your output looks like gccas is being given a > native code assembly language file to parse, and I seem to recall that > that happens if you try doing a "make bootstrap". > > Our cfrontend doesn't follow the standard GCC build procedures (mainly > because we haven't gotten the cfrontend to compile itself with LLVM). > Instead, you have to follow our CFE build procedures > (http://llvm.cs.uiuc.edu/docs/CFEBuildInstrs.html) to get it to build. > > -- John T.In fact, i am using the CFE build procedures. I am on instructions 5. cyrille -- M. Cyrille Mescam (o_ UPMC-LIP6-SRC //\ 8 rue du Capitaine Scott v_/_ 75015 Paris, France
Maybe Matching Threads
- [LLVMdev] problem compiling the cfrontend on Linux/PPC
- [LLVMdev] problem compiling the cfrontend on Linux/PPC
- [LLVMdev] problem compiling the cfrontend on Linux/PPC
- [LLVMdev] problem compiling the cfrontend on Linux/PPC
- [LLVMdev] Re: Creating Release 1.7 Branch at 1:00pm PDT