EtchedPixels / Fuzix-Compiler-Kit

Fuzix C Compiler Project
Other
49 stars 13 forks source link

/lib/cpp: No such file or directory #161

Closed mk1nz closed 1 week ago

mk1nz commented 1 week ago
/opt/fcc//lib/cpp: line 4: /lib/cpp: No such file or directory
make[1]: *** [Makefile:26: __boolf.o] Error 1
make[1]: Leaving directory '/home/user/Fuzix-Compiler-Kit/support6303'
make: *** [Makefile:177: support6303] Error 2

[user@host Fuzix-Compiler-Kit]$ ls -lh /opt/fcc/lib/ | grep cpp
-rwxrwxrwx 1 user user   78 Nov 12 20:54 cpp
[user@host Fuzix-Compiler-Kit]$ 

Both /opt/fcc and /opt/fcc/bin are in PATH var. The same issue is under Mac and Linux (arch)

EtchedPixels commented 1 week ago

/lib/cpp is supplied by your underlying operating system. Either means you don't have a C preprocessor installed (seems unlikely) or your vendor isn't providing the standard Unix /lib/cpp. Do you have a /bin/cpp ?

mk1nz commented 1 week ago

Hello Alan!

There is /bin/cpp, but no cpp file anywhere except /opt/fcc/lib and the Compiler Kit src catalogue.

EtchedPixels commented 1 week ago

If you change the /opt/fcc/lib/cpp to instead use /bin/cpp that ought to work

mk1nz commented 1 week ago

It works. Only the 6502 target will not build, so I commented it out in the Makefile.

EtchedPixels commented 1 week ago

Thanks. I'll push a change that looks for both /lib/cpp and /bin/cpp