Targeting powerpc-unknown-eabi

Hi,

I'd like to use clang to target OSless powerpc embedded. Is it suitable?

I configured llvm and clang with --target=powerpc-unknown-eabi. Are
there any other options I need to build a cross compiler? (host =
i686-pc-linux-gnu)

The build dies with the following:

make[4]: Entering directory `/home/e0082888/llvm/tools/clang/lib/Lex'
llvm[4]: Compiling HeaderMap.cpp for Debug build
cc1plus: error: unrecognized command line option "-maltivec"

Any suggestions?

Thanks.

-Tom

Tom Hawkins wrote:

Hi,

I'd like to use clang to target OSless powerpc embedded. Is it suitable?

I configured llvm and clang with --target=powerpc-unknown-eabi. Are
there any other options I need to build a cross compiler? (host =
i686-pc-linux-gnu)

The build dies with the following:

make[4]: Entering directory `/home/e0082888/llvm/tools/clang/lib/Lex'
llvm[4]: Compiling HeaderMap.cpp for Debug build
cc1plus: error: unrecognized command line option "-maltivec"

Any suggestions?

I've just encountered the same problem under the same setup in the latest
SVN version. Apparently the makefile doesn't know the difference between
"host" powerpc and "target" powerpc and is trying to compile with -maltivec
on an i686. Of course, this fails instantly. My suggestion is to edit
llvm/tools/clang/lib/Lex/Makefile and comment out the one line that
references -maltivec. This worked for me and I was able to continue building
normally. Hope that helps, assuming you are still interested in fixing this
one year later!

Murphy Berzish