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

C bindings broken on MacOS/Arm64 with GFortran 11 #54

Closed
awvwgk opened this issue Mar 12, 2022 · 3 comments
Closed

C bindings broken on MacOS/Arm64 with GFortran 11 #54

awvwgk opened this issue Mar 12, 2022 · 3 comments
Labels
bindings: C Export of C API via bind(c) compiler: gfortran Related to the GFortran compiler

Comments

@awvwgk
Copy link
Member

awvwgk commented Mar 12, 2022

The C bindings pass a nested function as callback to allow the C API to carry along user data via an opaque pointer (void*). This mechanism is also used in the Python API to propagate exceptions storing the small object in a handle and pass it as void* to the Minpack C API.

This issue has been fixed for GCC 12, see iains/gcc-darwin-arm64#26.

Potential workaround available in #30

@awvwgk awvwgk added bug Something isn't working bindings: C Export of C API via bind(c) labels Mar 12, 2022
@awvwgk awvwgk added compiler: gfortran Related to the GFortran compiler and removed bug Something isn't working labels Mar 12, 2022
@awvwgk awvwgk changed the title C bindings broken on MacOS/Arm64 with GFortran 11 and lower C bindings broken on MacOS/Arm64 with GFortran 11 Mar 12, 2022
@awvwgk
Copy link
Member Author

awvwgk commented May 30, 2022

Anyone around with a MacOS/Arm64 machine to test whether this is fixed with GCC 12?

cc @certik @Nicholaswogan

@Nicholaswogan
Copy link

Ya it is fixed with gfortran 11.3 (current homebrew version). Gfortran 12.1 also works.

@awvwgk
Copy link
Member Author

awvwgk commented May 30, 2022

Thanks, than we can close this issue as resolved.

@awvwgk awvwgk closed this as completed May 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bindings: C Export of C API via bind(c) compiler: gfortran Related to the GFortran compiler
Projects
None yet
Development

No branches or pull requests

2 participants