From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,be8344a44f09d569 X-Google-Attributes: gid103376,public Path: controlnews3.google.com!news1.google.com!news.glorb.com!news-stoc.telia.net!news-stoa.telia.net!telia.net!nntp.inet.fi!inet.fi!feeder1.news.jippii.net!reader1.news.jippii.net!53ab2750!not-for-mail From: Tapio Kelloniemi Subject: Re: GCC 3.3.3 Update References: Newsgroups: comp.lang.ada Message-ID: Date: Fri, 28 May 2004 04:17:52 GMT NNTP-Posting-Host: 217.30.176.187 X-Complaints-To: newsmaster@saunalahti.com X-Trace: reader1.news.jippii.net 1085717872 217.30.176.187 (Fri, 28 May 2004 07:17:52 EEST) NNTP-Posting-Date: Fri, 28 May 2004 07:17:52 EEST Organization: Saunalahti Customer Xref: controlnews3.google.com comp.lang.ada:890 Date: 2004-05-28T04:17:52+00:00 List-Id: "Lars J. Nilsson" 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