You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Edmund Wong <ed...@kdtc.net> on 2009/08/06 08:13:12 UTC
db-test.c error
Hi,
With the help of Danielsh on IRC last night, I managed to get
the build process for SVN on Windows via VSE2008 working.
There are still a few hiccups that I'm not really sure
how to fix, but since I can run the tests manually, I'm
in no hurries to get it fixed.
Incidentally, I managed to get the build process going through
the following (btw, I removed VSE2008 and installed VS2008,
but the process shouldn't be different):
a) I go Danielsh' makefile.pub script.
b) I downloaded GnuWin32 exe package
c) I downloaded coreutils package (from the same site)
d) Installed both programs to install the packages.
e) Changed the parameters in the Makefile.Pub to reflect
my setup. (To Danielsh: one tee command had a full path
to the tee.exe mentioned, the other tee command didn't.
I changed the c:\misc\bin\tee.exe to tee.exe.)
f) Ran nmake /F makefile.pub all1
g) Ran nmake /F makefile.pub package (manually)
h) Ran nmake /F makefile.pub all2 (for the tests)
i) Ran "python win-tests.py --cleanup --bin=<targetdir> --debug
-f fsfs -c 2>&1 | tee log.win-tests" manually.
During make check (i), db-test.c failed. (nmake /F makefile.pub check
didn't work (kept on saying it can't make package)), so I needed to
manually run:
python win-tests.py --cleanup --bin=d:\other_projs\svn\dist --debug
-f fsfs -c 2>&1 | tee log.win-tests
Got the following in the log.win-tests:
START: db-test.exe
PASS: db-test.exe 1: get information from wc.db
PASS: db-test.exe 2: insert different nodes into wc.db
PASS: db-test.exe 3: getting the list of BASE or WORKING children
PASS: db-test.exe 4: reading information about the WORKING tree
PASS: db-test.exe 5: creation of per-directory handles
PASS: db-test.exe 6: scanning added working nodes
PASS: db-test.exe 7: deletion introspection functions
PASS: db-test.exe 8: relocating a node
..\..\..\subversion\tests\libsvn_wc\db-test.c:1288: (apr_err=200030)
..\..\..\subversion\tests\libsvn_wc\db-test.c:323: (apr_err=200030)
..\..\..\subversion\libsvn_subr\sqlite.c:850: (apr_err=200030)
..\..\..\subversion\libsvn_subr\sqlite.c:553: (apr_err=200030)
..\..\..\subversion\libsvn_wc\wc_db.c:758: (apr_err=200030)
..\..\..\subversion\libsvn_subr\sqlite.c:155: (apr_err=200030)
svn_tests: no such table: conflict_victim
FAIL: db-test.exe 9: upgrading to format 13
db-test.exe: invalid option:
--srcdir=D:\other_projs\svn\subversion/tests/libsvn_wc
db-test.exe: invalid option: --http-library=neon
db-test.exe: invalid option: --bin=d:\other_projs\svn\dist
END: db-test.exe
I did a 'svn upgrade' (no errors) prior to this; yet,
the db-test.c test fails. Am I doing something wrong?
Edmund
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2380728
Re: db-test.c error
Posted by Edmund Wong <ed...@kdtc.net>.
Edmund Wong wrote:
> Hi,
>
> With the help of Danielsh on IRC last night, I managed to get
> the build process for SVN on Windows via VSE2008 working.
> There are still a few hiccups that I'm not really sure
> how to fix, but since I can run the tests manually, I'm
> in no hurries to get it fixed.
>
> Incidentally, I managed to get the build process going through
> the following (btw, I removed VSE2008 and installed VS2008,
> but the process shouldn't be different):
>
> a) I go Danielsh' makefile.pub script.
Must've been daydreaming or something to write something
like this.
s/I go Danielsh'/I got danielsh's/
Anyway, regarding this test, it still doesn't compile at work;
but at home it compiles. Unfortunately, at home, three other
tests break. :I
And it would throw an error (Vista's Close/Debug window) for
the commit_tests.py; yet, it still tests successfully. That's
something I don't understand.
So it has to be a build issue. Same code. Same revision.
Two different computers with two different results. Mind you,
at work I'm running VS2008. At home, VSE2008.
Edmund
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2381131
RE: db-test.c error
Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Bert Huijben wrote on Thu, 6 Aug 2009 at 10:36 +0200:
> > -----Original Message-----
> > From: Edmund Wong [mailto:ed@kdtc.net]
> >
> > e) Changed the parameters in the Makefile.Pub to reflect
> > my setup. (To Danielsh: one tee command had a full path
> > to the tee.exe mentioned, the other tee command didn't.
> > I changed the c:\misc\bin\tee.exe to tee.exe.)
Fixed, thanks.
> > h) Ran nmake /F makefile.pub all2 (for the tests)
(The 'all2' target builds the binaries of the C tests.)
> If you use VS, why do you use the make files?
>
Because these two commands:
>>> gen-make.py -t vcproj --vsnet-version=2008 ....
>>> msbuild.exe subversion_vcnet.sln /t:__ALL_TESTS__ /p:Configuration=Release
are very long. Being able to type just
make config
make all2
saves time.
Daniel
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2380770
Re: db-test.c error
Posted by Edmund Wong <ed...@kdtc.net>.
Bert Huijben wrote:
>
>> -----Original Message-----
>> From: Edmund Wong [mailto:ed@kdtc.net]
>> Sent: donderdag 6 augustus 2009 10:13
>> To: dev@subversion.tigris.org
>> Subject: db-test.c error
>>
>> Hi,
>>
>> With the help of Danielsh on IRC last night, I managed to get
>> the build process for SVN on Windows via VSE2008 working.
>> There are still a few hiccups that I'm not really sure
>> how to fix, but since I can run the tests manually, I'm
>> in no hurries to get it fixed.
>>
>> Incidentally, I managed to get the build process going through
>> the following (btw, I removed VSE2008 and installed VS2008,
>> but the process shouldn't be different):
>>
>> a) I go Danielsh' makefile.pub script.
>> b) I downloaded GnuWin32 exe package
>> c) I downloaded coreutils package (from the same site)
>> d) Installed both programs to install the packages.
>> e) Changed the parameters in the Makefile.Pub to reflect
>> my setup. (To Danielsh: one tee command had a full path
>> to the tee.exe mentioned, the other tee command didn't.
>> I changed the c:\misc\bin\tee.exe to tee.exe.)
>> f) Ran nmake /F makefile.pub all1
>> g) Ran nmake /F makefile.pub package (manually)
>> h) Ran nmake /F makefile.pub all2 (for the tests)
>> i) Ran "python win-tests.py --cleanup --bin=<targetdir> --debug
>> -f fsfs -c 2>&1 | tee log.win-tests" manually.
>
> If you use VS, why do you use the make files?
Call it user-stupidity on my part. :) Seriously, it's because
I'm very unfamiliar with VS and the Install instructions wasn't
easy to follow (disclaimer: user-dumbness on my part).
> You can open the solution with Visual Studio to build+debug from there.
>
> (This is documented in ^/trunk/INSTALL)
Thanks Bert for the pointers.
Edmund
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2380752
RE: db-test.c error
Posted by Bert Huijben <rh...@sharpsvn.net>.
> -----Original Message-----
> From: Edmund Wong [mailto:ed@kdtc.net]
> Sent: donderdag 6 augustus 2009 10:13
> To: dev@subversion.tigris.org
> Subject: db-test.c error
>
> Hi,
>
> With the help of Danielsh on IRC last night, I managed to get
> the build process for SVN on Windows via VSE2008 working.
> There are still a few hiccups that I'm not really sure
> how to fix, but since I can run the tests manually, I'm
> in no hurries to get it fixed.
>
> Incidentally, I managed to get the build process going through
> the following (btw, I removed VSE2008 and installed VS2008,
> but the process shouldn't be different):
>
> a) I go Danielsh' makefile.pub script.
> b) I downloaded GnuWin32 exe package
> c) I downloaded coreutils package (from the same site)
> d) Installed both programs to install the packages.
> e) Changed the parameters in the Makefile.Pub to reflect
> my setup. (To Danielsh: one tee command had a full path
> to the tee.exe mentioned, the other tee command didn't.
> I changed the c:\misc\bin\tee.exe to tee.exe.)
> f) Ran nmake /F makefile.pub all1
> g) Ran nmake /F makefile.pub package (manually)
> h) Ran nmake /F makefile.pub all2 (for the tests)
> i) Ran "python win-tests.py --cleanup --bin=<targetdir> --debug
> -f fsfs -c 2>&1 | tee log.win-tests" manually.
If you use VS, why do you use the make files?
gen-make.py -t vcproj --vsnet-version=2008 ....
Will generate a Visual Studio 2008 solution and projects for you that you
can build with msbuild.exe
msbuild.exe subversion_vcnet.sln /t:__ALL_TESTS__ /p:Configuration=Release
should do the same as those nmake commands without the gnu tools
requirement.
You can open the solution with Visual Studio to build+debug from there.
(This is documented in ^/trunk/INSTALL)
Bert
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2380738
Re: db-test.c error
Posted by Paul Burba <pt...@gmail.com>.
On Wed, Aug 12, 2009 at 10:44 AM, Paul Burba<pt...@gmail.com> wrote:
> On Thu, Aug 6, 2009 at 4:13 AM, Edmund Wong<ed...@kdtc.net> wrote:
>> Hi,
>>
>> With the help of Danielsh on IRC last night, I managed to get
>> the build process for SVN on Windows via VSE2008 working.
>> There are still a few hiccups that I'm not really sure
>> how to fix, but since I can run the tests manually, I'm
>> in no hurries to get it fixed.
>>
>> Incidentally, I managed to get the build process going through
>> the following (btw, I removed VSE2008 and installed VS2008,
>> but the process shouldn't be different):
>>
>> a) I go Danielsh' makefile.pub script.
>> b) I downloaded GnuWin32 exe package
>> c) I downloaded coreutils package (from the same site)
>> d) Installed both programs to install the packages.
>> e) Changed the parameters in the Makefile.Pub to reflect
>> my setup. (To Danielsh: one tee command had a full path
>> to the tee.exe mentioned, the other tee command didn't.
>> I changed the c:\misc\bin\tee.exe to tee.exe.)
>> f) Ran nmake /F makefile.pub all1
>> g) Ran nmake /F makefile.pub package (manually)
>> h) Ran nmake /F makefile.pub all2 (for the tests)
>> i) Ran "python win-tests.py --cleanup --bin=<targetdir> --debug
>> -f fsfs -c 2>&1 | tee log.win-tests" manually.
>>
>>
>> During make check (i), db-test.c failed. (nmake /F makefile.pub check
>> didn't work (kept on saying it can't make package)), so I needed to
>> manually run:
>>
>> python win-tests.py --cleanup --bin=d:\other_projs\svn\dist --debug
>> -f fsfs -c 2>&1 | tee log.win-tests
>>
>> Got the following in the log.win-tests:
>>
>> START: db-test.exe
>> PASS: db-test.exe 1: get information from wc.db
>> PASS: db-test.exe 2: insert different nodes into wc.db
>> PASS: db-test.exe 3: getting the list of BASE or WORKING children
>> PASS: db-test.exe 4: reading information about the WORKING tree
>> PASS: db-test.exe 5: creation of per-directory handles
>> PASS: db-test.exe 6: scanning added working nodes
>> PASS: db-test.exe 7: deletion introspection functions
>> PASS: db-test.exe 8: relocating a node
>> ..\..\..\subversion\tests\libsvn_wc\db-test.c:1288: (apr_err=200030)
>> ..\..\..\subversion\tests\libsvn_wc\db-test.c:323: (apr_err=200030)
>> ..\..\..\subversion\libsvn_subr\sqlite.c:850: (apr_err=200030)
>> ..\..\..\subversion\libsvn_subr\sqlite.c:553: (apr_err=200030)
>> ..\..\..\subversion\libsvn_wc\wc_db.c:758: (apr_err=200030)
>> ..\..\..\subversion\libsvn_subr\sqlite.c:155: (apr_err=200030)
>> svn_tests: no such table: conflict_victim
>> FAIL: db-test.exe 9: upgrading to format 13
>> db-test.exe: invalid option:
>> --srcdir=D:\other_projs\svn\subversion/tests/libsvn_wc
>> db-test.exe: invalid option: --http-library=neon
>> db-test.exe: invalid option: --bin=d:\other_projs\svn\dist
>> END: db-test.exe
>>
>>
>> I did a 'svn upgrade' (no errors) prior to this; yet,
>> the db-test.c test fails. Am I doing something wrong?
>>
>> Edmund
>
> Edmund,
>
> FWIW I get a similar error on Windows (VS2008 Version 9.0.21022.8) too:
>
> C:\SVN\src-trunk\Debug\subversion\tests\libsvn_wc>db-test.exe
> PASS: db-test.exe 1: get information from wc.db
> PASS: db-test.exe 2: insert different nodes into wc.db
> PASS: db-test.exe 3: getting the list of BASE or WORKING children
> PASS: db-test.exe 4: reading information about the WORKING tree
> PASS: db-test.exe 5: creation of per-directory handles
> PASS: db-test.exe 6: scanning added working nodes
> PASS: db-test.exe 7: deletion introspection functions
> PASS: db-test.exe 8: relocating a node
> ..\..\..\subversion\tests\libsvn_wc\db-test.c:1288: (apr_err=200030)
> ..\..\..\subversion\tests\libsvn_wc\db-test.c:323: (apr_err=200030)
> ..\..\..\subversion\libsvn_subr\sqlite.c:850: (apr_err=200030)
> ..\..\..\subversion\libsvn_subr\sqlite.c:548: (apr_err=200030)
> ..\..\..\subversion\libsvn_subr\sqlite.c:106: (apr_err=200030)
> svn_tests: no such column: incomplete_children
> FAIL: db-test.exe 9: upgrading to format 13
>
> C:\SVN\src-trunk\Debug\subversion\tests\libsvn_wc>
>
> Paul
Edmund,
I manually deleted the following:
%SUBVERSION_SOURCE_TREE_ROOT%\subversion\libsvn_wc\wc-metadata.h
Then I re-ran gen-make.py to recreate it* and the test passes now.
Deleting wc-metadata.h isn't necessary AFAICT. I deleted it, well
renamed it actually, only so I could see the difference with the newly
created header.
Paul
* See comment at start of wc-metadata.h:
/* This file is automatically generated from wc-metadata.sql.
* Do not edit this file -- edit the source and rerun gen-make.py */
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2382915
Re: db-test.c error
Posted by Paul Burba <pt...@gmail.com>.
On Thu, Aug 6, 2009 at 4:13 AM, Edmund Wong<ed...@kdtc.net> wrote:
> Hi,
>
> With the help of Danielsh on IRC last night, I managed to get
> the build process for SVN on Windows via VSE2008 working.
> There are still a few hiccups that I'm not really sure
> how to fix, but since I can run the tests manually, I'm
> in no hurries to get it fixed.
>
> Incidentally, I managed to get the build process going through
> the following (btw, I removed VSE2008 and installed VS2008,
> but the process shouldn't be different):
>
> a) I go Danielsh' makefile.pub script.
> b) I downloaded GnuWin32 exe package
> c) I downloaded coreutils package (from the same site)
> d) Installed both programs to install the packages.
> e) Changed the parameters in the Makefile.Pub to reflect
> my setup. (To Danielsh: one tee command had a full path
> to the tee.exe mentioned, the other tee command didn't.
> I changed the c:\misc\bin\tee.exe to tee.exe.)
> f) Ran nmake /F makefile.pub all1
> g) Ran nmake /F makefile.pub package (manually)
> h) Ran nmake /F makefile.pub all2 (for the tests)
> i) Ran "python win-tests.py --cleanup --bin=<targetdir> --debug
> -f fsfs -c 2>&1 | tee log.win-tests" manually.
>
>
> During make check (i), db-test.c failed. (nmake /F makefile.pub check
> didn't work (kept on saying it can't make package)), so I needed to
> manually run:
>
> python win-tests.py --cleanup --bin=d:\other_projs\svn\dist --debug
> -f fsfs -c 2>&1 | tee log.win-tests
>
> Got the following in the log.win-tests:
>
> START: db-test.exe
> PASS: db-test.exe 1: get information from wc.db
> PASS: db-test.exe 2: insert different nodes into wc.db
> PASS: db-test.exe 3: getting the list of BASE or WORKING children
> PASS: db-test.exe 4: reading information about the WORKING tree
> PASS: db-test.exe 5: creation of per-directory handles
> PASS: db-test.exe 6: scanning added working nodes
> PASS: db-test.exe 7: deletion introspection functions
> PASS: db-test.exe 8: relocating a node
> ..\..\..\subversion\tests\libsvn_wc\db-test.c:1288: (apr_err=200030)
> ..\..\..\subversion\tests\libsvn_wc\db-test.c:323: (apr_err=200030)
> ..\..\..\subversion\libsvn_subr\sqlite.c:850: (apr_err=200030)
> ..\..\..\subversion\libsvn_subr\sqlite.c:553: (apr_err=200030)
> ..\..\..\subversion\libsvn_wc\wc_db.c:758: (apr_err=200030)
> ..\..\..\subversion\libsvn_subr\sqlite.c:155: (apr_err=200030)
> svn_tests: no such table: conflict_victim
> FAIL: db-test.exe 9: upgrading to format 13
> db-test.exe: invalid option:
> --srcdir=D:\other_projs\svn\subversion/tests/libsvn_wc
> db-test.exe: invalid option: --http-library=neon
> db-test.exe: invalid option: --bin=d:\other_projs\svn\dist
> END: db-test.exe
>
>
> I did a 'svn upgrade' (no errors) prior to this; yet,
> the db-test.c test fails. Am I doing something wrong?
>
> Edmund
Edmund,
FWIW I get a similar error on Windows (VS2008 Version 9.0.21022.8) too:
C:\SVN\src-trunk\Debug\subversion\tests\libsvn_wc>db-test.exe
PASS: db-test.exe 1: get information from wc.db
PASS: db-test.exe 2: insert different nodes into wc.db
PASS: db-test.exe 3: getting the list of BASE or WORKING children
PASS: db-test.exe 4: reading information about the WORKING tree
PASS: db-test.exe 5: creation of per-directory handles
PASS: db-test.exe 6: scanning added working nodes
PASS: db-test.exe 7: deletion introspection functions
PASS: db-test.exe 8: relocating a node
..\..\..\subversion\tests\libsvn_wc\db-test.c:1288: (apr_err=200030)
..\..\..\subversion\tests\libsvn_wc\db-test.c:323: (apr_err=200030)
..\..\..\subversion\libsvn_subr\sqlite.c:850: (apr_err=200030)
..\..\..\subversion\libsvn_subr\sqlite.c:548: (apr_err=200030)
..\..\..\subversion\libsvn_subr\sqlite.c:106: (apr_err=200030)
svn_tests: no such column: incomplete_children
FAIL: db-test.exe 9: upgrading to format 13
C:\SVN\src-trunk\Debug\subversion\tests\libsvn_wc>
Paul
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2382910