Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

TraceMonkey for win32

10 views
Skip to first unread message

franck.fr

unread,
Sep 17, 2008, 7:18:36 AM9/17/08
to
Hello,

I am trying to build TraceMonkey for windows 32bit from
http://hg.mozilla.org/tracemonkey/ but it seems that the build system
is not up to date.
Can you tell me if there is another way to build a win32 version of
TraceMonkey ?
Thanks.

Franck.

Jason Orendorff

unread,
Sep 17, 2008, 11:36:45 AM9/17/08
to
On Sep 17, 6:18 am, "franck.fr" <sou...@gmail.com> wrote:
> I am trying to build TraceMonkey for windows 32bit fromhttp://hg.mozilla.org/tracemonkey/but it seems that the build system

> is not up to date.
> Can you tell me if there is another way to build a win32 version of
> TraceMonkey ?

I can't tell what you tried. Have you already installed MozillaBuild?
http://developer.mozilla.org/en/Windows_Build_Prerequisites

Did you try the build commands shown here?
http://developer.mozilla.org/En/SpiderMonkey/Build_Documentation#Build

What errors do you see?

-j

franck.fr

unread,
Sep 17, 2008, 12:45:05 PM9/17/08
to
I try to build TraceMonkey exactly like I build SpiderMonkey (the last
CVS revision), using cygwin + Microsoft Visual Studio 8

By default, the build don't failed but the JIT is disabled:
Makefile.ref:58: NANOJIT_ARCH not defined in config/WINNT5.1.mk, JIT
disabled

Now,
if I try to copy " -DAVMPLUS_WIN32 -DAVMPLUS_IA32" from WINNT5.2.mk to
WINNT5.1.mk, and
if I add "NANOJIT_ARCH = i386" (from Linux_All.mk) in my WINNT5.1.mk,
and
if I rename jsbuiltins.c into jsbuiltins.cpp (in rules.mk:107)

Everything seems to be compiled properly, but the JIT obj files
(Assembler.obj, avmplus.obj, ...)
are in nanojit/../ instead of nanojit/
LINK : fatal error LNK1181: cannot open input file 'WINNT5.1_DBG.OBJ/
nanojit/Assembler.obj'

BTW, I get the following warnings on several files:

cl -FoWINNT5.1_DBG.OBJ/ -c -g3 -fno-exceptions -fno-rtti -Wall -
fstrict-aliasing -D_X86_=1 -DXP_WIN -DXP_WIN32 -DWIN32 -D_WINDOWS -
D_WIN32 -DWINVER=0x500 -D_WIN
32_WINNT=0x500 -nologo -W3 -DAVMPLUS_WIN32 -DAVMPLUS_IA32 -DDEBUG -
DDEBUG_ -DJS_TRACER -DFEATURE_NANOJIT -Inanojit -I. -
IWINNT5.1_DBG.OBJ /D_CRT_SECURE_NO_D
EPRECATE=1 /MDd /DJS_HASHMETER /DJS_GC_ZEAL -DEXPORT_JS_API
jsinterp.cpp
cl : Command line warning D9002 : ignoring unknown option '-g3'
cl : Command line warning D9002 : ignoring unknown option '-fno-
exceptions'
cl : Command line warning D9002 : ignoring unknown option '-fno-rtti'
cl : Command line warning D9002 : ignoring unknown option '-fstrict-
aliasing'
jsinterp.cpp


Franck.

Haghighat, Mohammad R

unread,
Sep 17, 2008, 12:58:11 PM9/17/08
to franck.fr, dev-tech-...@lists.mozilla.org

This workaround seems to do the job. I'm not sure if this is the best solution.

1. make BUILD_OPT=1 OPTIMIZER="-O2 -MD" USE_MSVC=1 -f Makefile.ref
2. copy the *.obj files to the nanojit directory
3. repeat step 1

- moh


Franck.
_______________________________________________
dev-tech-js-engine mailing list
dev-tech-...@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-js-engine

0 new messages