[llvm-bugs] [Bug 49503] New: lld-link: error: failed to write the output file: permission denied
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Mar 9 20:10:08 PST 2021
https://bugs.llvm.org/show_bug.cgi?id=49503
Bug ID: 49503
Summary: lld-link: error: failed to write the output file:
permission denied
Product: lld
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: All Bugs
Assignee: unassignedbugs at nondot.org
Reporter: cbum at mail.ru
CC: llvm-bugs at lists.llvm.org, smithp352 at googlemail.com
What I have:
Windows 7 x64
Visual Studio 2017 Community
LLVM v11.1.0 for Windows x64
test.c file contains:
//--- code start
#include <io.h>
int main(void)
{
if( _write(1, "Hello!\n", 7) != 7) return 1;
return 0;
}
//--- code end
When compiling this way:
clang d:\test.c -o d:\test.exe
No errors
When compiling using LLD-LINK:
clang -fuse-ld=lld d:\test.c -o d:\test.exe
An error occurs:
lld-link: error: failed to write the output file: permission denied
clang: error: linker command failed with exit code 1 (use -v to see invocation)
But with 11.0.0 version of LLVM, everything is fine.
What's wrong?
--
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/20210310/b19777cc/attachment.html>
More information about the llvm-bugs
mailing list