<html>
<head>
<base href="https://llvm.org/bugs/" />
</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 --- - Regression(r248850): Can't build compiler-rt on OS X with a locally built and installed clang"
href="https://llvm.org/bugs/show_bug.cgi?id=25465">25465</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Regression(r248850): Can't build compiler-rt on OS X with a locally built and installed clang
</td>
</tr>
<tr>
<th>Product</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>nicolasweber@gmx.de
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>At r248853 (the regression is at r248850 I think, but with r248853 I get the
same build errors as on trunk -- the two follow-up commits to 248850 fixed a
few bugs):
0. Build llvm/clang/libcxx, then run `ninja install`.
1. Check out compiler-rt somewhere.
2. Set up the compiler-rt build to use the just-installed clang for building:
cmake -GNinja -DCMAKE_C_COMPILER=path/to/llvm-bootstrap-install/bin/clang
-DCMAKE_CXX_COMPILER=path/to/llvm-bootstrap-install/bin/clang++
-DLLVM_CONFIG_PATH=path/to/llvm-bootstrap-install/Release+Asserts/bin/llvm-config
../compiler-rt
3. `ninja`
Build fails like so:
[892/2689] Building C object
lib/builtins/CMakeFiles/clang_rt.hard_pic_armv7_macho_embedded.dir/arm/aeabi_frsub.c.o
FAILED:
/Users/thakis/src/chromefetch/src/third_party/llvm-bootstrap-install/bin/clang
-fPIC -fvisibility=hidden -DVISIBILITY_HIDDEN -Wall -fomit-frame-pointer -arch
armv7 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk
-arch armv7 -mfloat-abi=hard -target thumbv7-apple-darwin-eabi -MMD -MT
lib/builtins/CMakeFiles/clang_rt.hard_pic_armv7_macho_embedded.dir/arm/aeabi_frsub.c.o
-MF
lib/builtins/CMakeFiles/clang_rt.hard_pic_armv7_macho_embedded.dir/arm/aeabi_frsub.c.o.d
-o
lib/builtins/CMakeFiles/clang_rt.hard_pic_armv7_macho_embedded.dir/arm/aeabi_frsub.c.o
-c
/Users/thakis/src/chromefetch/src/crttest/compiler-rt/lib/builtins/arm/aeabi_frsub.c
error: unable to create target: 'No available targets are compatible with this
triple, see -version for the available targets.'
1 error generated.
[892/2689] Building C object
lib/builtins/CMakeFiles/clang_rt.hard_pic_armv7_macho_embedded.dir/arm/aeabi_drsub.c.o
FAILED:
/Users/thakis/src/chromefetch/src/third_party/llvm-bootstrap-install/bin/clang
-fPIC -fvisibility=hidden -DVISIBILITY_HIDDEN -Wall -fomit-frame-pointer -arch
armv7 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk
-arch armv7 -mfloat-abi=hard -target thumbv7-apple-darwin-eabi -MMD -MT
lib/builtins/CMakeFiles/clang_rt.hard_pic_armv7_macho_embedded.dir/arm/aeabi_drsub.c.o
-MF
lib/builtins/CMakeFiles/clang_rt.hard_pic_armv7_macho_embedded.dir/arm/aeabi_drsub.c.o.d
-o
lib/builtins/CMakeFiles/clang_rt.hard_pic_armv7_macho_embedded.dir/arm/aeabi_drsub.c.o
-c
/Users/thakis/src/chromefetch/src/crttest/compiler-rt/lib/builtins/arm/aeabi_drsub.c
error: unable to create target: 'No available targets are compatible with this
triple, see -version for the available targets.'
1 error generated.
[892/2689] Building ASM object
lib/builtins/CMakeFiles/clang_rt.hard_pic_armv7_macho_embedded.dir/arm/divmodsi4.S.o
FAILED:
/Users/thakis/src/chromefetch/src/third_party/llvm-bootstrap-install/bin/clang
-fPIC -fvisibility=hidden -DVISIBILITY_HIDDEN -Wall -fomit-frame-pointer
-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk
-arch armv7 -mfloat-abi=hard -target thumbv7-apple-darwin-eabi -MMD -MT
lib/builtins/CMakeFiles/clang_rt.hard_pic_armv7_macho_embedded.dir/arm/divmodsi4.S.o
-MF
lib/builtins/CMakeFiles/clang_rt.hard_pic_armv7_macho_embedded.dir/arm/divmodsi4.S.o.d
-o
lib/builtins/CMakeFiles/clang_rt.hard_pic_armv7_macho_embedded.dir/arm/divmodsi4.S.o
-c
/Users/thakis/src/chromefetch/src/crttest/compiler-rt/lib/builtins/arm/divmodsi4.S
clang -cc1as: error: unknown target triple 'armv7-apple-ios9.0.0-eabi', please
use -triple or -arch
[892/26
Things work fine at 248849. Things also work fine if I don't pass
-DCMAKE_C_COMPILER and -DCMAKE_CXX_COMPILER.</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>