Skip to content

fatal error: locking.h: No such file or directory #include "locking.h" in 3.18kernel #1389

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rbmedisettii09 opened this issue Apr 3, 2016 · 1 comment

Comments

@rbmedisettii09
Copy link

fs/btrfs/ctree.c:26:21: fatal error: locking.h: No such file or directory
#include "locking.h"
^
compilation terminated.
make[2]: *** [fs/btrfs/ctree.o] Error 1
make[1]: *** [fs/btrfs] Error 2
make: *** [fs] Error 2
rajendra@rajendra9:/km/projects/rpi/kernel/linux-rpi-3.18.y$ ^C
rajendra@rajendra9:
/km/projects/rpi/kernel/linux-rpi-3.18.y$ make ARCH=arm clean
CLEAN .
CLEAN arch/arm/kernel
./scripts/Makefile.clean:17: drivers/media/usb/hdpvr/Makefile: No such file or directory
make[4]: *** No rule to make target `drivers/media/usb/hdpvr/Makefile'. Stop.
make[3]: *** [drivers/media/usb/hdpvr] Error 2
make[2]: *** [drivers/media/usb] Error 2
make[1]: *** [drivers/media] Error 2
make: *** [_clean_drivers] Error 2

@rbmedisettii09 rbmedisettii09 changed the title atal error: locking.h: No such file or directory #include "locking.h" in 3.18kernel fatal error: locking.h: No such file or directory #include "locking.h" in 3.18kernel Apr 3, 2016
@popcornmix
Copy link
Collaborator

Are you following the instructions here?
https://www.raspberrypi.org/documentation/linux/kernel/building.md

What platform are you building on? How did you get the kernel source?
Do you have a file fs/btrfs/locking.h?

Note that 3.18 is no longer supported by us. Updating to 4.1 or 4.4 would be recommended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants