- Edited
I'm not too sure why, but it seems my GCC is completely broken. I've reinstalled gcc, gcc-libs, g++, ldb, and a few other related libraries, but none resolved my issue. When I attempt to compile a hello world program like such:
Any idea how to fix this?
# include <stdio.h>
int main(void)
{
puts("Hello world");
return 0;
}
I receive the following error:
/usr/local/include/stdio.h:6:10: fatal error: arch/cdefs.h: No such file or directory
6 | # include <arch/cdefs.h>
| ^~~~~~~~~~~~~~
compilation terminated.
Likewise, any other gcc-reliant compiler (like g++) displays errors during compilation.Any idea how to fix this?