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

Add linuxArm64 target #10

Closed
vdshb opened this issue Nov 13, 2023 · 7 comments
Closed

Add linuxArm64 target #10

vdshb opened this issue Nov 13, 2023 · 7 comments

Comments

@vdshb
Copy link

vdshb commented Nov 13, 2023

This is a proposal to support native Arm64 Linux. Artifacts might be build on Linux/Mac X64/Arm64 without additional testing. I believe providing artifacts without additional testing is better than nothing for tier-3 targets. I don't know though, whether connecting openssl to this new target challanging or not.

@whyoleg
Copy link
Owner

whyoleg commented Nov 14, 2023

Hey, thanks for creating an issue for this!
Theoretically I can add support for ALL K/N targets to core and random modules, but it will be not really helpful. The main task here, as you noted, is building openssl for linuxArm64.
On current moment I have a setup to build OpenSSL v3 here: https://github.com/whyoleg/openssl-builds
It uses Conan, to fetch or build specific version for platform (handles all cross-compilation problems for me). But I haven't tried to build for ARM linux...
Last time I had some problems to update that repository to use latest version of Conan and OpenSSL, but let's try one more time :)
If you have any other ideas on how to build openssl for all those targets (I mean, there are a lot) - feel free to share it here.

@vdshb
Copy link
Author

vdshb commented Nov 15, 2023

Unfortunately I have no idea how to properly build OpenSSL on different platforms. My background is primarily on JVM, and experience in C is just related to KMP babysteps.

@whyoleg
Copy link
Owner

whyoleg commented Nov 15, 2023

FYI, I was able to successfully build OpenSSL for Linux ARM64 and added it in separate branch. Builds are green: https://github.com/whyoleg/cryptography-kotlin/actions/runs/6876806793
So at least, it builds. So most likely it will be supported starting from next release.

BTW, do you have a use case for Linux ARM64?

@vdshb
Copy link
Author

vdshb commented Nov 21, 2023

BTW, do you have a use case for Linux ARM64?

Sorry for the delay. I'm creating a set of libraries (not yet published) with the support of all available architectures. Even AndroidNative if it's easy to add. As I don't yet build actual applications on Arm64, I believe correct formal answer for now is "No, I don't actually have use cases for Linux ARM64". But I have raspberry PI and I'd like to have a possibility to build some of my planned apps to this target. Arm64 servers are also on my radar as a potential target.

@whyoleg
Copy link
Owner

whyoleg commented Nov 22, 2023

Thanks!
I will see what I can do with support for all other K/N targets, may be it will be possible to provide some support there.

@whyoleg
Copy link
Owner

whyoleg commented Nov 24, 2023

One more bump here:
I was able to build OpenSSL for all K/N targets (including tvOS, watchOS and androidNative). Linking test binaries works.
Build result: https://github.com/whyoleg/cryptography-kotlin/actions/runs/6978229057

Hopefully, I will prepare new release in coming days which will include this.

@whyoleg
Copy link
Owner

whyoleg commented Feb 21, 2024

0.3.0 with this and other features is released! Sorry that it took so long.

@whyoleg whyoleg closed this as completed Feb 21, 2024
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

No branches or pull requests

2 participants