This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC CVS head Ada compile problem.
- From: "John R. Shannon" <john at johnrshannon dot com>
- To: gcc at gcc dot gnu dot org, heitkamp at ameritech dot net
- Date: Sat, 5 Jun 2004 11:29:55 -0600
- Subject: Re: GCC CVS head Ada compile problem.
- Organization: johnrshannon.com
- References: <Pine.LNX.4.56.0406051116170.20863@pc1.fred.org>
- Reply-to: john at johnrshannon dot com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
You need a Ada compiler to build Ada.
With your bootstrap gcc, you should be able to execute:
gcc -print-prog-name=gnat1
and get an answer like:
$ gcc -print-prog-name=gnat1
/usr/pkg/gcc-3.4.0/libexec/gcc/i386--netbsdelf2.0/3.4.0/gnat1
On Saturday 05 June 2004 11:21 am, F. Heitkamp wrote:
> For giggles I have been trying to compile GCC CVS on both PowerPC and
> i686 Linux machines. The Ada compile always fails with something like:
>
> make CC=" stage1/xgcc -Bstage1/
> -B/exports/gcc_cvs/powerpc-unknown-linux-gnu/bin/" CC_FOR_BUILD="
> stage1/xgcc -Bstage1/ -B/exports/gcc_cvs/powerpc-unknown-linux-gnu/bin/" \
> STAGE_PREFIX=stage1/ \
> ADAFLAGS="-gnatpg -gnata" CFLAGS="-g -O2 " LDFLAGS=""
> WARN_CFLAGS="\$(GCC_WARN_CFLAGS)" STRICT_WARN="-pedantic -Wno-long-long
> -Wno-variadic-macros -Wold-style-definition -Werror"
> libdir=/exports/gcc_cvs/lib LANGUAGES="c gcov gcov-dump ada c++ f95 java
> objc" MAKEINFO="makeinfo --split-size=5000000" MAKEINFOFLAGS="--no-split"
> MAKEOVERRIDES= OUTPUT_OPTION="-o \$@" \
> CFLAGS="-g -O2 " WERROR="-Werror"
> make[2]: Entering directory `/exports/src/gcc-bin/gcc'
> stage1/xgcc -Bstage1/ -B/exports/gcc_cvs/powerpc-unknown-linux-gnu/bin/ -c
> -g -O2 -gnatpg -gnata -I- -I. -Iada -I../../gcc-cvs/gcc/gcc/ada
> ../../gcc-cvs/gcc/gcc/ada/ada.ads -o ada/ada.o
> xgcc: installation problem, cannot exec 'gnat1': No such file or directory
> make[2]: *** [ada/ada.o] Error 1
> make[2]: Leaving directory `/exports/src/gcc-bin/gcc'
> make[1]: *** [stage2_build] Error 2
> make[1]: Leaving directory `/exports/src/gcc-bin/gcc'
> make: *** [bootstrap] Error 2
>
> I am using: linpmac:~# gcc --version
> gcc (GCC) 3.4.0
> Copyright (C) 2004 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
>
> My question is GCC CVS head broken at the moment in regards to compiling
> Ada or is my setup broken somehow? Which version of GCC/Ada to I need to
> compile the CVS head GCC?
>
> Fred
>
> Error Loading Explorer.exe
> You must reinstall Windows.
- --
John R. Shannon
john@johnrshannon.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)
iEYEARECAAYFAkDCAxwACgkQOKbCxya4HYumDACeM36GzkSq1lOtXqjhXVOWQdtr
RX8AoKlIJkAEZdkFqDmt+rPwmCdLBTRR
=bqBU
-----END PGP SIGNATURE-----