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

陳韋任 chenwj at iis.sinica.edu.tw
Tue Jan 4 23:23:51 PST 2011


Hi, folks

  I am "stll" trying to build LLVM-GCC 4.2 on a Linux/PS3 machine, which
has a 64-bit OS.

  Here is my system information and configuration options:

-----------------------------------------------------------------
$ uname -a
Linux ps3 2.6.32-rc2-00995-g96ebbe6-dirty #2 SMP Fri Oct 2 15:12:28 CST
2009 ppc64 Cell Broadband Engine, altivec supported GNU/Linux
$ gcc --version
gcc (Gentoo 4.4.4-r2 p1.3, pie-0.4.5) 4.4.4
$ ../llvm-gcc-4.2-2.8.source/configure --prefix=/tmp/chenwj/install
--disable-multilib --program-prefix=llvm-
--enable-llvm=/tmp/chenwj/install --enable-languages=c,c++
-----------------------------------------------------------------
 
  And here is the compiling error,

------------------------------------------------------------------
/tmp/chenwj/build/./prev-gcc/xgcc -B/tmp/chenwj/build/./prev-gcc/
-B/tmp/chenwj/install/powerpc64-unknown-linux-gnu/bin/   -g -O2 -DIN_GCC
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-Wold-style-definition -Wmissing-format-attribute    -DHAVE_CONFIG_H
-DGENERATOR_FILE  -o build/genmodes \
            build/genmodes.o build/errors.o .././libiberty/libiberty.a
build/genmodes -h > tmp-modes.h
/bin/sh: line 1:  9623 Segmentation fault      build/genmodes -h >
tmp-modes.h
make[3]: *** [s-modes-h] Error 139
make[3]: Leaving directory `/tmp/chenwj/build/gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory `/tmp/chenwj/build'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/tmp/chenwj/build'
make: *** [all] Error 2
------------------------------------------------------------------

  Any suggestion appreciated.

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