From: Paul Onions on
Has anyone had any success in building Gnat from the GCC sources on a
MACOSX 10.5 (Leopard) PowerPC machine?

I'm trying to build GCC 4.4.3 with Ada support, but so far with no
success. I have tried bootstrapping from the GnatPPC-4.3.dmg binary
from macada.org and also from the gnat-gpl-2009-43-powerpc-apple-
darwin8.11.0-bin.tar binary from gnuada.sourceforge.net, but both
result in the same error in stage 2 of the bootstrap process, ending
in:

--- cut here ---
/usr/local/src/gcc-4.4/gcc-4.4.3-build/./prev-gcc/xgcc -B/usr/local/
src/gcc-4.4/gcc-4.4.3-build/./prev-gcc/ -B/usr/local/gnat-4.4.3/
powerpc-apple-darwin9.8.0/bin/ -c -g -O2 -mdynamic-no-pic -gnatpg -
gnata -nostdinc -I- -I. -Iada -I../../gcc-4.4.3/gcc/ada -I../../
gcc-4.4.3/gcc/ada/gcc-interface ../../gcc-4.4.3/gcc/ada/ada.ads -o ada/
ada.o
+===========================GNAT BUG
DETECTED==============================+
| 4.4.3 (powerpc-apple-darwin9.8.0) Bus
error |
| Error detected around (null):
0 |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html.
|
| Use a subject line meaningful to you and us to track the
bug. |
| Include the entire contents of this bug box in the
report. |
| Include the exact gcc or gnatmake command that you
entered. |
| Also include sources listed below in gnatchop
format |
| (concatenated together with no headers between
files). |
+==========================================================================
+

Please include these source files with error report
Note that list may not be accurate in some cases,
so please double check that the problem can still
be reproduced with the set of files listed.

list may be incomplete
compilation abandoned
make[3]: *** [ada/ada.o] Error 1
make[2]: *** [all-stage2-gcc] Error 2
make[1]: *** [stage2-bubble] Error 2
make: *** [all] Error 2
--- cut here ---

Which looks to me like the first time the newly built compiler is used
to compile an Ada file, it fails completely.

BTW I also get this error when I try to build from MacPorts.

I have used the above mentioned binaries to build simple hello-world
Ada executables, and they seem to work, but both give warnings about
missing symbols. Could this be related to my problems?

Do these problems also occur with Intel machines, or is it restricted
to PPC only? I've googled a lot over the past few days, and the whole
Leopard/Snow-Leopard Intel/PPC scene seems to be very unclear (at
least to my newbie eyes).

Any help greatly appreciated,
Paul
From: Paul Onions on
On Mar 27, 3:00 pm, Paul Onions <wibbl...(a)mac.com> wrote:
> Has anyone had any success in building Gnat from the GCC sources on a
> MACOSX 10.5 (Leopard) PowerPC machine?
>
> I'm trying to build GCC 4.4.3 with Ada support, but so far with no
> success. I have tried bootstrapping from the GnatPPC-4.3.dmg binary
> from macada.org and also from the gnat-gpl-2009-43-powerpc-apple-
> darwin8.11.0-bin.tar binary from gnuada.sourceforge.net, but both
> result in the same error in stage 2 of the bootstrap process, ending
> in:
>
> ...

Just tried bootstrapping with GNAT/GPL 2006 from AdaCore,
and it does get further -- to stage 3 -- but fails in the same way
on the same file.

I'm sure this should tell me something, but I have no real experience
in compiling GCC from source, so I don't understand what this means.

Anyone else know?
Paul
From: Jerry on
You might try inquiring at the list at macada.org.
Jerry
From: Warren on
Jerry expounded in news:ae78396d-73b2-40b6-8f3f-035149ff5782
@h27g2000yqm.googlegroups.com:

> You might try inquiring at the list at macada.org.
> Jerry

That's good news. I need it to work there when I finish
my C to Ada rewrite.

On a related note, where's the best place to get it for
Solaris? I see the site:

http://gnuada.sourceforge.net/pmwiki.php/Install/Solaris

but it's most recent update seems to be 2007.

Warren