RE: Can't compile PG 17 (master) from git under Msys2 autoconf

2024-04-05 Thread Regina Obe
eed to patch the rule so that the LN_S is called so that it'd > resolve > correctly in both cases. I guess the easy option is to go back to the > original > recipe and update the comment to indicate that we do it to placate Msys2. > Here it is with the old comment: > > -# The

Re: Can't compile PG 17 (master) from git under Msys2 autoconf

2024-04-05 Thread 'Alvaro Herrera'
x27;d resolve correctly in both cases. I guess the easy option is to go back to the original recipe and update the comment to indicate that we do it to placate Msys2. Here it is with the old comment: -# The point of the prereqdir incantation in some of the rules below is to -# force the symlink

RE: Can't compile PG 17 (master) from git under Msys2 autoconf

2024-04-05 Thread Regina Obe
> > I think I got something not too far off from what's there now that works > under my msys2 setup again. This is partly using your idea of using > $(top_builddir) to qualify the path but in the LN_S section that is causing me > grief. > > This seems to work okay buildi

Re: Can't compile PG 17 (master) from git under Msys2 autoconf

2024-04-05 Thread 'Alvaro Herrera'
On 2024-Apr-04, Regina Obe wrote: > I think I got something not too far off from what's there now that works > under my msys2 setup again. This is partly using your idea of using > $(top_builddir) to qualify the path but in the LN_S section that is causing > me grief. >

RE: Can't compile PG 17 (master) from git under Msys2 autoconf

2024-04-04 Thread Regina Obe
d the change > > ../include/storage/lwlocklist.h to > > $(top_builddir)/src/include/storage/lwlocklist.h > > I assume you meant that instead of $(topdir) > > But nah that made no difference. Your change was already in my patched > version so isn't causing any issues.

RE: Can't compile PG 17 (master) from git under Msys2 autoconf

2024-04-04 Thread Regina Obe
> Hi Regina, > > On 2024-Mar-27, Regina Obe wrote: > > > The error is > > > > rm -f '../../src/include/storage/lwlocknames.h' > > cp -pR ../../backend/storage/lmgr/lwlocknames.h > > '../../src/include/storage/lwlocknames.h' > > cp: cannot stat '../../backend/storage/lmgr/lwlocknames.h': No such >

RE: Can't compile PG 17 (master) from git under Msys2 autoconf

2024-04-03 Thread Regina Obe
> Hi Regina, > > On 2024-Mar-27, Regina Obe wrote: > > > The error is > > > > rm -f '../../src/include/storage/lwlocknames.h' > > cp -pR ../../backend/storage/lmgr/lwlocknames.h > > '../../src/include/storage/lwlocknames.h' > > cp: cannot stat '../../backend/storage/lmgr/lwlocknames.h': No such >

Re: Can't compile PG 17 (master) from git under Msys2 autoconf

2024-04-03 Thread Alvaro Herrera
Hi Regina, On 2024-Mar-27, Regina Obe wrote: > The error is > > rm -f '../../src/include/storage/lwlocknames.h' > cp -pR ../../backend/storage/lmgr/lwlocknames.h > '../../src/include/storage/lwlocknames.h' > cp: cannot stat '../../backend/storage/lmgr/lwlocknames.h': No such file or > directory

Can't compile PG 17 (master) from git under Msys2 autoconf

2024-03-27 Thread Regina Obe
I've been having trouble compiling PG 17 using msys2 / mingw64 (sorry my meson setup is a bit broken at moment, so couldn't test that.). Both my msys2 envs (Rev2, Built by MSYS2 project) 13.2.0 and my older setup (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0 Have the

Re: issue with meson builds on msys2

2023-05-17 Thread Andrew Dunstan
On 2023-05-17 We 17:55, Andres Freund wrote: Hi, On May 17, 2023 2:51:41 PM PDT, Andrew Dunstan wrote: On 2023-05-16 Tu 17:52, Andres Freund wrote: I suppose the alternative would be to change the way the buildfarm calls pg_ctl stop. Do you have a concrete suggestion for that? The easiest f

Re: issue with meson builds on msys2

2023-05-17 Thread Andres Freund
Hi, On May 17, 2023 2:51:41 PM PDT, Andrew Dunstan wrote: > >On 2023-05-16 Tu 17:52, Andres Freund wrote: >> >>> I suppose the alternative would be to change the way the buildfarm calls >>> pg_ctl stop. Do you have a concrete suggestion for that? >> The easiest fix is to redirect stdin to /dev/

Re: issue with meson builds on msys2

2023-05-17 Thread Andrew Dunstan
On 2023-05-16 Tu 17:52, Andres Freund wrote: I suppose the alternative would be to change the way the buildfarm calls pg_ctl stop. Do you have a concrete suggestion for that? The easiest fix is to redirect stdin to /dev/null (or some file, if that's easier to do portably) - that should fix th

Re: issue with meson builds on msys2

2023-05-16 Thread Andres Freund
tion, after having previously started a shell, which left a program running (thus still referencing the same console device). > This piece of code has worked happily for years. It's only a recent > installation or update of msys2 that's made the problem appear. Yea, it does look like a

Re: issue with meson builds on msys2

2023-05-16 Thread Andrew Dunstan
ependent on a wrapper cmd or such. I don't know where this all leaves us. It's still more than odd that the start works fine and the stop doesn't. This piece of code has worked happily for years. It's only a recent installation or update of msys2 that's made the pr

Re: issue with meson builds on msys2

2023-05-15 Thread Andres Freund
Hi, On 2023-05-15 15:30:28 -0700, Andres Freund wrote: > As soon as either the pg_ctl for the start, or the whole bash invocation, has > stdin redirected, the problem vanishes. For a moment I thought this could be related to InheritStdHandles() - but no, it doesn't make a difference. There's loa

Re: issue with meson builds on msys2

2023-05-15 Thread Andres Freund
Hi, On 2023-05-15 13:13:26 -0700, Andres Freund wrote: > It wouldn't really - the echo $? inside the system() would report the > error. Which it doesn't - note the "0" in the second output. Ah. Interesting. Part of the issue is perl (or msys?) swalling some error details. I could see more detail

Re: issue with meson builds on msys2

2023-05-15 Thread Andres Freund
Hi, On 2023-05-15 16:01:39 -0400, Andrew Dunstan wrote: > On 2023-05-15 Mo 15:38, Andres Freund wrote: > > Hi, > > > > On 2023-05-05 07:08:39 -0400, Andrew Dunstan wrote: > > > If you want to play I can arrange access. > > Andrew did - thanks! > > > > > > A first observeration is that making th

Re: issue with meson builds on msys2

2023-05-15 Thread Andrew Dunstan
On 2023-05-15 Mo 15:38, Andres Freund wrote: Hi, On 2023-05-05 07:08:39 -0400, Andrew Dunstan wrote: If you want to play I can arrange access. Andrew did - thanks! A first observeration is that making the shell command slightly more complicated, by echoing $? after pg_ctl, prevents the erro

Re: issue with meson builds on msys2

2023-05-15 Thread Andres Freund
Hi, On 2023-05-05 07:08:39 -0400, Andrew Dunstan wrote: > If you want to play I can arrange access. Andrew did - thanks! A first observeration is that making the shell command slightly more complicated, by echoing $? after pg_ctl, prevents the error: /usr/bin/perl -e 'system(qq{"bin/pg_ctl" -D

Re: issue with meson builds on msys2

2023-05-08 Thread Andres Freund
Hi, On 2023-05-05 07:08:39 -0400, Andrew Dunstan wrote: > On 2023-05-04 Th 19:54, Andres Freund wrote: > > Hm. I can't reproduce this in my test win10 VM, unfortunately. What OS / OS > > version is the host? Any chance to get systeminfo.exe output or something > > like > > that? > > > Its a Win

Re: issue with meson builds on msys2

2023-05-05 Thread Andrew Dunstan
meson: Here's a simple illustration of the problem. If I do the identical test with a non-meson build there is no problem: This happens 100% reproducible? For a sufficiently modern installation of msys2 (20230318 version) this is reproducible on autoconf builds as well. For now it's o

Re: issue with meson builds on msys2

2023-05-04 Thread Andres Freund
meson: > > > > > > Here's a simple illustration of the problem. If I do the identical test > > > with > > > a non-meson build there is no problem: > > This happens 100% reproducible? > > For a sufficiently modern installation of msys2 (20230318 ver

Re: issue with meson builds on msys2

2023-05-03 Thread Andrew Dunstan
support for meson: Here's a simple illustration of the problem. If I do the identical test with a non-meson build there is no problem: This happens 100% reproducible? For a sufficiently modern installation of msys2 (20230318 version) this is reproducible on autoconf builds as well. Oh. Seems

Re: issue with meson builds on msys2

2023-05-03 Thread Andrew Dunstan
f the problem. If I do the identical test with a non-meson build there is no problem: This happens 100% reproducible? For a sufficiently modern installation of msys2 (20230318 version) this is reproducible on autoconf builds as well. For now it's off my list of meson blockers. I will pursue

Re: issue with meson builds on msys2

2023-05-03 Thread Andres Freund
; > > buildfarm support for meson: > > > > > > Here's a simple illustration of the problem. If I do the identical test > > > with > > > a non-meson build there is no problem: > > This happens 100% reproducible? > For a sufficiently modern installation

Re: issue with meson builds on msys2

2023-05-03 Thread Andrew Dunstan
meson build there is no problem: This happens 100% reproducible? For a sufficiently modern installation of msys2 (20230318 version) this is reproducible on autoconf builds as well. For now it's off my list of meson blockers. I will pursue the issue when I have time, but for now th

Re: issue with meson builds on msys2

2023-04-27 Thread Andres Freund
Hi, On 2023-04-26 09:59:05 -0400, Andrew Dunstan wrote: > Still running into this, and I am rather stumped. This is a blocker for > buildfarm support for meson: > > Here's a simple illustration of the problem. If I do the identical test with > a non-meson build there is no problem: This happens

Re: issue with meson builds on msys2

2023-04-26 Thread Andrew Dunstan
On 2023-04-26 We 11:30, Tom Lane wrote: Andrew Dunstan writes: If I redirect the output to a file (which is what the buildfarm client actually does), it seems like it completes successfully, but I still get a non-zero exit: pgrunner@EC2AMAZ-GCB871B UCRT64 ~/bf $ /usr/bin/perl -e 'chdir "root/H

Re: issue with meson builds on msys2

2023-04-26 Thread Tom Lane
Andrew Dunstan writes: > If I redirect the output to a file (which is what the buildfarm client > actually does), it seems like it completes successfully, but I still get > a non-zero exit: > pgrunner@EC2AMAZ-GCB871B UCRT64 ~/bf > $ /usr/bin/perl -e 'chdir "root/HEAD/instkeep.2023-04-25_11-09-4

Re: issue with meson builds on msys2

2023-04-26 Thread Andrew Dunstan
On 2023-04-26 We 10:58, Tom Lane wrote: I wrote: Looking at the pg_ctl source code, the only way I can explain that printout is that do_stop called wait_for_postmaster_stop which, after one or more loops, exited via one of its exit() calls. Ah, a little too hasty there: it's get_pgpid() that h

Re: issue with meson builds on msys2

2023-04-26 Thread Tom Lane
I wrote: > Looking at the pg_ctl source code, the only way I can explain that > printout is that do_stop called wait_for_postmaster_stop which, > after one or more loops, exited via one of its exit() calls. Ah, a little too hasty there: it's get_pgpid() that has to be reaching an exit().

Re: issue with meson builds on msys2

2023-04-26 Thread Tom Lane
Andrew Dunstan writes: >> For some reason which makes no sense to me the buildfarm animal fails >> at the first Stop-Db step. The DB is actually stopped, but pg_ctl >> returns a non-zero status. The thing that's really odd is that meson >> isn't at all involved in this step. But it's happened e

Re: meson/msys2 fails with plperl/Strawberry

2023-03-30 Thread Andrew Dunstan
On 2023-03-27 Mo 13:18, Andres Freund wrote: Hi, On 2023-03-26 21:13:41 -0400, Andrew Dunstan wrote: On Mar 26, 2023, at 5:28 PM, Andres Freund wrote: On 2023-03-26 12:39:08 -0700, Andres Freund wrote: First: I am *not* arguing we shouldn't repair building against strawberry perl with mingw.

Re: meson/msys2 fails with plperl/Strawberry

2023-03-27 Thread Andres Freund
Hi, On 2023-03-26 21:13:41 -0400, Andrew Dunstan wrote: > > On Mar 26, 2023, at 5:28 PM, Andres Freund wrote: > >> On 2023-03-26 12:39:08 -0700, Andres Freund wrote: > >> First: I am *not* arguing we shouldn't repair building against strawberry > >> perl > >> with mingw. > > > > Hm - can you de

Re: meson/msys2 fails with plperl/Strawberry

2023-03-26 Thread Andrew Dunstan
> On Mar 26, 2023, at 5:28 PM, Andres Freund wrote: > > Hi, > >> On 2023-03-26 12:39:08 -0700, Andres Freund wrote: >> First: I am *not* arguing we shouldn't repair building against strawberry >> perl >> with mingw. > > Hm - can you describe the failure more - I just tried, and it worked t

Re: meson/msys2 fails with plperl/Strawberry

2023-03-26 Thread Andres Freund
Hi, On 2023-03-26 12:39:08 -0700, Andres Freund wrote: > First: I am *not* arguing we shouldn't repair building against strawberry perl > with mingw. Hm - can you describe the failure more - I just tried, and it worked to build against strawberry perl on mingw, without any issues. All I did was s

Re: meson/msys2 fails with plperl/Strawberry

2023-03-26 Thread Andres Freund
t; > it will happily build with autoconf. > > I did not try to build with strawberry perl using mingw - it doesn't seem > > like > > a very interesting thing, given that mingw has a much more reasonable perl > > than strawberry - but with the mingw perl it works well.

Re: meson/msys2 fails with plperl/Strawberry

2023-03-26 Thread Andrew Dunstan
t with the mingw perl it works well. Strawberry is a recommended perl installation for Windows (<https://www.perl.org/get.html>) and is widely used AFAICT. In general my approach has been to build as independently as possible from msys2 infrastructure, in particular a) not to rely on it at

Re: meson/msys2 fails with plperl/Strawberry

2023-03-25 Thread Andres Freund
Hi, On 2023-03-25 08:46:42 -0400, Andrew Dunstan wrote: > config/perl.m4 contains this: > > >AC_MSG_CHECKING(for flags to link embedded Perl) >if test "$PORTNAME" = "win32" ; then > perl_lib=`basename $perl_archlibexp/CORE/perl[[5-9]]*.lib .lib` > if test -e "$perl_archlibe

meson/msys2 fails with plperl/Strawberry

2023-03-25 Thread Andrew Dunstan
Hi, config/perl.m4 contains this: AC_MSG_CHECKING(for flags to link embedded Perl) if test "$PORTNAME" = "win32" ; then perl_lib=`basename $perl_archlibexp/CORE/perl[[5-9]]*.lib .lib` if test -e "$perl_archlibexp/CORE/$perl_lib.lib"; then perl_embed_ldflags="-

Re: fixing pg_basebackup tests for modern Windows/msys2

2021-07-29 Thread Andrew Dunstan
On 7/28/21 9:31 AM, Andrew Dunstan wrote: > While looking into issues with fairywren and pg_basebackup tests, I > created a similar environment but with more modern Windows / msys2. > Before it even got to the test that failed on fairywren it failed the > first TAP test for a variet

fixing pg_basebackup tests for modern Windows/msys2

2021-07-28 Thread Andrew Dunstan
While looking into issues with fairywren and pg_basebackup tests, I created a similar environment but with more modern Windows / msys2. Before it even got to the test that failed on fairywren it failed the first TAP test for a variety of reasons, all connected to TestLib::perl2host. First, this

Re: [PATCH] Fix PostgreSQL 12.1 server build and install problems under MSYS2

2020-01-30 Thread Peter Eisentraut
On 2019-12-31 11:56, Peter Eisentraut wrote: On 2019-12-04 11:32, Guram Duka wrote: Master branch got error in configure stage and then compiling like 12.1 branch. checking how to link an embedded Python application... configure: error: could not find shared library for Python Yo

Re: [PATCH] Fix PostgreSQL 12.1 server build and install problems under MSYS2

2019-12-31 Thread Peter Eisentraut
On 2019-12-04 11:32, Guram Duka wrote: Master branch got error in configure stage and then compiling like 12.1 branch. checking how to link an embedded Python application... configure: error: could not find shared library for Python You might have to rebuild your Python installation

Re: MSYS2 support

2019-12-26 Thread Peter Eisentraut
On 2019-12-12 22:11, Peter Eisentraut wrote: You can also build natively on MSYS2, using the existing Cygwin support. Except that it won't work because configure doesn't recognize the config.guess output. Attached are a couple of small patches to fix that up. The first patch fixes

MSYS2 support

2019-12-12 Thread Peter Eisentraut
There were a number of recent threads about building PostgreSQL on MSYS2. This has been confusing on occasion; see for example [0]. MSYS2 is actually a derivative of Cygwin. What most people are actually doing is using MSYS2 has the host environment for doing a kind of cross-compilation to

Re: [PATCH] Fix PostgreSQL 12.1 server build and install problems under MSYS2

2019-12-04 Thread Guram Duka
ils. Use --without-python to disable building > PL/Python. > > I registered the patch. > ср, 4 дек. 2019 г. в 11:05, Michael Paquier : > On Wed, Dec 04, 2019 at 10:46:39AM +0300, Guram Duka wrote: > > I made a patch fixing build and install problems under MSYS2, includi

Re: [PATCH] Fix PostgreSQL 12.1 server build and install problems under MSYS2

2019-12-04 Thread Michael Paquier
On Wed, Dec 04, 2019 at 10:46:39AM +0300, Guram Duka wrote: > I made a patch fixing build and install problems under MSYS2, including > llvmjit. > > I have tested this in my environment and it works, of course need more > extensive testing. > Attached is a patch that fixes it.

[PATCH] Fix PostgreSQL 12.1 server build and install problems under MSYS2

2019-12-03 Thread Guram Duka
Hi hackers. I made a patch fixing build and install problems under MSYS2, including llvmjit. I have tested this in my environment and it works, of course need more extensive testing. Attached is a patch that fixes it. Tag REL_12_1. -- Best regards. Guram Duka. postgresql-12.1-msys2-v1.patch

Re: [PATCH] Fix PostgreSQL server build and install problems under MSYS2

2019-11-11 Thread Guram Duka
Thank you for your comments. 1. The #if ... defined(__ cplusplus) is necessary for the successful compilation of C++ llvmjit code that uses C headers. 2. #if defined(HAVE_GSS_API_H) && !defined(GSS_DLLIMP) is necessary for the successful link libgss.a provided by MSYS2. 3. Remember that

Re: [PATCH] Fix PostgreSQL server build and install problems under MSYS2

2019-11-11 Thread Michael Paquier
On Mon, Nov 11, 2019 at 10:56:51AM -0500, Tom Lane wrote: > This seems like it probably breaks a lot of other cases along the way. > Why have you made all these #if tests dependent on defined(__cplusplus)? > That's surely not specific to MSYS2. (I'm a bit bemused by the i

Re: [PATCH] Fix PostgreSQL server build and install problems under MSYS2

2019-11-11 Thread Tom Lane
=?UTF-8?B?0JPRg9GA0LDQvCDQlNGD0LrQsA==?= writes: > I made a patch fixing build and install problems under MSYS2, including > llvmjit. This seems like it probably breaks a lot of other cases along the way. Why have you made all these #if tests dependent on defined(__cplusplus)? That's

[PATCH] Fix PostgreSQL server build and install problems under MSYS2

2019-11-11 Thread Гурам Дука
Hi hackers. I made a patch fixing build and install problems under MSYS2, including llvmjit. I have tested this in my environment and it works, of course need more extensive testing. Attached is a patch that fixes it. Tag REL_11_5. Easy to adapt for other versions. -- Best regards. Guram Duka

msys2 is missing pexports

2019-09-30 Thread Andrew Dunstan
We rely on pexports to extract exported symbols from DLL files (e.g. for linking in PLs) when building with mingw. However, this program isn't present in msys2. Instead the approved way is apparently to call "gendef" from the appropriate toolset (e.g. /mingw64/bin). I have worked

Re: msys2 vs pg_upgrade/test.sh

2019-09-09 Thread Andrew Dunstan
On 9/9/19 4:48 AM, Peter Eisentraut wrote: > On 2019-09-09 00:06, Andrew Dunstan wrote: >> Diagnosing this took quite a lot of time and detective work. For some >> reason I don't quite understand, when calling the Windows command >> processor in a modern msys2/WindowsSe

Re: msys2 vs pg_upgrade/test.sh

2019-09-09 Thread Peter Eisentraut
On 2019-09-09 00:06, Andrew Dunstan wrote: > Diagnosing this took quite a lot of time and detective work. For some > reason I don't quite understand, when calling the Windows command > processor in a modern msys2/WindowsServer2019 installation, you need to > double the slash, t

msys2 vs pg_upgrade/test.sh

2019-09-08 Thread Andrew Dunstan
Diagnosing this took quite a lot of time and detective work. For some reason I don't quite understand, when calling the Windows command processor in a modern msys2/WindowsServer2019 installation, you need to double the slash, thus:     cmd //c foo.bat Some Internet postings at least se

msys2

2018-10-07 Thread Andrew Dunstan
Disclaimer: I might have done things in not the best way - I'll happily accept correction. Here is some information about building on msys2, the rewrite of msys, plus a proposal for a couple of tiny changes to support it. The simplest way to install msys2 is via the chocolatey pa

Re: Issues while building PG in MS Windows, using MSYS2 and MinGW-w64

2018-09-03 Thread Andre_Mikulec
/R-3.5._/postgres/build $ make install ref Issues while building PG in MS Windows, using MSYS2 and MinGW-w64 https://www.postgresql-archive.org/Issues-while-building-PG-in-MS-Windows-using-MSYS2-and-MinGW-w64-td6018897.html -- Sent from: http://www.postgresql-archive.org/PostgreSQL-hackers-f1928748.html

Re: Issues while building PG in MS Windows, using MSYS2 and MinGW-w64

2018-09-03 Thread Andre_Mikulec
st=x86_64-w64-mingw32 --prefix=$PWD --enable-debug --disable-rpath --enable-depend --without-zlib $ make All of PostgreSQL successfully made. Ready to install. AnonymousUser@ANONYMOUST MINGW64 /w/R-3.5._/postgres/build $ make install ref Issues while building PG in MS Windows, using MSYS2 and Mi

Re: MSYS2 and pg_upgrade testing

2018-05-04 Thread Andrew Dunstan
On Fri, May 4, 2018 at 2:30 PM, Robert Haas wrote: > On Thu, May 3, 2018 at 5:25 PM, Andrew Dunstan > wrote: >> I've been getting an Msys2 environment working, and will soon document >> how to build with this environment. There are several nice things >> about it,

Re: MSYS2 and pg_upgrade testing

2018-05-04 Thread Robert Haas
On Thu, May 3, 2018 at 5:25 PM, Andrew Dunstan wrote: > I've been getting an Msys2 environment working, and will soon document > how to build with this environment. There are several nice things > about it, including a modern version of perl and proper support for > the mi

MSYS2 and pg_upgrade testing

2018-05-03 Thread Andrew Dunstan
I've been getting an Msys2 environment working, and will soon document how to build with this environment. There are several nice things about it, including a modern version of perl and proper support for the mingw-w64 compilers. So far the only thing I have found that needs to be changed f

Re: Issues while building PG in MS Windows, using MSYS2 and MinGW-w64

2018-05-03 Thread Pavlo Golub
Hello, insaf.k. You wrote: ik> Hello, ik> I am trying to build PG from source, in MS Windows using MSYS2 ik> and MinGW-w64. I've tried to build PG 10.0 as wells as 10.3. Just checked. All compiled in a sane way. I suppose you have some environmental problems. This is my step

Re: Issues while building PG in MS Windows, using MSYS2 and MinGW-w64

2018-05-02 Thread Alexander Lakhin
"insaf.k" wrote: I am trying to build PG from source, in MS Windows using MSYS2 and MinGW-w64. I've tried to build PG 10.0 as wells as 10.3. I've done configuring like this ./configure --prefix="/d/pg10/" And when I do "make" or "make world&qu

Re: Issues while building PG in MS Windows, using MSYS2 and MinGW-w64

2018-04-30 Thread Yuriy Zhuravlev
If you have time, can you check CMake version? https://github.com/stalkerg/postgres_cmake During Mingw installation you can choose a version, it can be more MSVC like or more Unix, probably Postgres have a problem with one of mingw type. So I unpacked the source tarball within the shell itself(u

Re: Issues while building PG in MS Windows, using MSYS2 and MinGW-w64

2018-04-30 Thread Andrew Dunstan
-ready compiler > wouldn't handle that. > > I haven't looked deeply at this thread, but it's worth pointing out that MSYS2 is not the same thing as MSYS, and I at least have no experience of building with it. Now Msys hasn't been updated fo

Re: Issues while building PG in MS Windows, using MSYS2 and MinGW-w64

2018-04-30 Thread Tom Lane
"insaf.k" writes: > gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement > -Wendif-labels -Wmissing-format-attribute -Wformat-security > -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -std=c11 > -I../../src/port -DFRONTEND -I../../src/include -I./src/includ

Re: Issues while building PG in MS Windows, using MSYS2 and MinGW-w64

2018-04-30 Thread insaf.k
Hi Tom Lane, Thanks for the help. I had extracted PG using WinZip outside of MSYS2, and it was causing many of the errors, may be due to some errors in file attributes. So I unpacked the source tarball within the shell itself(using gunzip and tar), and I could fix many errors. Now

Re: Issues while building PG in MS Windows, using MSYS2 and MinGW-w64

2018-04-27 Thread legrand legrand
Hello, as a complement: I used MSYS2 and MinGW-w64 to build version 11devel from https://www.postgresql.org/ftp/snapshot/dev/ on my win 7 64 bit desktop. What I remember is that I found good advices in https://www.postgresql.org/docs/current/static/installation-platform-notes.html#INSTALLATION

Re: Issues while building PG in MS Windows, using MSYS2 and MinGW-w64

2018-04-27 Thread Tom Lane
"insaf.k" writes: > I am trying to build PG from source, in MS Windows using MSYS2 and MinGW-w64. > I've tried to build PG 10.0 as wells as 10.3. > I've done configuring like this > ./configure --prefix="/d/pg10/" > And when I do "make&quo

Issues while building PG in MS Windows, using MSYS2 and MinGW-w64

2018-04-27 Thread insaf.k
Hello, I am trying to build PG from source, in MS Windows using MSYS2 and MinGW-w64. I've tried to build PG 10.0 as wells as 10.3. I've done configuring like this ./configure --prefix="/d/pg10/" And when I do "make" or "make world", I