comp.lang.ada
 help / color / mirror / Atom feed
* Ada - Install
@ 2007-03-28 15:32 Finger.Octopus
  2007-03-28 16:40 ` Pascal Obry
  2007-03-28 16:44 ` Gautier
  0 siblings, 2 replies; 11+ messages in thread
From: Finger.Octopus @ 2007-03-28 15:32 UTC (permalink / raw)


I followed the tutorial on this site and dowloaded djdev203.zip,
bnu210b.zip and gnat314b.zip into e:\djgpp\ada.

But whenever I try to run this simple hello.adb program, I get the
following message:

E:\DJGPP\ada\bin>gnatmake HELLO.ADB
gcc -c hello.adb
fatal error, run-time library not installed correctly
cannot locate file system.ads
compilation abandoned
gnatmake: "hello.adb" compilation error

Plus I am confused about the "nanoslee.zip" thing --- how would I link
my file with it???

What should I do to get things working??????????




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

* Re: Ada - Install
  2007-03-28 15:32 Ada - Install Finger.Octopus
@ 2007-03-28 16:40 ` Pascal Obry
  2007-03-28 16:44 ` Gautier
  1 sibling, 0 replies; 11+ messages in thread
From: Pascal Obry @ 2007-03-28 16:40 UTC (permalink / raw)
  To: Finger.Octopus

Finger.Octopus@gmail.com a �crit :
> I followed the tutorial on this site and dowloaded djdev203.zip,
> bnu210b.zip and gnat314b.zip into e:\djgpp\ada.

This is very very old at this point! Please consider using GNAT GPL 2006
 or any other recent distribution of the free Ada compiler.

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|              http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595



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

* Re: Ada - Install
  2007-03-28 15:32 Ada - Install Finger.Octopus
  2007-03-28 16:40 ` Pascal Obry
@ 2007-03-28 16:44 ` Gautier
  2007-03-28 16:56   ` Finger.Octopus
  1 sibling, 1 reply; 11+ messages in thread
From: Gautier @ 2007-03-28 16:44 UTC (permalink / raw)


Finger.Octopus@gmail.com wrote:
> I followed the tutorial on this site [...]

Which site ?
What you did was installing the *DOS* version of the GNAT Ada compiler (along 
with GCC). This is a bit tricky, although it works.
But... are you really working on DOS (at least as a target system) ?
______________________________________________________________
Gautier         -- http://www.mysunrise.ch/users/gdm/index.htm
Ada programming -- http://www.mysunrise.ch/users/gdm/gsoft.htm

NB: For a direct answer, e-mail address on the Web site!



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

* Re: Ada - Install
  2007-03-28 16:44 ` Gautier
@ 2007-03-28 16:56   ` Finger.Octopus
  2007-03-28 17:56     ` Manuel Collado
  2007-03-28 18:41     ` Gautier
  0 siblings, 2 replies; 11+ messages in thread
From: Finger.Octopus @ 2007-03-28 16:56 UTC (permalink / raw)


On Mar 28, 9:44 pm, Gautier <gaut...@fakeaddress.nil> wrote:
> Finger.Octo...@gmail.com wrote:
> > I followed the tutorial on this site [...]
>
> Which site ?
> What you did was installing the *DOS* version of the GNAT Ada compiler (along
> with GCC). This is a bit tricky, although it works.
> But... are you really working on DOS (at least as a target system) ?
> ______________________________________________________________
> Gautier         --http://www.mysunrise.ch/users/gdm/index.htm
> Ada programming --http://www.mysunrise.ch/users/gdm/gsoft.htm
>
> NB: For a direct answer, e-mail address on the Web site!


This is the site:
http://homepage.sunrise.ch/mysunrise/gdm/gnatdos.htm

and yes I need a DOS version, cos Its not for the development
purposes, I just have to demonstrate how the program runs and links
with Ada to my class.




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

* Re: Ada - Install
  2007-03-28 16:56   ` Finger.Octopus
@ 2007-03-28 17:56     ` Manuel Collado
  2007-03-28 18:32       ` Finger.Octopus
  2007-03-28 18:41     ` Gautier
  1 sibling, 1 reply; 11+ messages in thread
From: Manuel Collado @ 2007-03-28 17:56 UTC (permalink / raw)


Finger.Octopus@gmail.com escribi�:
> On Mar 28, 9:44 pm, Gautier <gaut...@fakeaddress.nil> wrote:
>> Finger.Octo...@gmail.com wrote:
>>> I followed the tutorial on this site [...]
>> Which site ?
>> What you did was installing the *DOS* version of the GNAT Ada compiler (along
>> with GCC). This is a bit tricky, although it works.
>> But... are you really working on DOS (at least as a target system) ?
> 
> This is the site:
> http://homepage.sunrise.ch/mysunrise/gdm/gnatdos.htm
> 
> and yes I need a DOS version, cos Its not for the development
> purposes, I just have to demonstrate how the program runs and links
> with Ada to my class.

DJGPP has its own newsgroup:  comp.os.msdos.djgpp

And the main website is:  http://www.delorie.com/djgpp/

You can find here recent ports of gcc (up to 4.1.0), including the Ada 
compiler.

Regards.
-- 
Manuel Collado - http://lml.ls.fi.upm.es/~mcollado



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

* Re: Ada - Install
  2007-03-28 17:56     ` Manuel Collado
@ 2007-03-28 18:32       ` Finger.Octopus
  2007-03-28 19:18         ` Gautier
  0 siblings, 1 reply; 11+ messages in thread
From: Finger.Octopus @ 2007-03-28 18:32 UTC (permalink / raw)



Ok, I tried gnat-3.15, and still I get this message:

C:\GNAT\bin>gnatmake hello.adb
gcc -c hello.adb
gnatbind -x hello.ali
gnatlink hello.ali
C:\GNAT\lib\gcc-lib\pentium-mingw32msv\2.8.1\adalib\libgnat.a(a-
adaint.o)(.text+
0x4f8):a-adaint.c: undefined reference to `readdir'
gnatlink: cannot call C:\GNAT\bin\gcc.exe
gnatmake: *** link failed.

?????????????????????????????????




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

* Re: Ada - Install
  2007-03-28 16:56   ` Finger.Octopus
  2007-03-28 17:56     ` Manuel Collado
@ 2007-03-28 18:41     ` Gautier
  2007-03-28 18:57       ` Finger.Octopus
  1 sibling, 1 reply; 11+ messages in thread
From: Gautier @ 2007-03-28 18:41 UTC (permalink / raw)


Finger.Octopus@gmail.com:

> This is the site:
> http://homepage.sunrise.ch/mysunrise/gdm/gnatdos.htm

Ah-hum, yeah, I used to maintain this page... I should emphasize that the 
instructions are for the 3.14 version only, a very old one - from ~2002 - as 
you can see in the table above. As from some time in 2005, the Ada compiler is 
fully integrated in the DOS GCC, aka DJGPP, as you can also read in Manuel's 
reply.

> and yes I need a DOS version, cos Its not for the development
> purposes, I just have to demonstrate how the program runs and links
> with Ada to my class.

You can use the Windows version for demonstration purposes too. It will be 
easier (installation, no 8.3 crunched file names). I don't see the point...
Or do you have a machine with a DOS only, and neither Windows nor Linux, perhaps ?
______________________________________________________________
Gautier         -- http://www.mysunrise.ch/users/gdm/index.htm
Ada programming -- http://www.mysunrise.ch/users/gdm/gsoft.htm

NB: For a direct answer, e-mail address on the Web site!



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

* Re: Ada - Install
  2007-03-28 18:41     ` Gautier
@ 2007-03-28 18:57       ` Finger.Octopus
  0 siblings, 0 replies; 11+ messages in thread
From: Finger.Octopus @ 2007-03-28 18:57 UTC (permalink / raw)


I tried the windows version of GNAT, and I get that linking error. :'(




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

* Re: Ada - Install
  2007-03-28 18:32       ` Finger.Octopus
@ 2007-03-28 19:18         ` Gautier
  2007-03-29  3:31           ` Finger.Octopus
  0 siblings, 1 reply; 11+ messages in thread
From: Gautier @ 2007-03-28 19:18 UTC (permalink / raw)


Finger.Octopus@gmail.com wrote:
> Ok, I tried gnat-3.15, and still I get this message:
> 
> C:\GNAT\bin>gnatmake hello.adb
> gcc -c hello.adb
> gnatbind -x hello.ali
> gnatlink hello.ali
> C:\GNAT\lib\gcc-lib\pentium-mingw32msv\2.8.1\adalib\libgnat.a(a-
> adaint.o)(.text+
> 0x4f8):a-adaint.c: undefined reference to `readdir'
> gnatlink: cannot call C:\GNAT\bin\gcc.exe
> gnatmake: *** link failed.
> 
> ?????????????????????????????????

Sounds like you have several GNATs or GCCs around making a version jam.
Maybe looking at the PATH will reveal which version comes first. Is it 
possible that you have rests of you DOS compiler around ?...
Or did you move libraries or something like that after installing 3.15 ?
HTH
______________________________________________________________
Gautier         -- http://www.mysunrise.ch/users/gdm/index.htm
Ada programming -- http://www.mysunrise.ch/users/gdm/gsoft.htm

NB: For a direct answer, e-mail address on the Web site!



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

* Re: Ada - Install
  2007-03-28 19:18         ` Gautier
@ 2007-03-29  3:31           ` Finger.Octopus
  2007-03-29 11:49             ` Jeffrey Creem
  0 siblings, 1 reply; 11+ messages in thread
From: Finger.Octopus @ 2007-03-29  3:31 UTC (permalink / raw)


Nope, I only have one GNAT in my path variable, though I have many DOS
GNAT and MinGW installed, but none of them are in my path variable,
see:
echo %path%

E:\GNAT\bin;E:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS
\System32\Wbem
;C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:
\Program F
iles\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files
\Microsoft Visua
l Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio
\VC98\bin;G:\Langu
ages-ins\dm845c\dm\bin;G:\Languages-ins\JAVA_DEVELOPERS_KIT
\jdk1.5.0_01\jdk1.5.0
_01\bin;E:\php5;E:\masm;E:\tasm-mini




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

* Re: Ada - Install
  2007-03-29  3:31           ` Finger.Octopus
@ 2007-03-29 11:49             ` Jeffrey Creem
  0 siblings, 0 replies; 11+ messages in thread
From: Jeffrey Creem @ 2007-03-29 11:49 UTC (permalink / raw)


Finger.Octopus@gmail.com wrote:
> Nope, I only have one GNAT in my path variable, though I have many DOS
> GNAT and MinGW installed, but none of them are in my path variable,
> see:
> echo %path%
> 
> E:\GNAT\bin;E:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS
> \System32\Wbem
> ;C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:
> \Program F
> iles\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files
> \Microsoft Visua
> l Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio
> \VC98\bin;G:\Langu
> ages-ins\dm845c\dm\bin;G:\Languages-ins\JAVA_DEVELOPERS_KIT
> \jdk1.5.0_01\jdk1.5.0
> _01\bin;E:\php5;E:\masm;E:\tasm-mini
> 

A few thoughts.

1) I'm still a bit confused because earlier you indicated you needed a 
DOS version but that is clearly not a DOS machine given the path. Did 
you simply mean you needed something you could run at a command line 
that looked an awful lot like the way DOS used to look? A command prompt 
under windows is not the same thing as DOS.

2) I seem to recall some problems with some versions when they were not 
installed on the C: drive. I might be thinking of something else but it 
is worth a try.

3) Perhaps one of the other versions of things that you have installed 
someplace has set one or more of the GCC related environment variables 
(either via the old autoexec.bat the control panel environment variable tab)

4) Perhaps there is something going on with a similar set of variables 
which can be (and were) set in the registry on old versions.

Since that path you have clearly indicates this is not a DOS machine, 
I'd recommend uninstalling all of the GNAT versions you have. Go to

https://libre.adacore.com/index.html

Get a recent version of GNAT. Install it and try again.

Even the newest version you get can still be called from the windows 
command line which is almost certainly what we are talking about here 
unless someone has backported the jdk1.5.0 to DOS.



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

end of thread, other threads:[~2007-03-29 11:49 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-28 15:32 Ada - Install Finger.Octopus
2007-03-28 16:40 ` Pascal Obry
2007-03-28 16:44 ` Gautier
2007-03-28 16:56   ` Finger.Octopus
2007-03-28 17:56     ` Manuel Collado
2007-03-28 18:32       ` Finger.Octopus
2007-03-28 19:18         ` Gautier
2007-03-29  3:31           ` Finger.Octopus
2007-03-29 11:49             ` Jeffrey Creem
2007-03-28 18:41     ` Gautier
2007-03-28 18:57       ` Finger.Octopus

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