[Mingw-w64-public] [PATCH] crt: Build libks.a, libksecdd.a and libnetio.a for arm32 as well

2020-03-03 Thread Martin Storsjö
They do exist for arm32 just like for other platforms in the
Windows Driver Kit.

Signed-off-by: Martin Storsjö 
---
 mingw-w64-crt/libarm32/Makefile.am | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/mingw-w64-crt/libarm32/Makefile.am 
b/mingw-w64-crt/libarm32/Makefile.am
index e7fde98b8..7e33532a8 100644
--- a/mingw-w64-crt/libarm32/Makefile.am
+++ b/mingw-w64-crt/libarm32/Makefile.am
@@ -340,6 +340,8 @@ libarm32_DATA += %reldir%/libkernelbase.a
 libarm32_DATA += %reldir%/libkeyboardfiltercore.a
 libarm32_DATA += %reldir%/libkeyiso.a
 libarm32_DATA += %reldir%/libkeymgr.a
+libarm32_DATA += %reldir%/libks.a
+libarm32_DATA += %reldir%/libksecdd.a
 #libarm32_DATA += %reldir%/libksuser.a# Handled by custom rule
 libarm32_DATA += %reldir%/libktmw32.a
 libarm32_DATA += %reldir%/libl2gpstore.a
@@ -481,6 +483,7 @@ libarm32_DATA += %reldir%/libnetcfgx.a
 libarm32_DATA += %reldir%/libnetdiagfx.a
 libarm32_DATA += %reldir%/libnetfxperf.a
 libarm32_DATA += %reldir%/libnetid.a
+libarm32_DATA += %reldir%/libnetio.a
 libarm32_DATA += %reldir%/libnetjoin.a
 libarm32_DATA += %reldir%/libnetlogon.a
 libarm32_DATA += %reldir%/libnetman.a
-- 
2.17.1



___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Posix versus Win32 binaries

2020-03-03 Thread Liu Hao
在 2020/3/3 下午11:42, Carl Kleffner 写道:
> BTW,
> 
> what happend to https://github.com/lhmouse/mcfgthread? Is this a possible
> usable fast posix alternative?
> 

As it has introduced a new thread model, it is not compatible with
either posix or win32.e

Mutexes, condition variables and once-guards are implemented with native
syscalls, which are supposed to lightweight. But other features such as
barriers, affinity control etc. have not been implemented. It looks like
libgcc doesn't need them.


-- 
Best regards,
LH_Mouse



signature.asc
Description: OpenPGP digital signature
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Posix versus Win32 binaries

2020-03-03 Thread Vincent Torri
On Tue, Mar 3, 2020 at 4:10 PM Liu Hao  wrote:
>
> 在 2020/3/3 23:01, Vincent Torri 写道:
> >
> > but technically speaking, it can be implemented with the native
> > condition variables, right ?
> >
>
>
> No. See
> 
> for mutex details.
>
> The native condition variables can only be used along with native
> critical sections or slim readers-writer locks. Re-implementing them
> would cause ABI breakage.

i understand, thank you

Vincent Torri


___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Posix versus Win32 binaries

2020-03-03 Thread Carl Kleffner
BTW,

what happend to https://github.com/lhmouse/mcfgthread? Is this a possible
usable fast posix alternative?

Carl

Am Di., 3. März 2020 um 16:10 Uhr schrieb Liu Hao :

> 在 2020/3/3 23:01, Vincent Torri 写道:
> >
> > but technically speaking, it can be implemented with the native
> > condition variables, right ?
> >
>
>
> No. See
> <
> https://github.com/gcc-mirror/gcc/blob/8e6d0dba166324f4b257329bd4b4ddc2b4522359/libgcc/config/i386/gthr-win32.c#L147
> >
> for mutex details.
>
> The native condition variables can only be used along with native
> critical sections or slim readers-writer locks. Re-implementing them
> would cause ABI breakage.
>
>
>
> --
> Best regards,
> LH_Mouse
>
> ___
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>

___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Posix versus Win32 binaries

2020-03-03 Thread Vincent Torri
On Tue, Mar 3, 2020 at 3:59 PM Liu Hao  wrote:
>
> 在 2020/3/3 22:44, Vincent Torri 写道:
> >
> > can you be a bit more precise about "libgcc doesn't implement
> > condition variables for win32 model" please ?
> >
> > Vincent Torri
> >
>
> See
> .

but technically speaking, it can be implemented with the native
condition variables, right ?

Vincent Torri


___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Posix versus Win32 binaries

2020-03-03 Thread Liu Hao
在 2020/3/3 23:01, Vincent Torri 写道:
> 
> but technically speaking, it can be implemented with the native
> condition variables, right ?
> 


No. See

for mutex details.

The native condition variables can only be used along with native
critical sections or slim readers-writer locks. Re-implementing them
would cause ABI breakage.



-- 
Best regards,
LH_Mouse



signature.asc
Description: OpenPGP digital signature
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Posix versus Win32 binaries

2020-03-03 Thread Liu Hao
在 2020/3/3 22:44, Vincent Torri 写道:
> 
> can you be a bit more precise about "libgcc doesn't implement
> condition variables for win32 model" please ?
> 
> Vincent Torri
> 

See
.




-- 
Best regards,
LH_Mouse



signature.asc
Description: OpenPGP digital signature
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Posix versus Win32 binaries

2020-03-03 Thread Vincent Torri
On Tue, Mar 3, 2020 at 2:46 PM Liu Hao  wrote:
>
> 在 2020/3/3 21:30, Vincent Torri 写道:
> > On Tue, Mar 3, 2020 at 2:17 PM Liu Hao  wrote:
> >>
> >>
> >> The posix/win32 diversity is about how to manipulate threads (there are
> >> a few more): via libwinpthread (slow but feature-complete) or via
> >> Windows APIs directly (fast but without condition variables etc.).
> >
> > but since Vista, it seems that condition variables exist:
> >
> > https://docs.microsoft.com/en-us/windows/win32/sync/condition-variables
> >
> > Vincent Torri
> >
> >
>
> Yes and no - libgcc doesn't implement condition variables for win32
> model, so they don't exist there.

can you be a bit more precise about "libgcc doesn't implement
condition variables for win32 model" please ?

Vincent Torri


___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Posix versus Win32 binaries

2020-03-03 Thread Liu Hao
在 2020/3/3 21:25, Luiz Emediato 写道:
> I have installed MinGW64 x86_64-posix-seh binaries but it won't run
> configure.
> Do I need MSYS2 in order to run configure ?
> 

[Please CC the list. I include the previous message here because it was
sent to me solely.]

Then yes, because configure is a shell script.

The GNU build system requires MSYS2. Some other alternatives such as
CMake with Ninja backend don't.



> On Tue, Mar 3, 2020 at 10:17 AM Liu Hao  > wrote:
> 
> 在 2020/3/3 21:02, Luiz Emediato 写道:
> > Hi there,
> >
> > Would you please help me answering the following questions?
> >
> > 1. What is the difference between x86_64-posix-seh and
> x86_64-win32-seh
> > binaries ?
> > Is the former for Linux and the latter for Windows ?
> >
> > 2. What is the best way to install MingGW64? Is MSYS2 also necessary ?
> >
> 
> 
> The posix/win32 diversity is about how to manipulate threads (there are
> a few more): via libwinpthread (slow but feature-complete) or via
> Windows APIs directly (fast but without condition variables etc.).
> 
> There are prebuilt native toolchains so you can have GCC, GDB etc. as
> native programs which do not require MSYS2 (note GDB may require Python3
> which is native too) so there is no need to install MSYS2, unless you
> also need GNU make, BASH, etc.
> 
> 
> -- 
> Best regards,
> LH_Mouse
> 




-- 
Best regards,
LH_Mouse



signature.asc
Description: OpenPGP digital signature
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Posix versus Win32 binaries

2020-03-03 Thread Liu Hao
在 2020/3/3 21:30, Vincent Torri 写道:
> On Tue, Mar 3, 2020 at 2:17 PM Liu Hao  wrote:
>>
>>
>> The posix/win32 diversity is about how to manipulate threads (there are
>> a few more): via libwinpthread (slow but feature-complete) or via
>> Windows APIs directly (fast but without condition variables etc.).
> 
> but since Vista, it seems that condition variables exist:
> 
> https://docs.microsoft.com/en-us/windows/win32/sync/condition-variables
> 
> Vincent Torri
> 
> 

Yes and no - libgcc doesn't implement condition variables for win32
model, so they don't exist there.


-- 
Best regards,
LH_Mouse



signature.asc
Description: OpenPGP digital signature
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Posix versus Win32 binaries

2020-03-03 Thread Vincent Torri
On Tue, Mar 3, 2020 at 2:17 PM Liu Hao  wrote:
>
> 在 2020/3/3 21:02, Luiz Emediato 写道:
> > Hi there,
> >
> > Would you please help me answering the following questions?
> >
> > 1. What is the difference between x86_64-posix-seh and x86_64-win32-seh
> > binaries ?
> > Is the former for Linux and the latter for Windows ?
> >
> > 2. What is the best way to install MingGW64? Is MSYS2 also necessary ?
> >
>
>
> The posix/win32 diversity is about how to manipulate threads (there are
> a few more): via libwinpthread (slow but feature-complete) or via
> Windows APIs directly (fast but without condition variables etc.).

but since Vista, it seems that condition variables exist:

https://docs.microsoft.com/en-us/windows/win32/sync/condition-variables

Vincent Torri


___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Posix versus Win32 binaries

2020-03-03 Thread Liu Hao
在 2020/3/3 21:02, Luiz Emediato 写道:
> Hi there,
> 
> Would you please help me answering the following questions?
> 
> 1. What is the difference between x86_64-posix-seh and x86_64-win32-seh
> binaries ?
> Is the former for Linux and the latter for Windows ?
> 
> 2. What is the best way to install MingGW64? Is MSYS2 also necessary ?
> 


The posix/win32 diversity is about how to manipulate threads (there are
a few more): via libwinpthread (slow but feature-complete) or via
Windows APIs directly (fast but without condition variables etc.).

There are prebuilt native toolchains so you can have GCC, GDB etc. as
native programs which do not require MSYS2 (note GDB may require Python3
which is native too) so there is no need to install MSYS2, unless you
also need GNU make, BASH, etc.


-- 
Best regards,
LH_Mouse



signature.asc
Description: OpenPGP digital signature
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH] crt: update and move ndis to lib-common

2020-03-03 Thread Liu Hao
在 2020/3/3 21:12, Martin Storsjö 写道:
> On Tue, 3 Mar 2020, Liu Hao wrote:
> 
>> 在 2020/3/3 20:53, Biswapriyo Nath 写道:
 Are there any reasons why 'libndis.a' doesn't exist in
>>> 'libarm32/Makefile.am?
>>>
>>> Probable reason, because there is no arm32 Windows OS and ndis is a
>>> kernel
>>> mode driver.
>>>
>>>
>>
>> In Windows Driver Kit version 10.0.17763.0 'ndis.lib' exists in both
>> 'km\arm\' and 'km\arm64\', so should libarm32 have this as well?
> 
> Then we should definitely add one for consistency. And the same goes for
> netio, ksecdd and ks that have been pushed already.
> 
>

Yes all of them exist in both directories for ARM.


-- 
Best regards,
ltpmouse



signature.asc
Description: OpenPGP digital signature
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH] crt: update and move ndis to lib-common

2020-03-03 Thread Martin Storsjö

On Tue, 3 Mar 2020, Liu Hao wrote:


在 2020/3/3 20:53, Biswapriyo Nath 写道:

Are there any reasons why 'libndis.a' doesn't exist in

'libarm32/Makefile.am?

Probable reason, because there is no arm32 Windows OS and ndis is a kernel
mode driver.




In Windows Driver Kit version 10.0.17763.0 'ndis.lib' exists in both
'km\arm\' and 'km\arm64\', so should libarm32 have this as well?


Then we should definitely add one for consistency. And the same goes for 
netio, ksecdd and ks that have been pushed already.


// Martin

___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH] crt: update and move ndis to lib-common

2020-03-03 Thread Martin Storsjö

On Tue, 3 Mar 2020, Biswapriyo Nath wrote:

Are there any reasons why 'libndis.a' doesn't exist in 
'libarm32/Makefile.am?


Probable reason, because there is no arm32 Windows OS and ndis is a 
kernel mode driver.


That's not entirely true, there are a number of different variants of 
Windows on ARM32 as well. Windows Phone, Windows RT (8.0/8.1 based) and 
Windows 10 IoT are all ARM32 only, or exist in ARM32 only form.


The drivers you've been posting def files for don't exist in arm32 form on 
Windows 10 on ARM64, but I would guess they do exist on arm32 on those 
arm32-only platforms (I don't have one of them conveniently available for 
testing right now though).


Those platforms are pretty locked down, so officially I guess you aren't 
supposed to install your own kernel mode drivers on them, but there does 
exist people who bypass those restrictions (I've heard of people running 
full Windows 10 Desktop on ARM32, on WinRT tablet hardware), and I guess 
whatever you do on official ARM64 should work just the same there.


So I wouldn't mind adding these files to arm32 just for consistency - but 
it doesn't make much of a practical difference.


(In the Windows SDK, with the kernel part of the import libraries, does 
there exist in arm subdirectory?)


// Martin



___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH] crt: update and move ndis to lib-common

2020-03-03 Thread Liu Hao
在 2020/3/3 20:53, Biswapriyo Nath 写道:
>> Are there any reasons why 'libndis.a' doesn't exist in
> 'libarm32/Makefile.am?
> 
> Probable reason, because there is no arm32 Windows OS and ndis is a kernel
> mode driver.
> 
> 

In Windows Driver Kit version 10.0.17763.0 'ndis.lib' exists in both
'km\arm\' and 'km\arm64\', so should libarm32 have this as well?


-- 
Best regards,
LH_Mouse



signature.asc
Description: OpenPGP digital signature
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] Posix versus Win32 binaries

2020-03-03 Thread Luiz Emediato
Hi there,

Would you please help me answering the following questions?

1. What is the difference between x86_64-posix-seh and x86_64-win32-seh
binaries ?
Is the former for Linux and the latter for Windows ?

2. What is the best way to install MingGW64? Is MSYS2 also necessary ?

Thanks a lot in advance.
Luiz

___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH] crt: update and move ndis to lib-common

2020-03-03 Thread Biswapriyo Nath
> Are there any reasons why 'libndis.a' doesn't exist in
'libarm32/Makefile.am?

Probable reason, because there is no arm32 Windows OS and ndis is a kernel
mode driver.

___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH] crt: update and move ndis to lib-common

2020-03-03 Thread Liu Hao
在 2020/3/3 14:43, Biswapriyo Nath 写道:
> ...
> 
> 
> 

Thanks, the patch looks mostly good, but, are there any reasons why
'libndis.a' doesn't exist in 'libarm32/Makefile.am'?


-- 
Best regards,
LH_Mouse



signature.asc
Description: OpenPGP digital signature
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public