Hello everyone I am attempting to rebuild a kmod package for block device
My build-error log spews a bunch of errors. The first error encountered is as below - ./arch/arm/include/asm/barrier.h:41:27: error: mach/barriers.h: No such file or directory >From my observation of the contents of "/usr/src/kernels/3.18.9-v7+.1.20150314gitf1b6b1c", specifically in the "arch/arm/", I noticed that there are sub-folders "mach-bcm2708" and "mach-2709". While "mach-bcm2708" contains an "include" directory, the "mach-bcm2709" did not. Previous Pi was based on bcm2708 and the newer Pi2 is on bcm2709, hence I think the reason for the new kernel - kernel7.img While this is a hack, I overcome the error above by transplanting the "bcm2709/include" from ArchLinuxArm's RaspberryPi2 package ' http://os.archlinuxarm.org/armv7h/core/linux-raspberrypi-headers-3.18.9-2-armv7h.pkg.tar.xz '. While the error on barriers.h has gone away, I am still encountering the other errors as listed below - error: expected identifier or '(' before 'do' error: expected identifier or '(' before 'while' error: redefinition of 'kref_sub' error: redefinition of 'kref_get_unless_zero' Well, that's my current progress. Can anyone shed some light as to what may cause the rpmbuild to spew such errors ? Sincere regards and thanks Maulvi
_______________________________________________ users mailing list [email protected] http://lists.redsleeve.org/mailman/listinfo/users
