build: Install arm64 version of libssl and zlib1g #3371
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Xuanwo github@xuanwo.io
I hereby agree to the terms of the CLA available at: https://databend.rs/policies/cla/
Summary
This PR is a follow-up of #3353, addressed extra problems.
Explanation
After #3353 get merged, our contributors report more problems around aarch64 cross-build-related issues.
In fact, it's a long-existing issue from rust-embedded/cross community: cross-rs/cross#229.
cross uses self-compiled OpenSSL to provide SSL support, and this resulted in a lot issues so the community choose to remove the entire SSL support in PR: cross-rs/cross#322. But we really need OpenSSL! So we have to add the removed shells back as described in cross-rs/cross#229 (comment).
Let's come back to the root cause: what happened to the OpenSSL (and other) libs? Why we can't cross-compile aarch64? It's a knowledge gap between rust and ubuntu community:
We didn't install the aarch64 versions lib, so pkg-config can't find them.
It's simple to solve the problem:
First of all, add arm64 architecture support:
Then, install the arm64 version of lib, take
libssl
andzlib1g
for example:No need to other tricks, the ubuntu maintainers already fixed them, Thanks!
For reference:
Changelog