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

Broken build for jj-cli #250

Closed
senekor opened this issue Jun 8, 2024 · 6 comments · Fixed by #293
Closed

Broken build for jj-cli #250

senekor opened this issue Jun 8, 2024 · 6 comments · Fixed by #293

Comments

@senekor
Copy link

senekor commented Jun 8, 2024

related issue in the jj repo

jj provides prebuilt binaries itself, but only statically linked against musl on linux. Which is fine, because that works on any linux system, whatever the system libc is. However, cargo binstall jj-cli fell back to the (borked) binary provided by quickinstall. I did not notice this at first, even though it does say so in the output of cargo-binstall.

I'm not sure what the right thing to do here is, but having cargo-binstall install from a different source than the official one, even though the official one does in fact provide binaries, is incredibly confusing.

@senekor
Copy link
Author

senekor commented Jun 8, 2024

for reference, this seems to be the CI job that built jj

@NobodyXu
Copy link
Member

NobodyXu commented Jun 9, 2024

We use glibc 2.17, probably that's the reason of the failure?

@polarathene
Copy link

We use glibc 2.17, probably that's the reason of the failure?

As per linked discussion comment, yes glibc 2.33 would avoid the issue, or updating CI from Zig 0.10.0 to a version from Zig 0.12.0 (you have many CI runs apparently failing when I was looking over workflow history, not sure if this subtle bug affects other bins you distribute).

@NobodyXu
Copy link
Member

NobodyXu commented Sep 12, 2024

Previously we have some build failure with newer zig-cc (I think it might be related to cargo-auditable), I think it's time to try it again

@polarathene
Copy link

If you have more context on that failure it would be good to know. Perhaps it was also fixed from Zig 0.12.0? I like to use zig for builds but I am a little wary at times due to these non-obvious caveats/surprises occurring 😓

@NobodyXu
Copy link
Member

If you have more context on that failure it would be good to know.

rust-cross/cargo-zigbuild#162

IIRC the upstream issue in zig-cc is still open

Anyway we don't use cargo-audiable anymore (because it can be overwritten by the crate), I have bumped zig-cc to latest version

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

Successfully merging a pull request may close this issue.

3 participants