[LLVMdev] compiler-rt compile problem for 32bit OS X

Erick Tryzelaar erick.tryzelaar at gmail.com
Fri May 20 17:28:46 PDT 2011


I'm running into a compile problem with commit 131656 of compiler-rt.
I'm compiling llvm with:

$ CXX='g++ -m32' CC='gcc -m32' CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32
./configure --disable-bindings --{build,host,target}=i686-apple-darwin
--enable-targets=x86,x86_64,cbe --enable-optimized
$ make
$ make install


It will eventually error out with:

/Users/erickt/Projects/llvm/gcc-i386/llvm-build-Release/Release+Asserts/bin/clang
-no-integrated-as -ccc-install-dir
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ -arch armv6
-fvisibility=hidden -DVISIBILITY_HIDDEN -mkernel -DKERNEL_USE -Wall
-Werror -O3 -fomit-frame-pointer -miphoneos-version-min=1.0 -isysroot
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk
-mthumb -c -o /Users/erickt/Projects/llvm/gcc-i386/llvm-build-Release/tools/clang/runtime/compiler-rt/clang_darwin/cc_kext/armv6/SubDir.lib/ashldi3.o
/Users/erickt/Projects/llvm/llvm/projects/compiler-rt/lib/ashldi3.c
error: unable to create target: 'No available targets are compatible
with this triple, see -version for the available targets.'
error: 1 error generated.
unable to create target: 'No available targets are compatible with
this triple, see -version for the available targets.'
1 error generated.
make[5]: *** [/Users/erickt/Projects/llvm/gcc-i386/llvm-build-Release/tools/clang/runtime/compiler-rt/clang_darwin/cc_kext/armv6/SubDir.lib/adddf3.o]
Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: *** [/Users/erickt/Projects/llvm/gcc-i386/llvm-build-Release/tools/clang/runtime/compiler-rt/clang_darwin/cc_kext/armv6/SubDir.lib/absvdi2.o]
Error 1
error: unable to create target: 'No available targets are compatible
with this triple, see -version for the available targets.'
error: 1unable error  generated.
to create target: 'No available targets are compatible with this
triple, see -version for the available targets.'
1 error generated.
make[5]: *** [/Users/erickt/Projects/llvm/gcc-i386/llvm-build-Release/tools/clang/runtime/compiler-rt/clang_darwin/cc_kext/armv6/SubDir.lib/addsf3.o]
Error 1
make[5]: *** [/Users/erickt/Projects/llvm/gcc-i386/llvm-build-Release/tools/clang/runtime/compiler-rt/clang_darwin/cc_kext/armv6/SubDir.lib/absvsi2.o]
Error 1
error: unable to create target: 'No available targets are compatible
with this triple, see -version for the available targets.'
error: unable to create target: 'No available targets are compatible
with this triple, see -version for the available targets.'
1 error generated.
1 error generated.
make[5]: *** [/Users/erickt/Projects/llvm/gcc-i386/llvm-build-Release/tools/clang/runtime/compiler-rt/clang_darwin/cc_kext/armv6/SubDir.lib/addvdi3.o]
Error 1
make[5]: *** [/Users/erickt/Projects/llvm/gcc-i386/llvm-build-Release/tools/clang/runtime/compiler-rt/clang_darwin/cc_kext/armv6/SubDir.lib/ashldi3.o]
Error 1
error: unable to create target: 'No available targets are compatible
with this triple, see -version for the available targets.'
1 error generated.
make[5]: *** [/Users/erickt/Projects/llvm/gcc-i386/llvm-build-Release/tools/clang/runtime/compiler-rt/clang_darwin/cc_kext/armv6/SubDir.lib/addvsi3.o]
Error 1
make[4]: *** [BuildRuntimeLibraries] Error 2
rm /Users/erickt/Projects/llvm/gcc-i386/llvm-build-Release/Release+Asserts/lib/clang/3.0/lib/darwin/.dir
make[3]: *** [compiler-rt/.makeall] Error 2
make[2]: *** [all] Error 1
make[1]: *** [clang/.makeall] Error 2
make: *** [all] Error 1


This does not happen in the previous commit of 131098. Is this my
fault, or am I hitting a bug?



More information about the llvm-dev mailing list