comp.lang.ada
 help / color / mirror / Atom feed
From: sk <sk@noname.com>
To: "comp.lang.ada mail to news gateway" <comp.lang.ada@ada.eu.org>
Subject: Re: Ada and LFS (was : error building gcc 3.2.1)
Date: Sun, 23 Feb 2003 21:54:19 -0600
Date: 2003-02-23T21:54:19-06:00	[thread overview]
Message-ID: <mailman.44.1046058543.9948.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: 3E3AEF65.6000004@noname.com

Hi,

arbeizaf@ono.com :
 > Well, it is the option chosen by the blfs book. But I have decided to
 > choose the option a.

I have finally got back to chapter five of LFS and have had nothing but
problems trying to get gcc-3.2 (LFS-4.0) to bootstrap with Ada
enabled.

Anybody have any hints on how to bootstrap a gcc-3.2 with Ada enabled ?

I have tried with Gnat 3.13p, 3.14p and 3.15p and whenever the Ada
compilation occurrs, I get the following

make[3]: Entering directory `/mnt/lfs/build/build/gcc-build/gcc/ada'
gnatgcc -c -g  -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wtraditional     -W -Wall -gnatpg -gnata -I- -I.
-I../../../gcc-3.2/gcc/ada ../../../gcc-3.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

 From a delve through the gcc-3.2 Ada sources, the "system.ads" file
does not contain theses variables but my host "system.ads" (installed
with the binary Gnat distributions) does.

It seems as if the gnat gcc somehow refers to its "own" system.ads when
trying to compile the system.ads provided with gcc-3.2.

--
Running Linux 2.4.18 kernel, gnat 3.[13p,14p,15p] all available

Running gcc 3.0.4 Mandrake (or 2.8.1 if I allow the GNAT path
to take precedence)

Building gcc-3.2 (gcc-3.2.1 contains the same "system.ads" as
the gcc-3.2, "$Revision: 1.1.16.1 $") with "--languages=c,ada"

Symbolic link "gnatgcc" to "/usr/gnat/bin/gcc" (dependening on
which gnat is being used) so that the gcc make detects Ada ability.
(and also "/usr/gnat" is a symbolic-link to either "/usr/Gnat-3.13p"
or "/usr/Gnat-3.14p" or "/usr/Gnat-3.15p". Does "/usr/gnat" being a
link have any side-effects ?).

Thanks in advance for any tips.

-- 
--
-- Merge vertically for real address
--
------------------------------------
-- s n p @ t . o
--  k i e k c c m
------------------------------------




       reply	other threads:[~2003-02-24  3:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3E3AEF65.6000004@noname.com>
2003-02-24  3:54 ` sk [this message]
2003-02-24 12:54 ` Ada and LFS (was : error building gcc 3.2.1) sk
2003-02-25 10:49   ` Fernando Arbeiza
2003-01-31 21:49 sk
2003-01-31 23:22 ` Fernando Arbeiza
replies disabled

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