[cfe-dev] LLVMHello Build Error

Keith Smith via cfe-dev cfe-dev at lists.llvm.org
Sun Sep 13 08:13:12 PDT 2015

I pulled the latest version of llvm, 247526


I ran cmake as follows

# clangcmake.sh
cmake -G "Eclipse CDT4 - Unix Makefiles" -DLLVM_TARGETS_TO_BUILD="X86"
-DCMAKE_C_COMPILER=clang ../llvm


I ran

make LLVMHello

It started

Scanning dependencies of target LLVMHello_exports
[  0%] Creating export file for LLVMHello
[  0%] Built target LLVMHello_exports

and goutput this error

Scanning dependencies of target LLVMHello
[100%] Building CXX object
[100%] Linking CXX shared module ../../LLVMHello.so
clang-3.8: error: no such file or directory:
make[3]: *** [lib/LLVMHello.so] Error 1
make[2]: *** [lib/Transforms/Hello/CMakeFiles/LLVMHello.dir/all] Error 2
make[1]: *** [lib/Transforms/Hello/CMakeFiles/LLVMHello.dir/rule] Error 2
make: *** [LLVMHello] Error 2

More information about the cfe-dev mailing list