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

Issue building openssl on mips-unknown-linux-musl #1263

Open
4 of 11 tasks
brentalanmiller opened this issue May 23, 2023 · 0 comments
Open
4 of 11 tasks

Issue building openssl on mips-unknown-linux-musl #1263

brentalanmiller opened this issue May 23, 2023 · 0 comments
Labels
A-mips Area: MIPS targets c-cpp-deps-issue

Comments

@brentalanmiller
Copy link

Checklist

Describe your issue

I cannot build a project that uses openssl on mips-unknown-linux-musl as it cannot find mips-linux-musl-ranlib.

Adding:

[target.mips-unknown-linux-musl.env]
passthrough = ["RANLIB_mips_unknown_linux_musl=mips-linux-muslsf-ranlib"]

Fixes the issue.

This seems like its related to #1137

What target(s) are you cross-compiling for?

mipsel-unknown-linux-musl

Which operating system is the host (e.g computer cross is on) running?

  • macOS
  • Windows
  • Linux / BSD
  • other OS (specify in description)

What architecture is the host?

  • x86_64 / AMD64
  • arm32
  • arm64 (including Mac M1)

What container engine is cross using?

  • docker
  • podman
  • other container engine (specify in description)

cross version

cross 0.2.5 (b7f7ace 2023-05-18)

Example

git clone https://github.com/brentalanmiller/cross-mips-ssl-issue.git
cross build --target mips-unknown-linux-musl

Gives the build error:

...
 mips-linux-muslsf-ar: creating apps/libapps.a
  /bin/sh: 1: mips-linux-musl-ranlib: not found
  mips-linux-muslsf-ar: creating libcrypto.a
  /bin/sh: 1: mips-linux-musl-ranlib: not found
  mips-linux-muslsf-ar: creating libssl.a
  /bin/sh: 1: mips-linux-musl-ranlib: not found
...

Now uncomment the following in Cross.toml

[target.mips-unknown-linux-musl.env]
passthrough = ["RANLIB_mips_unknown_linux_musl=mips-linux-muslsf-ranlib"]

And the build succeeds.

Additional information / notes

No response

@Emilgardis Emilgardis added c-cpp-deps-issue A-mips Area: MIPS targets labels May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-mips Area: MIPS targets c-cpp-deps-issue
Projects
None yet
Development

No branches or pull requests

2 participants