mohitsh / jslibs

Automatically exported from code.google.com/p/jslibs
0 stars 0 forks source link

../src/jsatom.cpp:67: error: size of array ‘js_static_assert5’ is negative #114

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. make all
2.
3.

What is the expected output? What do you see instead?
make all complete, what i see is:
c++ -DMDCPUCFG=\"md/_linux.cfg\" -o host_jsoplengen.o -c -m32  -I../src -I. -
I./dist/include -I./dist/include/nsprpub     -I../src  ../src/jsoplengen.cpp
c++ -DMDCPUCFG=\"md/_linux.cfg\" -o host_jsoplengen -m32  -I../src -I. 
-I./dist/include -
I./dist/include/nsprpub     -I../src host_jsoplengen.o  
./host_jsoplengen /home/kyz/Repository/jslibs/libs/js/Linux_opt_32/jsautooplen.h
jsapi.cpp
c++ -o jsapi.o -c -I./dist/system_wrappers_js -include 
../src/config/gcc_hidden.h -
DOSTYPE=\"Linux2.6\" -DOSARCH=Linux -DEXPORT_JS_API   -I../src -I. 
-I./dist/include 
-I./dist/include/nsprpub     -I../src  -fPIC  -fno-rtti -fno-exceptions -Wall 
-Wpointer-arith -
Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor 
-Wcast-align -
Wno-invalid-offsetof -Wno-variadic-macros -Wno-long-long -pedantic -m32 
-fno-strict-
aliasing -pthread -pipe  -DNDEBUG -DTRIMMED -O3 -fstrict-aliasing    -
DMOZILLA_CLIENT -include ./js-confdefs.h -Wp,-MD,.deps/jsapi.pp ../src/jsapi.cpp
In file included from ../src/nanojit/nanojit.h:267,
                 from ../src/jsbuiltins.h:45,
                 from ../src/jsapi.cpp:59:
../src/nanojit/Containers.h:164: warning: integer constant is too large for 
‘long’ type
jsarena.cpp
c++ -o jsarena.o -c -I./dist/system_wrappers_js -include 
../src/config/gcc_hidden.h -
DOSTYPE=\"Linux2.6\" -DOSARCH=Linux -DEXPORT_JS_API   -I../src -I. 
-I./dist/include 
-I./dist/include/nsprpub     -I../src  -fPIC  -fno-rtti -fno-exceptions -Wall 
-Wpointer-arith -
Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor 
-Wcast-align -
Wno-invalid-offsetof -Wno-variadic-macros -Wno-long-long -pedantic -m32 
-fno-strict-
aliasing -pthread -pipe  -DNDEBUG -DTRIMMED -O3 -fstrict-aliasing    -
DMOZILLA_CLIENT -include ./js-confdefs.h -Wp,-MD,.deps/jsarena.pp 
../src/jsarena.cpp
jsarray.cpp
c++ -o jsarray.o -c -I./dist/system_wrappers_js -include 
../src/config/gcc_hidden.h -
DOSTYPE=\"Linux2.6\" -DOSARCH=Linux -DEXPORT_JS_API   -I../src -I. 
-I./dist/include 
-I./dist/include/nsprpub     -I../src  -fPIC  -fno-rtti -fno-exceptions -Wall 
-Wpointer-arith -
Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor 
-Wcast-align -
Wno-invalid-offsetof -Wno-variadic-macros -Wno-long-long -pedantic -m32 
-fno-strict-
aliasing -pthread -pipe  -DNDEBUG -DTRIMMED -O3 -fstrict-aliasing    -
DMOZILLA_CLIENT -include ./js-confdefs.h -Wp,-MD,.deps/jsarray.pp 
../src/jsarray.cpp
In file included from ../src/nanojit/nanojit.h:267,
                 from ../src/jsbuiltins.h:45,
                 from ../src/jstracer.h:48,
                 from ../src/jsarray.cpp:88:
../src/nanojit/Containers.h:164: warning: integer constant is too large for 
‘long’ type
jsatom.cpp
c++ -o jsatom.o -c -I./dist/system_wrappers_js -include 
../src/config/gcc_hidden.h -
DOSTYPE=\"Linux2.6\" -DOSARCH=Linux -DEXPORT_JS_API   -I../src -I. 
-I./dist/include 
-I./dist/include/nsprpub     -I../src  -fPIC  -fno-rtti -fno-exceptions -Wall 
-Wpointer-arith -
Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor 
-Wcast-align -
Wno-invalid-offsetof -Wno-variadic-macros -Wno-long-long -pedantic -m32 
-fno-strict-
aliasing -pthread -pipe  -DNDEBUG -DTRIMMED -O3 -fstrict-aliasing    -
DMOZILLA_CLIENT -include ./js-confdefs.h -Wp,-MD,.deps/jsatom.pp 
../src/jsatom.cpp
../src/jsatom.cpp:67: error: size of array ‘js_static_assert5’ is negative
../src/jsatom.cpp: In function ‘JSHashNumber js_hash_atom_ptr(const void*)’:
../src/jsatom.cpp:944: warning: right shift count >= width of type
../src/jsatom.cpp: In member function ‘JSAtomListElement* 
JSAtomList::rawLookup(JSAtom*, JSHashEntry**&)’:
../src/jsatom.cpp:1037: warning: right shift count >= width of type
../src/jsatom.cpp: In member function ‘JSAtomListElement* 
JSAtomList::add(JSCompiler*, JSAtom*, JSAtomList::AddHow)’:
../src/jsatom.cpp:1113: warning: right shift count >= width of type
../src/jsatom.cpp:1124: warning: right shift count >= width of type
../src/jsatom.cpp:1129: warning: right shift count >= width of type
make[3]: *** [jsatom.o] Error 1
make[3]: Leaving directory `/home/kyz/Repository/jslibs/libs/js/Linux_opt_32'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/kyz/Repository/jslibs/libs/js/Linux_opt_32'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/kyz/Repository/jslibs/libs/js'
make: *** [libs/js] Error 2

What version of the product are you using? On what operating system?
latest today svn, Ubuntu 64-bit 10.04

Please provide any additional information below.

Original issue reported on code.google.com by chosenpe...@gmail.com on 30 May 2010 at 11:23

GoogleCodeExporter commented 9 years ago
jslibs is not completely ready to compile on 64bit platform. But this is on my 
task 
list !

Original comment by sou...@gmail.com on 3 Jun 2010 at 4:55

GoogleCodeExporter commented 9 years ago

Original comment by sou...@gmail.com on 2 Jun 2011 at 10:49