gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gm2] gm2 on gcc-5.2.0


From: Gaius Mulley
Subject: Re: [Gm2] gm2 on gcc-5.2.0
Date: Sun, 01 Jan 2017 12:55:11 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

john o goyo <address@hidden> writes:

> Gaius:
>
> On 24/12/2016 10:22, Gaius Mulley wrote:
>>
>> Hi,
>>
>> just to report that the gm2 graft onto gcc-5.2.0 now completely builds
>> on an LP64 debian system with the following results.
>
> The gm2-5.2.0 build fails (with the latest tarball) on Solaris
> 10/sparc. On Solaris, POSIX threads are in libpthread, not libpth.  Is
> there a simple way to switch from -lpth to -lpthread in the gm2
> portion?
>
> john

Hi John,

there isn't yet a simple way, it could be implemented if required
though.  Gm2 uses libpth for the create context (NEWPROCESS), switch
context (TRANSFER) and pth_select for (IOTRANSFER).  Do these low level
(create context/switch context) primitives exist in libpthread ?

Here are the actual symbols used:

pth_uctx_create, pth_uctx_make,
pth_uctx_save, pth_uctx_switch,

and type

pth_uctx_t

If these symbols exist then we could certainly change the driver to pick
up -lpthread at link time in the gm2 driver.  ./configure could also be
changed to override the choice at build time as well.

I wonder if it might be easier to build libpth and install it locally
to work around the problem for now?

regards,
Gaius



reply via email to

[Prev in Thread] Current Thread [Next in Thread]