comp.lang.ada
 help / color / mirror / Atom feed
From: Tapio Kelloniemi <spam12@thack.org>
Subject: Re: GCC 3.3.3 Update
Date: Fri, 28 May 2004 04:17:52 GMT
Date: 2004-05-28T04:17:52+00:00	[thread overview]
Message-ID: <Q3ztc.4326$mo2.2910@reader1.news.jippii.net> (raw)
In-Reply-To: pan.2004.05.27.21.00.48.250055@hotmail.com

"Lars J. Nilsson" <fungrim@hotmail.com> wrote:
>Hello, I'm a Linux and Ada newbie. I recently had to update my vanilla
>RedHat9 (GCC 3.2.2.5) and attempted an install of GCC 3.3.3. Everything
>went smoothly. No errors. But now I get:
>
>>>>>>>>>>>>>>>>>
>[larsan@silver tmp]$ gnatmake execute.adb
>gcc -c execute.adb
>fatal error, run-time library not installed correctly
>cannot locate file system.ads

Did you install from RPMs, from prebuilt binaries or from sources? I
assume you compiled GCC yourself. Did you used something like the
following commands:

cd gcc-3.3.3/gcc/ada &&
touch treeprs.ads [es]info.h nmake.ad[bs] &&
# These make sure that everything is compiled OK.

cd ../.. &&
mkdir ../gcc-build &&
cd ../gcc-build &&
../gcc-3.3.3/configure --prefix=/usr --enable-shared \
  --enable-languages=c,c++,objc,f77,ada,java --enable-threads=posix \
  --enable-__cxa_atexit --enable-clocale=gnu &&
make bootstrap &&
# The following line compiles the Ada runtime library and tools.  I
# really think that you haven't done this
make -C gcc gnatlib_and_tools &&
# Install everything:
make install


>GNAT was properly installed before my upgrade and working. The system.ads
>file is located at:
>
>    /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/adainclude/system.ads

And because your gcc is 3.3.3, gnat doesn't look up it there. And it
may even be that your old Ada library would not work anyway with the
new GCC.  If it is the case that you haven't accidentally compiled the
gnat library (the command is not very well documented as far as I
see), you must recompile GCC with the previously mentioned
commands. Another question is how to do it now when your GNAT is
broken and it can't compile anything (gnat depends on itself as you
probably know). Probably you should reinstall your old GCC and then
update it (perhaps straight to 3.4.0 or to latest CVS which may have
additional bug fixes), GCC 3.4 has many GNAT advancements (gnats of
3.2.2 and 3.3.3 are almost identical).

If you can't install the RPM, you must install GNAT from the official
binaries (version 3.14p, gnat does not compile itself with 3.15p) and
follow the instructions in the Beyond Linux From Scratch book
(http://www.linuxfromscratch.org).

This procedure however is not straight-forward. Anyway, consider
removing your GCC RPMs before issuing make install so you don't have
multiple versions of files and in the worst case in separate directory
hierarchies in which case your PATH defines which GCC you'll use.

-- 
Tapio



  reply	other threads:[~2004-05-28  4:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-27 21:00 GCC 3.3.3 Update Lars J. Nilsson
2004-05-28  4:17 ` Tapio Kelloniemi [this message]
2004-05-28 13:46   ` Lars J. Nilsson
2004-05-28 16:37     ` Adrian Knoth
2004-05-29 11:52   ` Lars J. Nilsson
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox