<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: Can't build compiler_rt on OS X with bootstrapped clang"
href="https://llvm.org/bugs/show_bug.cgi?id=25459">25459</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Regression: Can't build compiler_rt on OS X with bootstrapped 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>cd /tmp
svn co --force <a href="https://llvm.org/svn/llvm-project/compiler-rt/trunk@252468">https://llvm.org/svn/llvm-project/compiler-rt/trunk@252468</a>
compiler-rt
mkdir compiler-rt-build && cd compiler-rt-build
cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON
-DLLVM_ENABLE_THREADS=OFF
-DCMAKE_C_COMPILER=/Users/thakis/src/chromefetch/src/third_party/llvm-build/Release+Asserts/bin/clang
-DCMAKE_CXX_COMPILER=/Users/thakis/src/chromefetch/src/third_party/llvm-build/Release+Asserts/bin/clang++
-DSANITIZER_MIN_OSX_VERSION="10.7"
-DLLVM_CONFIG_PATH=/Users/thakis/src/chromefetch/src/third_party/llvm-build/Release+Asserts/bin/llvm-config
../compiler-rt
ninja
Fails with
[1624/1624] Generating ../macho_embedded/libclang_rt.soft_static.a
FAILED: cd
/Users/thakis/src/chromefetch/src/third_party/llvm-build/compiler-rt/lib/builtins
&& /Applications/CMake.app/Contents/bin/cmake -E make_directory
/Users/thakis/src/chromefetch/src/third_party/llvm-build/compiler-rt/lib/darwin
&& lipo -output
/Users/thakis/src/chromefetch/src/third_party/llvm-build/compiler-rt/lib/darwin/libclang_rt.osx.a
-create
error:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo:
no input files specified
fatal error:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo:
Usage:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo
[input_file] ... [-arch <arch_type> input_file] ... [-info] [-detailed_info]
[-output output_file] [-create] [-arch_blank <arch_type>] [-thin <arch_type>]
[-remove <arch_type>] ... [-extract <arch_type>] ... [-extract_family
<arch_type>] ... [-verify_arch <arch_type> ...] [-replace <arch_type>
<file_name>] ...
FAILED: cd
/Users/thakis/src/chromefetch/src/third_party/llvm-build/compiler-rt/lib/builtins
&& /Applications/CMake.app/Contents/bin/cmake -E make_directory
/Users/thakis/src/chromefetch/src/third_party/llvm-build/compiler-rt/lib/darwin
&& lipo -output
/Users/thakis/src/chromefetch/src/third_party/llvm-build/compiler-rt/lib/darwin/libclang_rt.cc_kext.a
-create
error:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo:
no input files specified
fatal error:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo:
Usage:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo
[input_file] ... [-arch <arch_type> input_file] ... [-info] [-detailed_info]
[-output output_file] [-create] [-arch_blank <arch_type>] [-thin <arch_type>]
[-remove <arch_type>] ... [-extract <arch_type>] ... [-extract_family
<arch_type>] ... [-verify_arch <arch_type> ...] [-replace <arch_type>
<file_name>] ...
ninja: build stopped: subcommand failed.
Failed: ['/usr/bin/python', 'tools/clang/scripts/update.py', '--bootstrap',
'--force-local-build', '--run-tests', '--no-stdin-hack']
I think the problem is that cmake decides that there are no supported arches:
-- Got ld supported ARCHES: armv6 armv7 armv7s arm64 i386 x86_64 x86_64h armv6m
armv7k armv7m armv7em
-- Toolchain supported arches:
armv6;armv7;armv7s;arm64;i386;x86_64;x86_64h;armv6m;armv7k;armv7m;armv7em
-- Finding valid architectures for osx...
-- OSX supported arches:
-- Finding valid architectures for 10.4...
-- OSX 10.4 supported arches: i386;x86_64
-- Finding valid architectures for iossim...
-- iOS Simulator supported arches:
-- Compiler-RT supported architectures:
-- Configuring done
-- Generating done
-- Build files have been written to:
/Users/thakis/src/chromefetch/src/third_party/llvm-build/compiler-rt
In the last working build (r247874, sadly 2 months old by now) that section
looks like so instead:
-- Got ld supported ARCHES: armv6 armv7 armv7s arm64 i386 x86_64 x86_64h armv6m
armv7m armv7em
-- Toolchain supported arches:
armv6;armv7;armv7s;arm64;i386;x86_64;x86_64h;armv6m;armv7m;armv7em
-- Finding valid architectures for osx...
-- OSX supported arches: i386;x86_64
-- Finding valid architectures for iossim...
-- iOS Simulator supported arches: i386;x86_64
-- Compiler-RT supported architectures: i386;x86_64;i386;x86_64
-- Looking for rpc/xdr.h
-- Looking for rpc/xdr.h - not found
-- Looking for tirpc/rpc/xdr.h
-- Looking for tirpc/rpc/xdr.h - not found
-- Configuring done</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>