FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

building gld fails completely

 
Post new topic   Reply to topic     Forum Index -> Schooner
View previous topic :: View next topic  
Author Message
funsheep



Joined: 24 Jan 2007
Posts: 25

PostPosted: Wed Jan 24, 2007 3:40 pm    Post subject: building gld fails completely Reply with quote

Hi,

the linux binaries dont work for me. All examples say "Floating exception".

So i tried to build the source. This doesnt work also. I am using bud (version 3.04) and the gdc compiler (version 4.0.3) with linux (Red Hat Enterprise or something).

so here it goes:
Code:

bud -clean -full buildme.d
buildme
sh: buildme: command not found
Error: AssertError Failure buildme.d(42) Command failed: buildme


then i tried to execute the buildme in gl/ myself. that works, but says:
Code:

gdc: unrecognized option '-Hdheaders'


and now, like the "root buildme", i tried the x11 buildme (i had to compile it on my own, since the root buildme broke up before):
Code:

source/glx.d:51: module gl cannot read file 'gl.d'


and now im stuck. what to do? can someone help me on this?
Back to top
View user's profile Send private message
Bradley Smith



Joined: 20 Jun 2006
Posts: 60

PostPosted: Wed Jan 24, 2007 5:20 pm    Post subject: Reply with quote

I recently discovered that dmd and gdc are incompatible. Since gld has only been built and tested with dmd, it is understandable that it does not work for gdc. The incompatibility is very unfortunate for library developers because binaries will have to be supplied for each combination of tool and platform.

If you can use dmd instead of gdc, that is the immediate temporary fix, while I work on building and testing gld with gdc.
Back to top
View user's profile Send private message
funsheep



Joined: 24 Jan 2007
Posts: 25

PostPosted: Wed Jan 24, 2007 6:00 pm    Post subject: Reply with quote

thx for the fast reply.
i went through some trouble getting dmd working on my machine - i dont know, how i did that...

the next problem is, that i cant get bud compiled with dmd. so im stuck again. this whole thing shows me, that i shouldnt use D for my master thesis. back to java i guess *sigh*

but i would be glad to help testing the compilation of gld with gdc.

i also tried to build some other things, and IMHO the problem with

Code:

gdc: unrecognized option '-Hdheaders'


is a bug in bud/build. passing the options to gdc seems to be wrong.
Back to top
View user's profile Send private message
Derek Parnell



Joined: 22 Apr 2004
Posts: 408
Location: Melbourne, Australia

PostPosted: Wed Jan 24, 2007 6:15 pm    Post subject: Reply with quote

funsheep wrote:

the next problem is, that i cant get bud compiled with dmd.

Do you mean that you can't run the supplied makefile when using DMD? Or is it something else you are trying. Please help me help you by showing the details of what you are attempting to do.

funsheep wrote:
i also tried to build some other things, and IMHO the problem with

Code:

gdc: unrecognized option '-Hdheaders'


is a bug in bud/build. passing the options to gdc seems to be wrong.

Bud just passes switches through to whatever complier you have decided to use. If GDC doesn't support the -H switch there is not much I can do about it.
_________________
--
Derek
skype name: derek.j.parnell
Back to top
View user's profile Send private message
funsheep



Joined: 24 Jan 2007
Posts: 25

PostPosted: Thu Jan 25, 2007 9:07 am    Post subject: Reply with quote

Derek Parnell wrote:

Do you mean that you can't run the supplied makefile when using DMD? Or is it something else you are trying. Please help me help you by showing the details of what you are attempting to do.

also see this thread, where i point out my problems with bud/build.

problems with gld:

im on linux, with dmd and bud 3.04. see the above mentioned thread, why i need to pass the parameter -L-L/home/funsheep/dmd/lib.
this cant be done with the root-buildme file, provided by gld. so i hardcoded it in there. running that file failes, when trying to run the buildme, created in gl (cant find it).

now i ran the buildme exec in gl myself, and it has build the gl library. i get a gl.a and a imports file.

then i tried to run the buildme in the x11 folder. that didnt work, it could not find gl.d, and here im stuck. could someone tell me, how to set the pathes correctly, when running the x11/buildme and gld/buildme ?

regards,
funsheep
Back to top
View user's profile Send private message
Bradley Smith



Joined: 20 Jun 2006
Posts: 60

PostPosted: Sat Jan 27, 2007 12:50 am    Post subject: Reply with quote

Please try version 5. I have altered the way in which GLD is built. It now supports both DMD and GDC compilers.

Thanks,
Bradley
Back to top
View user's profile Send private message
funsheep



Joined: 24 Jan 2007
Posts: 25

PostPosted: Mon Jan 29, 2007 5:38 pm    Post subject: Reply with quote

hi there,

today i had the time to try version 5 (downloaded it earlier and was to lazy to update it to version 6). it works! thanks a lot for updating the building system. now i can compile with dmd and gdc on my linux machine.

though, there is some speeddown - i tried the gears demo and compared it against the glxgears-demo already installed on the system (i know, its not a benchmark).

D gears: ~20000 fps
glxgears: ~30000 fps

does someone know, where that difference comes from?

regards,
funsheep
Back to top
View user's profile Send private message
Bradley Smith



Joined: 20 Jun 2006
Posts: 60

PostPosted: Mon Jan 29, 2007 9:44 pm    Post subject: Reply with quote

funsheep wrote:
though, there is some speeddown - i tried the gears demo and compared it against the glxgears-demo already installed on the system (i know, its not a benchmark).

D gears: ~20000 fps
glxgears: ~30000 fps

does someone know, where that difference comes from?


I don't see that on my Linux computer, but then I'm not seeing those frame rates either. Since my Linux computer is mainly a server, it doesn't have high-performance graphics. Here is what I get.
Code:
gld> glxgears
libGL warning: 3D driver claims to not support visual 0x5a
6870 frames in 5.0 seconds = 1373.898 FPS
7094 frames in 5.0 seconds = 1418.725 FPS
7058 frames in 5.0 seconds = 1411.457 FPS
gld> gears
libGL warning: 3D driver claims to not support visual 0x5a
6938 frames in  5.000 seconds = 1387.546 FPS
7161 frames in  5.000 seconds = 1432.158 FPS
7136 frames in  5.001 seconds = 1427.033 FPS
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Schooner All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group