-
Notifications
You must be signed in to change notification settings - Fork 347
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
Provide musl build #357
Comments
Rust does have musl targets apparently: https://doc.rust-lang.org/nightly/rustc/platform-support.html so this sounds doable with cross-compilation. |
Perhaps building releases on an earlier Ubuntu version would help? I'm currently using ubuntu-latest which is 22.04 (edit: looks like it defaults to 20.04), but 20.04 and even 18.04 are available: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources |
Having tried it myself, I had to patch out the explicit libstd++ linking in
You probably won't need this when building in a musl only environment, but my build environment is a bit peculiar, as I build this as part of a much larger bundle of tools, and I'm not going to bother with Alpine. And this is what I have in my Cargo config.
I also have these set in the environment
edit: BTW, you'll need a GCC 12.1+ based toolchain for the linker flag |
Ubuntu 18.04 comes with glibc 2.27. CentOS7 18.04 comes with glibc 2.17. Thus, Regarding musl, I've built some rust cli code with musl before. Below is my
Some rust cli utilities provide musl precompiled binary, for example:
I'm not familiar with github ci flow but using musl as keyword, we can see
|
Segmentation fault
|
That would be nice. And it could perhaps solve tickets like this one? #446 |
I enabled the Software Collections repo and installed |
Failed on try run the binary on CentOS 7, the binary is downloaded from the release page. |
Done, 0.51.1 has musl prebuilt binaries. |
Note open issue #563. |
Since 0.51.1, musl releases are not published. Could you please add them so that I can use the newer versions of difftastic on my old OS? |
Better semicolons
Is it possible to provide a musl build as well?
I downloaded latest prebuilt tar difft-x86_64-unknown-linux-gnu.tar.gz
(https://github.com/Wilfred/difftastic/releases/tag/0.35.0) but found it cannot
run on centos 7 machine.
The text was updated successfully, but these errors were encountered: