Missing kernel header


6 posts
by crepererum » Sun May 20, 2012 9:06 pm
Hi,

I'm trying to compile a kernel module (snd-usb-6fire [1]) and get the following error:
Code: Select all
In file included from /usr/src/linux-3.1.9-14-ARCH+/arch/arm/include/asm/page.h:204:0,
                 from include/linux/mmzone.h:20,
                 from include/linux/gfp.h:4,
                 from include/linux/slab.h:12,
                 from /tmp/sixfireusb-0.5.5/common.h:17,
                 from /tmp/sixfireusb-0.5.5/chip.h:16,
                 from /tmp/sixfireusb-0.5.5/chip.c:16:
/usr/src/linux-3.1.9-14-ARCH+/arch/arm/include/asm/memory.h:19:25: fatal error: mach/memory.h: No such file or directory

I have installed linux-headers-raspberrypi. It seems, like there are missing some files in this package.

Does anyone have an idea how to fix this or where to file a bug report?

[1] http://sourceforge.net/projects/sixfireusb/
Posts: 2
Joined: Sun May 20, 2012 8:59 pm
by redfury » Thu May 31, 2012 8:58 pm
Yep me too:

Anyone?

Code: Select all
[root@alarmpi pwc-10.0.12-rc1]# make
make -C /lib/modules/3.1.9-15-ARCH+/build SUBDIRS=/tmp/pwc-10.0.12-rc1 modules
make[1]: Entering directory `/usr/src/linux-3.1.9-15-ARCH+'
  CC [M]  /tmp/pwc-10.0.12-rc1/pwc-if.o
In file included from /usr/src/linux-3.1.9-15-ARCH+/arch/arm/include/asm/page.h:204:0,
                 from include/linux/mmzone.h:20,
                 from include/linux/gfp.h:4,
                 from include/linux/mm.h:8,
                 from /tmp/pwc-10.0.12-rc1/pwc-if.c:60:
/usr/src/linux-3.1.9-15-ARCH+/arch/arm/include/asm/memory.h:19:25: fatal error: mach/memory.h: No such file or directory
compilation terminated.
make[2]: *** [/tmp/pwc-10.0.12-rc1/pwc-if.o] Error 1
make[1]: *** [_module_/tmp/pwc-10.0.12-rc1] Error 2
make[1]: Leaving directory `/usr/src/linux-3.1.9-15-ARCH+'
make: *** [all] Error 2
Posts: 3
Joined: Thu May 31, 2012 8:56 pm
by pepedog » Thu May 31, 2012 10:12 pm
I will fix it, but can you report here so I don't forget.
https://github.com/archlinuxarm/PKGBUILDs/issues
Thanks
Posts: 960
Joined: Fri Oct 07, 2011 9:55 am
by crepererum » Thu May 31, 2012 10:23 pm
pepedog wrote:I will fix it, but can you report here so I don't forget.
https://github.com/archlinuxarm/PKGBUILDs/issues
Thanks

Done. Thanks for your support.
Posts: 2
Joined: Sun May 20, 2012 8:59 pm
by pepedog » Fri Jun 01, 2012 11:09 am
I am told this is fixed, without my intervention.
pacman -Syu # should fix
Posts: 960
Joined: Fri Oct 07, 2011 9:55 am
by redfury » Mon Jun 04, 2012 11:47 am
Yep! works like a charm! Thank you!
Posts: 3
Joined: Thu May 31, 2012 8:56 pm