[llvm-bugs] [Bug 34291] New: When attempting to compile/link Windows target from a WSL bash instance the driver attempts to load windows linker
llvm-bugs at lists.llvm.org
Tue Aug 22 17:33:26 PDT 2017
Bug ID: 34291
Summary: When attempting to compile/link Windows target from a
WSL bash instance the driver attempts to load windows
Assignee: unassignedclangbugs at nondot.org
Reporter: rennieallen at gmail.com
CC: llvm-bugs at lists.llvm.org
Invocation (simple single function c source file):
$ clang -target x86_64-pc-windows-msvc18.0.0 -fuse-ld=lld -o foo.exe foo.c
clang: warning: unable to find a Visual Studio installation; try running Clang
from a developer command prompt [-Wmsvc-not-found]
clang: error: unable to execute command: Executable "lld-link.exe" doesn't
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The missing Visual Studio installation can presumably be easily rectified, but
the concern is the "lld-link.exe doesn't exist" error.
My understanding (perhaps I am wrong) is that lld on Linux should be able to
link a Windows executable as of 5.0, and that if the driver is Linux hosted it
should invoke the Linux hosted lld even when a windows target is selected.
$ which clang
$ clang --version
clang version 5.0.0 (http://root.cern.ch/git/clang.git
Thread model: posix
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-bugs