[LLVMdev] Building LLVM-GCC on Linux/PowerPC failed

陳韋任 chenwj at iis.sinica.edu.tw
Wed Jan 5 20:42:48 PST 2011


Hi, Erik

  If I do NOT add "--disable-multilib" option, then I will get the
following error,

----------------------------------------------------------------------
make[4]: Entering directory `/tmp/chenwj/build/gcc'
/tmp/chenwj/build/./gcc/xgcc -B/tmp/chenwj/build/./gcc/
-B/tmp/chenwj/install/powerpc64-unknown-linux-gnu/bin/
-B/tmp/chenwj/install/powerpc64-unknown-linux-gnu/lib/ -isystem
/tmp/chenwj/install/powerpc64-unknown-linux-gnu/include -isystem
/tmp/chenwj/install/powerpc64-unknown-linux-gnu/sys-include  -O2 -O2 -g
-O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I.
-I32 -I../../llvm-gcc-4.2-2.8.source/gcc
-I../../llvm-gcc-4.2-2.8.source/gcc/32
-I../../llvm-gcc-4.2-2.8.source/gcc/../include
-I../../llvm-gcc-4.2-2.8.source/gcc/../libcpp/include
-I../../llvm-gcc-4.2-2.8.source/gcc/../libdecnumber -I../libdecnumber
-I/tmp/chenwj/install/include -m32 -fPIC -mstrict-align -g0
-finhibit-size-directive -fno-inline-functions -fno-exceptions
-fno-zero-initialized-in-bss -fno-toplevel-reorder  -msdata=none \
          -c ../../llvm-gcc-4.2-2.8.source/gcc/crtstuff.c -DCRT_BEGIN \
          -o 32/crtbegin.o
../../llvm-gcc-4.2-2.8.source/gcc/crtstuff.c:1: error: -m64 requires a
PowerPC64 cpu
make[4]: *** [32/crtbegin.o] Error 1
make[4]: Leaving directory `/tmp/chenwj/build/gcc'
make[3]: *** [extra32] Error 2
make[3]: Leaving directory `/tmp/chenwj/build/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/tmp/chenwj/build/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/tmp/chenwj/build'
make: *** [all] Error 2
----------------------------------------------------------------------

Regards,
chenwj

-- 
Wei-Ren Chen (陳韋任)
Parallel Processing Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667




More information about the llvm-dev mailing list