comp.lang.ada
 help / color / mirror / Atom feed
* Gnat 3.10p (.rpm version) + Redhat 5.2 = Not working (I'm new to this)
@ 1998-12-13  0:00 _Gareth_
  1998-12-13  0:00 ` Gnat 3.10p (.rpm version) + Redhat 5.2 Anders Gidenstam
  0 siblings, 1 reply; 5+ messages in thread
From: _Gareth_ @ 1998-12-13  0:00 UTC (permalink / raw)



Hi all!

The installation of the .rpm version of Gnat 3.10p worked fine on
RedHat 5.2. (No error messages).

I then went into the /user/doc/ directory and read the "README.redhat"
file, which asked to do two things (one was to fix the path). I've
only had Linux on my system for two days, so I'm not sure about how to
change the path, or even where it's stored... (/etc/profile I
believe).

The README.redhat file gave two commands (such as "export
path=....").... Do I simply copy & paste these to the command prompt
and hit enter?


When I try to "make" the example versions, I receive the following
error:

====
[root@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
[root@localhost examples]# 
====

When I try to "gnatmake" my own ada files, I get the line "gcc:
file.ad*: linker input file unused since linking not done".

What is the problem? What does it mean by linking not done?

Can someone *please* point this "newbie" in the right direction?

Many thanks,
Gareth Forward








^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Gnat 3.10p (.rpm version) + Redhat 5.2
  1998-12-13  0:00 Gnat 3.10p (.rpm version) + Redhat 5.2 = Not working (I'm new to this) _Gareth_
@ 1998-12-13  0:00 ` Anders Gidenstam
  1998-12-14  0:00   ` _Gareth_
  0 siblings, 1 reply; 5+ messages in thread
From: Anders Gidenstam @ 1998-12-13  0:00 UTC (permalink / raw)


In article <36739635.336509@news.wantree.com.au>,
	party@wantree.com.au (_Gareth_) writes:
>The README.redhat file gave two commands (such as "export
>path=....").... Do I simply copy & paste these to the command prompt
>and hit enter?

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.
 
/Anders

-- 
--------------------------------------------
"A well-written program is its own heaven; 
 a poorly-written program is its own hell."
  - The Tao of Programming 





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Gnat 3.10p (.rpm version) + Redhat 5.2
  1998-12-13  0:00 ` Gnat 3.10p (.rpm version) + Redhat 5.2 Anders Gidenstam
@ 1998-12-14  0:00   ` _Gareth_
  1998-12-14  0:00     ` Andreas Jungmaier
  1998-12-14  0:00     ` _Gareth_
  0 siblings, 2 replies; 5+ messages in thread
From: _Gareth_ @ 1998-12-14  0:00 UTC (permalink / raw)



>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




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Gnat 3.10p (.rpm version) + Redhat 5.2
  1998-12-14  0:00   ` _Gareth_
@ 1998-12-14  0:00     ` Andreas Jungmaier
  1998-12-14  0:00     ` _Gareth_
  1 sibling, 0 replies; 5+ messages in thread
From: Andreas Jungmaier @ 1998-12-14  0:00 UTC (permalink / raw)
  To: _Gareth_

Hello,

> >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

> ====
> [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

Well, usually you will have installed either gcc or egcs a C compiler.
Unfortunately I do not know the rpm-version of gnat, but it looks
as though you try to compile an Ada program with a normal gcc (that
does not understand Ada).

You will need to make sure that the Ada-enabled gcc is in your PATH
before the standard gcc, which is in /usr/bin, I think.
If you do not know how to do that, you will need to get a book, or a
friend who knows Unix (or Linux :-) and learn some of the basics first.
Don't worry, after a while you will love it...

Andreas

Andreas Jungmaier, Dipl.-Ing.
Gerhard-Mercator-Universitaet-GH Duisburg FB9/DV
Bismarckstr. 81, 47048 Duisburg, Germany                                
Tel.: +49 (0203) 379-2728       Fax: +49 (0203) 370439
email: ajung@uni-duisburg.de 	www.fb9dv.uni-duisburg.de/members/ajung/






^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Gnat 3.10p (.rpm version) + Redhat 5.2
  1998-12-14  0:00   ` _Gareth_
  1998-12-14  0:00     ` Andreas Jungmaier
@ 1998-12-14  0:00     ` _Gareth_
  1 sibling, 0 replies; 5+ messages in thread
From: _Gareth_ @ 1998-12-14  0:00 UTC (permalink / raw)



>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.....


Thanks to the people who've contacted me regarding the gnat
installation.

The method from my previous post was fine, I simply needed to add
"/usr/local/gnat/bin" to the start of my path in the .bash_profile
file.

Many thanks to all!

Gareth Forward




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1998-12-14  0:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-12-13  0:00 Gnat 3.10p (.rpm version) + Redhat 5.2 = Not working (I'm new to this) _Gareth_
1998-12-13  0:00 ` Gnat 3.10p (.rpm version) + Redhat 5.2 Anders Gidenstam
1998-12-14  0:00   ` _Gareth_
1998-12-14  0:00     ` Andreas Jungmaier
1998-12-14  0:00     ` _Gareth_

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