[llvm-bugs] [Bug 42528] New: Linker errors after installing/compiling LLVM/CLANG on Xcode
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Jul 7 04:08:41 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=42528
Bug ID: 42528
Summary: Linker errors after installing/compiling LLVM/CLANG on
Xcode
Product: Build scripts
Version: trunk
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: release blocker
Priority: P
Component: cmake
Assignee: unassignedbugs at nondot.org
Reporter: joan.lluch at icloud.com
CC: llvm-bugs at lists.llvm.org
Builds of LLVM+clang fail with linker errors when using Xcode.
The CMAKE command was:
cmake -G Xcode -DCMAKE_INSTALL_PREFIX=/Users/joan/LLVM-9/install
-DLLVM_ENABLE_PROJECTS=clang ../llvm
Command was executed from a newly created "build" directory in the
"llvm-project" directory
"llvm-project" directory was cloned from the gitHub repository using git clone
While compiling in xCode, the following libraries are reported by the linker to
be missing, (In fact, they are not created anywhere):
clang: error: no such file or directory:
'/Users/joan/LLVM-9/llvm-project/build/Debug/lib/libclangAnalysis.a'
clang: error: no such file or directory:
'/Users/joan/LLVM-9/llvm-project/build/Debug/lib/libclangAST.a'
clang: error: no such file or directory:
'/Users/joan/LLVM-9/llvm-project/build/Debug/lib/libclangStaticAnalyzerCore.a'
clang: error: no such file or directory:
'/Users/joan/LLVM-9/llvm-project/build/Debug/lib/libclangStaticAnalyzerFrontend.a'
clang: error: no such file or directory:
'/Users/joan/LLVM-9/llvm-project/build/Debug/lib/libclangStaticAnalyzerCheckers.a'
clang: error: no such file or directory:
'/Users/joan/LLVM-9/llvm-project/build/Debug/lib/libclangStaticAnalyzerCore.a'
clang: error: no such file or directory:
'/Users/joan/LLVM-9/llvm-project/build/Debug/lib/libclangCrossTU.a'
clang: error: no such file or directory:
'/Users/joan/LLVM-9/llvm-project/build/Debug/lib/libclangIndex.a'
clang: error: no such file or directory:
'/Users/joan/LLVM-9/llvm-project/build/Debug/lib/libclangFrontend.a'
clang: error: no such file or directory:
'/Users/joan/LLVM-9/llvm-project/build/Debug/lib/libclangDriver.a'
clang: error: no such file or directory:
'/Users/joan/LLVM-9/llvm-project/build/Debug/lib/libclangParse.a'
clang: error: no such file or directory:
'/Users/joan/LLVM-9/llvm-project/build/Debug/lib/libclangSerialization.a'
clang: error: no such file or directory:
'/Users/joan/LLVM-9/llvm-project/build/Debug/lib/libclangSema.a'
clang: error: no such file or directory:
'/Users/joan/LLVM-9/llvm-project/build/Debug/lib/libclangAnalysis.a'
clang: error: no such file or directory:
'/Users/joan/LLVM-9/llvm-project/build/Debug/lib/libclangEdit.a'
clang: error: no such file or directory:
'/Users/joan/LLVM-9/llvm-project/build/Debug/lib/libclangFormat.a'
clang: error: no such file or directory:
'/Users/joan/LLVM-9/llvm-project/build/Debug/lib/libclangToolingInclusions.a'
clang: error: no such file or directory:
'/Users/joan/LLVM-9/llvm-project/build/Debug/lib/libclangToolingCore.a'
clang: error: no such file or directory:
'/Users/joan/LLVM-9/llvm-project/build/Debug/lib/libclangRewrite.a'
clang: error: no such file or directory:
'/Users/joan/LLVM-9/llvm-project/build/Debug/lib/libclangASTMatchers.a'
clang: error: no such file or directory:
'/Users/joan/LLVM-9/llvm-project/build/Debug/lib/libclangAST.a'
clang: error: no such file or directory:
'/Users/joan/LLVM-9/llvm-project/build/Debug/lib/libclangLex.a'
clang: error: no such file or directory:
'/Users/joan/LLVM-9/llvm-project/build/Debug/lib/libclangBasic.a'
The above missing libraries are not created anywhere but similarly "obj."
prefixed ones are created in several sub-directories deep inside the 'build'
directory. For example, "libobj.clangBasic.a" is created in
'llvm-project/build/tools/clang/lib/Basic/LLVM.build/Debug/obj.clangBasic.build/Objects-normal'.
However "libclangBasic.a" is not created anywhere, which makes the linker to
fail.
Everything under ‘llvm’ directory is properly compiled with no issues, so the
'llc' executable (for instance) can be created just fine. However sources under
‘clang’ directory do not create the required libraries for 'clang'
Thanks in advance for looking into this
John
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190707/fa09cb66/attachment-0001.html>
More information about the llvm-bugs
mailing list