-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
problem building some programs on musl #1361
Comments
This might just be due to an out-of-date |
I reported the issue to the libc crate: rust-lang/libc#3190
|
Looks like a slightly different issue right? Could you make a new one? On our side, we should probably disable that functionality for the time being. |
As far as I understand, the issue is almost the same. This ticket was worked-around with this commit , so now instead of uucore failing and producing the logs in this ticket, the utilities which depend on uucore's utmpx functionality are failing when building for musl. The proper long-term fix is to implement the functionality on libc's side, which I'll try to work on. |
I'd probably call this more of a platform support documentation issue than a coding bug. I can add some |
That's a big hill to climb; I wish you luck! |
I investigated this further, and while the utmpx functions are exported by musl in a header-file, those are only stub implementations doing nothing. I'll try to improve the build errors, but compiling e.g. the utility "users" using musl stubs doesn't really make sense, because while it would compile, it would produce a runtime error (this explains why only stubs are provided). |
@Ecordonnier Just checking in here. I see that rust-lang/libc#3190 and rust-lang/libc#3213 are still open. Should we poll there to see if we can get them merged? |
@tertsdiepraam I'm not very familiar with the rust libc project, but my understanding is that this PR is changing the API and therefore tagged as "breakage-candidate" so that it can be merged when they do a release with non-backwards-compatible API. I asked them for confirmation in the PR. |
Interesting! I'll subscribe to the PR. Thanks! |
The required functions were added to libc ( rust-lang/libc@e3caaf6 ), however those changes will be available via cargo only once libc 0.3 is released ( rust-lang/libc#3248 ). The main branch of libc is now used for the development of 0.3, and the version 0.2 is developed on the branch libc-0.2 (and hence the libc release 0.2.152 does NOT contain e3caaf6b0ea08a ). Edit May 2024: The status is still the same. libc version 1.0 will be needed in order to fix this, and this will probably take at least several months: rust-lang/libc#3248 |
cabulertion.
i had problem while building uutils on musl
namely i am getting errors :
The text was updated successfully, but these errors were encountered: