comp.lang.ada
 help / color / mirror / Atom feed
From: a2c0102@sun2.lrz-muenchen.de (Rolf Ebert)
Subject: Re: TASK and Gnat 1.83 under Linux
Date: 11 Nov 1994 12:28:00 GMT
Date: 1994-11-11T12:28:00+00:00	[thread overview]
Message-ID: <A2C0102.94Nov11132800@sun2.lrz-muenchen.de> (raw)
In-Reply-To: smcneil@netcom.com's message of Thu, 10 Nov 1994 06:15:27 GMT

In article <smcneilCz1G1r.Jos@netcom.com> smcneil@netcom.com (Sean McNeil) writes:

> rogliano patrice <rogliano@hpux_19.u-psud.fr> wrote:
> >
> >	Hie guys,
> >
> >First I would like to excuse myself for my bad english (I am a french Student)...
> >
> >I am learning Ada at University and I am trying to use Gnat on my Linux Box.
> >All the programs I've compiled without any task succeeded BUT I couldn't 
> >use any Task... 
> >The message I received told me that some symbols couldn't be resolved during
> >the binding phase (gnatbl -o task task.ali).
> >So I tried to use the library libgthreads.a which is in /usr/lib/gcc-lib/2.6.0/gnatlib/
> >but this file is just about 200 bytes!!! It couldn't bind either....
> 
> I believe that libgthreads.a is just an interface to pthreads (or just
> a stub library??).  What you need is a libpthreads.a - a library for
> pthread support.
> 

The pthreads library is based on early work for the Gnu Ada runtime.
Gthreads and pthreads have some quite common parts. Some exported names
are different and functionality is not exactly the same.  Unfortunately
some parts of gthreads are written in Sparc assembler, which makes it
hard to port it to other systems. As far as I know this part has been
rewritten in C for the pthreads library.

There seems to be quite some interest in using Ada task on Linux. I
don't have the time and the knowledge to do the port myself, but I can
give some initial help, if someone voloteers.

Right now the file /usr/lib/gcc-lib/2.6.0/adalib/libgthreads.a is just a
dummy. Its existance is needed for gnatbl, but actually this lib does
not contain any useful symbol.

	Rolf
--
-----------------------------------------------------------------------------
Rolf Ebert	Conseil en Energetique et Simulation               (Team Ada)
                Beratung fuer Energiesysteme und Simulation
Tel: +49 89 30.77.88.00
Fax: +49 89 30.77.91.00                              Rolf.Ebert@waporo.muc.de
-----------------------------------------------------------------------------



      reply	other threads:[~1994-11-11 12:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-11-09 11:00 TASK and Gnat 1.83 under Linux rogliano patrice
1994-11-10  6:15 ` Sean McNeil
1994-11-11 12:28   ` Rolf Ebert [this message]
replies disabled

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