comp.lang.ada
 help / color / mirror / Atom feed
* Ada and LFS (was : error building gcc 3.2.1)
@ 2003-01-31 21:49 sk
  2003-01-31 23:22 ` Fernando Arbeiza
  0 siblings, 1 reply; 5+ messages in thread
From: sk @ 2003-01-31 21:49 UTC (permalink / raw)
  To: comp.lang.ada

Hi,

<Changing threads>

noemail915@hannes-birnbacher.de

and

arbeizaf@ono.com

Interesting, I haven't looked at blfs so not familiar
with how it is done.

I am using LFS 4.0 book and packages and was wondering
which path to follow :

a) Start from chapter 5 with Ada enabled (and GNAT
available from the build host).

b) Install CNAT in chapter 6 prior to building gcc
with Ada enabled.

c) Ignore Ada and build the whole LFS, insall GNAT
and then re-build gcc

It would appear that option "c" is the one chosen
by the blfs approach and yourselves ?


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




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Ada and LFS (was : error building gcc 3.2.1)
  2003-01-31 21:49 Ada and LFS (was : error building gcc 3.2.1) sk
@ 2003-01-31 23:22 ` Fernando Arbeiza
  0 siblings, 0 replies; 5+ messages in thread
From: Fernando Arbeiza @ 2003-01-31 23:22 UTC (permalink / raw)


Hi:

On Fri, 31 Jan 2003 15:49:25 -0600, sk <sk@noname.com> wrote:
> a) Start from chapter 5 with Ada enabled (and GNAT
> available from the build host).
> 
> b) Install CNAT in chapter 6 prior to building gcc
> with Ada enabled.
> 
> c) Ignore Ada and build the whole LFS, insall GNAT
> and then re-build gcc
> 
> It would appear that option "c" is the one chosen
> by the blfs approach and yourselves ?

Well, it is the option chosen by the blfs book. But I have decided to
choose the option a.

Then, after installing gcc with Ada enabled in chapter 5, you don't need
the precompiled Gnat (and you won't need it to build the next LFS
system).

I have succeeded in building gcc with Ada enabled in chapter 5. I have
not begun with chapter 6 yet but I don't expect any problems.

Regards, 
-- 
Fernando Arbeiza        <URL: mailto:arbeizaf@ono.com>
Crea tu propio Linux:   <URL: http://www.escomposlinux.org/lfs-es>



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Ada and LFS (was : error building gcc 3.2.1)
       [not found] <3E3AEF65.6000004@noname.com>
@ 2003-02-24  3:54 ` sk
  2003-02-24 12:54 ` sk
  1 sibling, 0 replies; 5+ messages in thread
From: sk @ 2003-02-24  3:54 UTC (permalink / raw)
  To: comp.lang.ada mail to news gateway

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
------------------------------------




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Ada and LFS (was : error building gcc 3.2.1)
       [not found] <3E3AEF65.6000004@noname.com>
  2003-02-24  3:54 ` sk
@ 2003-02-24 12:54 ` sk
  2003-02-25 10:49   ` Fernando Arbeiza
  1 sibling, 1 reply; 5+ messages in thread
From: sk @ 2003-02-24 12:54 UTC (permalink / raw)
  To: comp.lang.ada mail to news gateway

Hi,

Never mind, I guess that option "3" of "./doconfig" should have
given me a clue. Using "/usr/gnat" as a symbolic link seems to be
the problem. However, still cannot seem to get 3.15p to
boostrap for gcc (3.13p and 3.14p work).


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




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Ada and LFS (was : error building gcc 3.2.1)
  2003-02-24 12:54 ` sk
@ 2003-02-25 10:49   ` Fernando Arbeiza
  0 siblings, 0 replies; 5+ messages in thread
From: Fernando Arbeiza @ 2003-02-25 10:49 UTC (permalink / raw)


Hi:

On Mon, 24 Feb 2003 06:54:42 -0600, sk <sk@noname.com> wrote:
> Never mind, I guess that option "3" of "./doconfig" should have
> given me a clue. Using "/usr/gnat" as a symbolic link seems to be
> the problem. However, still cannot seem to get 3.15p to
> boostrap for gcc (3.13p and 3.14p work).

It seems that gnat-3.15p will not work with gcc-3.2.1:

    <URL: http://blfs-bugs.linuxfromscratch.org/show_bug.cgi?id=132>

Regards,
-- 
Fernando Arbeiza        <URL: mailto:arbeizaf@ono.com>
Crea tu propio Linux:   <URL: http://www.escomposlinux.org/lfs-es>



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-02-25 10:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-31 21:49 Ada and LFS (was : error building gcc 3.2.1) sk
2003-01-31 23:22 ` Fernando Arbeiza
     [not found] <3E3AEF65.6000004@noname.com>
2003-02-24  3:54 ` sk
2003-02-24 12:54 ` sk
2003-02-25 10:49   ` Fernando Arbeiza

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