I have gcc source code, stage1-build and test directories as siblings and I've been trying to compile test.c in test/ using:
../stage1-build/gcc/cc1 test.c but getting error as: In file included from test.c:1: /usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: No such file or directory 27 | #include <bits/libc-header-start.h> | ^~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. It does compile when stdio.h is not included using #include. Source code configures and make runs without error. Any solution or explanation? Thanks.