WIP - MSVC build script replacements

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: "Patches (PostgreSQL)" <pgsql-patches(at)postgresql(dot)org>, Magnus Hagander <magnus(at)hagander(dot)net>
Subject: WIP - MSVC build script replacements
Date: 2007-09-07 23:19:31
Message-ID: 46E1DC83.6030804@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


Here after much tedious testing are some perl replacements for
src/tools/msvc/build.bat and src/tools/msvc/vcregress.bat, as
previouslty discussed on -hackers. They do not exhibit the error
reporting problems I have had on XP, and they work nicely with a
slightly modified buildfarm script. There is one failure - the ECPG
checks fail to build. The error I get is shown below - not sure why on
earth it can't find MSVCRT.lib.

There are also a few things to tidy up before I commit this, but I'm
happy because it has proved much less fragile than the existing scripts
in cooperating with the buildfarm. I am also turning my attention to
fixing the use of "dir" in Install.pm.

cheers

andrew

--------------------------------------------------------------------------------------------------

Build started 9/7/2007 1:26:18 PM.
__________________________________________________
Project "c:\prog\bf\test\pgsql\src\tools\msvc\ecpg_regression.proj"
(default targets):

Target all:
..\..\..\..\..\Release\ecpg\ecpg -I ../../include --regression -C
INFORMIX -o charfuncs.c charfuncs.pgc
cl /nologo charfuncs.c /TC /MD /DENABLE_THREAD_SAFETY /DWIN32
/DWIN32_ONLY_COMPILER /I. /I..\..\include /I..\..\..\libpq
/I..\..\..\..\include /link
/defaultlib:..\..\..\..\..\Release\libecpg\libecpg.lib
/defaultlib:..\..\..\..\..\Release\libecpg_compat\libecpg_compat.lib
/defaultlib:..\..\..\..\..\Release\libpgtypes\libpgtypes.lib
charfuncs.c
LINK : fatal error LNK1104: cannot open file 'MSVCRT.lib'
c:\prog\bf\test\pgsql\src\tools\msvc\ecpg_regression.proj(39,3):
error MSB3073: The command "cl /nologo charfuncs.c /TC /MD
/DENABLE_THREAD_SAFETY /DWIN32 /DWIN32_ONLY_COMPILER /I. /I..\..\include
/I..\..\..\libpq /I..\..\..\..\include /link
/defaultlib:..\..\..\..\..\Release\libecpg\libecpg.lib
/defaultlib:..\..\..\..\..\Release\libecpg_compat\libecpg_compat.lib
/defaultlib:..\..\..\..\..\Release\libpgtypes\libpgtypes.lib" exited
with code 2.
Done building target "all" in project "ecpg_regression.proj" -- FAILED.

Attachment Content-Type Size
build.pl application/x-perl 1.1 KB
vcregress.pl application/x-perl 5.5 KB

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2007-09-08 01:26:51 WIP patch for latestCompletedXid method of computing snapshot xmax
Previous Message Heikki Linnakangas 2007-09-07 21:28:52 Re: tsearch refactorings