Hi! On Mon, Dec 25, 2023 at 08:11:23PM +0530, Prashant via Gcc-help wrote: > I'm trying to build the gcc repository. Based on the instructions given on > the SummerOfCode - GCC Wiki (gnu.org) > <https://gcc.gnu.org/wiki/SummerOfCode#Before_you_apply> and GCC for New > Contributors — GCC Contributors Guide 0.1 documentation > (gcc-newbies-guide.readthedocs.io) > <https://gcc-newbies-guide.readthedocs.io/en/latest/>, I have tried the > following commands. > > 1) git clone git://gcc.gnu.org/git/gcc.git > 2) cd gcc & ./contrib/download_prerequisites > 3) mkdir objdir & cd objdir > 4) ../gcc/configure --prefix=/home/path/to/gcc --enable-languages=c,c++ That is wrong. Build dir as a subdir of the source dir is not supported. It might work in many cases, but that does not mean it is okay to do. > Running the 5th throws the following error: > 'xgcc: fatal error: cannot execute ‘cc1plus’: posix_spawnp: No such file or > directory > compilation terminated.' I don't know if that is one of the weird problems caused by this. Easy enough to find out. First "make distclean", and then "git status". The error message says that the newly compiled compiler driver ("xgcc", which will be insbtalled as just "gcc" eventually) cannot execute the newly compiled actual C++ compiler ("cc1plus"), not from the place it thinks it put it, anyway. gl;hf, happy holidays, let us know how it went / what else you find out, Segher