Re: [Mingw-w64-public] Some errors when compiling bash 5.0 on windows 10 using mingw-w64 and MSYS2.

2019-12-08 Thread Amit Choudhary
On Sunday, December 8, 2019, Zach Bacon wrote: > So... Msys2 CRT is a wrapper around POSIX API. Bash uses said POSIX API, > mingw-w64 is more geared towards windows API, so to compile it with > mingw-w64, you'd have to do some heavy patching to bash to support the > windows API. > Please bear wi

Re: [Mingw-w64-public] Some errors when compiling bash 5.0 on windows 10 using mingw-w64 and MSYS2.

2019-12-08 Thread Amit Choudhary
> > I presume it is not possible to build bash using mingw-w64, because > Windows is not a recent enough POSIX system. > > Instead, you must use the MSYS2 GCC to compile bash and link it against > the MSYS2 CRT, not the mingw-w64 CRT. The triplet should look like > `x86_64-pc-msys`. > I was able t

Re: [Mingw-w64-public] Some errors when compiling bash 5.0 on windows 10 using mingw-w64 and MSYS2.

2019-12-08 Thread Amit Choudhary
I have some doubts: I am using mingw-w64 compiler to compile bash in msys2 environment. It may not be possible. But I wanted to know something else. I got a warning: ./include/filecntl.h:33:33: warning: implicit declaration of function 'fcntl'; did you mean 'fcvt'? [-Wimplicit-function-declara

[Mingw-w64-public] Some errors when compiling bash 5.0 on windows 10 using mingw-w64 and MSYS2.

2019-12-07 Thread Amit Choudhary
Hi, I have downloaded mingw-w64 and MSYS2. I downloaded bash-5.0.tar.gz. I untarred and unzipped it in my user directory in MSYS2. Then I used MSYS2 MinGW 64-bit shell provided by MSYS2. I tried compiling bash. I did "./configure" and it ran successfully. I then did make, but it gave me some err