First time GCC builder, trying 4.7

Patrick patrick@spellingbeewinnars.org
Sat Feb 4 13:14:00 GMT 2012


> You haven't said which instructions you followed, or which commands
> you ran, or shown the entire error message, so it's hard for anyone to
> answer the question.
>
> Have you read http://gcc.gnu.org/wiki/InstallingGCC ?
Hi Jonathan, Hi List

So I have been trying for hours and have hit multiple dead ends. I was 
not following along with the official instructions but rather ones I 
found on other websites and ran configure inside the src directory.

The shortest and most official error using the proper instruction is 
this configuration error:
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... no
checking for mawk... mawk
checking for libitm support... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gnatbind... gnatbind
checking for gnatmake... gnatmake
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 
$$f1 $$f2
checking for objdir... .libs
checking for PWL_handle_timeout in -lpwl... no
checking for version 0.11 (revision 0 or later) of PPL... no
configure: error: GNAT is required to build ada

and here are the specific configuration switches:
  --prefix=/usr/Manual_Compile -enable-languages="c,ada" --disable-libada

I have gnat installed from my Trisquel linux repository(it's based on 
Ubuntu) and I also have gnat-gpl installed and in my PATH but I am 
getting this error when trying to build a trival ada program:

gcc: error trying to exec 'gnat1': execvp: No such file or directory

Here is the results of find:
: find /usr -name "gnat1"
/usr/gnat/libexec/gcc/x86_64-pc-linux-gnu/4.5.3/gnat1
/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.4/gnat1
/usr/lib/gcc-snapshot/libexec/gcc/i686-linux-gnu/4.7.0/gnat1

Aquiring gcc with the -fdump-ada-spec option enabled is my motivation 
for the manual compile.

Another list member was very helpful offlist and my unofficial build 
bombed in /libjava/classpath but maybe I should leave this until later 
after the official configure script issue is solved.

Thanks for reading-Patrick



More information about the Gcc-help mailing list