comp.lang.ada
 help / color / mirror / Atom feed
From: "Luke A. Guest" <laguest@abyss2-nospam.demon.co.uk>
Subject: Re: GNAT 5.0 for the curious
Date: Wed, 03 Sep 2003 22:04:19 +0100
Date: 2003-09-03T22:04:19+01:00	[thread overview]
Message-ID: <pan.2003.09.03.21.04.17.78550@abyss2-nospam.demon.co.uk> (raw)
In-Reply-To: 20030901224402.1ab4b545.david@realityrift.com

On Mon, 01 Sep 2003 20:45:04 +0000, David Holm wrote:

> There is only one patch (against gcc 3.2(.3)), you use gnat 3.15p to bootstrap the compiler.
> Check the ebuild for the complete build process (dev-lang/gnat). As for gcc cross compilation,
> if you are not already familiar with it, there are lots of sites describing this. For instance
> the gcc cross compilation faq.

I knew I'd have trouble - I'm not too sure about ebuild scripts you see.
Anyway, here are the steps I used to build gcc-3.2.2/gnat-5:

tar -xjpf /usr/portage/distfiles/gcc-3.2.2.tar.bz2
tar -xjpf /usr/portage/distfiles/gnat-5.0_pre20030822.tar.bz2
mv gnat-5.0_pre20030822 gcc-3.2.2/ada
cd gcc-3.2.2
patch -p0 < ada/gcc-32.dif
touch gcc/cstamp-h.in
touch gcc/ada/[es]info.h
touch gcc/ada/nmake.ad[bs]
../gcc-3.2.2/configure --prefix=/opt/mips-toolchain --program-prefix=gnat
--enable-languages="c,c++,ada" --disable-nls --target=mips-elf
--with-gnu-as --with-gnu-ld
make

<output>
...
make[2]: Leaving directory `/usr/src/mine/mips-3.2/build-gcc-3.2.2/gcc/intl'
make -C ada "AR_FLAGS_FOR_TARGET=" "AR_CREATE_FOR_TARGET=gnatar  rc" "AR_EXTRACT_FOR_TARGET=gnatar  x" "AR_FOR_TARGET=gnatar" "BISON=bison" "BISONFLAGS=" "CFLAGS=-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional " "DESTDIR=" "GCC_FOR_TARGET=/usr/src/mine/mips-3.2/build-gcc-3.2.2/gcc/xgcc -B/usr/src/mine/mips-3.2/build-gcc-3.2.2/gcc/ -B/opt/mips-toolchain/mips-elf/bin/ -B/opt/mips-toolchain/mips-elf/lib/ -isystem /opt/mips-toolchain/mips-elf/include" "LDFLAGS=" "FLEX=flex" "FLEXFLAGS=" "LN=ln" "LN_S=ln -s" "MAKEINFO=makeinfo " "MAKEINFOFLAGS=" "MAKEOVERRIDES=" "RANLIB_FOR_TARGET=gnatranlib" "RANLIB_TEST_FOR_TARGET=[ -f gnatranlib ] || ( [ "i686-pc-linux-gnu" = "mips-unknown-elf" ] && [ -f /usr/bin/ranlib -o -f /bin/ranlib ] )" "SHELL=/bin/sh" "exeext=" "build_exeext=" "objext=.o" "exec_prefix=/opt/mips-toolchain" "prefix=/opt/mips-toolchain" "local_prefix=/usr/local" "gxx_include_dir=/opt/mips-toolchain/lib/gcc-lib/mips-elf/3.2.2/../../../..`echo /opt/mips-toolchain | sed -e 's|^/opt/mips-toolchain||' -e 's|/[^/]*|/..|g'`/include/c++/3.2.2" "build_tooldir=/opt/mips-toolchain/mips-elf" "gcc_tooldir=/opt/mips-toolchain/lib/gcc-lib/mips-elf/3.2.2/../../../../mips-elf" "bindir=/opt/mips-toolchain/bin" "libsubdir=/opt/mips-toolchain/lib/gcc-lib/mips-elf/3.2.2" "datadir=/opt/mips-toolchain/share" "localedir=/opt/mips-toolchain/share/locale" "CC=gcc" "STAGE_PREFIX=" "ADA_FOR_BUILD=" "ADA_INCLUDE_DIR=/opt/mips-toolchain/lib/gcc-lib/mips-elf/3.2.2/adainclude" "ADA_RTL_OBJ_DIR=/opt/mips-toolchain/lib/gcc-lib/mips-elf/3.2.2/adalib" "ADAFLAGS=-W -Wall -gnatpg -gnata" "ADA_FOR_TARGET=" "INSTALL_DATA=/bin/sh /usr/src/mine/mips-3.2/gcc-3.2.2/install-sh -c -m 644" "INSTALL_PROGRAM=/bin/sh /usr/src/mine/mips-3.2/gcc-3.2.2/install-sh -c " \
        ../gnat1
make[2]: Entering directory `/usr/src/mine/mips-3.2/build-gcc-3.2.2/gcc/ada'
gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wtraditional     -W -Wall -gnatpg -gnata -I- -I. -I../../../gcc-3.2.2/gcc/ada ../../../gcc-3.2.2/gcc/ada/ada.ads
fatal error: system.ads is incorrectly formatted
missing line for parameter: Backend_Divide_Checks
fatal error: system.ads is incorrectly formatted
missing line for parameter: Backend_Overflow_Checks
fatal error: system.ads is incorrectly formatted
missing line for parameter: Fractional_Fixed_Ops
compilation abandoned
make[2]: *** [ada.o] Error 1
make[2]: Leaving directory `/usr/src/mine/mips-3.2/build-gcc-3.2.2/gcc/ada'
make[1]: *** [gnat1] Error 2
make[1]: Leaving directory `/usr/src/mine/mips-3.2/build-gcc-3.2.2/gcc'
make: *** [all-gcc] Error 2

I've also tried 2.8.1:

tar -xjpf /usr/portage/distfiles/gcc-2.8.1.tar.bz2
tar -xzpf /usr/portage/distfiles/gnat-3.15p-src.tgz
mv gnat-3.15p-src/src/ada gcc-2.8.1/
cd gcc-2.8.1/
patch -p0 < ../gnat-3.15p-src/src/gcc-281.dif
touch cstamp-h.in
for i in `find ada  -name '*.ad[sb]'`; do sed -i -e
"s/\"gcc\"/\"gnatgcc\"/g" ${i}; done
cd ada
cd ../../
mkdir build-gcc-2.8.1
cd build-gcc-2.8.1
make

<output>
...
make[1]: Entering directory `/usr/src/mine/mips-3.2/build-gcc-2.8.1/ada'
gcc -c -DCROSS_COMPILE -DIN_GCC   -g      -I- -I. -I.. -I../../gcc-2.8.1/ada -I../../gcc-2.8.1/ada/.. -I../../gcc-2.8.1/ada/../config \
  ../../gcc-2.8.1/ada/a-gettty.c
../../gcc-2.8.1/ada/a-gettty.c: In function `get_target_wchar_t_size':
../../gcc-2.8.1/ada/a-gettty.c:108: `WCHAR_TYPE_SIZE' undeclared (first use in this function)
../../gcc-2.8.1/ada/a-gettty.c:108: (Each undeclared identifier is reported only once
../../gcc-2.8.1/ada/a-gettty.c:108: for each function it appears in.)
make[1]: *** [a-gettty.o] Error 1
make[1]: Leaving directory `/usr/src/mine/mips-3.2/build-gcc-2.8.1/ada'
make: *** [gnat1] Error 2

Can you try it out (preferably v5) for me and see if you can actually
build it? I have been able to create C/C++ cross compilers without any
trouble, just Ada.

Thanks,
Luke.




  reply	other threads:[~2003-09-03 21:04 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-27 15:29 GNAT 5.0 for the curious David Holm
2003-08-27 19:40 ` Ludovic Brenta
2003-08-27 19:58   ` David Holm
2003-08-27 22:45   ` Jeffrey Creem
2003-08-29 18:14 ` Luke A. Guest
2003-08-29 20:10   ` David Holm
2003-08-29 22:54     ` Luke A. Guest
2003-08-30 11:41       ` David Holm
2003-08-30 11:53         ` Luke A. Guest
2003-08-30 13:34           ` David Holm
2003-08-31 19:21             ` Luke A. Guest
2003-09-01  3:19               ` David Holm
2003-09-01 10:08                 ` Stephane Richard
2003-09-01 18:47                 ` Luke A. Guest
2003-09-01 20:45                   ` David Holm
2003-09-03 21:04                     ` Luke A. Guest [this message]
2003-09-04  6:37                       ` David Holm
2003-09-04 10:34                         ` Luke A. Guest
2003-09-03 15:56         ` Stephen Leake
2003-08-29 22:58     ` Luke A. Guest
2003-08-30 11:38       ` David Holm
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox