ps3dev / PSL1GHT

A lightweight PS3 SDK
www.psl1ght.com
MIT License
207 stars 63 forks source link

/usr/include/x86_64-linux-gnu/sys/types.h:25:10: fatal error: features.h: No such file or directory #132

Closed TylerJaacks closed 2 years ago

TylerJaacks commented 2 years ago

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 2 years ago

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 2 years ago

I ran the toolchain shell script

miigotu commented 2 years ago

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 2 years ago

Ok I fixed it I ran the sudo version of the toolchain.sh file and it worked.