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

Unrecognized C ABI (linux glibc 2.32.0) #6192

Closed
darltrash opened this issue Aug 28, 2020 · 9 comments
Closed

Unrecognized C ABI (linux glibc 2.32.0) #6192

darltrash opened this issue Aug 28, 2020 · 9 comments
Milestone

Comments

@darltrash
Copy link

When i try to compile anything that has C imports, i get the error:

Build Dependencies...start [2] Compile C Objects [1/1] start.S...Unrecognized glibc version: 2.32.0
unrecognized C ABI
tetris...The following command exited with error code 1:
/usr/bin/zig build-exe /home/USERNAME/tetris/src/main.zig --c-source -std=c99 /home/USERNAME/tetris/stb_image-2.22/stb_image_impl.c --library c --library glfw --library epoxy --cache-dir /home/USERNAME/tetris/zig-cache --name tetris -I /home/USERNAME/tetris/stb_image-2.22 --cache on 

Build failed. The following command failed:
/home/USERNAME/tetris/zig-cache/o/oL7mttLLH2knM0DHODbyYiQqAfUtUPHxHllNfa5NPNV94yLrkaiaxb5bkP66d9xn/build /usr/bin/zig /home/USERNAME/tetris /home/USERNAME/tetris/zig-cache

(i got this error code while running zig build in this repo)

OS: Arch Linux (latest)
GlibC: 2.32.0
Architecture: x86_64
Zig version: 0.6.0 (also happens with master)

@darltrash darltrash changed the title Unrecognized C ABI (linux) Unrecognized C ABI (linux glibc 2.32.0) Aug 28, 2020
@Jan200101
Copy link
Contributor

should be dealt with by #6166

@darltrash
Copy link
Author

Still the exact same error.

@s5bug
Copy link
Contributor

s5bug commented Sep 3, 2020

@darltrash Are you on the latest Zig? It works for me.

@darltrash
Copy link
Author

@darltrash Are you on the latest Zig? It works for me.

yes, i am in the latest version, i used the zig-git package

@ghost
Copy link

ghost commented Sep 22, 2020

I encountered the same problem with zig 0.60.0 and glibc 2.32.0. However, I tested the lastest version from zig-git package and tetris compiles and runs just fine now.

@Jan200101
Copy link
Contributor

It was merged into master with #6212

@andrewrk andrewrk added this to the 0.7.0 milestone Sep 26, 2020
@andrewrk
Copy link
Member

Note also that after #6250 when this happens next time (when glibc 2.33 is released), zig will provide glibc 2.32 until 2.33 support is added, so everything will continue working.

@freswa
Copy link

freswa commented Oct 13, 2020

We'd like to package zig for arch, but there is currently no zig release compatible with glibc 2.32. Is there any plan to release this patch as 0.6.1?

@Jan200101
Copy link
Contributor

support for glibc 2.32 in Zig will be released with 0.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants