[LLVMbugs] [Bug 12950] New: compiler-rt fails to build with bootstrapped clang at r157206

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri May 25 15:11:26 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=12950

             Bug #: 12950
           Summary: compiler-rt fails to build with bootstrapped clang at
                    r157206
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nicolasweber at gmx.de
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


1. Do a regular build of llvm + clang + compiler-rt at r157206 (works fine),
with gcc or an existing clang as compiler
2. Do a bootstrap build of llvm + clang + compiler-rt, with the just-built
clang

Expected: Works.

Actual: compiler-rt fails to build.

The error message is just:

make[5]: ***
[/Volumes/MacintoshHD2/src/chrome-git/src/third_party/llvm-build/tools/clang/runtime/compiler-rt/clang_darwin/cc_kext/armv7/libcompiler_rt.a]
Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: ***
[/Volumes/MacintoshHD2/src/chrome-git/src/third_party/llvm-build/tools/clang/runtime/compiler-rt/clang_darwin/profile_ios/armv6/libcompiler_rt.a]
Error 1
make[4]: *** [BuildRuntimeLibraries] Error 2
rm
/Volumes/MacintoshHD2/src/chrome-git/src/third_party/llvm-build/Release+Asserts/lib/clang/3.2/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


When building with VERBOSE=1, I see that ar is called like `ar 2> /dev/null`,
which explains why no error output is printed. If I remove that and rerun the
failing command, the output is:



/usr/bin/ranlib: object:
/Volumes/MacintoshHD2/src/chrome-git/src/third_party/llvm-build/tools/clang/runtime/compiler-rt/clang_darwin/cc_kext/armv6/libcompiler_rt.a(absvdi2.o)
malformed object (unknown load command 1)
ar: internal ranlib command failed

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list