-
Notifications
You must be signed in to change notification settings - Fork 744
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
Building LLVM on mac-arm64 #1092
Conversation
Yes, the profiles need to be updated too. It's essentially the same as I did for JavaCPP itself in commit bytedeco/javacpp@87a6194. |
@saudet I might need your help on this one. I think I got the profiles correct now. Do I need to change javacpp-presets/llvm/cppbuild.sh Lines 90 to 95 in fb4bba0
-arch or is this taken care of on another level?
|
bc38ae0
to
d75c8e9
Compare
I think I got now. Should hopefully run now. |
At first glance, that looks alright, thanks! For consistency though, let's add the |
I can switch that, no problem. There seems to be a build error on llvm when building for arm64 though :(
It looks like the target is still x86 :(
|
Since we're cross compiling, we need to prebuild those tools for x86_64 first, as with linux-arm64: |
I added that step as well now and things seem to look good now on my x86 test machine. |
I am a bit lost why this still fails. It works fine on my Mac mini x86, it produces an arm64 binar without any errors. |
Those binaries need to be built for x86_64, not arm64. Maybe your version of Mac comes with an emulator for arm64 binaries, but that's not the case of the machines running for GitHub Actions. |
What was confusing me is that for the linux-arm64 example you referred my to the target triple and target arch was set to arm64, not x86_64. |
Looks like this finally compiled 🥳 As @saudet suggested, I will move the |
After this gets merged, the snapshots will be available for download: http://bytedeco.org/builds/ Before we do that though, there are still a lot of places where arm64 is still after x86_64. Please update everything! |
I was following the style of the individual files. For example in the cppbuild.sh, x86_64 was already placed before arm64 for Linux. Should I fix these already existing inconsistencies as well? |
Right, some places have been a bit off like that, but don't worry about those. Just do the mac ones "right". Thanks! |
First attempt to build LLVM on mac-arm64. Not sure, if I understood the profile system correctly.
Closes #1091