Keith Smith via llvm-dev
2015-Sep-17 01:51 UTC
[llvm-dev] Problems building LLVMHello, spaces in path
I recently had a problem creating LLVMHello. I used this CMake file #!/bin/sh # clangcmake.sh cmake -G "Eclipse CDT4 - Unix Makefiles" -DLLVM_TARGETS_TO_BUILD="X86" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE="Debug" -DCMAKE_ECLIPSE_VERSION=4.5 -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang ../llvm then I ran make LLVMHello and the build failed on an error about LLVMHello.export The problem turned out to be that the parent directory path had a space in one of the folder names. I removed the space and now LLVMHello builds properly. Hope you find this useful. Keith Smith
Chris Bieneman via llvm-dev
2015-Sep-17 16:03 UTC
[llvm-dev] Problems building LLVMHello, spaces in path
Spaces in paths are generally just a pain, but without the actual error message there is little we can do to fix the error. If you reproduce the issue again, please file a bug on https://llvm.org/bugs/ <https://llvm.org/bugs/>, and include the error message. Thanks, -Chris> On Sep 16, 2015, at 6:51 PM, Keith Smith via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > I recently had a problem creating LLVMHello. > > I used this CMake file > > #!/bin/sh > # clangcmake.sh > cmake -G "Eclipse CDT4 - Unix Makefiles" -DLLVM_TARGETS_TO_BUILD="X86" > -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE="Debug" > -DCMAKE_ECLIPSE_VERSION=4.5 -DCMAKE_CXX_COMPILER=clang++ > -DCMAKE_C_COMPILER=clang ../llvm > > > > then I ran > > make LLVMHello > > and the build failed on an error about LLVMHello.export > > > The problem turned out to be that the parent directory path had a > space in one of the folder names. > > I removed the space and now LLVMHello builds properly. > > Hope you find this useful. > > Keith Smith > _______________________________________________ > 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/20150917/636f7804/attachment.html>
Keith Smith via llvm-dev
2015-Sep-18 02:26 UTC
[llvm-dev] Problems building LLVMHello, spaces in path
Done. 24871. On Thu, Sep 17, 2015 at 12:03 PM, Chris Bieneman <beanz at apple.com> wrote:> Spaces in paths are generally just a pain, but without the actual error > message there is little we can do to fix the error. > > If you reproduce the issue again, please file a bug on > https://llvm.org/bugs/, and include the error message. > > Thanks, > -Chris > > On Sep 16, 2015, at 6:51 PM, Keith Smith via llvm-dev > <llvm-dev at lists.llvm.org> wrote: > > I recently had a problem creating LLVMHello. > > I used this CMake file > > #!/bin/sh > # clangcmake.sh > cmake -G "Eclipse CDT4 - Unix Makefiles" -DLLVM_TARGETS_TO_BUILD="X86" > -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE="Debug" > -DCMAKE_ECLIPSE_VERSION=4.5 -DCMAKE_CXX_COMPILER=clang++ > -DCMAKE_C_COMPILER=clang ../llvm > > > > then I ran > > make LLVMHello > > and the build failed on an error about LLVMHello.export > > > The problem turned out to be that the parent directory path had a > space in one of the folder names. > > I removed the space and now LLVMHello builds properly. > > Hope you find this useful. > > Keith Smith > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > >-- "Don't play what's there, play what's not there." - Miles Davis "Science is the belief in ignorance of experts" - Richard Fenyman
Apparently Analagous Threads
- [LLVMdev] LLVMHello example fails with "undefined symbol"
- [LLVMdev] All the passes (even the LLVMHello.so) fail at doFinalization()
- [LLVMdev] All the passes (even the LLVMHello.so) fail at doFinalization()
- [LLVMdev] All the passes (even the LLVMHello.so) fail at doFinalization()
- [LLVMdev] All the passes (even the LLVMHello.so) fail at doFinalization()