Skip to content
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

not compiling on raspberrypi 4 , help plz #66

Open
yonatanbeyn opened this issue May 19, 2021 · 2 comments
Open

not compiling on raspberrypi 4 , help plz #66

yonatanbeyn opened this issue May 19, 2021 · 2 comments

Comments

@yonatanbeyn
Copy link

make
for n in misc-progs misc-modules skull scull scullc scullp lddbus sculld scullv shortprint simple tty pci usb sbull snull short; do make -C $n || exit 1; done
make[1]: Entering directory '/home/pi/ldd3/ldd3/misc-progs'
cc -O2 -fomit-frame-pointer -Wall -I/usr/src/linux-headers-5.10.17-v7l+/include inp.c -o inp
inp.c:36:12: fatal error: sys/perm.h: No such file or directory

include <sys/perm.h>

        ^~~~~~~~~~~~

compilation terminated.
make[1]: *** [: inp] Error 1
make[1]: Leaving directory '/home/pi/ldd3/ldd3/misc-progs'
make: *** [Makefile:10: subdirs] Error 1ls

my current Linux header ===>>> linux-headers-5.10.17+ linux-headers-5.10.17-v7+ linux-headers-5.10.17-v7l+

@Minoru
Copy link

Minoru commented May 19, 2021

On my Debian testing machine, this header is in /usr/include/sys/perm.h, which is part of libc6-dev-amd64 package. Can you try installing libc6-dev package and see if this fixes the problem?

One other thing you could try is:

  1. check if you have this file in the filesystem at all: find / -name perm.h. It might print out a path like the one I mentioned above;
  2. check where the compiler looks for headers. Run cc --version to figure out what compiler you use. If it's GCC, you can do something like this to print out the list of paths. One of them should contain the path where you found the perm.h file.

Hope this helps.

@dwalkes
Copy link
Collaborator

dwalkes commented Nov 7, 2021

My guess is perm.h might be x86 only? There's probably work to do to get this repository built/running on non x86 targets like RPi. Pull requests are welcome if anyone wants to take that on.

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

3 participants