Control: reassign -1 linux-headers-3.7-trunk-common
Control: found -1 3.7.1-1~experimental.1
Control: retitle -1 uapi/asm-generic missing from linux-headers-3.7

Hi Gregor,
Hi Debian kernel hackers,

On Tue, Dec 25, 2012 at 01:04:02PM +0100, gregor herrmann wrote:

> When I install linux-headers-3.7-trunk-amd64 3.7.1-1~experimental.1
> from experimental, I get:
> 
> run-parts: executing /etc/kernel/postinst.d/dkms 3.7-trunk-amd64 
> /boot/vmlinuz-3.7-trunk-amd64
> Error! Bad return status for module build on kernel: 3.7-trunk-amd64 (x86_64)
> Consult /var/lib/dkms/tp-smapi/0.41/build/make.log for more information.

> DKMS make.log for tp-smapi-0.41 for kernel 3.7-trunk-amd64 (x86_64)
> Tue Dec 25 12:53:57 CET 2012
> make: Entering directory `/usr/src/linux-headers-3.7-trunk-amd64'
>   LD      /var/lib/dkms/tp-smapi/0.41/build/built-in.o
>   CC [M]  /var/lib/dkms/tp-smapi/0.41/build/thinkpad_ec.o
> In file included from 
> /usr/src/linux-headers-3.7-trunk-common/include/uapi/linux/types.h:4:0,
>                  from 
> /usr/src/linux-headers-3.7-trunk-common/include/linux/types.h:5,
>                  from 
> /usr/src/linux-headers-3.7-trunk-common/include/linux/kernel.h:8,
>                  from /var/lib/dkms/tp-smapi/0.41/build/thinkpad_ec.c:32:
> /usr/src/linux-headers-3.7-trunk-common/arch/x86/include/asm/types.h:4:31: 
> fatal error: asm-generic/types.h: No such file or directory
> compilation terminated.
> make[3]: *** [/var/lib/dkms/tp-smapi/0.41/build/thinkpad_ec.o] Error 1
> make[2]: *** [_module_/var/lib/dkms/tp-smapi/0.41/build] Error 2
> make[1]: *** [sub-make] Error 2
> make: *** [all] Error 2
> make: Leaving directory `/usr/src/linux-headers-3.7-trunk-amd64'

The problem here is that arch/x86/include/asm/types.h has a include for 
<asm-generic/types.h>. This file was moved from include/ to 
include/uapi/ in 8a1ab3155c2ac7fbe5f2038d6e26efeb607a1498. include/uapi/ 
is added to the include-path by the upstream Makefile just fine, but the 
asm-generic subfolder is missing from linux-headers-3.7-trunk-common. 
Copying the folder from the tarball to 
/usr/src/linux-headers-3.7-trunk-common/include/uapi/asm-generic fixes 
the build-issue for me.

Regards
Evgeni, mumbling something about breaking a fuck or unfucking a break... ;)

-- 
Bruce Schneier can read and understand Perl programs.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to