- From: alan.garny at dpag.ox.ac.uk (Alan Garny)
- Subject: [cellml-dev] The Mozilla framework
- Date: Tue, 4 Mar 2008 17:47:25 -0000
>
> I was wondering whether you guys had had any problem with compiling
>
the
>
> Mozilla framework? Indeed, since I have last updated my copy from the
>
> repository (which has been updated a week ago or so), there seems to
>
be
>
> a problem with jemalloc ([Mozilla]/memory/jemalloc/). I have googled
>
> around and found out that this is a new addition
>
> (http://ventnorsblog.blogspot.com/2008/02/beta-3.html). Could that be
>
> related?
>
Hi Alan,
>
>
jemalloc requires a newer glibc to compile properly - I have had
>
similar
>
problems. The workaround is to add --disable-jemalloc as an autoconf
>
option in your .mozconfig for the build you are making, or upgrade your
>
distribution to one with a newer glibc.
Hi Andrew,
Thanks a lot for that. The --disable-jemalloc certainly solved one problem,
but I now get the following errors (I am only inserting the first few of
them as there are tons):
---------------------------------------
gcc -o jsapi.o -c -fvisibility=hidden -DOSTYPE=\"Linux2.6\" -DOSARCH=Linux
-DEXPORT_JS_API -DJS_USE_SAFE_ARENA -I/home/gry/mozilla/js/src -I.
-I../../dist/include -I../../dist/include/js -I../../dist/include/nspr
-I../../dist/sdk/include -I/home/gry/mozilla/js/src -fPIC -Wall -W
-Wno-unused -Wpointer-arith -Wcast-align -Wno-long-long -pedantic
-fno-strict-aliasing -pthread -pipe -DNDEBUG -DTRIMMED -Os -include
../../mozilla-config.h -DMOZILLA_CLIENT -Wp,-MD,.deps/jsapi.pp
/home/gry/mozilla/js/src/jsapi.c In file included from
/home/gry/mozilla/js/src/jsapi.c:49:
/home/gry/mozilla/js/src/jstypes.h:251:3: error: #error "Must define one of
XP_BEOS, XP_OS2, XP_WIN or XP_UNIX"
/home/gry/mozilla/js/src/jstypes.h:267:3: error: #error No suitable type for
JSInt8/JSUint8
/home/gry/mozilla/js/src/jstypes.h:280:3: error: #error No suitable type for
JSInt16/JSUint16
/home/gry/mozilla/js/src/jstypes.h:300:3: error: #error No suitable type for
JSInt32/JSUint32 In file included from /home/gry/mozilla/js/src/jsapi.c:49:
/home/gry/mozilla/js/src/jstypes.h:335: error: expected
specifier-qualifier-list before 'JSUint32'
/home/gry/mozilla/js/src/jstypes.h:337: warning: struct has no members
/home/gry/mozilla/js/src/jstypes.h:355:3: error: #error 'sizeof(int)' not
sufficient for platform use
/home/gry/mozilla/js/src/jstypes.h:400: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'JSBool'
/home/gry/mozilla/js/src/jstypes.h:410: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'JSPackedBool'
In file included from /home/gry/mozilla/js/src/jstypes.h:423,
from /home/gry/mozilla/js/src/jsapi.c:49:
/home/gry/mozilla/js/src/jsotypes.h:73: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'uint'
/home/gry/mozilla/js/src/jsotypes.h:76: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'uintn'
/home/gry/mozilla/js/src/jsotypes.h:79: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'uint32'
/home/gry/mozilla/js/src/jsotypes.h:83: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'uint16'
/home/gry/mozilla/js/src/jsotypes.h:84: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'uint8'
/home/gry/mozilla/js/src/jsotypes.h:87: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'intn'
/home/gry/mozilla/js/src/jsotypes.h:106: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'int32'
/home/gry/mozilla/js/src/jsotypes.h:110: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'int16'
/home/gry/mozilla/js/src/jsotypes.h:111: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'int8'
---------------------------------------
I checked
http://trac.bioeng5.bioeng.auckland.ac.nz/physiomesynctrac/browser/mozilla/t
runk/js/src/jstypes.h and I really can't see why I would now get the above
errors!?
Alan
Archive powered by MHonArc 2.6.18.