-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Segmentation fault on Debian with C libraries #6227
Comments
You're missing |
Thanks, that fixed the seg fault... ... but now I get
However this is a different problem and seems to be specific to sqlite3. |
That's weird as I've just tested the very same code you're using on the same Linux distribution. |
It's 0.6.0, specifically 0.6.0-1 installed by apt, using the instructions here. My sqlite is libsqlite3-dev, 3.27.2-3. |
I guess the problem has been fixed sometimes between the time |
Will do. I also just checked the one from the download page, zig-linux-x86_64-0.6.0+26140678a.tar.xz. This had the same linker error. |
Confirmed I don't get that error if I build zig myself from git master (however, looking at the output from zig version it seems like it's the same source used to build zig-linux-x86_64-0.6.0+26140678a.tar.xz, which didn't work) |
Not sure if this will help but I did
and 0.6.0 has these:
everything else is the same (apart from the generated dir names in the cache) |
the change in directory order is probably; 2148336 |
@komuw I agree, thanks for pointing that out. Sorry to be labouring the point but I can't figure out why zig built by me worked, and the downloaded tarfile did not, even though both showed exactly the same zig version, ie. edit: both zig built by me and the tarball have exactly the same ordering of |
Same problem in version |
GLFW C library working fine with zig 0.7.1 on Manjaro |
@faraazahmad if you could test with sqlite, that would be useful as Manjaro is not based on Debian so might tell us something. |
@pedro-w I just ran the exact code as in the top of this issue with sqlite and it ran fine |
This now works on Debian 11 and Zig 0.10.0-dev.946+9dd839b7e
|
As far as I can see this can be closed because the issue is fixed / zig has moved on anyway. |
When I attempt to
zig build run
this code:I get
I would expect this to be OK (it doesn't seem to be specific to sqlite, I picked it as a library with a simple exported function to test)
LLDB is not very helpful
I am using Debian x86_64
My
build.zig
isand I am (I believe) using zig build's
pkg-config
support to link sqlite.The text was updated successfully, but these errors were encountered: