Lu Mitnick
2010-Dec-25 19:17 UTC
[LLVMdev] Question of autotools about adding a new target for LLVM
Hello all, I am a beginner of LLVM and want to add a new Target for LLVM. I follow the document (http://llvm.org/docs/WritingAnLLVMBackend.html) to modify autotools/configure.ac. However when I type ./AutoRegen.sh There is an error that "Your autoconf was not detected as being 2.60" I download the source of autoconf 2.60 and install it. And there is the other error that "Your aclocal was not detected as being 1.9.6". Now I don't know where to download the source code of aclocal 1.9.6. Would any developer mind to tell me how to deal with this problem?? I have another question that there is a sentence "You must be using Autoconf version 2.59 or later and your aclocal version should be 1.9 or later." in http://llvm.org/docs/Projects.html I have autoconf 2.68 and aclocal 1.11.1 in my computer. Why couldn't I auto-regen the configure file successfully?? thanks a lot yi-hong -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101226/aa622e86/attachment.html>
Eric Christopher
2010-Dec-26 04:16 UTC
[LLVMdev] Question of autotools about adding a new target for LLVM
On Dec 25, 2010, at 12:17 PM, Lu Mitnick wrote:> Hello all, > > I am a beginner of LLVM and want to add a new Target for LLVM. I follow the document (http://llvm.org/docs/WritingAnLLVMBackend.html) > > to modify autotools/configure.ac. However when I type ./AutoRegen.sh > > There is an error that "Your autoconf was not detected as being 2.60"Yes, we require exactly 2.60.> > I download the source of autoconf 2.60 and install it. And there is the other error that > > "Your aclocal was not detected as being 1.9.6". Now I don't know where to download the source code of > > aclocal 1.9.6. Would any developer mind to tell me how to deal with this problem?? >aclocal is part of the automake package. So you need to install automake 1.9.6.> I have another question that there is a sentence > > "You must be using Autoconf version 2.59 or later and your aclocal version should be 1.9 or later." in http://llvm.org/docs/Projects.html > > I have autoconf 2.68 and aclocal 1.11.1 in my computer. Why couldn't I auto-regen the configure file successfully??We require exact versions to avoid excess churn and for testability. If there's a reason to move to a later version and people are willing to test I'll look to using newer versions to regenerate the file. -eric
Óscar Fuentes
2010-Dec-26 11:55 UTC
[LLVMdev] Question of autotools about adding a new target for LLVM
Lu Mitnick <king19880326 at gmail.com> writes:> I am a beginner of LLVM and want to add a new Target for LLVM. I follow the > document (http://llvm.org/docs/WritingAnLLVMBackend.html) > > to modify autotools/configure.ac. However when I type ./AutoRegen.shNever tried it, but for adding a new target to the cmake build you need to add the target name to this list on $LLVM_ROOT_DIR/CMakeLists.txt: set(LLVM_ALL_TARGETS Alpha ARM Blackfin CBackend CellSPU ... Then create the CMakeLists.txt files on your target's directory with the list of your source files, tablegen calls, etc (you can use any other target as a model) Finally, follow http://www.llvm.org/docs/CMake.html for building. HTH. [snip]
NAKAMURA Takumi
2010-Dec-27 01:18 UTC
[LLVMdev] Question of autotools about adding a new target for LLVM
Good morning, Lu. You may do; 1) build and install certain autotools with --prefix=/path/to/your/autotools 2) run the line; PATH=/path/to/your/autotools/bin:$PATH autoconf/AutoRegen.sh Good luck! ...Takumi
Lu Mitnick
2010-Dec-27 08:32 UTC
[LLVMdev] Question of autotools about adding a new target for LLVM
Hello Takumi and all, I follow the steps and run ./autoconf/AutoRegen.sh successfully(haven't modified configure.ac yet) However there is a little difference between origin configure file and the generated one. $diff configure configure.bak 1394c1394 < --enable-optimized Compile with optimizations enabled (default is YES) ---> --enable-optimized Compile with optimizations enabled (default isNO) I am wondering to know whether I miss some parameter with executing AutoRegen.sh?? thanks a lot yi-hong 2010/12/27 NAKAMURA Takumi <geek4civic at gmail.com>> Good morning, Lu. > > You may do; > > 1) build and install certain autotools with > --prefix=/path/to/your/autotools > 2) run the line; PATH=/path/to/your/autotools/bin:$PATH > autoconf/AutoRegen.sh > > > Good luck! ...Takumi >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101227/4cff2908/attachment.html>
Possibly Parallel Threads
- [LLVMdev] Question of autotools about adding a new target for LLVM
- [LLVMdev] Trouble with sample project's autoconf
- [LLVMdev] Question of executing AutoRegen.sh to regen configure file
- [LLVMdev] Question of executing AutoRegen.sh to regen configure file
- [LLVMdev] Question of executing AutoRegen.sh to regen configure file