Em seg., 4 de mai. de 2020 às 02:58, Michael Paquier <mich...@paquier.xyz> escreveu:
> On Sun, May 03, 2020 at 04:23:24PM -0300, Ranier Vilela wrote: > > I don't know if it applies to the same case, but from the moment I > > installed python on the development machine, the Postgres build stopped > > working correctly. > > Although perl, flex and bison are available in the path, the build does > not > > generate files that depend on flex and bison. > > Are you following the instructions of the documentation? Here is a > link to them: > https://www.postgresql.org/docs/devel/install-windows-full.html My environment was ok and worked 100%, compiling with msvc 2019 (64 bits). > > > My guess is that you would be just missing a PATH configuration or > such because python enforced a new setting? > Perl and flex and bison, are in the path, no doubt. > > > Warning from build.pl > > Use of uninitialized value $ARGV[0] in uc at build.pl line 44. > > Use of uninitialized value $ARGV[0] in uc at build.pl line 48. > > Hmm. We have buildfarm machines using the MSVC scripts and Python, > see for example woodloose. And note that @ARGV would be normally > defined, so your warning looks fishy to me. > I'll redo from the beginning. 1. Make empty directory postgres 2. Clone postgres 3. Call msvc 2019 (64 bits) env batch 4. Setup path to perl, bison and flex set path=%path%;c:\perl;\bin;c:\bin 5. C:\dll>perl -V Summary of my perl5 (revision 5 version 30 subversion 1) configuration: Platform: osname=MSWin32 osvers=10.0.18363.476 archname=MSWin32-x64-multi-thread uname='Win32 strawberry-perl 5.30.1.1 #1 Fri Nov 22 02:24:29 2019 x64' 6. C:\dll>bison -V bison (GNU Bison) 2.7 Written by Robert Corbett and Richard Stallman. 7. C:\dll>flex -V flex 2.6.4 8. cd\dll\postgres\src\tools\msvc 9. build results: ... PrepareForBuild: Creating directory ".\Release\postgres\". Creating directory ".\Release\postgres\postgres.tlog\". InitializeBuildStatus: Creating ".\Release\postgres\postgres.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified. CustomBuild: Running bison on src/backend/bootstrap/bootparse.y 'perl' nao é reconhecido como um comando interno ou externo, um programa operável ou um arquivo em lotes. Running flex on src/backend/bootstrap/bootscanner.l 'perl' nao é reconhecido como um comando interno ou externo, um programa operável ou um arquivo em lotes. Running bison on src/backend/parser/gram.y 'perl' nao é reconhecido como um comando interno ou externo, um programa operável ou um arquivo em lotes. Running flex on src/backend/parser/scan.l 'perl' nao é reconhecido como um comando interno ou externo, um programa operável ou um arquivo em lotes. Running bison on src/backend/replication/repl_gram.y 'perl' nao é reconhecido como um comando interno ou externo, um programa operável ou um arquivo em lotes. Running flex on src/backend/replication/repl_scanner.l Running bison on src/backend/replication/syncrep_gram.y 'perl' nao é reconhecido como um comando interno ou externo, um programa operável ou um arquivo em lotes. Running flex on src/backend/replication/syncrep_scanner.l 'perl' nao é reconhecido como um comando interno ou externo, um programa operável ou um arquivo em lotes. Running bison on src/backend/utils/adt/jsonpath_gram.y Running flex on src/backend/utils/adt/jsonpath_scan.l 'perl' nao é reconhecido como um comando interno ou externo, um programa operável ou um arquivo em lotes. 'perl' nao é reconhecido como um comando interno ou externo, um programa operável ou um arquivo em lotes. 'perl' nao é reconhecido como um comando interno ou externo, um programa operável ou um arquivo em lotes. Running flex on src/backend/utils/misc/guc-file.l 'perl' nao é reconhecido como um comando interno ou externo, um programa operável ou um arquivo em lotes. C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(231,5): error MSB6006: "cmd.exe" exited with code 9009. [C:\dll\postgres\postgres.vcxproj] Done Building Project "C:\dll\postgres\postgres.vcxproj" (default targets) -- FAILED. Done Building Project "C:\dll\postgres\pgsql.sln" (default targets) -- FAILED. ... Build FAILED. "C:\dll\postgres\pgsql.sln" (default target) (1) -> "C:\dll\postgres\cyrillic_and_mic.vcxproj" (default target) (2) -> "C:\dll\postgres\postgres.vcxproj" (default target) (3) -> (CustomBuild target) -> C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(231,5): error MSB6006: "cmd.exe" exited with code 900 9. [C:\dll\postgres\postgres.vcxproj] "C:\dll\postgres\pgsql.sln" (default target) (1) -> "C:\dll\postgres\initdb.vcxproj" (default target) (32) -> "C:\dll\postgres\libpgfeutils.vcxproj" (default target) (33) -> C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(231,5): error MSB6006: "cmd.exe" exited with code 900 9. [C:\dll\postgres\libpgfeutils.vcxproj] "C:\dll\postgres\pgsql.sln" (default target) (1) -> "C:\dll\postgres\ecpg.vcxproj" (default target) (124) -> C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(231,5): error MSB6006: "cmd.exe" exited with code 900 9. [C:\dll\postgres\ecpg.vcxproj] "C:\dll\postgres\pgsql.sln" (default target) (1) -> "C:\dll\postgres\isolationtester.vcxproj" (default target) (129) -> C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(231,5): error MSB6006: "cmd.exe" exited with code 900 9. [C:\dll\postgres\isolationtester.vcxproj] 0 Warning(s) 4 Error(s) No warnings, this time. best regards, Ranier Vilela