[llvm-bugs] [Bug 25459] New: Regression: Can't build compiler_rt on OS X with bootstrapped clang

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Nov 9 10:37:12 PST 2015


https://llvm.org/bugs/show_bug.cgi?id=25459

            Bug ID: 25459
           Summary: Regression: Can't build compiler_rt on OS X with
                    bootstrapped clang
           Product: compiler-rt
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: compiler-rt
          Assignee: unassignedbugs at nondot.org
          Reporter: nicolasweber at gmx.de
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

cd /tmp
svn co --force https://llvm.org/svn/llvm-project/compiler-rt/trunk@252468
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

-- 
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/20151109/08bf28df/attachment.html>


More information about the llvm-bugs mailing list