Subject: Re: lang/gcc34-ada on Solaris 10
To: None <john@johnrshannon.com>
From: None <segv@netctl.net>
List: tech-pkg
Date: 10/31/2005 12:17:48
On Mon, 31 Oct 2005 04:18:12 -0700
"John R. Shannon" <john@johnrshannon.com> wrote:

> gcc 3.4.4 does not has support for Preallocated_Stacks. They were added to
> gcc trunk in Oct 2004.
> 
> What version of Gnat are you using?
> 
> I've built the Ada compiler for NetBSD on ix86 and Opteron hardware. I'm not 
> running Solaris on my only Sun hardware.

The bootstrap Ada compiler has Gnat 4.0.1

I have overcome the Preallocated_Stacks error by editing

work/gcc-3.4.4/gcc/ada/system.ads

and adding the following line

Preallocated_Stacks       : constant Boolean := False;

then I restarted the build and it fails again, now with:

gcc -c -g       -gnatpg -gnata -I- -I. -Iada
-I/opt/pkg32-2005Q3-gcc.obj/lang/gcc34-ada/work/gcc-3.4.4/gcc/ada /opt/pkg32-2005Q3-gcc.obj/lang/gcc34-ada/work/gcc-3.4.4/gcc/ada/atree.adb
-o ada/atree.o 
atree.adb:1857:07: warning: pragma Inline for "New_Entity_Debugging_Output" is
ignored
atree.adb:1929:07: warning: pragma Inline for "New_Node_Debugging_Output" is
ignored
atree.ads:1476:07: warning: pragma Inline for "Flag151" is redundant
atree.ads:1479:07: warning: pragma Inline for "Flag151" is redundant
atree.ads:1482:07: warning: pragma Inline for "Flag151" is redundant
atree.ads:1485:07: warning: pragma Inline for "Flag151" is redundant
atree.ads:1488:07: warning: pragma Inline for "Flag151" is redundant
atree.ads:1491:07: warning: pragma Inline for "Flag151" is redundant
atree.ads:1494:07: warning: pragma Inline for "Flag151" is redundant gmake[2]:
*** [ada/atree.o] Error 1 gmake[2]: Leaving directory
`/opt/pkg32-2005Q3-gcc.obj/lang/gcc34-ada/work/obj/gcc' gmake[1]: ***
[stage1_build] Error 2 gmake[1]: Leaving directory
`/opt/pkg32-2005Q3-gcc.obj/lang/gcc34-ada/work/obj/gcc' gmake: *** [bootstrap]
Error 2 *** Error code 2

Does bootstrap Gnat has to be the same version as the one I'm trying to build?
It would seem pretty stupid if it had to be this way.