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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111240,e25f446492e3922c X-Google-Attributes: gid111240,public X-Google-Thread: 103376,e25f446492e3922c X-Google-Attributes: gid103376,public From: party@wantree.com.au (_Gareth_) Subject: Re: Gnat 3.10p (.rpm version) + Redhat 5.2 Date: 1998/12/14 Message-ID: <3668ccde.105348@news.wantree.com.au>#1/1 X-Deja-AN: 422035027 References: <36739635.336509@news.wantree.com.au> <751co5$2rt$1@nyheter.chalmers.se> Organization: Wantree Development Newsgroups: linux.redhat.misc,comp.lang.ada Date: 1998-12-14T00:00:00+00:00 List-Id: >I've put these lines in my ~/.bash_profile to set up the paths for >gnat: > ># For the GNU Ada compiler >GCC_EXEC_PREFIX=/usr/local/gnat/lib/gcc-lib/i386-linux/2.7.2.1/ >export GCC_EXEC_PREFIX >ADA_INCLUDE_PATH=/usr/local/gnat/lib/gcc-lib/i386-linux/2.7.2.1/adainclude >export ADA_INCLUDE_PATH >ADA_OBJECTS_PATH=/usr/local/gnat/lib/gcc-lib/i386-linux/2.7.2.1/adalib >export ADA_OBJECTS_PATH >LD_RUN_PATH=/usr/local/gnat/lib/gcc-lib/i386-linux/2.7.2.1/adalib >export LD_RUN_PATH >C_INCLUDE_PATH=/usr/local/gnat/lib/gcc-lib/i386-linux/2.7.2.1/include >export C_INCLUDE_PATH > >The down side of this approach is that my account always use the old gcc >that gnat uses, ie I can't compile C programs since some headerfiles are >elsewhere. >You should not do this on the root account since it's not a good idea >to compile kernels with the old gcc. Unfortunately this didn't work... thinking that I may have done something completely wrong, I reformatted and reinstalled Linux. >From a fresh copy, I logged in as root (the only account) and did the following: cd /tmp rpm -i gnat-3_10p-1_i386.rpm cd /usr/bin ln -s /usr/local/gnat/bin/gnatmake gnatmake (I assume I need to link gnatmake from the /usr/bin directory so that I may run gnatmake from any directory... as I've said, I'm new to Linux. I also believe I can only install .rpm or link files using the root account....?). >From there, I logged out and made another account. I then logged in with this new account ("gareth"). Inside the /gareth directory, I did the following: xedit .bash_profile & And I then added the following lines to the .bash_profile file: # For the GNU Ada compiler GCC_EXEC_PREFIX=/usr/local/gnat/lib/gcc-lib/i386-linux/2.7.2.1/ export GCC_EXEC_PREFIX ADA_INCLUDE_PATH=/usr/local/gnat/lib/gcc-lib/i386-linux/2.7.2.1/adainclude export ADA_INCLUDE_PATH ADA_OBJECTS_PATH=/usr/local/gnat/lib/gcc-lib/i386-linux/2.7.2.1/adalib export ADA_OBJECTS_PATH LD_RUN_PATH=/usr/local/gnat/lib/gcc-lib/i386-linux/2.7.2.1/adalib export LD_RUN_PATH C_INCLUDE_PATH=/usr/local/gnat/lib/gcc-lib/i386-linux/2.7.2.1/include export C_INCLUDE_PATH I then logged out and logged back in with the "gareth" account... Then: cd /usr/local/gnat/examples and then, typing "make" gives the exact same error message: ==== [gareth@localhost examples]# make gnatmake hello -cargs -O2 gcc -c -O2 hello.adb gcc: hello.adb: linker input file unused since linking not done gnatmake: "hello.ali" WARNING file not found after compile ./hello < hello.rsp /bin/sh: ./hello: No such file or directory make: *** [hello] Error 126 [gareth@localhost examples]# ==== Anything that I compile produces a line of: gcc: file.adb: linker input file unused since linking not done If anyone has recently installed the gnat-3_10p-1_i386.rpm file, could they please point me in the right direction as to what I'm doing wrong..... Many, many thanks... Gareth