From: | Dmitry Markman <dmarkman(at)mac(dot)com> |
---|---|
To: | Michael Paquier <michael(at)paquier(dot)xyz> |
Cc: | pgsql-hackers(at)lists(dot)postgresql(dot)org |
Subject: | Re: windows config.pl question |
Date: | 2020-08-01 02:41:46 |
Message-ID: | 4563AD22-2AE6-43B7-BE20-C526E2CC13BB@mac.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi Michael, I found the problem
command
cl /?
gives different answer if you start that command from c: or from z: (where z: is mapped drive)
if current directory is on c:
then cl /? returns
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional>cl /?
Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27042 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
C/C++ COMPILER OPTIONS
-OPTIMIZATION-
/O1 maximum optimizations (favor space) /O2 maximum optimizations (favor speed)
/Ob<n> inline expansion (default n=0) /Od disable optimizations (default)
/Og enable global optimization /Oi[-] enable intrinsic functions
/Os favor code space /Ot favor code speed
/Ox optimizations (favor speed)
/favor:<blend|AMD64|INTEL64|ATOM> select processor to optimize for, one of:
blend - a combination of optimizations for several different x64 processors
AMD64 - 64-bit AMD processors
INTEL64 - Intel(R)64 architecture processors
ATOM - Intel(R) Atom(TM) processors
-CODE GENERATION-
/Gu[-] ensure distinct functions have distinct addresses
/Gw[-] separate global variables for linker
/GF enable read-only string pooling /Gm[-] enable minimal rebuild
/Gy[-] separate functions for linker /GS[-] enable security checks
/GR[-] enable C++ RTTI /GX[-] enable C++ EH (same as /EHsc)
. . . . . . . . . . . . . . .
but if I issue that command if the current folder is on z:
Z:\>cl /?
Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27042 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]
from other hand
cl -help
returns consisten answer from c: or from z:
so platform wasn’t identified properly if build started from z:
after I changed cl /? to cl -help
build and install went successfully
all but one test (tablespace) finished successfully.
that one failure also related to network drive, because
after build finished I copied whole directory that contain PostgreSQL distro to
c: and run tests everything went smoothly
thanks
dm
> On Jul 31, 2020, at 5:43 AM, Michael Paquier <michael(at)paquier(dot)xyz> wrote:
>
> On Thu, Jul 30, 2020 at 11:16:01PM -0400, Dmitry Markman wrote:
>> sorry I meant file src/tools/msvc/Solution.pm
>>
>> routine sub GetOpenSSLVersion
>>
>> has the follwing line:
>>
>> qq("$self->{options}->{openssl}\\bin\\openssl.exe" version 2>&1);
>>
>> in our distribution openssl.exe isn’t in the $self->{options}->{openssl}\bin\ location
>
> No idea what you are using as OpenSSL installation , so I cannot say
> for sure. FWIW, the scripts in the code tree are made compatible with
> what we suggest in the documentation here:
> https://www.postgresql.org/docs/current/install-windows-full.html#id-1.6.4.8.8
> --
> Michael
From | Date | Subject | |
---|---|---|---|
Next Message | vignesh C | 2020-08-01 02:42:53 | Re: Include access method in listTables output |
Previous Message | Alvaro Herrera | 2020-08-01 01:52:02 | Re: [PATCH] - Provide robust alternatives for replace_string |