<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - lld-link shouldn't rely on lib.exe for creating empty import libraries"
href="https://llvm.org/bugs/show_bug.cgi?id=27389">27389</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>lld-link shouldn't rely on lib.exe for creating empty import libraries
</td>
</tr>
<tr>
<th>Product</th>
<td>lld
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>nicolasweber@gmx.de
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>I'm trying to build chromium's base library on a non-Windows host, using
clang-cl, lld-link, and a few local patches.
Everything works fine until the final link, which fails with:
python gyp-win-tool link-wrapper environment.x86 False
/Users/thakis/src/llvm-build/bin/lld-link /nologo /IMPLIB:./base.dll.lib /DLL
/OUT:./base.dll /PDB:./base.dll.pdb @./base.dll.rsp
unable to find lib.exe in PATH: : No such file or directory
(also note the duplicate :s)
Since lld includes a /lib mode, it seems that it's in scope that lld shouldn't
have to rely on lib.exe to create empty import libraries. lld-link /lib
currently doesn't know a /def: flag, but it should probably learn about it. But
once LibDriver knows that flag, maybe lld doesn't even have to spawn a
subprocess for creating the empty import lib but could just do a function call
to LibDriver.
(rc.exe and ctres.exe seem less in scoped for a linker :-) )</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>