MSVC Build error

Started by Gevik Babakhanialmost 18 years ago4 messages
#1Gevik Babakhani
pgdev@xs4all.nl

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"

Regards,
Gevik Babakhani
------------------------------------------------
PostgreSQL NL http://www.postgresql.nl
TrueSoftware BV http://www.truesoftware.nl
------------------------------------------------

#2Magnus Hagander
magnus@hagander.net
In reply to: Gevik Babakhani (#1)
Re: MSVC Build error

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

#3Gevik Babakhani
pgdev@xs4all.nl
In reply to: Magnus Hagander (#2)
Re: MSVC Build error

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
------------------------------------------------

#4Magnus Hagander
magnus@hagander.net
In reply to: Gevik Babakhani (#3)
Re: MSVC Build error

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