Skip to content

"error: unexpected" on Ubuntu 18.04 #20447

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

Closed
CaioLC opened this issue Jun 28, 2024 · 3 comments
Closed

"error: unexpected" on Ubuntu 18.04 #20447

CaioLC opened this issue Jun 28, 2024 · 3 comments
Labels
bug Observed behavior contradicts documented or intended behavior
Milestone

Comments

@CaioLC
Copy link

CaioLC commented Jun 28, 2024

Zig Version

0.14.0

Steps to Reproduce and Observed Behavior

I'm running zig on a relatively old machine with ZorinOS 15 (builds on top of Ubuntu 18.04).

Steps to reproduce:
installed version 0.14 and added to path
mkdir hello
cd hello
zig init
zig build
// outputs "error: unexpected"

The error seems related to the build command. If I run zig run .src/main.zig it compiles and run the default main.zig file.

I switched back to version 0.13.0 and it worked fine.

Expected Behavior

zig build should build the template project.

@CaioLC CaioLC added the bug Observed behavior contradicts documented or intended behavior label Jun 28, 2024
@squeek502
Copy link
Collaborator

squeek502 commented Jun 29, 2024

If possible, it would be helpful if you could try building Zig from source to get a Debug version of the compiler. That would give a stack trace so we'd know what the unexpected errno is and where it's coming from.

If not, any relevant information about your setup might be useful (filesystem, linux kernel version, glibc version, etc). Possibly related: #20423

@nektro
Copy link
Contributor

nektro commented Jun 29, 2024

good link, https://ubuntu.com/18-04 notes that it uses linux 4.15

@andrewrk andrewrk added this to the unplanned milestone Aug 13, 2024
@alexrp
Copy link
Member

alexrp commented Apr 11, 2025

We require Linux 4.19. See also the discussion on #23514.

@alexrp alexrp closed this as not planned Won't fix, can't repro, duplicate, stale Apr 11, 2025
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

5 participants