Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: NoSpaceLeft with MacOS target #19026

Closed
motiejus opened this issue Feb 21, 2024 · 1 comment · Fixed by #19027
Closed

error: NoSpaceLeft with MacOS target #19026

motiejus opened this issue Feb 21, 2024 · 1 comment · Fixed by #19027
Labels
bug Observed behavior contradicts documented or intended behavior linking os-macos
Milestone

Comments

@motiejus
Copy link
Contributor

motiejus commented Feb 21, 2024

Bug report coming from a hermetic_cc_toolchain user.

Zig Version

0.12.0-dev.2631+3069669bc

Steps to Reproduce and Observed Behavior

hello.c

#include <stdio.h>

int main() {
    printf("Hello, World!\n");
    return 0;
}

Command:

$ zig c++ -target aarch64-macos-none -shared -o /tmp/bazq1.dylib hello.c
error: NoSpaceLeft

If the output path is shorter (15 bytes instead of 16), it works:

$ zig c++ -target aarch64-macos-none -shared -o /tmp/bazq.dylib hello.c
$

Expected Behavior

It should compile with filenames longer than 16 characters.

@motiejus motiejus added the bug Observed behavior contradicts documented or intended behavior label Feb 21, 2024
@motiejus
Copy link
Contributor Author

cc @kubkon

jacobly0 added a commit to jacobly0/zig that referenced this issue Feb 21, 2024
@jacobly0 jacobly0 added this to the 0.12.0 milestone Feb 21, 2024
kubkon pushed a commit that referenced this issue Feb 21, 2024
ghost pushed a commit to motiejus/hermetic_cc_toolchain that referenced this issue Feb 22, 2024
motiejus pushed a commit to uber/hermetic_cc_toolchain that referenced this issue Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior linking os-macos
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants