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

Win32 trunk build error - Vista/VC8 Express

27 views
Skip to first unread message

Brian King

unread,
Apr 9, 2007, 9:27:19 AM4/9/07
to
I've set up my environment as described at:
http://developer.mozilla.org/en/docs/Windows_Build_Prerequisites

BRANCH = trunk

MozillaBuildSetup installed, batch script for VC8 ran, MINGW shell
opened. configure ran fine, but shortly after the build started, I get:

/local/bin/make -C config export
make[2]: Entering directory `/c/mozilla/src/trunk/opt/config'
make[3]: Entering directory `/c/mozilla/src/trunk/opt/config/mkdepend'
make[3]: Leaving directory `/c/mozilla/src/trunk/opt/config/mkdepend'
/bin/perl -I/c/mozilla/src/trunk/mozilla/config
/c/mozilla/src/trunk/mozilla/config/bdate.pl build_number
/c/mozilla-build/moztools/bin/nsinstall -m 644 nsBuildID.h
../mozilla-config.h
/c/mozilla/src/trunk/mozilla/config/nsStaticComponents.h ../dist/include
make[2]: execvp: /c/mozilla-build/moztools/bin/nsinstall: Bad file number
make[2]: *** [export] Error 127
make[2]: Leaving directory `/c/mozilla/src/trunk/opt/config'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/c/mozilla/src/trunk/opt'
make: *** [build] Error 2

My .mozconfig looks like this:

-----------
. $topsrcdir/xulrunner/config/mozconfig
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../opt

ac_add_options --enable-optimize
ac_add_options --disable-debug
#ac_add_options --enable-static
#ac_add_options --disable-shared
ac_add_options --disable-tests

ac_add_options --disable-javaxpcom
ac_add_options --disable-mathml
ac_add_options --disable-airbag
-----------

Any ideas?

- Brian

Michael Vincent van Rantwijk, MultiZilla

unread,
Apr 9, 2007, 12:35:51 PM4/9/07
to

Did you install SP1 for Visual C++ 2005 Express Edition and the
Microsoft Platform SDK for Windows Server 2003 RC2?

p.s. I had 512MB RAM and it failed time after time, but adding 512MB
solved the problem and now I compile SeaMonkey in under 18 minutes
(including the installer and zip file) so how much RAM to you have?

Michael

Michael Vincent van Rantwijk, MultiZilla

unread,
Apr 9, 2007, 12:57:55 PM4/9/07
to

Why don't you have these?

mk_add_options MOZ_CO_PROJECT=suite
ac_add_options --enable-application=suite

Replace 'suite' with 'xulrunner' or whatever your want to build.

Michael

Michael Vincent van Rantwijk, MultiZilla

unread,
Apr 9, 2007, 1:02:50 PM4/9/07
to

-> http://developer.mozilla.org/en/docs/Configuring_Build_Options

"XULRunner
Your .mozconfig file should source the XULRunner default mozconfig
file: http://lxr.mozilla.org/mozilla/source/xulrunner/config/mozconfig"

So you definitely need these two lines:

mk_add_options MOZ_CO_PROJECT=xulrunner
ac_add_options --enable-application=xulrunner

I hope this all helps,
Michael

Brian King

unread,
Apr 9, 2007, 1:10:41 PM4/9/07
to
Michael Vincent van Rantwijk, MultiZilla wrote:

> Did you install SP1 for Visual C++ 2005 Express Edition and the
> Microsoft Platform SDK for Windows Server 2003 RC2?

Yes to both.

> p.s. I had 512MB RAM and it failed time after time, but adding 512MB
> solved the problem and now I compile SeaMonkey in under 18 minutes
> (including the installer and zip file) so how much RAM to you have?

3GB

This is the only place I can track down the message:
http://lxr.mozilla.org/mozilla/source/nsprpub/pr/src/md/windows/w16error.c#61

- Brian

Brian King

unread,
Apr 9, 2007, 1:47:41 PM4/9/07
to

They already are via the inlcusion:
. $topsrcdir/xulrunner/config/mozconfig

...

brian@BRIAN-PC /c/mozilla/src/trunk/mozilla
$ cat xulrunner/config/mozconfig

# This file specifies the build flags for XULRunner. You can use it by
adding:
# . $topsrcdir/xulrunner/config/mozconfig
# to the top of your mozconfig file.

mk_add_options MOZ_CO_PROJECT=xulrunner
ac_add_options --enable-application=xulrunner

- Brian

Michael Vincent van Rantwijk, MultiZilla

unread,
Apr 9, 2007, 6:01:03 PM4/9/07
to
Brian King wrote:
> Michael Vincent van Rantwijk, MultiZilla wrote:
>
>> So you definitely need these two lines:
>>
>> mk_add_options MOZ_CO_PROJECT=xulrunner
>> ac_add_options --enable-application=xulrunner
>
> They already are via the inlcusion:
> . $topsrcdir/xulrunner/config/mozconfig

Right, I missed it.

> brian@BRIAN-PC /c/mozilla/src/trunk/mozilla
> $ cat xulrunner/config/mozconfig
>
> # This file specifies the build flags for XULRunner. You can use it by
> adding:
> # . $topsrcdir/xulrunner/config/mozconfig
> # to the top of your mozconfig file.
>
> mk_add_options MOZ_CO_PROJECT=xulrunner
> ac_add_options --enable-application=xulrunner
>
> - Brian

I'm afraid that I can't help you any further, but I am willing to build
xulrunner myself, or at least try, to see if I get the same (kind of)
error. I hope that helps.

Michael

Christian Biesinger

unread,
Apr 13, 2007, 7:27:27 AM4/13/07
to
Brian King wrote:
> This is the only place I can track down the message:
> http://lxr.mozilla.org/mozilla/source/nsprpub/pr/src/md/windows/w16error.c#61

That error was generated by make, not by a Mozilla tool, and it probably
just maps a win32 return code.

Can you run nsinstall manually? Do you have a 32-bit or 64-bit OS?

Damitha Fernando

unread,
Apr 16, 2007, 5:26:33 AM4/16/07
to

Try to run the MINGW shell as the Administrator (Run as administrator).
I had the same problem and that was resolved by doing this and now I'm
stuck somewhere else :-(.

I think the problem is with windows vista not letting nsinstall to start.


Damitha

Brian King

unread,
Apr 16, 2007, 9:22:09 AM4/16/07
to
Damitha Fernando wrote:

> Try to run the MINGW shell as the Administrator (Run as administrator).
> I had the same problem and that was resolved by doing this and now I'm
> stuck somewhere else :-(.
>
> I think the problem is with windows vista not letting nsinstall to start.

Yes, that was it. I thought I was running with the correct rights, but
obviously not. I have a sudo clone for vista, so just running:

sudo start-msvc8.bat

... gave me the security prompt which I accepted and then the build
proceeded fine from the resulting mingw shell.

BTW, my build failed too down the line, but I guess that should be a
separate thread.

--
Brian King
www.mozdev.org - free project hosting for the Mozilla community

0 new messages