treeform / puppy

Puppy fetches via HTTP and HTTPS
MIT License
184 stars 27 forks source link

compilation error when casting `msgSend` on apple silicon. #118

Open bung87 opened 4 months ago

bung87 commented 4 months ago
@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 commented 3 months ago

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

fukusuket commented 2 months ago

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