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
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
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
-> 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
> 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
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
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
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?
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
> 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