Re: BUG #13689: Build failed pg9.4.5 with mingw5.1

From: kang joni <kangjoni76(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #13689: Build failed pg9.4.5 with mingw5.1
Date: 2015-10-21 00:31:09
Message-ID: CAOmy0wJgh2TvWB6dw6izRq2L+pvT_J=rGEef2i5kW1HCTj_TWg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Tuesday, October 20, 2015, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Bruce Momjian <bruce(at)momjian(dot)us> writes:
>> On Tue, Oct 20, 2015 at 04:37:37AM +0000, kangjoni76(at)gmail(dot)com wrote:
>>> Invalid conversion ForkNumber to int...
>>> error build failed ForkNumber type doesn't have operator++.
>>> This happen in src/common/relpath.c:52 and also at line 86.
>
>> Wow, we are incrementing an enum here. Is that legal? What compiler
>> are you using?
>
> Possibly C++ doesn't allow that? But if so, it's user error.
> Postgres is written in C not C++.
>
> (I could see a compiler issuing a warning here that forkNum will
> get incremented past the declared range of the enum. But that
> doesn't seem to be what's being reported.)
>
> regards, tom lane
>

Ah yes this is my conf faults here, I don't know if this either msys2 bug
or mingw32-make.exe. Firstly, I moved make.exe to some folder, I thought
that make.exe was name polluting with my mingw32-make and brought make.exe
back to msys /usr/bin folder. And the error happen. I should compile enter
sh.exe mode and type /usr/bin/make.exe -j2 instead of make -j2.

I have another struggle that when would be compilable release postgresql
for native MSVC2015 build came out? I have another needs for using
plpython3 on windows or this should be moved to another bug report
postgresql vs2015 build ? thanks

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Paquier 2015-10-21 01:31:23 pg_rewind exiting with error code 1 when source and target are on the same timeline
Previous Message Tom Lane 2015-10-20 18:22:27 Re: BUG #13688: lack of return value in r_mark_regions()