View previous topic :: View next topic |
Author |
Message |
kylek
Joined: 14 Nov 2005 Posts: 2
|
Posted: Mon Nov 14, 2005 10:48 pm Post subject: Compiling build on cygwin, windows XP |
|
|
I cannot seem to get build to work with the gdc front-end on cygwin.
I've downloaded the stock gdc build included in cygwin (GCC 3.4.4, GDC 0.12, using dmd 0.125). On trying to build using the included Makefile.gdc (is this the incorrect one?) and getting the following:
source.d:537: found '!' when expecting ')'
source.d:537: found 'is' instead of statement
source.d:873: found '!' when expecting ')'
source.d:873: found 'is' instead of statement
source.d:879: Declaration expected, not 'else'
source.d:881: unrecognized declaration
util/fdt.d:63: module unix cannot read file 'std/c/unix.d'
source.d:537: found '!' when expecting ')'
source.d:537: found 'is' instead of statement
source.d:873: found '!' when expecting ')'
source.d:873: found 'is' instead of statement
source.d:879: Declaration expected, not 'else'
source.d:881: unrecognized declaration
util/fdt.d:63: module unix cannot read file 'std/c/unix.d'
util/fileex.d:259: function std.file.remove (char[]) does not match argument types (bit[char[]],char[])
util/fileex.d:259: Error: expected 1 arguments, not 2
util/fileex.d:259: cannot implicitly convert expression (lExistingFiles) of type bit[char[]] to char[]
make: *** [build] Error 1
I tried grabbing the precompiled win32 binary of build, but ran into a show stopper again. I got it to recognize a config file by pointing -CFPATH at sc.ini from DMD, but it seems it doesn't like using gdmd (using DCPATH with all variety of slash styles and names, renaming gdmd, symbolic links, environmental variables to no avail).
Am I doing something wrong? I checked that /usr/include/d/3.4.4/std/c/unix/unix.d does exist inside my cygwin root, but im too green with D to understand the nature of "module unix cannot read file" or what the actual issue is. I suspect it has something to do with my version of gdc or support of cygwin? |
|
Back to top |
|
|
Derek Parnell
Joined: 22 Apr 2004 Posts: 408 Location: Melbourne, Australia
|
Posted: Mon Nov 14, 2005 11:57 pm Post subject: Re: Compiling build on cygwin, windows XP |
|
|
kylek wrote: | I cannot seem to get build to work with the gdc front-end on cygwin.
I've downloaded the stock gdc build included in cygwin (GCC 3.4.4, GDC 0.12, using dmd 0.125). On trying to build using the included Makefile.gdc (is this the incorrect one?) and getting the following:
source.d:537: found '!' when expecting ')'
source.d:537: found 'is' instead of statement
source.d:873: found '!' when expecting ')'
source.d:873: found 'is' instead of statement
source.d:879: Declaration expected, not 'else'
source.d:881: unrecognized declaration
|
Build requires DMD v0.126 and GDC v0.13 or later.
kylek wrote: |
util/fdt.d:63: module unix cannot read file 'std/c/unix.d'
|
This file is assumed to be needed for version=Unix systems. I don't know why you have this error if the file exists. Maybe DMD is looking elsewhere for it. ???
kylek wrote: |
util/fileex.d:259: function std.file.remove (char[]) does not match argument types (bit[char[]],char[])
util/fileex.d:259: Error: expected 1 arguments, not 2
util/fileex.d:259: cannot implicitly convert expression (lExistingFiles) of type bit[char[]] to char[]
|
This is also caused by using an earlier version of DMD. I'm now using the remove property of Associative Arrays.
kylek wrote: |
I tried grabbing the precompiled win32 binary of build, but ran into a show stopper again. I got it to recognize a config file by pointing -CFPATH at sc.ini from DMD, but it seems it doesn't like using gdmd (using DCPATH with all variety of slash styles and names, renaming gdmd, symbolic links, environmental variables to no avail).
|
Yes, the win32 edition would not be expecting path separators like "/".
kylek wrote: |
Am I doing something wrong? I checked that /usr/include/d/3.4.4/std/c/unix/unix.d does exist inside my cygwin root, but im too green with D to understand the nature of "module unix cannot read file" or what the actual issue is. I suspect it has something to do with my version of gdc or support of cygwin? |
I haven't used dmd with cygwin so I can't really help much more. _________________ --
Derek
skype name: derek.j.parnell |
|
Back to top |
|
|
kylek
Joined: 14 Nov 2005 Posts: 2
|
Posted: Wed Nov 16, 2005 8:13 pm Post subject: |
|
|
That makes sense. For some reason, when I checked to see if gdc was up to date I misread the current version.
Now I'm just having problems with the newer gdc compiling on cygwin, which has nothing to do with Build; I'll see if I can get build to work once I get the latest gdc working.
Thanks for the reply. |
|
Back to top |
|
|
|
|
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
|