I made a customized pcc build by doing doing the classical ./configure && make -j$(nproc) && sudo make install
on pcc cloned from https://github.com/IanHarvey/pcc
.
It compiles a hello-world C file fine, but unlike the prebuilt pcc
from the Ubuntu repo, it fails to link, giving the error message:
ld: cannot find crtbegin.o: No such file or directory
ld: cannot find -lpcc: No such file or directory
error: ld terminated with status 1
How do I fix this?