Subject: Re: lang/gcc34-ada on Solaris 10
To: None <segv@netctl.net>
From: John R. Shannon <john@johnrshannon.com>
List: tech-pkg
Date: 10/31/2005 05:25:36
--nextPart1179464.1DuMKoCH49
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

In general, you can not build earlier releases of gcc with newer gcc=20
compilers. In about an hour I'll have a version of pkgsrc for gcc 4.0.2 Ada=
=20
for you to try; I'll E-mail you when it's ready.

On Monday 31 October 2005 05:17 am, segv@netctl.net wrote:
> 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 :=3D 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_Outpu=
t"
> 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.

=2D-=20
John R. Shannon
john@johnrshannon.com
john.r.shannon@saic.com
john.r.shannon@us.army.mil
shannonjr@NetBSD.org

--nextPart1179464.1DuMKoCH49
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Disposition: attachment; filename="smime.p7s"
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIDrTCCA6kw
ggMSoAMCAQICEBn8ah8qR+o8XD7FUqezlGwwDQYJKoZIhvcNAQEFBQAwgYExCzAJBgNVBAYTAlVT
MRgwFgYDVQQKEw9VLlMuIEdvdmVybm1lbnQxDDAKBgNVBAsTA0RPRDEMMAoGA1UECxMDUEtJMRMw
EQYDVQQLEwpDb250cmFjdG9yMQ8wDQYDVQQLEwZJRUNBLTMxFjAUBgNVBAMTDVZlcmlTaWduIElF
Q0EwHhcNMDUwMzIzMDAwMDAwWhcNMDYwMzIzMjM1OTU5WjCBqDELMAkGA1UEBhMCVVMxGDAWBgNV
BAoUD1UuUy4gR292ZXJubWVudDEMMAoGA1UECxQDRE9EMQwwCgYDVQQLFANQS0kxEzARBgNVBAsU
CkNvbnRyYWN0b3IxDzANBgNVBAsUBklFQ0EtMzEcMBoGA1UECxQTQ29tcGFueSBOYW1lIC0gU0FJ
QzEfMB0GA1UEAxMWSm9obiBTaGFubm9uMTAwMDIxMzQ3MTCBnzANBgkqhk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