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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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:

c...@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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to