[cfe-dev] Targeting powerpc-unknown-eabi

MurphEngineer murphy.berzish at gmail.com
Thu May 12 08:44:05 PDT 2011


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


--
View this message in context: http://clang-developers.42468.n3.nabble.com/Targeting-powerpc-unknown-eabi-tp454860p2932338.html
Sent from the Clang Developers mailing list archive at Nabble.com.



More information about the cfe-dev mailing list