Re: MinGW support for SpiderMonkey
Mihai Dobrescu <[email protected]> Tue, 2 Aug 2016 11:50:16 -0700 (PDT)
| Newsgroups | gmane.comp.mozilla.devel.jseng |
|---|---|
| Message-ID | <[email protected]> |
I have advanced a bit further.
I have added nsinstall.exe to the path out from mozilla-build package.
Now, it compiles a while and throws another error:
...
mozmake[3]: Entering directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/memory/mozjemalloc'
mkdir -p '.deps/'
jemalloc.o
gcc -m64 -mwindows -o jemalloc.o -c -DMOZ_JEMALLOC_HARD_ASSERTS -Dabort=moz_abort -DMOZ_JEMALLOC_IMPL -Im:/mozilla/mozjs-45.0.2.mingw/memory/mozjemalloc -I. -Im:/mozilla/mozjs-45.0.2.mingw/memory/build -I../../dist/include -Im:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/dist/include/nspr -include ../../js/src/js-confdefs.h -DMOZILLA_CLIENT -MD -MP -MF .deps/jemalloc.o.pp -Wall -Wsign-compare -Wtype-limits -Wno-unused -Wcast-align -Wno-format -std=gnu99 -fgnu89-inline -mms-bitfields -fno-math-errno -pthread -pipe -DDEBUG -DTRACING -g -O -fno-omit-frame-pointer -Wshadow m:/mozilla/mozjs-45.0.2.mingw/memory/mozjemalloc/jemalloc.c
m:/mozilla/mozjs-45.0.2.mingw/memory/mozjemalloc/jemalloc.c:228:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning( disable: 4267 4996 4146 )
m:/mozilla/mozjs-45.0.2.mingw/memory/mozjemalloc/jemalloc.c:236:0: warning: "PATH_MAX" redefined
#define PATH_MAX MAX_PATH
In file included from m:/Development/codeblocks/mingw-w64/x86_64-6.1.0-win32-seh-rt_v5-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/6.1.0/include-fixed/limits.h:168:0,
from m:/Development/codeblocks/mingw-w64/x86_64-6.1.0-win32-seh-rt_v5-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/6.1.0/include-fixed/syslimits.h:7,
from m:/Development/codeblocks/mingw-w64/x86_64-6.1.0-win32-seh-rt_v5-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/6.1.0/include-fixed/limits.h:34,
from m:/Development/codeblocks/mingw-w64/x86_64-6.1.0-win32-seh-rt_v5-rev0/mingw64/x86_64-w64-mingw32/include/stdlib.h:10,
from m:/mozilla/mozjs-45.0.2.mingw/memory/mozjemalloc/jemalloc.c:213:
m:/Development/codeblocks/mingw-w64/x86_64-6.1.0-win32-seh-rt_v5-rev0/mingw64/x86_64-w64-mingw32/include/limits.h:20:0: note: this is the location of the previous definition
#define PATH_MAX 260
m:/mozilla/mozjs-45.0.2.mingw/memory/mozjemalloc/jemalloc.c:247:0: warning: ignoring #pragma intrinsic [-Wunknown-pragmas]
#pragma intrinsic(_BitScanForward)
m:/mozilla/mozjs-45.0.2.mingw/memory/mozjemalloc/jemalloc.c:248:1: error: multiple storage classes in declaration specifiers
static __forceinline int
^~~~~~
m:/mozilla/mozjs-45.0.2.mingw/memory/mozjemalloc/jemalloc.c:249:1: warning: declaration of 'ffs' shadows a built-in function [-Wshadow]
ffs(int x)
^~~
m:/mozilla/mozjs-45.0.2.mingw/memory/mozjemalloc/jemalloc.c:6788:1: warning: '_recalloc' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
_recalloc(void *ptr, size_t count, size_t size)
^~~~~~~~~
m:/mozilla/mozjs-45.0.2.mingw/memory/mozjemalloc/jemalloc.c:6815:1: warning: '_expand' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
_expand(void *ptr, size_t newsize)
^~~~~~~
m:/mozilla/mozjs-45.0.2.mingw/memory/mozjemalloc/jemalloc.c:6824:1: warning: '_msize' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
_msize(void *ptr)
^~~~~~
m:/mozilla/mozjs-45.0.2.mingw/config/rules.mk:916: recipe for target 'jemalloc.o' failed
mozmake[3]: *** [jemalloc.o] Error 1
mozmake[3]: Leaving directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/memory/mozjemalloc'
m:/mozilla/mozjs-45.0.2.mingw/config/recurse.mk:71: recipe for target 'memory/mozjemalloc/target' failed
mozmake[2]: *** [memory/mozjemalloc/target] Error 2
mozmake[2]: Leaving directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ'
m:/mozilla/mozjs-45.0.2.mingw/config/recurse.mk:32: recipe for target 'compile' failed
mozmake[1]: *** [compile] Error 2
mozmake[1]: Leaving directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ'
m:/mozilla/mozjs-45.0.2.mingw/config/rules.mk:547: recipe for target 'default' failed
mozmake: *** [default] Error 2
Some hint?