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

unable to run compiler as it crashes #14393

Closed
kamaaina opened this issue Jan 21, 2023 · 6 comments
Closed

unable to run compiler as it crashes #14393

kamaaina opened this issue Jan 21, 2023 · 6 comments
Labels
bug Observed behavior contradicts documented or intended behavior

Comments

@kamaaina
Copy link

Zig Version

0.10.1

Steps to Reproduce and Observed Behavior

on arch linux install with package manager and try to create and executable and compile it

zig-crash

Expected Behavior

the simple 'hello world' application would compile and run

@kamaaina kamaaina added the bug Observed behavior contradicts documented or intended behavior label Jan 21, 2023
@andrewrk
Copy link
Member

Please file an issue with the maintainer of the arch linux package.

@daurnimator
Copy link
Collaborator

Arch's zig 0.10.1 was built without specifying ZIG_TARGET_MCPU which is meant to be baseline.
Is zig ignoring the cpu and using my native cpu features?

@daurnimator
Copy link
Collaborator

without specifying ZIG_TARGET_MCPU which is meant to be baseline.

Looks like that was changed recently: d27007c#diff-1e7de1ae2d059d21e1dd75d5812d5a34b0222cef273b7c3a2af62eb747f9d20aR121
Will add ZIG_TARGET_MCPU and push a new package now

@uncomfyhalomacro
Copy link

without specifying ZIG_TARGET_MCPU which is meant to be baseline.

Looks like that was changed recently: d27007c#diff-1e7de1ae2d059d21e1dd75d5812d5a34b0222cef273b7c3a2af62eb747f9d20aR121 Will add ZIG_TARGET_MCPU and push a new package now

I noticed this change too and was about to send that diff. thanks for sharing that you noticed it too. I was planning to add zig in openSUSE before 0.11.x lands

@uncomfyhalomacro
Copy link

I can confirm that fixed it. 😀

@kamaaina
Copy link
Author

thanks everyone, i can confirm it is working as well

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

4 participants