osxcross icon indicating copy to clipboard operation
osxcross copied to clipboard

Arm64e (more a question than an issue)

Open philippe44 opened this issue 2 years ago • 1 comments

Per title, this is more a question but I put it in issues as GH discussions are not open:

I tried to build for Mac M1 recently and I got the linker warning about the arm64e ABI and indeed the binary does not run on M1.

I decided to give my app a try an arm64 and I was surprised because it works.

I've read the posts about arm64e but I thought this was the only option for M1 and that things like signature are required (I'm using master osxcross which AFAII does not include the cctools PR to incorporate signature).

What is the recommendation here and what should work? Use arm64 till arm64e is stable? BTW, I also wanted to rebuild clang from the script and a few things fail, including the download even with the PR

philippe44 avatar Nov 02 '22 19:11 philippe44

@philippe44 could not make the script to build clang either - I was aiming for llvm-15 (even after fixing the download issue). Ended-up just building LLVM out of band.

This helped:

  • https://github.com/llvm/llvm-project/blob/main/llvm/utils/docker/scripts/build_install_llvm.sh
  • https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/-/blob/15/debian/rules

I am wondering if the project here is still active... would be quite sad to see it bit-rot :/...

spacedub avatar Jan 20 '23 00:01 spacedub