jhs / build-couchdb

Batteries-included CouchDB build system
68 stars 17 forks source link

Builds, but tests return errors #19

Closed salamanders closed 13 years ago

salamanders commented 13 years ago

The "basics" test returns errors, while other tests (like "conflict") works fine!

Lots and lots of:

reserved slot index out of range [error] [<0.225.0>] OS Process Error <0.264.0> :: {os_process_error,{exit_status,1}}

jhs commented 13 years ago

Hi! Is this the test suite from Futon, or the make check from the command line? Thanks.

salamanders commented 13 years ago

Futon. Not sure how to do a make check, I used rake from http://github.com/jhs/build-couchdb#readme

http://192.168.1.107:5984/ returns {"couchdb":"Welcome","version":"1.0.1"} ... so at least I got that far.

all_docs: fine.
utf8: same error with "reserved slot" Randomly trying other tests.

salamanders commented 13 years ago

Getting this error when I run:

echo $LD_LIBRARY_PATH /usr/lib/xulrunner-1.9.1

ls /usr/lib | grep xul xulrunner-1.9.1 xulrunner-devel-1.9.1

./couchjs test.js reserved slot index out of range

jhs commented 13 years ago

Hopefully, couchjs from build-couchdb does not link against anything except the internal libjs. Rake sets many variables such as LD_LIBRARY_PATH when it runs.

What distro is this? Thanks.

salamanders commented 13 years ago

Um. Custom for work.

Linux version 2.6.29 (root@___kernelkvm) (gcc version 4.1.2) #2 PREEMPT Thu Jun 24 21:37:18 PDT 2010

jhs commented 13 years ago

Unfortunately Build CouchDB uses a very simplistic, heuristic, distribution detection system. (E.g. /etc/redhat-release exists, it must be Fedora, etc.)

For a custom Linux system there must be a way to set the DISTRO variable in tasks/distro.rake and then any customization must be in the other .rake files.

If your system is private you will need to maintain a forked branch against Build CouchDB. Otherwise I will be happy to merge patches that help you build for your distro.

(Finally, official development continues in http://github.com/couchone/build-couchdb, this repository is an older mirror now.)