[LLVMdev] llvm-build: error: invalid native target: XYZ (not in project)

Craig Topper craig.topper at gmail.com
Wed Sep 19 23:29:10 PDT 2012


You need to add your target to autoconf/configure.ac. Here are the
directions from http://llvm.org/docs/WritingAnLLVMBackend.html

To get LLVM to actually build and link your target, you need to add it to
the TARGETS_TO_BUILD variable. To do this, you modify the configure script
to know about your target when parsing the --enable-targets option. Search
the configure script for TARGETS_TO_BUILD, add your target to the lists
there (some creativity required), and then reconfigure. Alternatively, you
can change autotools/configure.ac and regenerate configure by running
./autoconf/AutoRegen.sh.

On Wed, Sep 19, 2012 at 11:20 PM, Vikram Singh <vsp1729 at gmail.com> wrote:

> I am trying to build cross compiler for custom processor (say XYZ) but
> on compilation it is giving error
>
> llvm-build: error: invalid native target: XYZ (not in project)
>
> I have tried configuring like these
>
> 1. ./configure --target=XYZ
> 2. ./configure --target=XYZ --enable-targets=XYZ
> 3. ./configure --enable-targets=XYZ
>
> But every time it is not recognising the XYZ processor.
> What could be the problem?
>
> Thanks & Regards
> VSP
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>


-- 
~Craig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120919/70957f30/attachment.html>


More information about the llvm-dev mailing list