* go support in gcc fails to compile while building gcc from source
@ 2023-04-17 16:02 anand akhare
2023-04-17 20:31 ` Ian Lance Taylor
0 siblings, 1 reply; 3+ messages in thread
From: anand akhare @ 2023-04-17 16:02 UTC (permalink / raw)
To: gcc-help
[-- Attachment #1: Type: text/plain, Size: 1222 bytes --]
Hello
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/<username>/srcs/gcc-10.4.0/x86_64-pc-linux-gnu/libgo'
/bin/bash: line 1: /home/<username>/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/<username>/srcs/gcc-10.4.0/install --with-mpc=/home/<username>/srcs/libs/install --with-mpfr=/home/<username>/srcs/libs/install --with-gmp=/home/<username>/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?
Regards
Anand
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: go support in gcc fails to compile while building gcc from source
2023-04-17 16:02 go support in gcc fails to compile while building gcc from source anand akhare
@ 2023-04-17 20:31 ` Ian Lance Taylor
2023-04-18 7:52 ` anand akhare
0 siblings, 1 reply; 3+ messages in thread
From: Ian Lance Taylor @ 2023-04-17 20:31 UTC (permalink / raw)
To: anand akhare; +Cc: gcc-help
On Mon, Apr 17, 2023 at 9:08 AM anand akhare via Gcc-help
<gcc-help@gcc.gnu.org> 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/<username>/srcs/gcc-10.4.0/x86_64-pc-linux-gnu/libgo'
> /bin/bash: line 1: /home/<username>/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/<username>/srcs/gcc-10.4.0/install --with-mpc=/home/<username>/srcs/libs/install --with-mpfr=/home/<username>/srcs/libs/install --with-gmp=/home/<username>/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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: go support in gcc fails to compile while building gcc from source
2023-04-17 20:31 ` Ian Lance Taylor
@ 2023-04-18 7:52 ` anand akhare
0 siblings, 0 replies; 3+ messages in thread
From: anand akhare @ 2023-04-18 7:52 UTC (permalink / raw)
To: Ian Lance Taylor; +Cc: gcc-help
[-- Attachment #1: Type: text/plain, Size: 1786 bytes --]
Hello
it worked out with empty new dir.
Regards
Anand
________________________________
From: Ian Lance Taylor <iant@golang.org>
Sent: 18 April 2023 02:01
To: anand akhare <anandstraight@outlook.com>
Cc: gcc-help@gnu.org <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
<gcc-help@gcc.gnu.org> 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/<username>/srcs/gcc-10.4.0/x86_64-pc-linux-gnu/libgo'
> /bin/bash: line 1: /home/<username>/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/<username>/srcs/gcc-10.4.0/install --with-mpc=/home/<username>/srcs/libs/install --with-mpfr=/home/<username>/srcs/libs/install --with-gmp=/home/<username>/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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-04-18 7:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-17 16:02 go support in gcc fails to compile while building gcc from source anand akhare
2023-04-17 20:31 ` Ian Lance Taylor
2023-04-18 7:52 ` anand akhare
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).