Hi David, hi all.

I am building the nightly snapshot. And __OpenBSD__ is defined by GCC.  
However there is no case for OpenBSD in Coro.c and therefore it does not  
compile.
PortableUContext compiles without a problem. But I do not know if it  
works, yet :-)

In the meanwhile I compiled etoile successfully. However etoile_system  
segfaults:
> 2007-10-09 00:37:24.623 etoile_system[25777] Setting up SCSystem server  
> instance
> /usr/local/GNUstep/Local/Tools/etoile_system:/usr/local/GNUstep/Local/Library/Bundles/libgnustep-back-013.bundle/./libgnustep-back-013:
>   
> undefined symbol 'FTC_Manager_New'
> lazy binding failed!
> Segmentation fault (core dumped)
I haven't figured out how to solve this problem with the library loading,  
yet. Maybe tommorow.


I made some further general observations:
1. It is a good idea to not use gcc 3.3.5 or 3.3.6. Instead update to gcc  
4.x

2. SCPower_OpenBSD.m
SCPower_OpenBSD.m:70: error: invalid type argument of '->'
SCPower_OpenBSD.m:77: error: 'APM_BATT_ABSENT' undeclared (first use in  
this fun
ction)
I changed '->' in line 70 in SCPower_OpenBSD.m to a dot without further  
checking. Do not know if it is okay. Just want to get on further. I will  
check it tommorrow.
Added an #ifdef APM_BATT_ABSENT wrapper in line 77.

3. SC_Sound:
SC_Sound includes sys/soundcard.h. On my OpenBSD box soundcard.h is  
located directly in usr/include and not in sys. So I changed it to include  
<soundcard.h>

5. make distclean
Entering directory `/home/marc/etoile/Etoile/Developer/Examples/IoExample'
gmake[3]: GNUmakefile: No such file or directory
Try a make distclean on etoile :-)


Ciao
marc


On Mon, 08 Oct 2007 20:54:45 +0200, David Chisnall <[EMAIL PROTECTED]>  
wrote:

> The Io language bindings use setcontext and getcontext to implement
> coroutines[1].  Are you building the /trunk version?  It appears to
> have a case for OpenBSD (check GCC is defining __OpenBSD__.  If not,
> can you let me know what it does define instead?).  If you are
> running on PowerPC[2] or i386, there is a portable implementation
> provided that you can use, which manually saves the registers and
> modifies the stack pointer.
>
> If you are on some other architecture, you can try implementing this
> yourself, or simply remove Io from the GNUmakefile in the Languages
> directory (or Languages from the root GNUmakefile).
>
> David
>
> [1] After a quick look at the code, it seems that Io uses ucontext in
> exactly the way that the spec says they should not be used (or,
> rather, that they have undefined behaviour).
> [2] The PowerPC implementation appears to use Apple's register
> allocation convention.  I don't know if this is used by OpenBSD on
> PowerPC.
>
> P.S.  What version of GCC are you using?
>
> On 8 Oct 2007, at 16:16, Bruenink Marc wrote:
>
>> Hi all,
>>
>> I am back from a long journey and one of the first things I want to
>> try was a new installation of etoile. However I stumble once more
>> about the unavailibility of get- and setcontext on OpenBSD. See:
>> http://cvs.openbsd.org/cgi-bin/query-pr-wrapper?
>> full=yes&textonly=yes&numbers=5099
>> https://mail.gna.org/public/etoile-discuss/2007-01/msg00002.html
>>
>> Is it possible to install etoile without set/getcontext?
>>
>>
>> Ciao
>> Marc
>>
>> _______________________________________________
>> Etoile-discuss mailing list
>> [email protected]
>> https://mail.gna.org/listinfo/etoile-discuss
>
>
> _______________________________________________
> Etoile-discuss mailing list
> [email protected]
> https://mail.gna.org/listinfo/etoile-discuss


_______________________________________________
Etoile-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-discuss

Répondre à