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

Fix build issue for arm macs #261

Merged
merged 1 commit into from
Jul 20, 2023
Merged

Conversation

bayedieng
Copy link
Contributor

This PR fixes building on arm macs by switching to the extern "C" abi and fixing an erroneous macro input for the error macro. Closes #260

@bayedieng
Copy link
Contributor Author

bayedieng commented Jul 20, 2023

Not sure why QT fails to build for mac have not changed CI.

@ultimaweapon
Copy link
Member

The problem with C is it platform-specific (e.g. macOS vs Linux). Have you tried the other values?

@bayedieng
Copy link
Contributor Author

Yes unfortunately extern "C" seems to be the only abi compatible with arm64

Screenshot 2023-07-20 at 1 37 23 PM

aapcs seems to be 32-bit arm only

@ultimaweapon
Copy link
Member

Strange. Why aapcs is not working on macOS.

@bayedieng
Copy link
Contributor Author

I believe it might be 32-bit only, there is an experimental ABI in the works though for 64-bit ARM I believe rust-lang/rust#65815

@bayedieng
Copy link
Contributor Author

There should be an aapcs64 available but I haven't found the ABI.

@ultimaweapon
Copy link
Member

Seems like our only solution is fixing this on the call sites.

@ultimaweapon ultimaweapon merged commit c021df1 into obhq:main Jul 20, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Does Not Build on MacOS ARM
2 participants