<html>
<head>
<base href="https://bugs.llvm.org/">
</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 fails linking an msvc object file with "permission denied""
href="https://bugs.llvm.org/show_bug.cgi?id=48329">48329</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>lld fails linking an msvc object file with "permission denied"
</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>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>COFF
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dpldobrev@protonmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>I'm trying to link msvc with the latest lld,
f502b14d40e751fe00afc493ef0d08f196524886 from llvm-project. I get this:
lld-link: error: permission denied
I debugged it and saw that this occurs while writing the import library which
is now obligatory with msvc. A temporary file's created for the .lib, with a
temporary name. When lld attemtps to rename the .lib to its real name, this
fails. I've also noticed the .lib has 0 bytes of content just before renaming
is attempted.
This is my code: <a href="https://pastebin.com/WT0C5JPu">https://pastebin.com/WT0C5JPu</a> . It works with revision
0c8f9b8099fd0500cd885bc699924e20371014ff.</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>