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

zig package does not build on x86_64 #182

Open
roestii opened this issue Sep 20, 2024 · 1 comment
Open

zig package does not build on x86_64 #182

roestii opened this issue Sep 20, 2024 · 1 comment

Comments

@roestii
Copy link

roestii commented Sep 20, 2024

I tried to build zig 0.13.0 using t2 install but it failed with a lot of linking errors as the one seen below:
error: ld.lld: undefined symbol: __isoc23_strtoul

I tried to search for the error and it might be caused by zig trying to link against glibc 2.38. I tried to fiddle around with the cmake options from the zig.conf in the zig package and when I removed the -DZIG_HOST_TARGET and the -DZIG_TARGET it magically worked (as seen in the attached diff). So likely a zig issue? This really seems like a workaround and I don't have the most experience with build systems so one might help me out here.

zig_conf.patch

Thanks!

@cosmadragos73
Copy link

yes, symbols are affected by build command changes, especially the -D, they are later on passed as a DEFINE to be sorted out.

will need more info

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

2 participants