This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: compiler driver that understands Ada... no
- From: "Rupert Wood" <me at rupey dot net>
- To: "'Carl B. Constantine'" <cconstan at csc dot UVic dot CA>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Tue, 29 Apr 2003 07:14:08 +0100
- Subject: RE: compiler driver that understands Ada... no
Carl B. Constantine wrote:
> Ok, in the distro of gnat 3.15p (for solaris sparc) I see the
> following potential candidates for this:
>
> cc1
> cpp
> xgcc
Uh, have you run gnat's ./doconfig script? That generates a 'doinstall'
script that, amongst other things, renames xgcc to gcc. It also puts all the
binaries in the tree layout that gcc expects. cc1 the backend C compiler and
cpp is a separate C preprocessor.
OK, I've tried this on our sun box: I unpacked it, told doconfig to install
it to gnat315p in my home directory and then I added [...]/gnat315p/bin to
the start of PATH, [...]/gnat315p/lib to the start of LD_LIBRARY_PATH. After
that, it's using the gcc that gnat provide as the main C compiler:
fox:~/build/323ada$ gcc -v
Reading specs from [...]/lib/gcc-lib/sparc-sun-solaris2.5.1/2.8.1/specs
gcc version 2.8.1
fox:~/build/323ada$ ~/cvs/gcc32/configure
--prefix=[...]/local/gcc32 --enable-threads=posix
--disable-checking --disable-nls --with-cpu=ultrasparc
--enable-long-long --enable-languages=ada
Configuring for a sparc-sun-solaris2.8 host.
[...]
checking for compiler driver that understands Ada... gcc
which looks OK (and no messing with the ADAC variable!).
After you've configured it, you'll want to follow the ADA instructions on
the GCC site
http://gcc.gnu.org/install/build.html#TOC3
I've got a bit of time before other people want to use the box so I'll make
sure this all works builds OK (and get back to you if it doesn't).
Good luck,
Rup.