[LLVMbugs] [Bug 17041] New: clang-cl should respect the link on the PATH [at least] when run under Cygwin

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Aug 30 01:49:34 PDT 2013


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

            Bug ID: 17041
           Summary: clang-cl should respect the link on the PATH [at
                    least] when run under Cygwin
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: timurrrr at google.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

I have both VS2010 and VS2012 installed but use VS2010 most of the time.
$ which link
/cygdrive/c/Program Files (x86)/Microsoft Visual Studio 10.0/VC/Bin/link

For some reason, the VS2012 linker doesn't work for me in Cygwin:
$ /cygdrive/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\
11.0/VC/bin/link -?
/cygdrive/c/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/link.exe:
error while loading shared libraries: mspdb110.dll: cannot open shared object
file: No such file or directory
[Probably because I've put LIB/LIBPATH manually in Cygwin .bashrc]

As of r189583,
$ clang-cl hello.cpp
clang-cl.exe: error: linker command failed due to signal (use -v to see
invocation)

$ clang-cl -### hello.cpp
...
 "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\link.exe"
"-out:hello.exe" "-nologo" "C:\\cygwin\\tmp\\hello-aaf0b3.obj"

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130830/e6aa3072/attachment.html>


More information about the llvm-bugs mailing list