Обсуждение: Issues while building PG in MS Windows, using MSYS2 and MinGW-w64

Поиск
Список
Период
Сортировка

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

От
"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'm getting compilation error. I've attached complete error report at the end of the mail.

Basically, one error is pre-processor #error must have a working 64-bit integer datatype.
Another error is "redifinition of fseeko".
Another error is "FLEXIBLE_ARRAY_MEMBER" is undefined.


I don't know why the error is coming, I tried reinstalling MSYS2 and but still no luck. Could you please help?

My $PATH var is
$ echo $PATH
/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl



$ make
make -C src all
make[1]: Entering directory '/d/Insaf/pgSource/postgresql-10.0/src'
make -C common all
make[2]: Entering directory '/d/Insaf/pgSource/postgresql-10.0/src/common'
make -C ../backend submake-errcodes
make[3]: Entering directory '/d/Insaf/pgSource/postgresql-10.0/src/backend'
make[3]: Nothing to be done for 'submake-errcodes'.
make[3]: Leaving directory '/d/Insaf/pgSource/postgresql-10.0/src/backend'
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexce                 ss-precision=standard -O2 -DFRONTEND -I../../src/include  -I./src/include/port/win32 -DEXEC_BACKEND  "-I../../src/include/port/win32" -DBUILDING_DLL -DVAL_CONFIGURE="\"'--p                 refix=/d/Insaf/pgGcc' 'PKG_CONFIG_PATH=/mingw64/lib/pkgconfig:/mingw64/share/pkgconfig'\"" -DVAL_CC="\"gcc\"" -DVAL_CPPFLAGS="\"-DFRONTEND -I./src/include/port/win32 -DEXEC                 _BACKEND "-I../../src/include/port/win32" -DBUILDING_DLL\"" -DVAL_CFLAGS="\"-Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissin                 g-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2\"" -DVAL_CFLAGS_SL="\"\"" -DVAL_LDFLAGS="\"-L../../src/common -Wl,--allow-                 multiple-definition -Wl,--disable-auto-import -Wl,--as-needed\"" -DVAL_LDFLAGS_EX="\"\"" -DVAL_LDFLAGS_SL="\"\"" -DVAL_LIBS="\"-lpgcommon -lpgport -lz -lws2_32 -lm  -lws2_3                 2 \""  -c -o base64.o base64.c
In file included from ../../src/include/c.h:48:0,                from ../../src/include/postgres_fe.h:25,                from base64.c:18:
../../src/include/postgres_ext.h:47:9: error: unknown type name 'PG_INT64_TYPE'typedef PG_INT64_TYPE pg_int64;        ^~~~~~~~~~~~~
In file included from ../../src/include/postgres_fe.h:25:0,                from base64.c:18:
../../src/include/c.h:306:2: error: #error must have a working 64-bit integer datatype#error must have a working 64-bit integer datatype ^~~~~
../../src/include/c.h:446:15: error: 'FLEXIBLE_ARRAY_MEMBER' undeclared here (not in a function) char  vl_dat[FLEXIBLE_ARRAY_MEMBER]; /* Data content is here */              ^~~~~~~~~~~~~~~~~~~~~
In file included from ../../src/include/postgres_fe.h:25:0,                from base64.c:18:
../../src/include/c.h:1054:1: warning: 'PG_PRINTF_ATTRIBUTE' is an unrecognized format function type [-Wformat=]extern int snprintf(char *str, size_t count, const char *fmt,...) pg_attribute_printf(3, 4);^~~~~~
In file included from ../../src/include/c.h:1129:0,                from ../../src/include/postgres_fe.h:25,                from base64.c:18:
../../src/include/port.h:375:0: warning: "fseeko" redefined#define fseeko(a, b, c) fseek(a, b, c)

In file included from ../../src/include/c.h:101:0,                from ../../src/include/postgres_fe.h:25,                from base64.c:18:
../../src/include/pg_config_os.h:237:0: note: this is the location of the previous definition#define fseeko(stream, offset, origin) fseeko64(stream, offset, origin)

In file included from ../../src/include/c.h:1129:0,                from ../../src/include/postgres_fe.h:25,                from base64.c:18:
../../src/include/port.h:376:0: warning: "ftello" redefined#define ftello(a)  ftell(a)

In file included from ../../src/include/c.h:101:0,                from ../../src/include/postgres_fe.h:25,                from base64.c:18:
../../src/include/pg_config_os.h:240:0: note: this is the location of the previous definition#define ftello(stream) ftello64(stream)

In file included from ../../src/include/postgres_fe.h:27:0,                from base64.c:18:
../../src/include/common/fe_memutils.h:41:1: warning: 'PG_PRINTF_ATTRIBUTE' is an unrecognized format function type [-Wformat=]extern char *psprintf(const char *fmt,...) pg_attribute_printf(1, 2);^~~~~~
../../src/include/common/fe_memutils.h:42:1: warning: 'PG_PRINTF_ATTRIBUTE' is an unrecognized format function type [-Wformat=]extern size_t pvsnprintf(char *buf, size_t len, const char *fmt, va_list args) pg_attribute_printf(3, 0);^~~~~~
make[2]: *** [: base64.o] Error 1
make[2]: Leaving directory '/d/Insaf/pgSource/postgresql-10.0/src/common'
make[1]: *** [Makefile:37: all-common-recurse] Error 2
make[1]: Leaving directory '/d/Insaf/pgSource/postgresql-10.0/src'
make: *** [GNUmakefile:11: all-src-recurse] Error 2


Regards,
Mohamed Insaf K


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

От
Tom Lane
Дата:
"insaf.k" <insaf.k@zohocorp.com> 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" or "make world", I'm getting compilation error. I've attached complete error report at the end
ofthe mail. 

I don't know anything about mingw, but from the first error message you
showed, I'd venture that configure failed to fill in pg_config_ext.h
correctly.  It should have put in a line like

#define PG_INT64_TYPE long long int

and evidently it hasn't.  This suggests that there's something wrong
with one of the text-processing tools it uses, such as "sed".  You
might look into config.log and see if there are any relevant-looking
error messages (probably down near the end).  Also, try comparing
your configure text output and config.log to those of one of our
buildfarm machines that's using mingw successfully, such as

https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=jacana&dt=2018-04-27%2012%3A19%3A49

(the "config" and "configure" links on that page are what to compare to).

Hm ... I notice that jacana's been set up so that it explicitly
gives configure a --host setting instead of letting configure work
that out.  No idea if that was really necessary or not.

            regards, tom lane


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

От
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-NOTES-MINGW
and
https://wiki.postgresql.org/wiki/Building_With_MinGW

I don't remenber the details of the installation process, but it was working
with

Unzip and untar tarball then

cd postgresql-11devel
./configure --build=x86_64-w64-mingw32  --without-zlib
make
make install

regards
PAscal



--
Sent from: http://www.postgresql-archive.org/PostgreSQL-hackers-f1928748.html


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

От
"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 new errors are popping up. I've compared the config file with the file given in the URL, but I couldn't fix this yet.

The current error is basically due to the fact that, PUTENVPROC macro is defined to empty.

Config output and make error output are uploaded here https://gist.github.com/codercet/760ae3b0337144059570ccfc06e2a847


The error output while doing make is

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/include/port/win32 -DEXEC_BACKEND  "-I../../src/include/port/win32" -DBUILDING_DLL  -c -o win32env.o win32env.c
win32env.c: In function 'pgwin32_putenv':
win32env.c:24:22: error: expected ')' before '*' token
  typedef int (_cdecl * PUTENVPROC) (const char *);
                      ^
win32env.c:96:4: error: unknown type name 'PUTENVPROC'; did you mean 'IMCENUMPROC'?
    PUTENVPROC putenvFunc;
    ^~~~~~~~~~
    IMCENUMPROC
win32env.c:98:18: error: 'PUTENVPROC' undeclared (first use in this function); did you mean 'IMCENUMPROC'?
    putenvFunc = (PUTENVPROC) GetProcAddress(hmodule, "_putenv");
                  ^~~~~~~~~~
                  IMCENUMPROC
win32env.c:98:18: note: each undeclared identifier is reported only once for each function it appears in
win32env.c:98:30: error: expected ';' before 'GetProcAddress'
    putenvFunc = (PUTENVPROC) GetProcAddress(hmodule, "_putenv");
                              ^~~~~~~~~~~~~~
win32env.c:100:5: error: called object 'putenvFunc' is not a function or function pointer
     putenvFunc(envval);
     ^~~~~~~~~~
win32env.c:96:15: note: declared here
    PUTENVPROC putenvFunc;
               ^~~~~~~~~~
make[2]: *** [<builtin>: win32env.o] Error 1
make[2]: Leaving directory '/home/admin/postgresql-10.0/src/port'
make[1]: *** [Makefile:37: all-port-recurse] Error 2
make[1]: Leaving directory '/home/admin/postgresql-10.0/src'
make: *** [GNUmakefile:11: all-src-recurse] Error 2


Could you please help?

Best Regards,
Mohamed Insaf K
---- On Fri, 27 Apr 2018 21:01:56 +0530 Tom Lane <tgl@sss.pgh.pa.us> wrote ----

"insaf.k" <insaf.k@zohocorp.com> 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" or "make world", I'm getting compilation error. I've attached complete error report at the end of the mail.

I don't know anything about mingw, but from the first error message you
showed, I'd venture that configure failed to fill in pg_config_ext.h
correctly. It should have put in a line like

#define PG_INT64_TYPE long long int

and evidently it hasn't. This suggests that there's something wrong
with one of the text-processing tools it uses, such as "sed". You
might look into config.log and see if there are any relevant-looking
error messages (probably down near the end). Also, try comparing
your configure text output and config.log to those of one of our
buildfarm machines that's using mingw successfully, such as


(the "config" and "configure" links on that page are what to compare to).

Hm ... I notice that jacana's been set up so that it explicitly
gives configure a --host setting instead of letting configure work
that out. No idea if that was really necessary or not.

            regards, tom lane


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

От
Tom Lane
Дата:
"insaf.k" <insaf.k@zohocorp.com> 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/include/port/win32 -DEXEC_BACKEND
"-I../../src/include/port/win32"-DBUILDING_DLL  -c -o win32env.o win32env.c 

> win32env.c: In function 'pgwin32_putenv':
> win32env.c:24:22: error: expected ')' before '*' token
>   typedef int (_cdecl * PUTENVPROC) (const char *);
>                       ^

Hmm.  This sort of looks like your compiler isn't recognizing _cdecl
as a special token, but I have no idea why a Windows-ready compiler
wouldn't handle that.

            regards, tom lane


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

От
Andrew Dunstan
Дата:

On 04/30/2018 02:59 PM, Tom Lane wrote:
> "insaf.k" <insaf.k@zohocorp.com> 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/include/port/win32 -DEXEC_BACKEND
"-I../../src/include/port/win32"-DBUILDING_DLL  -c -o win32env.o win32env.c
 
>> win32env.c: In function 'pgwin32_putenv':
>> win32env.c:24:22: error: expected ')' before '*' token
>>   typedef int (_cdecl * PUTENVPROC) (const char *);
>>                       ^
> Hmm.  This sort of looks like your compiler isn't recognizing _cdecl
> as a special token, but I have no idea why a Windows-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 for quite a while. so maybe we need to look
at these tools. Our documentation currently does not refer to MSYS2 at all.

cheers

andrew

-- 
Andrew Dunstan                https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

От
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(using gunzip and tar), and I could fix many errors.

This is really stange, mingw on windows should't depend on any attribute.  

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

От
Alexander Lakhin
Дата:
"insaf.k" <insaf(dot)k(at)zohocorp(dot)com> 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", I'm getting compilation error. I've attached complete error report at the end of the mail.
Can you try the .cmd script (https://pastebin.com/LU9gdn27), that compiles REL_10_STABLE on Windows with msys2 and mingw-w64 successfully?
In case of any issues with it, please let me now.

Best regards,
------
Alexander Lakhin
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company

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

От
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-by-step guide:

1. Download MSYS2 installer, 64-bit.
2. Run, choose simple install folder, e.g. C:\msys64
3. Run MSYS2 after installation and execute:
  pacman -Syu
4. Maybe you'll need this several times. Close console
5. Open appropriate console with correct environment:
  a) C:\msys64\msys2_shell.cmd -mingw64
     or
  b) just click on the Start menu “MSYS2 MinGW 64-bit” shortcut
6. In it update packages:
   pacman -Syu
7. Install needed packages:
   pacman --needed -S git mingw-w64-x86_64-gcc base-devel
8. Execute:

   git clone git://git.postgresql.org/git/postgresql.git
   cd postgresql
   ./configure --host=x86_64-w64-mingw32 --prefix=/c/pgsql/ && make && make install

Here we tell our target machine will be 64-bit and we want our
binaries to be copied to C:\pgsql\.

ik> I've done configuring like this

ik>       ./configure --prefix="/d/pg10/"

ik> And when I do "make" or "make world", I'm getting compilation
ik> error. I've attached complete error report at the end of the mail.



ik> Basically, one error is pre-processor #error must have a working 64-bit integer datatype.

ik> Another error is "redifinition of fseeko".

ik> Another error is "FLEXIBLE_ARRAY_MEMBER" is undefined.





ik> I don't know why the error is coming, I tried reinstalling MSYS2
ik> and but still no luck. Could you please help?


ik> My $PATH var is

ik> $ echo $PATH
ik>
/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl







ik> $ make
ik> make -C src all
ik> make[1]: Entering directory '/d/Insaf/pgSource/postgresql-10.0/src'
ik> make -C common all
ik> make[2]: Entering directory
ik> '/d/Insaf/pgSource/postgresql-10.0/src/common'
ik> make -C ../backend submake-errcodes
ik> make[3]: Entering directory
ik> '/d/Insaf/pgSource/postgresql-10.0/src/backend'
ik> make[3]: Nothing to be done for 'submake-errcodes'.
ik> make[3]: Leaving directory
ik> '/d/Insaf/pgSource/postgresql-10.0/src/backend'
ik> gcc -Wall -Wmissing-prototypes -Wpointer-arith
ik> -Wdeclaration-after-statement -Wendif-labels
ik> -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing
ik> -fwrapv -fexce                 ss-precision=standard -O2
ik> -DFRONTEND -I../../src/include  -I./src/include/port/win32
ik> -DEXEC_BACKEND  "-I../../src/include/port/win32" -DBUILDING_DLL
ik> -DVAL_CONFIGURE="\"'--p                 refix=/d/Insaf/pgGcc'
ik> 'PKG_CONFIG_PATH=/mingw64/lib/pkgconfig:/mingw64/share/pkgconfig'\""
ik> -DVAL_CC="\"gcc\"" -DVAL_CPPFLAGS="\"-DFRONTEND
ik> -I./src/include/port/win32 -DEXEC                 _BACKEND
ik> "-I../../src/include/port/win32" -DBUILDING_DLL\""
ik> -DVAL_CFLAGS="\"-Wall -Wmissing-prototypes -Wpointer-arith
ik> -Wdeclaration-after-statement -Wendif-labels -Wmissin
ik> g-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv
ik> -fexcess-precision=standard -O2\"" -DVAL_CFLAGS_SL="\"\""
ik> -DVAL_LDFLAGS="\"-L../../src/common -Wl,--allow-
ik> multiple-definition -Wl,--disable-auto-import -Wl,--as-needed\""
ik> -DVAL_LDFLAGS_EX="\"\"" -DVAL_LDFLAGS_SL="\"\""
ik> -DVAL_LIBS="\"-lpgcommon -lpgport -lz -lws2_32 -lm  -lws2_3        2 \""  -c -o base64.o base64.c
ik> In file included from ../../src/include/c.h:48:0,
ik>                  from ../../src/include/postgres_fe.h:25,
ik>                  from base64.c:18:
ik> ../../src/include/postgres_ext.h:47:9: error: unknown type name 'PG_INT64_TYPE'
ik>  typedef PG_INT64_TYPE pg_int64;
ik>          ^~~~~~~~~~~~~
ik> In file included from ../../src/include/postgres_fe.h:25:0,
ik>                  from base64.c:18:
ik> ../../src/include/c.h:306:2: error: #error must have a working 64-bit integer datatype
ik>  #error must have a working 64-bit integer datatype
ik>   ^~~~~
ik> ../../src/include/c.h:446:15: error: 'FLEXIBLE_ARRAY_MEMBER'
ik> undeclared here (not in a function)
ik>   char  vl_dat[FLEXIBLE_ARRAY_MEMBER]; /* Data content is here */
ik>                ^~~~~~~~~~~~~~~~~~~~~
ik> In file included from ../../src/include/postgres_fe.h:25:0,
ik>                  from base64.c:18:
ik> ../../src/include/c.h:1054:1: warning: 'PG_PRINTF_ATTRIBUTE' is
ik> an unrecognized format function type [-Wformat=]
ik>  extern int snprintf(char *str, size_t count, const char
ik> *fmt,...) pg_attribute_printf(3, 4);
ik>  ^~~~~~
ik> In file included from ../../src/include/c.h:1129:0,
ik>                  from ../../src/include/postgres_fe.h:25,
ik>                  from base64.c:18:
ik> ../../src/include/port.h:375:0: warning: "fseeko" redefined
ik>  #define fseeko(a, b, c) fseek(a, b, c)

ik> In file included from ../../src/include/c.h:101:0,
ik>                  from ../../src/include/postgres_fe.h:25,
ik>                  from base64.c:18:
ik> ../../src/include/pg_config_os.h:237:0: note: this is the
ik> location of the previous definition
ik>  #define fseeko(stream, offset, origin) fseeko64(stream, offset, origin)

ik> In file included from ../../src/include/c.h:1129:0,
ik>                  from ../../src/include/postgres_fe.h:25,
ik>                  from base64.c:18:
ik> ../../src/include/port.h:376:0: warning: "ftello" redefined
ik>  #define ftello(a)  ftell(a)

ik> In file included from ../../src/include/c.h:101:0,
ik>                  from ../../src/include/postgres_fe.h:25,
ik>                  from base64.c:18:
ik> ../../src/include/pg_config_os.h:240:0: note: this is the
ik> location of the previous definition
ik>  #define ftello(stream) ftello64(stream)

ik> In file included from ../../src/include/postgres_fe.h:27:0,
ik>                  from base64.c:18:
ik> ../../src/include/common/fe_memutils.h:41:1: warning:
ik> 'PG_PRINTF_ATTRIBUTE' is an unrecognized format function type [-Wformat=]
ik>  extern char *psprintf(const char *fmt,...) pg_attribute_printf(1, 2);
ik>  ^~~~~~
ik> ../../src/include/common/fe_memutils.h:42:1: warning:
ik> 'PG_PRINTF_ATTRIBUTE' is an unrecognized format function type [-Wformat=]
ik>  extern size_t pvsnprintf(char *buf, size_t len, const char *fmt,
ik> va_list args) pg_attribute_printf(3, 0);
ik>  ^~~~~~
ik> make[2]: *** [: base64.o] Error 1
ik> make[2]: Leaving directory
ik> '/d/Insaf/pgSource/postgresql-10.0/src/common'
ik> make[1]: *** [Makefile:37: all-common-recurse] Error 2
ik> make[1]: Leaving directory '/d/Insaf/pgSource/postgresql-10.0/src'
ik> make: *** [GNUmakefile:11: all-src-recurse] Error 2





ik> Regards,

ik> Mohamed Insaf K





--
With best wishes,
 Pavlo                          mailto:pavlo.golub@cybertec.at



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

От
Andre_Mikulec
Дата:
Hi,

I had this problem.
The solution is to turn off AVG anti-virus.
In the past, I could both compile PostgreSQL and keep 'AVG on' at the same
time.
The case * does not seem that way anymore *

With AVG 'antivirus on' the following occurs.

AnonymousUser@ANONYMOUST MSYS /w/R-3.5._/postgres/build
$ /w/R-3.5._/postgres/configure --host=x86_64-w64-mingw32 --prefix=$PWD
--enable-debug --disable-rpath --enable-depend --without-zlib   
$ make

Detect problem ... popup window
...
Detect problem ... popup window
...
Protected you ... create exception
...

'make' then dies on the same errors mentioned above

Then I turn off the internet (for my protection)
Next, I turn off AVG anti-virus.

I do . . .

AnonymousUser@ANONYMOUST MSYS /w/R-3.5._/postgres/build
$ rm -f -r *

AnonymousUser@ANONYMOUST MSYS /w/R-3.5._/postgres/build
$ /w/R-3.5._/postgres/configure --host=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 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 andMinGW-w64

От
Andre_Mikulec
Дата:
Reprinted with corrections.  I did everything in "MINGW64" not "MSYS"

Hi,

I had this problem.
The solution is to turn off AVG anti-virus.
In the past, I could both compile PostgreSQL and keep 'AVG on' at the same
time.
The case * does not seem that way anymore *

With AVG 'antivirus on' the following occurs.

AnonymousUser@ANONYMOUST MINGW64 /w/R-3.5._/postgres/build
$ /w/R-3.5._/postgres/configure --host=x86_64-w64-mingw32 --prefix=$PWD
--enable-debug --disable-rpath --enable-depend --without-zlib   
$ make

Detect problem ... popup window
...
Detect problem ... popup window
...
Protected you ... create exception
...

'make' the dies on the same errors mentioned above

Then I turn off the internet (for my protection)
Next, I turn off AVG anti-virus.

I do . . .

AnonymousUser@ANONYMOUST MINGW64 /w/R-3.5._/postgres/build
$ rm -f -r *

AnonymousUser@ANONYMOUST MINGW64 /w/R-3.5._/postgres/build
$ /w/R-3.5._/postgres/configure --host=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 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