[LLVMdev] problem compiling the cfrontend on Linux/PPC

John Criswell criswell at cs.uiuc.edu
Mon Jun 13 09:02:10 PDT 2005


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.




More information about the llvm-dev mailing list