[llvm-bugs] [Bug 25465] New: Regression(r248850): Can't build compiler-rt on OS X with a locally built and installed clang

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Nov 9 13:18:28 PST 2015


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

            Bug ID: 25465
           Summary: Regression(r248850): Can't build compiler-rt on OS X
                    with a locally built and installed 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

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.

-- 
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/80a34cd2/attachment.html>


More information about the llvm-bugs mailing list