View previous topic :: View next topic |
Author |
Message |
kris
Joined: 27 Mar 2004 Posts: 1494 Location: South Pacific
|
Posted: Wed Dec 21, 2005 1:52 pm Post subject: linux? |
|
|
Does Ares currently run under linux? |
|
Back to top |
|
|
JJR
Joined: 22 Feb 2004 Posts: 1104
|
Posted: Wed Dec 21, 2005 11:14 pm Post subject: |
|
|
I imagined it to be linux ready. It, at least, built on Linux the last time I tried. |
|
Back to top |
|
|
JJR
Joined: 22 Feb 2004 Posts: 1104
|
Posted: Fri Dec 23, 2005 1:35 am Post subject: |
|
|
The last time I tried must have been awhile ago. It doesn't build at the moment.
-JJR
Last edited by JJR on Fri Dec 23, 2005 2:18 am; edited 1 time in total |
|
Back to top |
|
|
JJR
Joined: 22 Feb 2004 Posts: 1104
|
Posted: Fri Dec 23, 2005 1:49 am Post subject: |
|
|
On Linux compile fails:
In std/c/posix/pthread.d:
Code: | version( none )
{
PTHREAD_CANCEL_ASYNCHRONOUS
PTHREAD_CANCEL_ENABLE
PTHREAD_CANCEL_DEFERRED
PTHREAD_CANCEL_DISABLE
PTHREAD_CANCELED
PTHREAD_COND_INITIALIZER
PTHREAD_CREATE_DETACHED
PTHREAD_CREATE_JOINABLE
PTHREAD_EXPLICIT_SCHED
PTHREAD_INHERIT_SCHED
PTHREAD_MUTEX_INITIALIZER
PTHREAD_ONCE_INIT
PTHREAD_PROCESS_SHARED
PTHREAD_PROCESS_PRIVATE
} |
Were those supposed to be enums or constants?
I realize they are version(none) so I'll just comment it out for now.
-JJR |
|
Back to top |
|
|
JJR
Joined: 22 Feb 2004 Posts: 1104
|
Posted: Fri Dec 23, 2005 1:55 am Post subject: |
|
|
You're right, Kris. I guess the Linux version isn't ready. There's a bunch of undefined symbols left in the posix package. I can't test it for now. I would fix it, but I've got things to do!
-JJR |
|
Back to top |
|
|
Carlos
Joined: 19 Mar 2004 Posts: 396 Location: Canyon, TX
|
Posted: Fri Dec 23, 2005 5:15 pm Post subject: |
|
|
Ares also doesn't work on Mac OS X. |
|
Back to top |
|
|
sean
Joined: 24 Jun 2004 Posts: 609 Location: Bay Area, CA
|
Posted: Sun Dec 25, 2005 12:33 pm Post subject: |
|
|
Older versions of Ares worked on Linux, but I've since come to rely on more Posix stuff than is used by Phobos, so I can't rely only on the bit that was in std.thread in Phobos. The Posix headers coinsist largely of comments regarding what needs to go where because I don't have a Linux install available to grab the headers from. If anyone is willing to either patch them or just send me the C headers I'd be much obliged. Either way however, the implementation will be speculative as I can't test it without an install
And as for the version(none) blocks -- I'd forgotten that the stuff in there needs to be syntactically valid. I suppose they should be changed to commnent blocks for now.
By the way, Merry Christmas! I'm currently contending with knee-high newphews, far from home, but I should be back around new years. |
|
Back to top |
|
|
JJR
Joined: 22 Feb 2004 Posts: 1104
|
Posted: Thu Dec 29, 2005 1:23 am Post subject: |
|
|
Hello Sean,
I hope you are enjoying yourself while you are away!
Thanks for clarifying about Ares and Posix. I'm confused, though. Did I not send a pthreads.d module to you many moons ago that I gleaned from Linux headers? Was it incomplete, insufficient, or just plain not-what-you-wanted? I'd rather you be blunt with me about it's usefulness or uselessness than have me sitting here wondering why it was never used or mentioned during all this time. Don't worry, my feelings won't be hurt. (the pthread.d file is currently sitting quite dormant in the bindings project for now).
If it wasn't what you wanted, is there anything I can do to get it straightened out into a form that you would accept for submission? I don't mean to be in-your-face on this. Just trying to get to the point of the matter. I certainly can get things tested out for you on linux too.
Anyway, I hope you continue to enjoy your holidays! Have a safe return.
-JJR |
|
Back to top |
|
|
JJR
Joined: 22 Feb 2004 Posts: 1104
|
Posted: Thu Dec 29, 2005 1:25 am Post subject: |
|
|
Maybe what I can do is just try my current pthreads.d with Ares and see if it fills in enough of the missing pieces on Linux. It could be enough to get this portion working.
-JJR |
|
Back to top |
|
|
keinfarbton
Joined: 03 Dec 2005 Posts: 224 Location: Stuttgart - Germany
|
Posted: Fri Dec 30, 2005 5:26 am Post subject: |
|
|
I am currently working on a new C-Header->D Konverter. Called TioPort
It work in many different stepps. It uses the gcc and an antlr-gnu-c parser. So it recognizes the header contents. Until now I can generate some headers. You can download a few
http://www.drealtime.com/rtai/s2.zip
sched.h, pthread.h, ncurses.h, time.h - with all included headers.
These file were generated completely automatically.
They are not nice formated, but they contain many define constants, and nearly all the rest. I will work on it. The files compile fine, that's all for now I can say.
Thanks for any feedback.
Does anyone know how I can start a new Project here on dsource? |
|
Back to top |
|
|
jcc7
Joined: 22 Feb 2004 Posts: 657 Location: Muskogee, OK, USA
|
Posted: Fri Dec 30, 2005 10:46 am Post subject: |
|
|
tionex wrote: | Does anyone know how I can start a new Project here on dsource? | Either post a new topic about it in the "Potential Projects" forum or send a PM to brad. |
|
Back to top |
|
|
sean
Joined: 24 Jun 2004 Posts: 609 Location: Bay Area, CA
|
Posted: Fri Dec 30, 2005 1:23 pm Post subject: |
|
|
JJR wrote: | Thanks for clarifying about Ares and Posix. I'm confused, though. Did I not send a pthreads.d module to you many moons ago that I gleaned from Linux headers? Was it incomplete, insufficient, or just plain not-what-you-wanted? I'd rather you be blunt with me about it's usefulness or uselessness than have me sitting here wondering why it was never used or mentioned during all this time. Don't worry, my feelings won't be hurt. (the pthread.d file is currently sitting quite dormant in the bindings project for now). |
You did, and I used what I could out of it (if I remember correctly), but threading support requires a bunch of other headers as well. It's been a while, but I think I also need semaphore.h, sched.h, and sys/types.h. |
|
Back to top |
|
|
JJR
Joined: 22 Feb 2004 Posts: 1104
|
Posted: Fri Dec 30, 2005 4:42 pm Post subject: |
|
|
sean wrote: | You did, and I used what I could out of it (if I remember correctly), but threading support requires a bunch of other headers as well. It's been a while, but I think I also need semaphore.h, sched.h, and sys/types.h. |
Okay. Good to know. I did include semaphore stuff in the original pthread module (or most parts of it) because, back then, you mentioned that semaphores were necessary. I don't recall including portions of sched.h or sys/types.h.
Perhaps I can pull more things into it and see where it goes.
-JJR |
|
Back to top |
|
|
|