-
-
Notifications
You must be signed in to change notification settings - Fork 760
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
build failure of openssl-sys on illumos within rustup project #1839
Comments
I'd bet on this being caused by alexcrichton/openssl-src-rs#173. Ultimately it appears to be caused by } else if target.contains("illumos") {
// The default 'ar' on illumos uses a non-standard flags,
// but the OS comes bundled with a GNU-compatible variant.
//
// Use the GNU-variant to match other Unix systems.
name = format!("g{}", tool);
self.cmd(&name) |
That logic came from @smklein over in rust-lang/cc-rs#585. If As a workaround you can also explicitly set the |
I'm pretty sure It looks like these tools are bundled in The (IMO more complex) alternative would be to pick through all the flags for illumos, and pass them differently - the non- |
In rustup, we fetch the docker from rust CI cache. The dockerfile for illumos job from https://github.com/rust-lang/rust/blob/master/src/ci/docker/host-x86_64/dist-x86_64-illumos/Dockerfile. We use it in https://github.com/rust-lang/rustup/blob/master/ci/docker/x86_64-unknown-illumos/Dockerfile
It seems we already set the AR environment. But it didn't work. |
Oh now that's interesting. The way that's supposed to get picked up is:
Clearly something in that path doesn't work, but it's hard to tell exactly what without access to an illumos system. Any chance you could try adding some debug prints to the above and run the CI to see where the envvar does/does not get picked up? |
I think we should also turn this into an issue on the |
Opened rust-lang/cc-rs#798 |
I checked the log, and actually we missing ENV \
AR_x86_64_unknown_illumos="x86_64-illumos-ar" \
RANLIB_x86_64_unknown_illumos="x86_64-illumos-ranlib" \
CC_x86_64_unknown_illumos=x86_64-illumos-gcc \
CXX_x86_64_unknown_illumos=x86_64-illumos-g++ \
CARGO_TARGET_X86_64_UNKNOWN_ILLUMOS_LINKER=x86_64-illumos-gcc Thanks for your help! |
Sounds like this has been fixed. Thanks for raising as I think this is the root cause of a couple of other issues raised in the last week. |
For more context - rust-lang/rustup#3263
In https://github.com/rust-lang/rustup/actions/runs/4398020553/jobs/7701559253 (which will get deleted at some point) we see
This used to build a couple months back but we've updated our openssl-sys version since and now get this.
The text was updated successfully, but these errors were encountered: