pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #13689: Build failed pg9.4.5 with mingw5.1
4+ messages / 4 participants
[nested] [flat]

* BUG #13689: Build failed pg9.4.5 with mingw5.1
@ 2015-10-20 04:37 kangjoni76@gmail.com
  2015-10-20 14:40 ` Re: BUG #13689: Build failed pg9.4.5 with mingw5.1 Bruce Momjian <bruce@momjian.us>
  0 siblings, 1 reply; 4+ messages in thread

From: kangjoni76@gmail.com @ 2015-10-20 04:37 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      13689
Logged by:          kang joni
Email address:      kangjoni76@gmail.com
PostgreSQL version: 9.4.5
Operating system:   Windows SysWow64
Description:        

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.


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: BUG #13689: Build failed pg9.4.5 with mingw5.1
  2015-10-20 04:37 BUG #13689: Build failed pg9.4.5 with mingw5.1 kangjoni76@gmail.com
@ 2015-10-20 14:40 ` Bruce Momjian <bruce@momjian.us>
  2015-10-20 16:07   ` Re: BUG #13689: Build failed pg9.4.5 with mingw5.1 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 4+ messages in thread

From: Bruce Momjian @ 2015-10-20 14:40 UTC (permalink / raw)
  To: kangjoni76@gmail.com; +Cc: pgsql-bugs

On Tue, Oct 20, 2015 at 04:37:37AM +0000, kangjoni76@gmail.com wrote:
> The following bug has been logged on the website:
> 
> Bug reference:      13689
> Logged by:          kang joni
> Email address:      kangjoni76@gmail.com
> PostgreSQL version: 9.4.5
> Operating system:   Windows SysWow64
> Description:        
> 
> 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?

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

+ As you are, so once was I. As I am, so you will be. +
+ Roman grave inscription                             +


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: BUG #13689: Build failed pg9.4.5 with mingw5.1
  2015-10-20 04:37 BUG #13689: Build failed pg9.4.5 with mingw5.1 kangjoni76@gmail.com
  2015-10-20 14:40 ` Re: BUG #13689: Build failed pg9.4.5 with mingw5.1 Bruce Momjian <bruce@momjian.us>
@ 2015-10-20 16:07   ` Tom Lane <tgl@sss.pgh.pa.us>
  2015-10-21 00:31     ` Re: BUG #13689: Build failed pg9.4.5 with mingw5.1 kang joni <kangjoni76@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Tom Lane @ 2015-10-20 16:07 UTC (permalink / raw)
  To: Bruce Momjian <bruce@momjian.us>; +Cc: kangjoni76@gmail.com; pgsql-bugs

Bruce Momjian <bruce@momjian.us> writes:
> On Tue, Oct 20, 2015 at 04:37:37AM +0000, kangjoni76@gmail.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


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: BUG #13689: Build failed pg9.4.5 with mingw5.1
  2015-10-20 04:37 BUG #13689: Build failed pg9.4.5 with mingw5.1 kangjoni76@gmail.com
  2015-10-20 14:40 ` Re: BUG #13689: Build failed pg9.4.5 with mingw5.1 Bruce Momjian <bruce@momjian.us>
  2015-10-20 16:07   ` Re: BUG #13689: Build failed pg9.4.5 with mingw5.1 Tom Lane <tgl@sss.pgh.pa.us>
@ 2015-10-21 00:31     ` kang joni <kangjoni76@gmail.com>
  0 siblings, 0 replies; 4+ messages in thread

From: kang joni @ 2015-10-21 00:31 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Bruce Momjian <bruce@momjian.us>; pgsql-bugs

On Tuesday, October 20, 2015, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Bruce Momjian <bruce@momjian.us> writes:
>> On Tue, Oct 20, 2015 at 04:37:37AM +0000, kangjoni76@gmail.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

^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2015-10-21 00:31 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-10-20 04:37 BUG #13689: Build failed pg9.4.5 with mingw5.1 kangjoni76@gmail.com
2015-10-20 14:40 ` Bruce Momjian <bruce@momjian.us>
2015-10-20 16:07   ` Tom Lane <tgl@sss.pgh.pa.us>
2015-10-21 00:31     ` kang joni <kangjoni76@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox