Vikram Singh
2012-Sep-20 06:20 UTC
[LLVMdev] llvm-build: error: invalid native target: XYZ (not in project)
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120920/d3b170bd/attachment.html>
Craig Topper
2012-Sep-20 06:29 UTC
[LLVMdev] llvm-build: error: invalid native target: XYZ (not in project)
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>
Vikram Singh
2012-Sep-26 03:36 UTC
[LLVMdev] llvm-build: error: invalid native target: XYZ (not in project)
Thanks for your suggestion. I get it done. VSP -- View this message in context: http://llvm.1065342.n5.nabble.com/llvm-build-error-invalid-native-target-XYZ-not-in-project-tp49104p49302.html Sent from the LLVM - Dev mailing list archive at Nabble.com.
Seemingly Similar Threads
- [LLVMdev] llvm-build: error: invalid native target: XYZ (not in project)
- [LLVMdev] Question of autotools about adding a new target for LLVM
- [LLVMdev] Generating unusual instruction
- [LLVMdev] Registering '-march=' option for LLC
- Not registering Port with VSP