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: unassignedb...@nondot.org
          Reporter: c...@mail.ru
                CC: llvm-bugs@lists.llvm.org, smithp...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to