Created attachment 699378 [details] genkernel.log gentoo-sources-9.10.27 fails to build the modules. Extract from the attached genkernel.log: =============== %< ============== MODPOST Module.symvers ERROR: modpost: "iio_triggered_buffer_cleanup" [drivers/iio/common/hid-sensors/hid-sensor-trigger.ko] undefined! ERROR: modpost: "iio_triggered_buffer_setup" [drivers/iio/common/hid-sensors/hid-sensor-trigger.ko] undefined! make[1]: *** [scripts/Makefile.modpost:111: Module.symvers] Error 1 make[1]: *** Deleting file 'Module.symvers' make: *** [Makefile:1401: modules] Error 2 * ERROR: compile_modules(): compile_generic() failed to compile the "modules" target! * Please consult '/var/log/genkernel.log' for more information and any * errors that were reported above. =============== %< ==============
Created attachment 699381 [details] .config The kernel config file
Can you try with gentoo-sources-5.10.29 ?
It is the same with gentoo-sources-4.10.29: ========= %< ========= MODPOST Module.symvers ERROR: modpost: "iio_triggered_buffer_cleanup" [drivers/iio/common/hid-sensors/hid-sensor-trigger.ko] undefined! ERROR: modpost: "iio_triggered_buffer_setup" [drivers/iio/common/hid-sensors/hid-sensor-trigger.ko] undefined! make[1]: *** [scripts/Makefile.modpost:111: Module.symvers] Error 1 make[1]: *** Deleting file 'Module.symvers' make: *** [Makefile:1412: modules] Error 2 ========= %< =========
5.10.29
Reproduced as described.
Found the problem: You need to enable "CONFIG_IIO_TRIGGERED_BUFFER" when you want "CONFIG_HID_SENSOR_IIO_TRIGGER". Of course this a bug and the missing dependency should get reported upstream.
Reported upstream via https://lore.kernel.org/linux-iio/0ba66635-920a-2541-7b92-447cdb37764b@gentoo.org/T/#u
Thanks for clarification.
This is in >=5.12.5 and >=5.10.38