www.digitalmars.com         C & C++   DMDScript  

D.gnu - using gdc under windows

reply Alexandr Druzhinin <drug2004 bk.ru> writes:
Hello!
I'm trying to build DWT with gdc under win7 using goshawk build from 
here - https://bitbucket.org/goshawk/gdc/downloads
and I get the following error:

java/lang/util.d:81: Error: function java.lang.util.doVarArgFormat 
(TypeInfo[] _arguments, char* _argptr) is not callable using argument 
types (TypeInfo[],string*)

Function java.lang.util.doVarArgFormat has signature:

private String doVarArgFormat(TypeInfo[] _arguments, core.vararg.va_list 
_argptr)

in dmd under windows core.vararg.va_list is defined as:
     alias void* va_list;

but under GNU:
     alias __builtin_va_list __gnuc_va_list;


     /*********************
      * The argument pointer type.
      */
     alias __gnuc_va_list va_list;

Can it be the reason of error and if so how to fix the problem?
Feb 17 2013
parent reply Iain Buclaw <ibuclaw ubuntu.com> writes:
On Feb 17, 2013 4:05 PM, "Alexandr Druzhinin" <drug2004 bk.ru> wrote:
 Hello!
 I'm trying to build DWT with gdc under win7 using goshawk build from here
- https://bitbucket.org/goshawk/gdc/downloads
 and I get the following error:

 java/lang/util.d:81: Error: function java.lang.util.doVarArgFormat
(TypeInfo[] _arguments, char* _argptr) is not callable using argument types (TypeInfo[],string*)
 Function java.lang.util.doVarArgFormat has signature:

 private String doVarArgFormat(TypeInfo[] _arguments, core.vararg.va_list
_argptr)
 in dmd under windows core.vararg.va_list is defined as:
     alias void* va_list;

 but under GNU:
     alias __builtin_va_list __gnuc_va_list;


     /*********************
      * The argument pointer type.
      */
     alias __gnuc_va_list va_list;

 Can it be the reason of error and if so how to fix the problem?
First, I'd find out why it is trying to pass a string* type in the first place. That looks to be rather suspicious. Regards Iain.
Feb 17 2013
parent reply Jacob Carlborg <doob me.com> writes:
On 2013-02-17 20:31, Iain Buclaw wrote:

 First, I'd find out why it is trying to pass a string* type in the first
 place. That looks to be rather suspicious.
Here's the code: https://github.com/d-widget-toolkit/base/blob/master/src/java/lang/util.d#L79 https://github.com/d-widget-toolkit/base/blob/master/src/java/lang/util.d#L386 -- /Jacob Carlborg
Feb 17 2013
parent Iain Buclaw <ibuclaw ubuntu.com> writes:
On Feb 17, 2013 8:45 PM, "Jacob Carlborg" <doob me.com> wrote:
 On 2013-02-17 20:31, Iain Buclaw wrote:

 First, I'd find out why it is trying to pass a string* type in the first
 place. That looks to be rather suspicious.
Here's the code:
https://github.com/d-widget-toolkit/base/blob/master/src/java/lang/util.d#L79

https://github.com/d-widget-toolkit/base/blob/master/src/java/lang/util.d#L386
 --
 /Jacob Carlborg
So much for writing portable code...
Feb 17 2013