c23 is stricter than previous versions incompatible pointer type is found in this package Reproducible: Always Actual Results: wired/ethdev.c:340:55: error: passing argument 4 of ‘l_io_set_read_handler’ from incompatible pointer type [-Wincompatible-pointer-types] 340 | l_io_set_read_handler(pae_io, pae_read, NULL, pae_destroy); | ^~~~~~~~~~~ | | | void (*)(void) In file included from /usr/include/ell/ell.h:19, from wired/ethdev.c:38: ./ell/io.h:33:68: note: expected ‘l_io_destroy_cb_t’ {aka ‘void (*)(void *)’} but argument is of type ‘void (*)(void)’ 33 | void *user_data, l_io_destroy_cb_t destroy); | ~~~~~~~~~~~~~~~~~~^~~~~~~ builds with -std=gnu17 env also builds with gcc:15.0.0_pre20241110
Created attachment 910407 [details] build failure log
Created attachment 910408 [details] emerge --infp
the +wired USE flag on it hits the section of code that fails set -wired, it builds fine without being set to c17 std
* https://lore.kernel.org/iwd/20241119222846.784719-1-slyich@gmail.com/T/#u * https://lore.kernel.org/iwd/Zz3YsU2pn-HtWvXn@c8d99ad60702/T/#u * https://lore.kernel.org/iwd/Zz3Y4LB9MPT25udE@c8d99ad60702/T/#u
Just hit iwd.git, can you test iwd-9999 to confirm that all your issues are fixed? Thanks
I was able to successfully build =net-wireless/iwd-9999 without using an env over-ride file. The "wired" USE flag was also enabled, so the problematic part is fixed in the -9999 version. Afterward, emerge -vp iwd: [ebuild R *] net-wireless/iwd-9999::gentoo USE="client monitor standalone wired -ofono (-selinux) -systemd" CPU_FLAGS_X86="aes ssse3" 0 KiB
commit 3a126e176a136647dce3c9a00e870437e3cd1444 Author: Ben Kohler <bkohler@gentoo.org> Date: Tue Nov 26 10:29:44 2024 -0600 net-wireless/iwd: add 3.2 Signed-off-by: Ben Kohler <bkohler@gentoo.org>