BUG #15524: Unable to run perl mkvcbuild.pl

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: demelier(dot)david(at)gmail(dot)com
Subject: BUG #15524: Unable to run perl mkvcbuild.pl
Date: 2018-11-27 11:40:52
Message-ID: 15524-3c4dc6471d355825@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 15524
Logged by: David Demelier
Email address: demelier(dot)david(at)gmail(dot)com
PostgreSQL version: 11.1
Operating system: Windows 10
Description:

Hello,

I'm reading the PostgreSQL documentation about building on Windows. I've
opened a Visual Studio 2017 x64 native command prompt and gone into the
src\tools\msvc directory.

Then, with activestate's bin directory into %PATH%, I've ran perl
mkvcbuild.pl and the following error happened:

Generating pg_config.h...
Use of uninitialized value in multiplication (*) at
C:\Users\d8d\Downloads\postgresql-11.1\src\tools\msvc/Solution.pm line 181,
<$i> line 782.
Use of uninitialized value in division (/) at
C:\Users\d8d\Downloads\postgresql-11.1\src\tools\msvc/Solution.pm line 184,
<$i> line 782.
Illegal division by zero at
C:\Users\d8d\Downloads\postgresql-11.1\src\tools\msvc/Solution.pm line 184,
<$i> line 782.

I've also tried to run build directly but failed saying that corecrt.h.
Also, even if the pg_config.h generation is incomplete, it looks like your
custom build system detect not correctly the version number because the .sln
files targets Windows 8 platform by default.

Browse pgsql-bugs by date

  From Date Subject
Next Message Alvaro Herrera 2018-11-27 13:55:32 Re: BUG #15523: \df command not working in psql 10.4 postgres 11.1 version
Previous Message Sergei Kornilov 2018-11-27 11:21:26 Re: BUG #15523: \df command not working in psql 10.4 postgres 11.1 version