[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

#!/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

---

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
lib/Transforms/Hello/CMakeFiles/LLVMHello.dir/Hello.cpp.o
[100%] Linking CXX shared module ../../LLVMHello.so
clang-3.8: error: no such file or directory:
'II/llvm-build/lib/Transforms/Hello/LLVMHello.exports'
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