Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Problem with libssl on arm64 devices #5

Open
andjsch opened this issue May 31, 2023 · 2 comments
Open

Problem with libssl on arm64 devices #5

andjsch opened this issue May 31, 2023 · 2 comments

Comments

@andjsch
Copy link

andjsch commented May 31, 2023

The formuale has some problem on arm64 (M-Chips) on macOS. It won't use the libssl installed by Homebrew. If you link to it, it says that it wants a different architecture, x86_64 instead of the installed arm64.

This is the error when running mint after symlinking manually to libssl:

dyld[16130]: Library not loaded: /usr/local/opt/[email protected]/lib/libssl.1.1.dylib
  Referenced from: <75F1BB04-1DDA-3A98-BEEB-CB460C23A096> /opt/homebrew/Cellar/mint-lang/0.18.0/bin/mint
  Reason: tried: '/usr/local/opt/[email protected]/lib/libssl.1.1.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/[email protected]/lib/libssl.1.1.dylib' (no such file), '/usr/local/opt/[email protected]/lib/libssl.1.1.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/usr/local/lib/libssl.1.1.dylib' (no such file), '/usr/lib/libssl.1.1.dylib' (no such file, not in dyld cache), '/opt/homebrew/Cellar/[email protected]/1.1.1t/lib/libssl.1.1.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/[email protected]/1.1.1t/lib/libssl.1.1.dylib' (no such file), '/opt/homebrew/Cellar/[email protected]/1.1.1t/lib/libssl.1.1.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/usr/local/lib/libssl.1.1.dylib' (no such file), '/usr/lib/libssl.1.1.dylib' (no such file, not in dyld cache)
[1]    16130 abort      mint
@andjsch
Copy link
Author

andjsch commented May 31, 2023

Looking at the formulae, it doesn't seem to account for arm64 at all which is most likely the problem.

@jansul
Copy link

jansul commented Jun 2, 2023

Currently it's a bit of a pain to build ARM binaries of Mint as sort of described in this article:

Building for ARM in GitHub Actions is not easy now. You can’t just add an ARM runner because the crystal-lang/install-crystal GitHub Action doesn’t support ARM runners (at least in v1.8.0). Also, you can’t build a binary inside a container as ARM containers weren’t provided by Crystal’s developers. So, the only current option is cross-compilation.

I believe it works fine if you are able to compile from source, otherwise it would require a bit of effort for someone to update the main Mint Github workflows to cross-compile for ARM (?)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants