[LLVMbugs] [Bug 10100] New: Debian sid installs crt{1, i, n}.o in multi-arch lib directory

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jun 8 04:11:16 PDT 2011


           Summary: Debian sid installs crt{1,i,n}.o in multi-arch lib
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: themiwi at users.sourceforge.net
                CC: llvmbugs at cs.uiuc.edu

Created an attachment (id=6711)
 --> (http://llvm.org/bugs/attachment.cgi?id=6711)
Search crt{1,i,n}.o in mutli-arch library directory on Debian

A recent updated of the eglibc package in Debian sid now installs the
crt{1,i,n}.o files in a multi-arch directory under /usr/lib
(/usr/lib/i386-linux-gnu and /usr/lib/x86_64-linux-gnu for i386 and amd64,
respectively). Attached patch teaches tools/Driver/ToolChains.cpp to look there
if compiling natively.

I'm not quite happy with the patch, because on a i386 install, the GccTriple is
i486-linux-gnu, but the multi-arch triple in the installation path is
i386-linux-gnu, so this needs a bit of hackery...

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