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

compilation error when casting msgSend on apple silicon. #118

Open
bung87 opened this issue Mar 8, 2024 · 2 comments
Open

compilation error when casting msgSend on apple silicon. #118

bung87 opened this issue Mar 8, 2024 · 2 comments

Comments

@bung87
Copy link

bung87 commented Mar 8, 2024

@m..@s..@s..@s.nimble@spkgs2@spuppy-2.1.0-330c089ab54d3346c59e5c0fffeb7d09b1422a83@spuppy@splatforms@smacos@sobjc.nim.c:164:23: error: incompatible function pointer types assigning to 'tyProc__GzHItWOV8mXMIORHhW0e0Q' (aka 'long long (*)(long long, long long, char *)') from 'tyProc__ln4kdL5W9bbX4a1xl8nnVXQ' (aka 'void (*)(void)') [-Wincompatible-function-pointer-types]
        nimln_(194);    msgSend = Dl_5368709136_;
                                ^ ~~~~~~~~~~~~~~

Nim Compiler Version 2.1.1 [MacOSX: amd64]
Compiled at 2024-02-23

@bung87
Copy link
Author

bung87 commented Mar 24, 2024

solution now is pass cflags
eg. in nims file.
switch("passC", "-Wno-incompatible-function-pointer-types")

@fukusuket
Copy link
Contributor

I also have the same issue on macOS Sonoma 14.4.1.

@m..@s..@s..@s..@s.nimble@spkgs2@spuppy-2.1.2-9d583654c5ce17fd0223da5102e5e9b01fba74fa@spuppy@splatforms@smacos@sobjc.nim.c:143:10: error: incompatible function pointer types assigning to 'tyProc__RgKKSNSZBwbKmv4OT9c1inQ' (aka 'char *(*)(long long, long long)') from 'tyProc__ln4kdL5W9bbX4a1xl8nnVXQ' (aka 'void (*)(void)') [-Wincompatible-function-po
 nim -v         
Nim Compiler Version 2.0.4 [MacOSX: amd64]
Compiled at 2024-04-18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants