Skip to content

"error: LLDReportedFailure" while attempting to "zig build-exe hello.zig" on a RAMDrive on Win10 #8997

@OscarL

Description

@OscarL

Using zig-windows-x86_64-0.8.0-dev.2749+167754b31.zip on Win 10 1909.

Was testing that -dev version due to #8995.

With R: being a RAMDrive created with ImDisk, I got the following:

R:\zig-windows-x86_64-0.8.0-dev.2749+167754b31 > zig run hello.zig
Hello, world!

R:\zig-windows-x86_64-0.8.0-dev.2749+167754b31 >
R:\zig-windows-x86_64-0.8.0-dev.2749+167754b31 > zig build-exe hello.zig
lld-link: error: cannot open output file hello.exe: function not supported
error: LLDReportedFailure

R:\zig-windows-x86_64-0.8.0-dev.2749+167754b31 >

Suspecting the issue lies on RAMDrive incompatibility... moved the zig folder to a regular HDD, and there the build-exe was successful.

I've seen similar bugs related to RAMDrives on other languages/programs, for example, this bug in Python (a comment there mentions "The above-mentioned cases are all due to WINAPI CreateFileW failing").

Might be a too-niche use case, but... being able to run/build things from RAM helps a lot on older processors / slow HDDs.

In any case, I thought it is always better report this kind of things, right?

[EDIT]; Noticed that after each failed zig build-exe hello.zig invocation, a new empty file named hello.exe.tmpb9d9e3c appears in the current directory (last portion of the filename varies each time).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavioros-windowsMicrosoft WindowsupstreamAn issue with a third party project that Zig uses.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions