Re: go support in gcc fails to compile while building gcc from source

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello
    it worked out with empty new dir.

Regards
Anand


________________________________
From: Ian Lance Taylor <iant@xxxxxxxxxx>
Sent: 18 April 2023 02:01
To: anand akhare <anandstraight@xxxxxxxxxxx>
Cc: gcc-help@xxxxxxx <gcc-help@xxxxxxx>
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@xxxxxxxxxxx> 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




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux