Nikola Smiljanic
2013-Nov-02 10:59 UTC
[LLVMdev] Clang can't be built out of tree on windows
This seems to be a CMake issue that I just can't figure out. The only reason I'm sending an email to llvmdev is in hope of getting the attention of more CMake ninjas (I'm not subscribed to this list so please reply to all). By "out of source" I mean llvm at c:/llvm and clang at c:/clang and both are configured separately so that I get two solutions. Basically ClangDriverOptions and ClangCC1AsOptions will fail saying: 'C:\llvm-build\bin\\llvm-tblgen.exe' is not recognized as an internal or external command This is correct, because the actual path to tblgen has Debug in it (bin\Debug\llvm-tblgen), it should go right between those two backlashes (bin\\). Only these two project call llvm-tblgen, other clang project seem to be using clang-tblgen which works fine. I've added some tracing to llvm/cmake/modules/tablegen.cmake where tablegen CMake macro is defined but haven't had much success in figuring out where the wrong path is coming from. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131102/6d62dfd1/attachment.html>
Tim Northover
2013-Nov-02 14:11 UTC
[LLVMdev] [cfe-dev] Clang can't be built out of tree on windows
Hi Nikola,> Basically ClangDriverOptions and ClangCC1AsOptions will fail saying: > 'C:\llvm-build\bin\\llvm-tblgen.exe' is not recognized as an internal or > external commandI'm neither a Windows dev nor a CMake hacker so I probably can't help with the real issue. But I do know there are a couple of CMake variables that might work around it: LLVM_TABLEGEN is a path to the .exe. This either misses the point completely, or may help you carry on while a proper solution is found. Or it may simply be wrong. Cheers. Tim.
Nikola Smiljanic
2014-Jan-16 22:36 UTC
[LLVMdev] [cfe-dev] Clang can't be built out of tree on windows
I'm seeing a new issue with out of source builds. llvm-configure crashes with access violation when I try to configure clang. Everything works find if clang directory is inside llvm/tools. On Sun, Nov 3, 2013 at 1:11 AM, Tim Northover <t.p.northover at gmail.com>wrote:> Hi Nikola, > > > Basically ClangDriverOptions and ClangCC1AsOptions will fail saying: > > 'C:\llvm-build\bin\\llvm-tblgen.exe' is not recognized as an internal or > > external command > > I'm neither a Windows dev nor a CMake hacker so I probably can't help > with the real issue. But I do know there are a couple of CMake > variables that might work around it: LLVM_TABLEGEN is a path to the > .exe. > > This either misses the point completely, or may help you carry on > while a proper solution is found. Or it may simply be wrong. > > Cheers. > > Tim. >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140117/7d935569/attachment.html>