On 03/15/2015 12:27 AM, Maulvi Bakar wrote: > 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
That's indeed an oops from my side. I forgot to edit this in the spec file for the kernel. Please try the latest version (of 15 mins ago) > > 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' This is not enough information to go on for me. What are you building? what gives this error? Jacco
_______________________________________________ users mailing list [email protected] http://lists.redsleeve.org/mailman/listinfo/users
