[csw-maintainers] GCC 4.6 progress

Maciej (Matchek) Bliziński maciej at opencsw.org
Mon Sep 26 09:28:09 CEST 2011


2011/8/15 Peter FELECAN <pfelecan at opencsw.org>:
> Are you trying to build with Sun's C compiler? (I never succeeded to build
> gcc with that compiler) In the affirmative you'll have a heavy time
> generating the Ada compiler.

This time has just begun!

The story goes like this: I got PPL and Cloog in place and tried
compiling adding Ada to the list of language frontends.  The GCC build
system complained that GNAT is missing.  I thought I would build a
separate package with GNAT, but it turns out that it's built by GCC as
part of Ada, so there is a circular dependency: you need Ada to build
Ada.

I tried to install gcc3ada and use GNAT (gnatmake and gnatlink) from
/opt/csw/gcc3/bin, but it failed:

/opt/csw/gcc3/bin/gcc -c -g -fkeep-inline-functions  -gnatpg -gnata
-gnatwns -nostdinc -I- -I. -Iada
-I/home/maciej/src/opencsw/pkg/gcc4/trunk/work/build-isa-sparcv8/gcc-4.6.1/gcc/ada
-I/home/maciej/src/opencsw/pkg/gcc4/trunk/work/build-isa-sparcv8/gcc-4.6.1/gcc/ada/gcc-interface
/home/maciej/src/opencsw/pkg/gcc4/trunk/work/build-isa-sparcv8/gcc-4.6.1/gcc/ada/butil.adb
-o ada/butil.o
gcc: error: xsnamest.adb: Ada compiler not installed on this system
gnatmake: "xsnamest.adb" compilation error
/bin/bash: ./xsnamest: No such file or directory
gmake[3]: *** [ada/stamp-snames] Error 127
gmake[3]: *** Waiting for unfinished jobs....
gmake[3]: Leaving directory
`/home/maciej/src/opencsw/pkg/gcc4/trunk/work/build-isa-sparcv8/objdir/gcc'

Not sure why it happens, since gcc3 seems to have been built with Ada support.

Looking for a way to break the dependency cycle, I found place that
ships source code for something called "GNAT GPL":

http://libre.adacore.com/libre/download/

I went on to read the README.BUILD file:

"""
--------------------------------------
-- BUILDING GNAT - GENERAL COMMENTS --
--------------------------------------

GNAT being mainly written in Ada, you need GNAT to compile it. So, the
procedures described here presume that you have GCC and the current or the
previous version of GNAT installed -- i.e. the "gcc" command will run GNAT.
"""

So, no cookie.

At this point, it would make the most sense to find out why "Ada
compiler not installed on this system", while gcc3ada is in fact
there.

Any help and/or advice would be appreciated.

Maciej


More information about the maintainers mailing list