Ahmed Samara via llvm-dev
2018-Mar-15 23:41 UTC
[llvm-dev] "Build Experimental Targets not working"
I tried to build LLVM to include the RISCV (experimental) target. I noticed that the instructions on the wiki were out of dat because they said to use '-DLLVM_TARGETS_TO_BUILD', but this gave a warning to use `LLVM_EXPERIMENTAL_TARGETS_TO_BUILD` as well (or instead?). So I compiled with these options: cmake -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_C_COMPILER=gcc> -DCMAKE_CXX_COMPILER=g++ -DCMAKE_INSTALL_PREFIX=../install > -DLLVM_OPTIMIZED_TABLEGEN=On -LLVM_EXPERIMENTAL_TARGETS_TO_BUILD="RISCV" > -DLLVM_TARGETS_TO_BULD="RISCV" .. >However after completing that compilation I get this message: CMake Warning:> Manually-specified variables were not used by the project: > LLVM_TARGETS_TO_BULDAnd RISCV does not show up as a target in `llc --version` -- Ahmed Samara M.S. Computer Engineering -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180315/15eedee9/attachment-0001.html>
Craig Topper via llvm-dev
2018-Mar-19 04:51 UTC
[llvm-dev] "Build Experimental Targets not working"
The error says you misspelled LLVM_TARGETS_TO_BUILD with BULD. You also seem to be missing a D in front of LLVM_EXPERIMENTAL_TARGETS_TO_BUILD. ~Craig On Thu, Mar 15, 2018 at 4:41 PM, Ahmed Samara via llvm-dev < llvm-dev at lists.llvm.org> wrote:> I tried to build LLVM to include the RISCV (experimental) target. I > noticed that the instructions on the wiki were out of dat because they said > to use '-DLLVM_TARGETS_TO_BUILD', but this gave a warning to use ` > LLVM_EXPERIMENTAL_TARGETS_TO_BUILD` as well (or instead?). > > So I compiled with these options: > > cmake -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_C_COMPILER=gcc >> -DCMAKE_CXX_COMPILER=g++ -DCMAKE_INSTALL_PREFIX=../install >> -DLLVM_OPTIMIZED_TABLEGEN=On -LLVM_EXPERIMENTAL_TARGETS_TO_BUILD="RISCV" >> -DLLVM_TARGETS_TO_BULD="RISCV" .. >> > > However after completing that compilation I get this message: > > CMake Warning: >> Manually-specified variables were not used by the project: >> LLVM_TARGETS_TO_BULD > > > And RISCV does not show up as a target in `llc --version` > > -- > Ahmed Samara > M.S. Computer Engineering > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180318/3449a3cd/attachment.html>
Seemingly Similar Threads
- [8.0.0 Release] rc1 has been tagged
- Segmentation fault when using llc to target riscv.
- LLVM tool-chain for RISC-V
- How to use tablegen to describe branches where the status register is implicitly set?
- Why does Clang use GCCBuiltInFunctions? How can intrinsics that don't depend on GCC be added?