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
next sibling parent reply Iain Buclaw <ibuclaw ubuntu.com> writes:
--20cf302ef79e35c7b504d5f0a81d
Content-Type: text/plain; charset=ISO-8859-1

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

 and I get the following error:

 java/lang/util.d:81: Error: function java.lang.util.doVarArgFormat

(TypeInfo[],string*)
 Function java.lang.util.doVarArgFormat has signature:

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

 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. --20cf302ef79e35c7b504d5f0a81d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <p><br> On Feb 17, 2013 4:05 PM, &quot;Alexandr Druzhinin&quot; &lt;<a href=3D"mail= to:drug2004 bk.ru">drug2004 bk.ru</a>&gt; wrote:<br> &gt;<br> &gt; Hello!<br> &gt; I&#39;m trying to build DWT with gdc under win7 using goshawk build fr= om here - <a href=3D"https://bitbucket.org/goshawk/gdc/downloads">https://b= itbucket.org/goshawk/gdc/downloads</a><br> &gt; and I get the following error:<br> &gt;<br> &gt; java/lang/util.d:81: Error: function java.lang.util.doVarArgFormat (Ty= peInfo[] _arguments, char* _argptr) is not callable using argument types (T= ypeInfo[],string*)<br> &gt;<br> &gt; Function java.lang.util.doVarArgFormat has signature:<br> &gt;<br> &gt; private String doVarArgFormat(TypeInfo[] _arguments, core.vararg.va_li= st _argptr)<br> &gt;<br> &gt; in dmd under windows core.vararg.va_list is defined as:<br> &gt; =A0 =A0 alias void* va_list;<br> &gt;<br> &gt; but under GNU:<br> &gt; =A0 =A0 alias __builtin_va_list __gnuc_va_list;<br> &gt;<br> &gt;<br> &gt; =A0 =A0 /*********************<br> &gt; =A0 =A0 =A0* The argument pointer type.<br> &gt; =A0 =A0 =A0*/<br> &gt; =A0 =A0 alias __gnuc_va_list va_list;<br> &gt;<br> &gt; Can it be the reason of error and if so how to fix the problem?<br></p=

irst place. That looks to be rather suspicious.</p> <p>Regards<br> Iain.</p> --20cf302ef79e35c7b504d5f0a81d--
Feb 17 2013
parent 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
prev sibling parent Iain Buclaw <ibuclaw ubuntu.com> writes:
--0021cc02206623258d04d5f2654e
Content-Type: text/plain; charset=ISO-8859-1

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:


 --
 /Jacob Carlborg

So much for writing portable code... --0021cc02206623258d04d5f2654e Content-Type: text/html; charset=ISO-8859-1 <p><br> On Feb 17, 2013 8:45 PM, &quot;Jacob Carlborg&quot; &lt;<a href="mailto:doob me.com">doob me.com</a>&gt; wrote:<br> &gt;<br> &gt; On 2013-02-17 20:31, Iain Buclaw wrote:<br> &gt;<br> &gt;&gt; First, I&#39;d find out why it is trying to pass a string* type in the first<br> &gt;&gt; place. That looks to be rather suspicious.<br> &gt;<br> &gt;<br> &gt; Here&#39;s the code:<br> &gt;<br> &gt; <a href="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#L79</a><br> &gt;<br> &gt; <a href="https://github.com/d-widget-toolkit/base/blob/master/src/java/lang/util.d#L386">https://github.com/d-widget-toolkit/base/blob/master/src/java/lang/util.d#L386</a><br> &gt;<br> &gt; -- <br> &gt; /Jacob Carlborg</p> <p>So much for writing portable code...<br> </p> --0021cc02206623258d04d5f2654e--
Feb 17 2013