www.digitalmars.com         C & C++   DMDScript  

D.gnu - GDC vs DMD 0.164

reply Gregor Richards <Richards codu.org> writes:
In the process of trying to compile MiniD with GDC, I had to bring GDC 
up to date with the latest DMD.  It's probably slighly (very) broken, 
but it worked well enough for my purposes.

Figured somebody else might have use for it.  The patch from 0.19 is 
attached.

  - Gregor Richards
Aug 15 2006
next sibling parent =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
Gregor Richards wrote:

 In the process of trying to compile MiniD with GDC, I had to bring GDC 
 up to date with the latest DMD.  It's probably slighly (very) broken, 
 but it worked well enough for my purposes.
 
 Figured somebody else might have use for it.  The patch from 0.19 is 
 attached.
I've been doing a similar effort at http://gdcmac.sourceforge.net/diffs/ Haven't updated in a while, though. (will get around to doing that now) --anders
Aug 16 2006
prev sibling next sibling parent reply davidl <davidl 126.com> writes:
Hey I can't compile miniD in DMD 0.164 and 0.163.
in the directory svnrepo\minid\trunk run the command:

D:\DIGITA~1\dmd\dsource\minid\trunk\minid>svn update
At revision 52.

D:\DIGITA~1\dmd\dsource\minid\trunk\minid>svn status

D:\DIGITA~1\dmd\dsource\minid\trunk\minid>cd ..

D:\DIGITA~1\dmd\dsource\minid\trunk>build minid\compiler.d
minid\state.d(42): no property 'Type' for type 'MDValue'
minid\state.d(42): MDValue.Type is used as a type
minid\state.d(42): cannot have parameter of type void
minid\state.d(47): no property 'Type' for type 'MDValue'
minid\state.d(47): MDValue.Type is used as a type
minid\state.d(47): cannot have parameter of type void
minid\types.d(73): enum MM is forward referenced

but i test that usage in my file doesn't generate that compile error...
with a static public enum Type inside a struct and then a class method in  
another module use that Type as its parameter's type won't generate that  
error..

really confused.

在 Wed, 16 Aug 2006 14:59:48 +0800,Gregor Richards <Richards codu.org> 写 
道:





-- 
使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/
Aug 16 2006
next sibling parent davidl <davidl 126.com> writes:
ah, the build is buggy.
i use the command suggested in compile.bat and manually typed as follows  
success:
dmd -debug -g -ofcompiler.exe -I. state.d types.d compiler.d opcodes.d

I suggest that batch file should written in that style, maybe i would go  
to look into build what the wrong is



在 Wed, 16 Aug 2006 20:48:26 +0800,davidl <davidl 126.com> 写道:

 Hey I can't compile miniD in DMD 0.164 and 0.163.
 in the directory svnrepo\minid\trunk run the command:

 D:\DIGITA~1\dmd\dsource\minid\trunk\minid>svn update
 At revision 52.

 D:\DIGITA~1\dmd\dsource\minid\trunk\minid>svn status

 D:\DIGITA~1\dmd\dsource\minid\trunk\minid>cd ..

 D:\DIGITA~1\dmd\dsource\minid\trunk>build minid\compiler.d
 minid\state.d(42): no property 'Type' for type 'MDValue'
 minid\state.d(42): MDValue.Type is used as a type
 minid\state.d(42): cannot have parameter of type void
 minid\state.d(47): no property 'Type' for type 'MDValue'
 minid\state.d(47): MDValue.Type is used as a type
 minid\state.d(47): cannot have parameter of type void
 minid\types.d(73): enum MM is forward referenced

 but i test that usage in my file doesn't generate that compile error...
 with a static public enum Type inside a struct and then a class method  
 in another module use that Type as its parameter's type won't generate  
 that error..

 really confused.

 在 Wed, 16 Aug 2006 14:59:48 +0800,Gregor Richards <Richards codu.org>  
 写道:
-- 使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/
Aug 16 2006
prev sibling parent Gregor Richards <Richards codu.org> writes:
davidl wrote:
 Hey I can't compile miniD in DMD 0.164 and 0.163.
 in the directory svnrepo\minid\trunk run the command:
 
 D:\DIGITA~1\dmd\dsource\minid\trunk\minid>svn update
 At revision 52.
 
 D:\DIGITA~1\dmd\dsource\minid\trunk\minid>svn status
 
 D:\DIGITA~1\dmd\dsource\minid\trunk\minid>cd ..
 
 D:\DIGITA~1\dmd\dsource\minid\trunk>build minid\compiler.d
 minid\state.d(42): no property 'Type' for type 'MDValue'
 minid\state.d(42): MDValue.Type is used as a type
 minid\state.d(42): cannot have parameter of type void
 minid\state.d(47): no property 'Type' for type 'MDValue'
 minid\state.d(47): MDValue.Type is used as a type
 minid\state.d(47): cannot have parameter of type void
 minid\types.d(73): enum MM is forward referenced
 
 but i test that usage in my file doesn't generate that compile error...
 with a static public enum Type inside a struct and then a class method 
 in  another module use that Type as its parameter's type won't generate 
 that  error..
 
 really confused.
 
 在 Wed, 16 Aug 2006 14:59:48 +0800,Gregor Richards <Richards codu.org> 
 写 道:
 
 
 
 
 
I didn't say that I actually got MiniD working ;) I'm discussing the problem with upstream. - Gregor Richards
Aug 16 2006
prev sibling parent Gregor Richards <Richards codu.org> writes:
Gregor Richards wrote:
 In the process of trying to compile MiniD with GDC, I had to bring GDC 
 up to date with the latest DMD.  It's probably slighly (very) broken, 
 but it worked well enough for my purposes.
 
 Figured somebody else might have use for it.  The patch from 0.19 is 
 attached.
 
  - Gregor Richards
I forgot to mention - for this to work, you'll probably have to DeWindowsify the GDC sources like so: find d/ -type f | xargs perl -pe 's|\x0D||g' -i - Gregor Richards
Aug 16 2006