Hi guys I've just tried to update my laptop with the latest stable release of gentoo-sources (4.1.12) but the compilation is failing with V4L2. This module is a dependency for uvc (needed for my webcam). Código: drivers/media/v4l2-core/videobuf2-core.c: In function ‘vb2_warn_zero_bytesused’: drivers/media/v4l2-core/videobuf2-core.c:1248:2: error: implicit declaration of function ‘__WARN’ [-Werror=implicit-function-declaration] __WARN(); ^ cc1: some warnings being treated as errors scripts/Makefile.build:264: recipe for target 'drivers/media/v4l2-core/videobuf2-core.o' failed make[3]: *** [drivers/media/v4l2-core/videobuf2-core.o] Error 1 scripts/Makefile.build:403: recipe for target 'drivers/media/v4l2-core' failed make[2]: *** [drivers/media/v4l2-core] Error 2 scripts/Makefile.build:403: recipe for target 'drivers/media' failed make[1]: *** [drivers/media] Error 2 Makefile:947: recipe for target 'drivers' failed make: *** [drivers] Error 2 The versions 4.0.9 and 4.2.5 are building correctly. Ref: https://forums.gentoo.org/viewtopic.php?p=7839044#7839044 Cheers
__WARN isn't defined when CONFIG_DEBUG isn't set. This is bug in the kernel, but you should be able to build with CONFIG_DEBUG set. Please let me know.
(In reply to Mike Pagano from comment #1) > __WARN isn't defined when CONFIG_DEBUG isn't set. This is bug in the > kernel, but you should be able to build with CONFIG_DEBUG set. > > Please let me know. Worked. Thanks
Great news. I saw a patch to fix this for later releases.