Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 565160 - sys-kernel/gentoo-sources-4.1.12 fails to build - drivers/media/v4l2-core/videobuf2-core.c:1248:2: error: implicit declaration of function ‘__WARN’
Summary: sys-kernel/gentoo-sources-4.1.12 fails to build - drivers/media/v4l2-core/vid...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: http://git.kernel.org/cgit/linux/kern...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-08 19:11 UTC by Thiago Ramos Fanfoni
Modified: 2015-11-17 00:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thiago Ramos Fanfoni 2015-11-08 19:11:37 UTC
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
Comment 1 Mike Pagano gentoo-dev 2015-11-16 00:00:55 UTC
__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.
Comment 2 Thiago Ramos Fanfoni 2015-11-16 01:32:40 UTC
(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
Comment 3 Mike Pagano gentoo-dev 2015-11-17 00:03:11 UTC
Great news. I saw a patch to fix this for later releases.