wesgarland / gpsee

General Purpose Spidermonkey Embedding Ecosystem
https://github.com/wesgarland/gpsee
4 stars 0 forks source link

embrace/gpsee-js repl not building #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
donny@pacemates:~/gpsee/src/embrace/gpsee-js$ make
cp -f gpsee-js.cpp
/home/donny/gpsee/src/spidermonkey/builds/debug/shell/gpsee-js.cpp
sed -e 's/= js/= gpsee-js/'
</home/donny/gpsee/src/spidermonkey/builds/debug/shell/Makefile
>/home/donny/gpsee/src/spidermonkey/builds/debug/shell/gpsee-js.mk
echo "GARBAGE += gpsee-js.mk gpsee-js.cpp" >>
/home/donny/gpsee/src/spidermonkey/builds/debug/shell/gpsee-js.mk
[ -d "/home/donny/gpsee/src/spidermonkey/builds/debug/shell/.deps" ] ||
mkdir "/home/donny/gpsee/src/spidermonkey/builds/debug/shell/.deps"
cd /home/donny/gpsee/src/spidermonkey/builds/debug/shell && make -f
/home/donny/gpsee/src/spidermonkey/builds/debug/shell/gpsee-js.mk
"CXXFLAGS=-I/usr/local/gpsee/include -I/home/donny/gpsee/tracemonkey/js/src
-DGPSEE -I/home/donny/gpsee/src  -I/usr/local/gpsee/jsapi/include/js
-I/usr/include/nspr -D_GNU_SOURCE" "LDFLAGS=-L/home/donny/gpsee/src 
-L/usr/local/gpsee/jsapi/lib -Wl,-rpath=/usr/local/gpsee/jsapi/lib 
-L/usr/local/gpsee/lib -Wl,-rpath=/usr/local/gpsee/lib  -lgpsee
-L/usr/local/gpsee/jsapi/lib -lmozjs -L/usr/lib -lplds4 -lplc4 -lnspr4
-lpthread -ldl -ldl -lm  -lm -ldl " gpsee-js
make[1]: Entering directory
`/home/donny/gpsee/src/spidermonkey/builds/debug/shell'
gpsee-js.cpp
c++ -o gpsee-js.o -c -I../dist/system_wrappers_js -include
/home/donny/gpsee/tracemonkey/js/src/config/gcc_hidden.h -DEXPORT_JS_API
-DOSTYPE=\"Linux2.6\" -DOSARCH=Linux -I/home/donny/gpsee/tracemonkey/js/src
-I.. -I/home/donny/gpsee/tracemonkey/js/src/shell -I. -I../dist/include
-I../dist/include/nsprpub  -I/usr/include/nspr      -fPIC 
-I/usr/local/gpsee/include -I/home/donny/gpsee/tracemonkey/js/src -DGPSEE
-I/home/donny/gpsee/src  -I/usr/local/gpsee/jsapi/include/js
-I/usr/include/nspr -D_GNU_SOURCE   -DMOZILLA_CLIENT -include
../mozilla-config.h -Wp,-MD,.deps/gpsee-js.pp gpsee-js.cpp
gpsee-js.cpp: In function ‘void panic(const char*)’:
gpsee-js.cpp:84: warning: ‘void panic(const char*)’: visibility attribute
ignored because it
/usr/local/gpsee/include/gpsee.h:304: warning: conflicts with previous
declaration here
In file included from
/home/donny/gpsee/tracemonkey/js/src/nanojit/nanojit.h:300,
                 from /home/donny/gpsee/tracemonkey/js/src/jsbuiltins.h:45,
                 from /home/donny/gpsee/tracemonkey/js/src/shell/js.cpp:58,
                 from gpsee-js.cpp:110:
/home/donny/gpsee/tracemonkey/js/src/nanojit/LIR.h: In member function
‘void nanojit::LIns::staticSanityCheck()’:
/home/donny/gpsee/tracemonkey/js/src/nanojit/LIR.h:494: warning: invalid
access to non-static data member ‘nanojit::LInsOp1::ins’ of NULL object
/home/donny/gpsee/tracemonkey/js/src/nanojit/LIR.h:494: warning: (perhaps
the ‘offsetof’ macro was used incorrectly)
/home/donny/gpsee/tracemonkey/js/src/nanojit/LIR.h:494: warning: invalid
access to non-static data member ‘nanojit::LInsOp1::oprnd_1’ of NULL object
/home/donny/gpsee/tracemonkey/js/src/nanojit/LIR.h:494: warning: (perhaps
the ‘offsetof’ macro was used incorrectly)
/home/donny/gpsee/tracemonkey/js/src/nanojit/LIR.h:494: warning: invalid
access to non-static data member ‘nanojit::LInsOp2::ins’ of NULL object
/home/donny/gpsee/tracemonkey/js/src/nanojit/LIR.h:494: warning: (perhaps
the ‘offsetof’ macro was used incorrectly)
/home/donny/gpsee/tracemonkey/js/src/nanojit/LIR.h:494: warning: invalid
access to non-static data member ‘nanojit::LInsOp2::oprnd_1’ of NULL object
/home/donny/gpsee/tracemonkey/js/src/nanojit/LIR.h:494: warning: (perhaps
the ‘offsetof’ macro was used incorrectly)
/home/donny/gpsee/tracemonkey/js/src/nanojit/LIR.h:496: warning: invalid
access to non-static data member ‘nanojit::LInsOp2::ins’ of NULL object
/home/donny/gpsee/tracemonkey/js/src/nanojit/LIR.h:496: warning: (perhaps
the ‘offsetof’ macro was used incorrectly)
/home/donny/gpsee/tracemonkey/js/src/nanojit/LIR.h:496: warning: invalid
access to non-static data member ‘nanojit::LInsOp2::oprnd_1’ of NULL object
/home/donny/gpsee/tracemonkey/js/src/nanojit/LIR.h:496: warning: (perhaps
the ‘offsetof’ macro was used incorrectly)
/home/donny/gpsee/tracemonkey/js/src/nanojit/LIR.h:496: warning: invalid
access to non-static data member ‘nanojit::LInsLd::ins’ of NULL object
/home/donny/gpsee/tracemonkey/js/src/nanojit/LIR.h:496: warning: (perhaps
the ‘offsetof’ macro was used incorrectly)
/home/donny/gpsee/tracemonkey/js/src/nanojit/LIR.h:496: warning: invalid
access to non-static data member ‘nanojit::LInsLd::oprnd_1’ of NULL object
/home/donny/gpsee/tracemonkey/js/src/nanojit/LIR.h:496: warning: (perhaps
the ‘offsetof’ macro was used incorrectly)
/home/donny/gpsee/tracemonkey/js/src/nanojit/LIR.h:498: warning: invalid
access to non-static data member ‘nanojit::LInsLd::ins’ of NULL object
/home/donny/gpsee/tracemonkey/js/src/nanojit/LIR.h:498: warning: (perhaps
the ‘offsetof’ macro was used incorrectly)
/home/donny/gpsee/tracemonkey/js/src/nanojit/LIR.h:498: warning: invalid
access to non-static data member ‘nanojit::LInsLd::oprnd_1’ of NULL object
/home/donny/gpsee/tracemonkey/js/src/nanojit/LIR.h:498: warning: (perhaps
the ‘offsetof’ macro was used incorrectly)
/home/donny/gpsee/tracemonkey/js/src/nanojit/LIR.h:498: warning: invalid
access to non-static data member ‘nanojit::LInsSti::ins’ of NULL object
/home/donny/gpsee/tracemonkey/js/src/nanojit/LIR.h:498: warning: (perhaps
the ‘offsetof’ macro was used incorrectly)
/home/donny/gpsee/tracemonkey/js/src/nanojit/LIR.h:498: warning: invalid
access to non-static data member ‘nanojit::LInsSti::oprnd_1’ of NULL object
/home/donny/gpsee/tracemonkey/js/src/nanojit/LIR.h:498: warning: (perhaps
the ‘offsetof’ macro was used incorrectly)
/home/donny/gpsee/tracemonkey/js/src/nanojit/LIR.h:503: warning: invalid
access to non-static data member ‘nanojit::LInsOp2::ins’ of NULL object
/home/donny/gpsee/tracemonkey/js/src/nanojit/LIR.h:503: warning: (perhaps
the ‘offsetof’ macro was used incorrectly)
/home/donny/gpsee/tracemonkey/js/src/nanojit/LIR.h:503: warning: invalid
access to non-static data member ‘nanojit::LInsOp2::oprnd_2’ of NULL object
/home/donny/gpsee/tracemonkey/js/src/nanojit/LIR.h:503: warning: (perhaps
the ‘offsetof’ macro was used incorrectly)
/home/donny/gpsee/tracemonkey/js/src/nanojit/LIR.h:503: warning: invalid
access to non-static data member ‘nanojit::LInsSti::ins’ of NULL object
/home/donny/gpsee/tracemonkey/js/src/nanojit/LIR.h:503: warning: (perhaps
the ‘offsetof’ macro was used incorrectly)
/home/donny/gpsee/tracemonkey/js/src/nanojit/LIR.h:503: warning: invalid
access to non-static data member ‘nanojit::LInsSti::oprnd_2’ of NULL object
/home/donny/gpsee/tracemonkey/js/src/nanojit/LIR.h:503: warning: (perhaps
the ‘offsetof’ macro was used incorrectly)
c++ -o gpsee-js -I/usr/local/gpsee/include
-I/home/donny/gpsee/tracemonkey/js/src -DGPSEE -I/home/donny/gpsee/src 
-I/usr/local/gpsee/jsapi/include/js -I/usr/include/nspr -D_GNU_SOURCE 
gpsee-js.o    -L/home/donny/gpsee/src  -L/usr/local/gpsee/jsapi/lib
-Wl,-rpath=/usr/local/gpsee/jsapi/lib  -L/usr/local/gpsee/lib
-Wl,-rpath=/usr/local/gpsee/lib  -lgpsee -L/usr/local/gpsee/jsapi/lib
-lmozjs -L/usr/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl -ldl -lm  -lm -ldl
 -L../dist/bin -L../dist/lib -L/usr/lib -lplds4 -lplc4 -lnspr4 -lpthread
-ldl ../editline/libeditline.a ../libjs_static.a -ldl -lm      
gpsee-js.o: In function `gpseejs_NewObject(JSContext*, JSClass*, JSObject*,
JSObject*)':
gpsee-js.cpp:(.text+0x31e0): undefined reference to `gpsee_getGlobalClass'
gpsee-js.o: In function `gpseejs_NewRuntime(unsigned int)':
gpsee-js.cpp:(.text+0x3474): undefined reference to `environ'
gpsee-js.cpp:(.text+0x3486): undefined reference to `gpsee_createInterpreter'
gpsee-js.o: In function `fatal(char const*)':
gpsee-js.cpp:(.text+0x350a): undefined reference to `gpsee_log'
gpsee-js.o: In function `gpseejs_DestroyRuntime(JSRuntime*)':
gpsee-js.cpp:(.text+0x355f): undefined reference to `gpsee_destroyInterpreter'
gpsee-js.o: In function `split_setup(JSContext*)':
gpsee-js.cpp:(.text+0x4856): undefined reference to `gpsee_initGlobalObject'
gpsee-js.o: In function `EvalInContext(JSContext*, JSObject*, unsigned int,
int*, int*)':
gpsee-js.cpp:(.text+0x4ae7): undefined reference to `gpsee_initGlobalObject'
gpsee-js.cpp:(.text+0x4ba5): undefined reference to `gpsee_initGlobalObject'
gpsee-js.o: In function `Scatter(JSContext*, unsigned int, int*)':
gpsee-js.cpp:(.text+0x516a): undefined reference to `gpsee_initGlobalObject'
gpsee-js.o: In function `.L715':
gpsee-js.cpp:(.text+0x5bbf): undefined reference to `gpsee_initGlobalObject'
gpsee-js.o:gpsee-js.cpp:(.text+0x5fb1): more undefined references to
`gpsee_initGlobalObject' follow
/usr/bin/ld: gpsee-js: hidden symbol `panic' in gpsee-js.o is referenced by DSO
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make[1]: *** [gpsee-js] Error 1
make[1]: Leaving directory
`/home/donny/gpsee/src/spidermonkey/builds/debug/shell'
make: *** [gpsee-js] Error 2

Original issue reported on code.google.com by donny.vi...@gmail.com on 25 Aug 2009 at 3:58

GoogleCodeExporter commented 9 years ago

Original comment by wes%page...@gtempaccount.com on 9 Jan 2010 at 4:58

GoogleCodeExporter commented 9 years ago
Fixed by several changesets. Perhaps this is a definitive list: e5f51d473a43,
738547d24007, 297bb63cad02, and 5a11f2e5e06b.

Original comment by donny.vi...@gmail.com on 5 Feb 2010 at 2:18