Re: Using gdc on Windows

2020-05-26 Thread Iain Buclaw via D.gnu
On 26 May 2020 19:52:51 CEST, "MINGW-USER via D.gnu"  
wrote:
>On Monday, 25 May 2020 at 10:23:50 UTC, Iain Buclaw wrote:
>> On 21/05/2020 01:18, NonNull via D.gnu wrote:
>>> Hello,
>>> 
>>> I'd like to run gdc natively on Windows in a mingw compatible 
>>> way. How can I proceed?
>>> 
>>
>> We need some testers to verify this patch.
>>
>> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91595
>
>libdruntime build fails with error: undefined identifier 
>'__gdc_personality_imp'.
>Need Help.
>
>libtool: compile:  gdc -DDLL_EXPORT -Wall -frelease -g -O2 
>-nostdinc -I ../../gcc-10.1.0/libphobos/libdruntime -I . -c 
>../../gcc-10.1.0/libphobos/libdruntime/gcc/deh.d -fversion=Shared 
>-o gcc/.libs/deh.o
>../../gcc-10.1.0/libphobos/libdruntime/gcc/deh.d:808:48: error: 
>undefined identifier '__gdc_personality_imp'
>   808 |  ms_disp, 
>&__gdc_personality_imp);
>   |^
>

Looks like that should instead be `& gdc_personality`.

Iain



Re: Using gdc on Windows

2020-05-26 Thread MINGW-USER via D.gnu

On Monday, 25 May 2020 at 10:23:50 UTC, Iain Buclaw wrote:

On 21/05/2020 01:18, NonNull via D.gnu wrote:

Hello,

I'd like to run gdc natively on Windows in a mingw compatible 
way. How can I proceed?




We need some testers to verify this patch.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91595


libdruntime build fails with error: undefined identifier 
'__gdc_personality_imp'.

Need Help.

libtool: compile:  gdc -DDLL_EXPORT -Wall -frelease -g -O2 
-nostdinc -I ../../gcc-10.1.0/libphobos/libdruntime -I . -c 
../../gcc-10.1.0/libphobos/libdruntime/gcc/deh.d -fversion=Shared 
-o gcc/.libs/deh.o
../../gcc-10.1.0/libphobos/libdruntime/gcc/deh.d:808:48: error: 
undefined identifier '__gdc_personality_imp'
  808 |  ms_disp, 
&__gdc_personality_imp);

  |^



Re: Using gdc on Windows

2020-05-25 Thread mw via D.gnu

On Monday, 25 May 2020 at 10:23:50 UTC, Iain Buclaw wrote:

On 21/05/2020 01:18, NonNull via D.gnu wrote:

Hello,

I'd like to run gdc natively on Windows in a mingw compatible 
way. How can I proceed?




We need some testers to verify this patch.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91595


Can you give instruction / link on how to install mingw gdc 
natively on Windows?


People here even don't know that.


Re: Using gdc on Windows

2020-05-25 Thread Iain Buclaw via D.gnu
On 21/05/2020 01:18, NonNull via D.gnu wrote:
> Hello,
> 
> I'd like to run gdc natively on Windows in a mingw compatible way. How can I 
> proceed?
> 

We need some testers to verify this patch.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91595


Re: Using gdc on Windows

2020-05-21 Thread mw via D.gnu

On Wednesday, 20 May 2020 at 23:18:32 UTC, NonNull wrote:

Hello,

I'd like to run gdc natively on Windows in a mingw compatible 
way. How can I proceed?


Not sure about GDC, native? maybe you can try this:

https://github.com/dlang/visuald/releases

VisualD-v0.52.0-dmd-2.091.0-ldc2-1.20.1.exe





Re: using gdc under windows

2013-02-17 Thread Iain Buclaw
On Feb 17, 2013 4:05 PM, Alexandr Druzhinin drug2...@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.


Re: using gdc under windows

2013-02-17 Thread Jacob Carlborg

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


Re: using gdc under windows

2013-02-17 Thread Iain Buclaw
On Feb 17, 2013 8:45 PM, Jacob Carlborg d...@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...