recalbox / mk_arcade_joystick_rpi

Raspberry PI kernel module for arcade joystick on GPIO and MCP23017
GNU General Public License v2.0
200 stars 120 forks source link

Will not install with RetroPie 3.8 (Linux 4.4.11-v7+) #35

Closed simonster4 closed 8 years ago

simonster4 commented 8 years ago

I have been using this since Christmas, and it was working great, but since updating to RetroPie 3.8 it will not install. There appears to be issues compiling linux headers file.

I first noticed the issue after updating RetroPie from 3.7 to 3.8. I then tryied using the RetroPie 3.8 image from their website, and it wont compile on this either.

Any help would be appreciated, as at the moment I have no controls for my RetroPie machine :-(

simonster4 commented 8 years ago

Opened the /var/lib/dkms/mk_arcade_joystick_rpi/0.1.4/build/make.log file and found this:

DKMS make.log for mk_arcade_joystick_rpi-0.1.4 for kernel 4.4.11-v7+ (armv7l) Sun 29 May 20:37:11 UTC 2016 make -C /lib/modules/4.4.11-v7+/build M=/var/lib/dkms/mk_arcade_joystick_rpi/0.1.4/build modules make[1]: Entering directory '/usr/src/linux-headers-4.4.11-v7+' CC [M] /var/lib/dkms/mk_arcade_joystick_rpi/0.1.4/build/mk_arcade_joystick_rpi.o In file included from include/linux/ktime.h:25:0, from include/linux/rcupdate.h:47, from include/linux/srcu.h:33, from include/linux/notifier.h:15, from include/linux/memory_hotplug.h:6, from include/linux/mmzone.h:735, from include/linux/gfp.h:5, from include/linux/kmod.h:22, from include/linux/module.h:13, from /var/lib/dkms/mk_arcade_joystick_rpi/0.1.4/build/mk_arcade_joystick_rpi.c:31: include/linux/jiffies.h:10:33: fatal error: generated/timeconst.h: No such file or directory compilation terminated. scripts/Makefile.build:264: recipe for target '/var/lib/dkms/mk_arcade_joystick_rpi/0.1.4/build/mk_arcade_joystick_rpi.o' failed make[2]: * [/var/lib/dkms/mk_arcade_joystick_rpi/0.1.4/build/mk_arcade_joystick_rpi.o] Error 1 Makefile:1384: recipe for target 'module/var/lib/dkms/mk_arcade_joystick_rpi/0.1.4/build' failed make[1]: * [module/var/lib/dkms/mk_arcade_joystick_rpi/0.1.4/build] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-4.4.11-v7+' Makefile:9: recipe for target 'all' failed make: *\ [all] Error 2

substring commented 8 years ago

You are missing a dependancy on a header file : timeconst.h. Dunno how retropie ships everything, but you miss a dev lib thay you should be able to install with apt-get

simonster4 commented 8 years ago

It appears to be related to the kernel update.

When I run the mkjoystick/install.sh, it attempts to install https://www.niksula.hut.fi/~mhiienka/Rpi/linux-headers-4.4.10-v7+_4.4.10-v7+-2_armhf.deb which fails on creating the timeconst file. It used to work before the kernel update and I have confirmed that this is the only thing that can be affecting it. Is there any way to use a different set of linux headers?

substring commented 8 years ago

dupe of #32 can you close and post further infos there ?