From: Anonymous Coward on
Starting with GCC 3.2.2, and the following versions of GNAT
(distributed with Red Hat 9):

GNATMAKE 3.2.2 20030222 (3.2.2-4) Copyright 1995-2001 Free Software Foundation, Inc.
GNATBIND 3.2.2 20030222 (3.2.2-4) Copyright 1995-2001 Free Software Foundation, Inc.

I attempted to install the latest GNAT from gcc-4.0.2.tar.bz2, as follows:

% mkdir /usr/local/src/gcc-4.0.2/obj
% cd !$
% ../configure
% make bootstrap
% make install

It built a non-Ada version of GCC that cannot compile *.ad[sb] files,
and there is no gnatmake, gnatbind, or gnatlink provided. The
installation notes don't require any specific action to get Ada.
There is only a special case for admins that want to withhold Ada, so
I was expecting it to come automatically.

Any ideas?

The Ada prereqs in the install guide state:

In order to build GNAT, the Ada compiler, you need a working GNAT
compiler (GNAT version 3.14 or later, or GCC version 3.1 or later),
including GNAT tools such as gnatmake and gnatlink, since the Ada
front end is written in Ada (with some GNAT-specific extensions),
and GNU make.

I believe I meet these requirements. My original version of GCC
compiled Ada code, it just didn't support Ada in GDB.
From: Georg Bauhaus on
Anonymous Coward wrote:
> Starting with GCC 3.2.2, and the following versions of GNAT
> (distributed with Red Hat 9):
>
> GNATMAKE 3.2.2 20030222 (3.2.2-4) Copyright 1995-2001 Free Software Foundation, Inc.
> GNATBIND 3.2.2 20030222 (3.2.2-4) Copyright 1995-2001 Free Software Foundation, Inc.
>
> I attempted to install the latest GNAT from gcc-4.0.2.tar.bz2, as follows:
>
> % mkdir /usr/local/src/gcc-4.0.2/obj
> % cd !$
> % ../configure
> % make bootstrap
> % make install
>

What does config.status in the build directory say about
enabled languages?
From: Jerome Hugues on
In article <43843808$0$20855$9b4e6d93(a)newsread2.arcor-online.net>, Georg Bauhaus wrote:
> Anonymous Coward wrote:
>> Starting with GCC 3.2.2, and the following versions of GNAT
>> (distributed with Red Hat 9):
>>
>> GNATMAKE 3.2.2 20030222 (3.2.2-4) Copyright 1995-2001 Free Software Foundation, Inc.
>> GNATBIND 3.2.2 20030222 (3.2.2-4) Copyright 1995-2001 Free Software Foundation, Inc.
>>
>> I attempted to install the latest GNAT from gcc-4.0.2.tar.bz2, as follows:
>>
>> % mkdir /usr/local/src/gcc-4.0.2/obj
>> % cd !$
>> % ../configure
>> % make bootstrap
>> % make install
>>
>
> What does config.status in the build directory say about
> enabled languages?

The documentation is clear:

--enable-languages=lang1,lang2,...

[..]

If you do not pass this flag, or specify the option all, then all
default languages available in the gcc sub-tree will be
configured. Ada, Objective-C++, and treelang are not default
languages;

==> you have to explicitely indicate you want Ada

--
Jerome
From: Tapio Kelloniemi on
Anonymous Coward wrote:
> Starting with GCC 3.2.2, and the following versions of GNAT
> (distributed with Red Hat 9):
>
> GNATMAKE 3.2.2 20030222 (3.2.2-4) Copyright 1995-2001 Free Software Found
>ation, Inc.
> GNATBIND 3.2.2 20030222 (3.2.2-4) Copyright 1995-2001 Free Software Found
>ation, Inc.
>
> I attempted to install the latest GNAT from gcc-4.0.2.tar.bz2, as follows:

You should not use GCC-4.0.2, but the current cvs (gcc-4_0-branch),
since it has some bugs fixed. IIRC, there is some Ada-related update also.

> % mkdir /usr/local/src/gcc-4.0.2/obj
> % cd !$
> % ../configure
> % make bootstrap
> % make install

Remember to change ownership and permissions of
/usr/lib/gcc/.../ada{include,lib}/*. They are not what you wouuld
like them to be (should be 0644 for files, except 0755 for shared libraries,
but at least on my build .ali-files were 0400).

--
Tapio
From: Martin Krischik on
Anonymous Coward wrote:

> Any ideas?

I run a wiki on the subject:

http://ada.krischik.com/index.php/Articles/CompileGNATGPL

Maybe it is of help. If you have any improvements or special notes for
red-hat don't hesitate to hit the edit button.

Martin
--
mailto://krischik(a)users.sourceforge.net
Ada programming at: http://ada.krischik.com