[llvm-bugs] [Bug 48329] New: lld fails linking an msvc object file with "permission denied"
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Nov 29 07:54:11 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=48329
Bug ID: 48329
Summary: lld fails linking an msvc object file with "permission
denied"
Product: lld
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: COFF
Assignee: unassignedbugs at nondot.org
Reporter: dpldobrev at protonmail.com
CC: llvm-bugs at lists.llvm.org
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: https://pastebin.com/WT0C5JPu . It works with revision
0c8f9b8099fd0500cd885bc699924e20371014ff.
--
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/20201129/b20d5c9f/attachment.html>
More information about the llvm-bugs
mailing list