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: [email protected]
Reporter: [email protected]
CC: [email protected]
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._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs