Hello it worked out with empty new dir. Regards Anand ________________________________ From: Ian Lance Taylor Sent: 18 April 2023 02:01 To: anand akhare Cc: gcc-help@gnu.org Subject: Re: go support in gcc fails to compile while building gcc from source On Mon, Apr 17, 2023 at 9:08 AM anand akhare via Gcc-help wrote: > > I am compiling gcc 10.4.0 and it works well for c and c++. To get go support, configure was given enable-langugages=c,c++,go and later make -j8 and build fails with below error > > ake[3]: Entering directory '/home//srcs/gcc-10.4.0/x86_64-pc-linux-gnu/libgo' > /bin/bash: line 1: /home//srcs/gcc-10.4.0/host-x86_64-pc-linux-gnu/gcc/gccgo: No such file or directory > > I have masked username in log to hide it. Log still holds same as for compile. I did not investigate much on makefile though setup is quite simple. I am using ubuntu linux 22.0.4 and compiling gcc 10.4.0 source tarball taken from ftp of gcc.gnu.org and using binary installed gcc 10.4.0. Below is configure command before make : > > ./configure --prefix=/home//srcs/gcc-10.4.0/install --with-mpc=/home//srcs/libs/install --with-mpfr=/home//srcs/libs/install --with-gmp=/home//srcs/libs/install --enable-languages=c,c++,go > > There is not much issue with most things appear due to first compile without go that c and c++ worked. > > Pls give inputs if anything missing that compile is failing for go. Do we need go installed before building go from source? Don't use "./configure". Run configure in a different, empty, directory. See https://gcc.gnu.org/install/configure.html . Ian