<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Linker errors after installing/compiling LLVM/CLANG on Xcode"
href="https://bugs.llvm.org/show_bug.cgi?id=42528">42528</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Linker errors after installing/compiling LLVM/CLANG on Xcode
</td>
</tr>
<tr>
<th>Product</th>
<td>Build scripts
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>release blocker
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>cmake
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>joan.lluch@icloud.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>