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

Fails to build wheel with clang: incompatible function pointer types #295

Open
milan-sastry opened this issue Mar 14, 2025 · 2 comments
Open

Comments

@milan-sastry
Copy link

milan-sastry commented Mar 14, 2025

  src/engine/osclistenermodule.c:187:56: error: incompatible function pointer types passing 'int (const char *, const char *, lo_arg **, int, void *, void *)' to parameter of type 'lo_method_handler' (aka 'int (*)(const char *, const char *, lo_arg **, int, struct lo_message_ *, void *)') [-Wincompatible-function-pointer-types]
    187 |     lo_server_add_method(self->osc_server, NULL, NULL, process_osc, (void *)self);
        |                                                        ^~~~~~~~~~~
  /usr/local/include/lo/lo_lowlevel.h:876:72: note: passing argument to parameter 'h' here
    876 |                                const char *typespec, lo_method_handler h,
        |                                                                        ^
  3 warnings and 1 error generated.
  error: command '/usr/bin/clang' failed with exit code 1
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyo
Failed to build pyo
ERROR: Failed to build installable wheels for some pyproject.toml based projects (pyo)

I am on Mac OS 15.1.1 with M4 chip

@belangeo
Copy link
Owner

Where your sources are coming from? This issue is fixed in master:

664190d#diff-3adb11c7b32b84e2d790390eba65bae9bdebb6e1d26b6f3ee726b34986385872L49-R50

@belangeo
Copy link
Owner

Duplicate of #276.

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