/usr/include/x86_64-linux-gnu/sys/types.h:25:10: fatal error: features.h: No such file or directory
TylerJaacks opened this issue · 4 comments
TylerJaacks commented
When running make I get this error.
➜ PSL1GHT git:(master) make
crt1.c
In file included from /home/tylerjaacks/PSL1GHT/ppu/crt/../include/ppu-types.h:7:0,
from /home/tylerjaacks/PSL1GHT/ppu/crt/crt1.c:2:
/usr/include/x86_64-linux-gnu/sys/types.h:25:10: fatal error: features.h: No such file or directory
#include <features.h>
^~~~~~~~~~~~
compilation terminated.
make[3]: *** [/usr/local/ps3dev/base_rules:69: crt1.o] Error 1
make[2]: *** [Makefile:58: ppu] Error 2
make[1]: *** [Makefile:8: all] Error 2
make: *** [Makefile:14: all] Error 2
miigotu commented
Where did you get the toolchain from? It looks like you are building using the system compiler instead of the toolchain.
https://github.com/ps3dev/ps3toolchain
TylerJaacks commented
I ran the toolchain shell script
miigotu commented
And did you:
export PSL1GHT=/home/tylerjaacks/PSL1GHT/build
make install-ctrl
make
make install
Looks like you skipped the install-ctrl, which installs the rules that changes the path and sets a ton of other variables. Example for ppu: https://github.com/ps3dev/PSL1GHT/blob/master/ppu_rules
TylerJaacks commented
Ok I fixed it I ran the sudo version of the toolchain.sh file and it worked.