Skip to content

Unable to build Windows DLL with output path being in a subdirectory #24993

@alexrp

Description

@alexrp
mkdir outtouch dll.czig cc dll.c -target x86_64-windows-gnu -shared -o out/dll.dll
lld-link: error: No such file or directory

From strace -f:

[pid 251452] open("/home/alexrp/.cache/zig/tmp/3d5a9b4df62c518f/out/dll.lib", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 251452] open("/home/alexrp/.cache/zig/tmp/3d5a9b4df62c518f/out/dll.lib.temp-archive-68197f9.a", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE|O_CLOEXEC, 0666) = -1 ENOENT (No such file or directory)
[pid 251452] write(2, "lld-link: error: No such file or"..., 43lld-link: error: No such file or directory
) = 43

Metadata

Metadata

Assignees

Labels

bugObserved behavior contradicts documented or intended behavioros-windowsMicrosoft WindowsregressionIt worked in a previous version of Zig, but stopped working.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions