[LLVMbugs] [Bug 8339] New: Clang driver has trouble parsing Gentoo-built linker version string

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Oct 8 09:33:37 PDT 2010


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

           Summary: Clang driver has trouble parsing Gentoo-built linker
                    version string
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: cdavis at mymail.mines.edu
                CC: llvmbugs at cs.uiuc.edu


Daniel, have I got a pathological driver test case for you.

I have a Gentoo prefix installed on one of my systems. As you may or may not
know, this is a setup where a Gentoo directory tree is installed in some other
directory on the system. This being Gentoo, they insist on building everything,
including the compiler and linker, from source.

Since the linker gets built from source (with patches), the version string is
modified like so:

chip at chips-computer-3 ~ $ ld -v
@(#)PROGRAM:ld  PROJECT:ld64-97.14 (Gentoo binutils-apple-3.2.3-r1)
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Note the added part in parentheses (with Clang-style emphasis added by me).
This isn't present in normal Apple builds of the linker. Unfortunately, the
-mlinker-version argument barfs on this when the driver passes it to the
frontend. This causes the tests Driver/hello.c and Driver/nostdincxx.cpp to
fail horribly.

I think we need to chop off the part in the parentheses when we build the
driver. What do you think?

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