You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Greetings! We updating the Conan recipe for getdns on ConanCenterIndex (conan-io/conan-center-index#21389) and when building on Mac M1 with Apple Clang 15, getdns fails to be built in case libuv is enabled (BUILD_LIBUV=ON):
src/extension/libuv.c:214:28: error: incompatible function pointer types passing 'void (uv_timer_t *, int)' (aka 'void (struct uv_timer_s *, int)') to parameter of type 'uv_timer_cb' (aka 'void (*)(struct uv_timer_s *)') [-Wincompatible-function-pointer-types]
uv_timer_start(my_timer, getdns_libuv_timeout_cb, timeout, 0);
For now, I just ignored it by using -Wno-error=incompatible-function-pointer-types.
Not sure if could be done something directly in the code to be safer.
Environment
CPU: armv8 (Apple M1)
Build type: Release
Compiler: Apple clang version 15.0.0 (clang-1500.3.9.4)
I did not try using all standalone, like downloading getdns source, and consuming libuv from brew, but only using Conan instead. As I'm a maintainer, we avoid applying unofficial patches and follow as closer as possible to the upstream in terms of configuration, to avoid any unexpected behavior.
Greetings! We updating the Conan recipe for getdns on ConanCenterIndex (conan-io/conan-center-index#21389) and when building on Mac M1 with Apple Clang 15, getdns fails to be built in case libuv is enabled (BUILD_LIBUV=ON):
For now, I just ignored it by using
-Wno-error=incompatible-function-pointer-types
.Not sure if could be done something directly in the code to be safer.
Environment
Datails
I did not try using all standalone, like downloading getdns source, and consuming libuv from brew, but only using Conan instead. As I'm a maintainer, we avoid applying unofficial patches and follow as closer as possible to the upstream in terms of configuration, to avoid any unexpected behavior.
The libuv Conan recipe that packages it can be found here: https://github.com/conan-io/conan-center-index/blob/master/recipes/libuv/all/conanfile.py. As you can see, there is no big deal in terms of building.
Plus, Conan does not inject Werror, neither or other warning flags.
I'm also capable to reproduce the same error on Linux, using Clang 18 instead.
Steps to reproduce
Sorry for complicating the reproducible scenario. The CMake setup should equivalent to:
Build log
Here is my full build log.
getdns-1.7.3-mac-static.log
The text was updated successfully, but these errors were encountered: