pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: gaolin01@beyondsoft.com
Subject: BUG #15889: PostgreSQL failed to build due to error MSB8020 with MSVC on windows
Date: Wed, 03 Jul 2019 09:10:34 +0000
Message-ID: <15889-1ee90dbc3b860518@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      15889
Logged by:          Gao Lin
Email address:      gaolin01@beyondsoft.com
PostgreSQL version: 11.4
Operating system:   Windows Server 2016
Description:        

Environment:
Windows Server 2016 + VS2017 + PostgreSQL master branch latest srouce
code.

PostgreSQL failed to build due to error MSB8020: The build tools for v142
(Platform Toolset = 'v142') cannot be found with MSVC on windows.  It can be
first reproduced on master branch 2b1394fc2b52a2573d08aa626e7b49568f27464e
reversion which is 'Add support for Visual Studio 2019 in build scripts'. 

Further investigation we found that VS2017 does not seem to be supported in
this commit. We mainly use open source projects to test VS compilers.
Currently we are using VS2017 and there is no plan to migrate to VS2019.
Could you please help look at this issue and provide a work around to us to
solve this issue? Thanks a lot!

Failures:
C:\Program Files (x86)\Microsoft Visual
Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets(57,5):
error MSB8020: The build tools for v142 (Platform Toolset = 'v142') cannot
be found. To build using the v142 build tools, please install v142 build
tools.  Alternatively, you may upgrade to the current Visual Studio tools by
selecting the Project menu or right-click the solution, and then selecting
"Retarget solution". [D:\PostgreSQL\src\postgres.vcxproj]



view thread (13+ messages)  latest in thread

Message-ID: <15889-1ee90dbc3b860518@postgresql.org>
Permalink:  ../15889-1ee90dbc3b860518@postgresql.org/
Also on:    postgresql.org/message-id/15889-1ee90dbc3b860518@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, gaolin01@beyondsoft.com
  Subject: Re: BUG #15889: PostgreSQL failed to build due to error MSB8020 with MSVC on windows
  In-Reply-To: <15889-1ee90dbc3b860518@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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