-
Notifications
You must be signed in to change notification settings - Fork 737
Building on Mac OS ARM fails #571
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
Comments
I have also tried on Apple Silicon device (DTK) but it failed during |
After successfully building libtool, autoconf and automake natively, I was able to get rid of all configure issues and finally build properly, including asm. Now I am stuck with missing dependencies:
|
Although I'm not very familiar with the modern configure/autoconf system, it seems to me that configure should be computing the platform triple as I then ran
At this point I'm past my ability to make further quick fixes, but I'm reporting this here in the hopes that someone else can pick this up and run with it. |
The main issue is This should correctly generate the arm files for the platform (which it does not atm), and the configure script should then select the right files based on the architecture. libffi works for me with the PR for cmake(#535) without further modifications. I am currently looking at the python script to figure the right way to go. In theory no further changes are necessary, as the hardware architecture for iOS arm64 is already there, and should be reusable. |
Note that the low-level calling code for aarch64 macOS will need to be tweaked from the SysV version, as Apple's calling convention is slightly different. [edited out an overly-long example]
|
Error
|
I suggest you joion in the discission for upstreaming Apple's libffi changes for Apple Silicon. A few pull requests are merge, 2 are open, and one WIP is up which still needs some massaging (#621) |
triple detection was fixed by #576 |
System Details
Platform is: arm-apple-darwin20.0.0
Toolchain is XCode12beta
Problems Description
Executing configure on a direct checkout will fail, as will a compile attempt as part of a glib build.
I am attaching glib output, as well as the error log output from the glib build
config.log
error.log
The text was updated successfully, but these errors were encountered: