BUG #15524: Unable to run perl mkvcbuild.pl - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #15524: Unable to run perl mkvcbuild.pl
Date
Msg-id 15524-3c4dc6471d355825@postgresql.org
Whole thread Raw
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      15524
Logged by:          David Demelier
Email address:      demelier.david@gmail.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.


pgsql-bugs by date:

Previous
From: Sergei Kornilov
Date:
Subject: Re: BUG #15523: \df command not working in psql 10.4 postgres 11.1 version
Next
From: Alvaro Herrera
Date:
Subject: Re: BUG #15523: \df command not working in psql 10.4 postgres 11.1version