Trying to build Gnat on MACOSX 10.5 PPC

Trying to build Gnat on MACOSX 10.5 PPC

Post by Paul Onion » Mon, 29 Mar 2010 00:00:24

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 and also from the gnat-gpl-2009-43-powerpc-apple-
darwin8.11.0-bin.tar binary from, but both
result in the same error in stage 2 of the bootstrap process, ending

--- 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/ -o ada/
+===========================GNAT BUG
| 4.4.3 (powerpc-apple-darwin9.8.0) Bus
error |
| Error detected around (null):
0 |
| Please submit a bug report; see
| 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,

Trying to build Gnat on MACOSX 10.5 PPC

Post by Paul Onion » Mon, 29 Mar 2010 08:48:04

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?


Trying to build Gnat on MACOSX 10.5 PPC

Post by Jerr » Thu, 01 Apr 2010 10:13:18

You might try inquiring at the list at

Trying to build Gnat on MACOSX 10.5 PPC

Post by Warre » Thu, 01 Apr 2010 22:41:31

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:

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