[LLVMbugs] [Bug 5008] New: linking with llvm-gcc results in "/usr/bin/ld: error: gcc: malformed archive header name at 1046"

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Sep 19 04:43:52 PDT 2009


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

           Summary: linking with llvm-gcc results in "/usr/bin/ld: error:
                    gcc: malformed archive header name at 1046"
           Product: new-bugs
           Version: 2.6
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: bero at arklinux.org
                CC: llvmbugs at cs.uiuc.edu


$ cat test.c
#include <stdio.h>
int main(int argc, char **argv) {
    puts("test");
}
$ llvm-gcc -o test.o test.c
$ llvm-gcc -o test test.o
/usr/bin/ld: error: gcc: malformed archive header name at 1046
/usr/bin/ld: error: gcc: malformed archive header name at 1046
collect2: ld returned 1 exit status
$ llvm-gcc -use-gold-plugin -o test test.o
/usr/bin/ld: error: gcc: malformed archive header name at 1046
/usr/bin/ld: error: gcc: malformed archive header name at 1046
collect2: ld returned 1 exit status
$ gcc -o test test.o # THIS WORKS
$ ld --version |head -n1
GNU gold (Linux/GNU Binutils 2.20.51.0.1.20090905) 1.9
$ llvm-gcc --version |head -n1
llvm-gcc (GCC) 4.2.1 (Based on Apple Inc. build 5649) (LLVM build 2.6)
$ gcc --version |head -n1
gcc (GCC) 4.4.2 20090912 (prerelease)


llvm and llvm-gcc are both 2.6 branch checkouts from today (llvm rev. 82192,
llvm-gcc rev. 81414)


-- 
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