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

error: command '/usr/bin/clang' failed with exit code 1 #86

Open
mgerkq opened this issue May 25, 2022 · 1 comment
Open

error: command '/usr/bin/clang' failed with exit code 1 #86

mgerkq opened this issue May 25, 2022 · 1 comment

Comments

@mgerkq
Copy link

mgerkq commented May 25, 2022

Hi i need help with the following problem:
If i run python setup.py build_ext -i
i get the following error:

lib/python3.9/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings] #warning "Using deprecated NumPy API, disable it with " \ ^ uvc.c:15911:103: error: too many arguments to function call, expected 4, have 5 __pyx_v_status = uvc_stream_start(__pyx_v_self->strmh, NULL, NULL, __pyx_v_self->_bandwidth_factor, 0); ~~~~~~~~~~~~~~~~ ^ /opt/homebrew/Cellar/libuvc/0.0.6/include/libuvc/libuvc.h:567:13: note: 'uvc_stream_start' declared here uvc_error_t uvc_stream_start(uvc_stream_handle_t *strmh, ^ uvc.c:17013:42: warning: comparison of integers of different signs: 'uint32_t' (aka 'unsigned int') and 'int' [-Wsign-compare] __pyx_t_7 = ((__pyx_v_uvc_frame->width == __pyx_v_j_width) != 0); ~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~ uvc.c:17019:43: warning: comparison of integers of different signs: 'uint32_t' (aka 'unsigned int') and 'int' [-Wsign-compare] __pyx_t_7 = ((__pyx_v_uvc_frame->height == __pyx_v_j_height) != 0); ~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~ uvc.c:17195:26: warning: assigning to 'uvc_input_terminal_t *' (aka 'struct uvc_input_terminal *') from 'const uvc_input_terminal_t *' (aka 'const struct uvc_input_terminal *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] __pyx_v_input_terminal = uvc_get_input_terminals(__pyx_v_self->devh); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ uvc.c:17204:27: warning: assigning to 'uvc_output_terminal_t *' (aka 'struct uvc_output_terminal *') from 'const uvc_output_terminal_t *' (aka 'const struct uvc_output_terminal *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] __pyx_v_output_terminal = uvc_get_output_terminals(__pyx_v_self->devh); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ uvc.c:17213:27: warning: assigning to 'uvc_processing_unit_t *' (aka 'struct uvc_processing_unit *') from 'const uvc_processing_unit_t *' (aka 'const struct uvc_processing_unit *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] __pyx_v_processing_unit = uvc_get_processing_units(__pyx_v_self->devh); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ uvc.c:17222:26: warning: assigning to 'uvc_extension_unit_t *' (aka 'struct uvc_extension_unit *') from 'const uvc_extension_unit_t *' (aka 'const struct uvc_extension_unit *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] __pyx_v_extension_unit = uvc_get_extension_units(__pyx_v_self->devh); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ uvc.c:17797:23: warning: assigning to 'uvc_format_desc_t *' (aka 'struct uvc_format_desc *') from 'const uvc_format_desc_t *' (aka 'const struct uvc_format_desc *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] __pyx_v_format_desc = uvc_get_format_descs(__pyx_v_self->devh); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8 warnings and 1 error generated. error: command '/usr/bin/clang' failed with exit code 1

can somebody help me with this issue?

@papr
Copy link
Contributor

papr commented May 27, 2022

Hi @mgerkq

This is the important error:

uvc.c:15911:103: error: too many arguments to function call, expected 4, have 5 __pyx_v_status = uvc_stream_start(__pyx_v_self->strmh, NULL, NULL, __pyx_v_self->_bandwidth_factor, 0);

uvc.c is generated based on uvc.pyx, and this line specifically here. It calls this function in Pupil Labs's libuvc library.

As you can see, the correct target function indeed expects 5 arguments, not 4. My guess for you seeing the above error is that you did not install Pupil Labs' libuvc but a different version.

Therefore, I recommend uninstall your current libuvc and installing https://github.com/pupil-labs/libuvc

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