[LLVMbugs] [Bug 4045] New: llvm-gcc not using collect2, missing paths to .o files

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Apr 23 13:55:03 PDT 2009


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

           Summary: llvm-gcc not using collect2, missing paths to .o files
           Product: tools
           Version: trunk
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-gcc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nlewycky at google.com
                CC: llvmbugs at cs.uiuc.edu


On my ARM box, the llvm-gcc build fails because it runs the wrong command to
link. For example:

  $ llvm-gcc/build/prev-gcc/xgcc x.o -o x -v
[...]
ld --eh-frame-hdr -dynamic-linker /lib/ld-linux.so.3 -X -m armelf_linux_eabi -o
x /usr/lib/crt1.o /usr/lib/crti.o crtbegin.o x.o -lgcc --as-needed -lgcc_s
--no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed crtend.o
/usr/lib/crtn.o

vs the system compiler:

 $ gcc-4.2 x.o -o x -v
[...]
/usr/lib/gcc/arm-linux-gnueabi/4.2.4/collect2 --eh-frame-hdr -dynamic-linker
/lib/ld-linux.so.3 -X -m armelf_linux_eabi -o x
/usr/lib/gcc/arm-linux-gnueabi/4.2.4/../../../crt1.o
/usr/lib/gcc/arm-linux-gnueabi/4.2.4/../../../crti.o
/usr/lib/gcc/arm-linux-gnueabi/4.2.4/crtbegin.o
-L/usr/lib/gcc/arm-linux-gnueabi/4.2.4 -L/usr/lib/gcc/arm-linux-gnueabi/4.2.4
-L/usr/lib/gcc/arm-linux-gnueabi/4.2.4/../../.. x.o -lgcc --as-needed -lgcc_s
--no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed
/usr/lib/gcc/arm-linux-gnueabi/4.2.4/crtend.o
/usr/lib/gcc/arm-linux-gnueabi/4.2.4/../../../crtn.o

To be clear, prev-gcc/collect2 does exist, I'm not sure why it isn't using it
and why it isn't passing the right paths to crtbegin.o, etc (also in prev-gcc).


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