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

Build hangs when using single thread on Windows and Linux #21434

Open
akarpovskii opened this issue Sep 17, 2024 · 1 comment
Open

Build hangs when using single thread on Windows and Linux #21434

akarpovskii opened this issue Sep 17, 2024 · 1 comment
Labels
bug Observed behavior contradicts documented or intended behavior

Comments

@akarpovskii
Copy link

akarpovskii commented Sep 17, 2024

Zig Version

0.14.0-dev.1576+5d7fa5513

Steps to Reproduce and Observed Behavior

It was working fine on 0.13.0.
On master, zig build -j1 hangs at Code Generation on Windows and Linux, works well on macOS.

Repro:

  • zig init an empty project.

  • zig build -j1 --global-cache-dir "./.zig-global" hangs
    You may need to clear caches to reproduce the issue.

[2] Compile Build Script
├─ Semantic Analysis
├─ compiler_rt
│  └─ AST Lowering
├─ zig_libc
│  └─ AST Lowering
└─ Code Generation

Expected Behavior

zig build -j1 finishes successfully.

@akarpovskii akarpovskii added the bug Observed behavior contradicts documented or intended behavior label Sep 17, 2024
@chrboesch
Copy link
Contributor

Can confirm this error on Linux even if you pass an absolute path.

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
Projects
None yet
Development

No branches or pull requests

2 participants