Building LLVM on Linux/PowerPC failed

Hi, folks

  I am trying to build LLVM 2.8 Release on a Linux/PowerPC machine.
Actually, the PowerPC is a PS3.

  Here is my system information:

陳韋任 wrote:

  I am trying to build LLVM 2.8 Release on a Linux/PowerPC machine.
Actually, the PowerPC is a PS3.

  Here is my system information:

----------------------------------------------------------------------
$ 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.3.2-r3 p1.6, pie-10.1.5) 4.3.2
-----------------------------------------------------------------------

Does configuring as:

    ./configure --host=ppc-unknown-linux-gnu --build=ppc-unknown-linux-gnu \
              --target=ppc-unknown-linux-gnu

work for you?

Erik

Hi erik,

  "make OPTIMIZE_OPTION=-O2" seems work for me. Perhaps I can
try yours. Thanks!

  By the way, is the information on
http://llvm.org/docs/GettingStarted.html#requirements
up-to-date? It said that LLVM compiled with gcc on Linux/PowerPC has no
native code generation and the gcc-based C/C++ frontend does not build.
Are them still true now?

  Thanks!

Regards,
chenwj