Обсуждение: MSVC Build error
Hi,
I get the following error when: build.bat DEBUG
somehow dumpbin is not called.
analyze.c Compiling resources... Generate DEF file Generating POSTGRES.DEF from directory
Debug\postgres ...........Could not call dumpbin at src\tools\msvc\gendef.pl line
22. Project : error PRJ0019: A tool returned an error code from "Generate
DEF file" Build log was saved at
"file://i:\pgdev\pgsql\Debug\postgres\BuildLog.htm" postgres - 1 error(s), 0 warning(s) The command exited
withcode 1.
Done executing task "VCBuild" -- FAILED. Done building target "postgres" in project "pgsql.sln" -- FAILED. Target
"ValidateSolutionConfiguration"skipped. Previously built
successfully. Target "postgres" skipped. Previously built unsuccessfully. Target "ValidateSolutionConfiguration"
skipped.Previously built
successfully. Target misc\libpgport: Task "VCBuild"
Regards,
Gevik Babakhani
------------------------------------------------
PostgreSQL NL http://www.postgresql.nl
TrueSoftware BV http://www.truesoftware.nl
------------------------------------------------
Gevik Babakhani wrote: > Hi, > > I get the following error when: build.bat DEBUG > > somehow dumpbin is not called. > > analyze.c > Compiling resources... > Generate DEF file > Generating POSTGRES.DEF from directory Debug\postgres > ...........Could not call dumpbin at src\tools\msvc\gendef.pl line > 22. > Project : error PRJ0019: A tool returned an error code from "Generate > DEF file" > Build log was saved at > "file://i:\pgdev\pgsql\Debug\postgres\BuildLog.htm" > postgres - 1 error(s), 0 warning(s) > The command exited with code 1. > > Done executing task "VCBuild" -- FAILED. > Done building target "postgres" in project "pgsql.sln" -- FAILED. > Target "ValidateSolutionConfiguration" skipped. Previously built > successfully. > Target "postgres" skipped. Previously built unsuccessfully. > Target "ValidateSolutionConfiguration" skipped. Previously built > successfully. > Target misc\libpgport: > Task "VCBuild" Do you have the dumpbin command available in the path? //Magnus
> Do you have the dumpbin command available in the path?
>
> //Magnus
>
:) yes. This is why I do not understand why the command does not run
correctly!
=================================================
I:\pgdev>dumpbin
Microsoft (R) COFF/PE Dumper Version 8.00.50727.762
Copyright (C) Microsoft Corporation. All rights reserved.
usage: DUMPBIN [options] [files]
options:
/ALL /ARCHIVEMEMBERS /CLRHEADER /DEPENDENTS /DIRECTIVES /DISASM[:{BYTES|NOBYTES}]
/ERRORREPORT:{NONE|PROMPT|QUEUE|SEND} /EXPORTS /FPO /HEADERS /IMPORTS[:filename] /LINENUMBERS
/LINKERMEMBER[:{1|2}] /LOADCONFIG /OUT:filename /PDATA /PDBPATH[:VERBOSE] /RANGE:vaMin[,vaMax]
/RAWDATA[:{NONE|1|2|4|8}[,#]] /RELOCATIONS /SECTION:name /SUMMARY /SYMBOLS /TLS /UNWINDINFO
I:\pgdev>
Regards,
Gevik Babakhani
------------------------------------------------
PostgreSQL NL http://www.postgresql.nl
TrueSoftware BV http://www.truesoftware.nl
------------------------------------------------
On Sun, Jan 27, 2008 at 10:04:38PM +0100, Gevik Babakhani wrote: > > > Do you have the dumpbin command available in the path? > > > > //Magnus > > > > :) yes. This is why I do not understand why the command does not run > correctly! Strange indeed. I recognise this problem from earlier, but I thought it had been fixed a long time ago. Can you confirm that you are building 8.3-current and not 8.2 here? Also, looking at the original one it seems that it has dumped *some* files, but not all. Could you modify gendef.pl line 22 to include the filename that it's failing on, to see if that gets you further? //Magnus