2.0.0 build error in SpiderMonkey (jsscan.c)

99 views
Skip to first unread message

Conrad Pankoff

unread,
Sep 17, 2011, 2:04:21 AM9/17/11
to mongodb-dev
Decided to give the shiny new(ish) 2.0.0 release a go today, after
having been running various incarnations of HEAD for a while, but was
met with this about 20 minutes into compilation:

gcc -o third_party/js-1.7/jsscan.o -c -fPIC -fno-strict-aliasing -ggdb
-pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -fno-
builtin-memcmp -O3 -D_SCONS -DMONGO_EXPOSE_MACROS -
D_FILE_OFFSET_BITS=64 -DXP_UNIX -DJSFILE -DEXPORT_JS_API -
DJS_C_STRINGS_ARE_UTF8 -DHAVE_VA_COPY -DVA_COPY=va_copy -Ithird_party/
js-1.7 -I. third_party/js-1.7/jsscan.c
third_party/js-1.7/jsscan.c:112:22: error: jsautokw.h: No such file or
directory
third_party/js-1.7/jsscan.c: In function 'FindKeyword':
third_party/js-1.7/jsscan.c:122: warning: label 'test_guess' defined
but not used
third_party/js-1.7/jsscan.c:119: warning: label 'got_match' defined
but not used
scons: *** [third_party/js-1.7/jsscan.o] Error 1
scons: building terminated because of errors.

It seems that jsautokw.h isn't being generated (or maybe found)
correctly by Makefile.ref, included with SpiderMonkey. When I ran
`make -f Makefile.ref` in third_party/js-1.7/ it worked fine, so I'm
guessing scons messes about with the environment just enough to break
it. This is on a clean, minimal debian squeeze install with build-
essential and xulrunner-dev.

Eliot Horowitz

unread,
Sep 17, 2011, 8:37:06 AM9/17/11
to mongo...@googlegroups.com
What version of scons do you have installed?

> --
> You received this message because you are subscribed to the Google Groups "mongodb-dev" group.
> To post to this group, send email to mongo...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-dev...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mongodb-dev?hl=en.
>
>

Dwight Merriman

unread,
Sep 17, 2011, 11:29:40 AM9/17/11
to mongo...@googlegroups.com
fwiw probably moving to V8 if you want to try that

scons --usev8

On Sat, Sep 17, 2011 at 2:04 AM, Conrad Pankoff <deo...@fknsrs.biz> wrote:

Conrad Pankoff

unread,
Sep 17, 2011, 10:03:50 PM9/17/11
to mongo...@googlegroups.com
2.0.0.final.0.r5023 apparently. The version that comes with debian squeeze.

deoxxa@kage:~# scons --version
SCons by Steven Knight et al.:
script: v2.0.0.final.0.r5023, 2010/06/14 22:05:46, by scons on scons-dev
engine: v2.0.0.final.0.r5023, 2010/06/14 22:05:46, by scons on scons-dev
Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation

Conrad Pankoff

unread,
Sep 17, 2011, 10:05:31 PM9/17/11
to mongo...@googlegroups.com
Is V8 support up to scratch with SpiderMonkey now? Last I heard it was still experimental, but it'd be great if it was ready to use regularly.

Scott Hernandez

unread,
Sep 17, 2011, 10:50:28 PM9/17/11
to mongo...@googlegroups.com
It is still a work-in-progress but usable for sure. You may want to
track this issue (and linked ones):
https://jira.mongodb.org/browse/SERVER-2407

I'd categorize it as beta and needing testing, mostly since it hasn't
seen as much use in mongodb as the default (spidermonkey).

Dwight Merriman

unread,
Sep 17, 2011, 10:57:12 PM9/17/11
to mongo...@googlegroups.com
not quite but it will be and is moving out of experimental.  2.0 users spidermonkey.

On Sat, Sep 17, 2011 at 10:05 PM, Conrad Pankoff <deo...@fknsrs.biz> wrote:
Reply all
Reply to author
Forward
0 new messages