-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Improve alternative libc support #19340
Comments
What about |
The problem I have is:
|
re 1 if its just a matter of wanting to know which ones to implement first, remove |
This reminds me a reference from Andrew. When it comes to C code, it's common to use I recently tried to port picolibc to zig build. However, so far I have only encountered a link problem. As is currently the case with emscripten, it would be interesting to add initial support for the rtos and microlibc interfaces, since cross-compilation is also mentioned in microcontrollers. |
@kassane Was your linker issue related to libc, libm, libutil, etc not being found? I ran into a similar issue when I tried adding my own libc to Zig. The only thing I did was add it into the abi enum and any switches which didn't have an else. |
Hi @RossComputerGuy , Sorry for the delay in responding. Yes, I've been having problems with linking, specifically link scripting with The most critical part of these tests is the toolchain, as compatibility is never 100% (maybe 99.9%) and this where more attention to detail is required, especially for a solo developer. |
Oh, gotcha. Yeah when I tried adding my own libc into my Zig fork, I ran into this linker issue:
I got these errors despite targeting glibc, seems like it isn't straight forward to add new libc support into Zig. I'm hoping with this issue that we can get a simpler way to specify custom or unsupported libc without patching Zig. |
This is not actionable enough to remain on the issue tracker, please take it to a discussion forum. |
Right now, I'm looking to develop my own Linux distro using Zig and I have to supply a libc. A libc implementation which I am interested in using is LLVM's libc, I am also interested in using a pure Zig libc but it is harder to detect and supply what the libc. Currently, these are the things I am looking for Zig being able to do:
The text was updated successfully, but these errors were encountered: