Changes

Jump to: navigation, search

User:Mdsouza/Assignment 01: Build the Fox

2,863 bytes added, 19:55, 20 September 2006
Problems And Solutions
===Problem 1===
I originally did not have my enviromental variables correctly set up. So I got this error:
 
<pre>
Mark@pent4 ~/proj/mozilla
$ make -f client.mk build
Adding client.mk options from /cygdrive/c/proj/mozilla/.mozconfig:
MOZ_OBJDIR=$(TOPSRCDIR)firefox-objdir
make[1]: Entering directory `/cygdrive/c/proj/mozilla'
cd /cygdrive/c/proj/mozillafirefox-objdir
/cygdrive/c/proj/mozilla/configure
Adding configure options from /cygdrive/c/proj/mozilla/.mozconfig:
--disable-static
--enable-shared
--disable-optimize
--enable-debug
--enable-canvas
--disable-installer
creating cache ./config.cache
checking host system type... i686-pc-cygwin
checking target system type... i686-pc-cygwin
checking build system type... i686-pc-cygwin
checking for gawk... gawk
checking for nsinstall... no
checking for gcc... cl
checking whether the C compiler (cl ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
*** Fix above errors and then restart with "make -f client.mk build"
make[1]: *** [configure] Error 1
make[1]: Leaving directory `/cygdrive/c/proj/mozilla'
make: *** [/cygdrive/c/proj/mozillafirefox-objdir/Makefile] Error 2
</pre>
 
I solved this problem so I went to the [http://developer.mozilla.org/en/docs/Mozilla_Build_FAQ#Win32-specific_questions Mozilla Build FAQ] and it told me to run vcvars32.bat, delete my config.cache file (in the mozilla or object directory) and then build again.
 
I tried this but it still failed. So then I created a batch file, included a call to setup several variables, and double-checked that all directories in the variables were correct. This fixed the problem.
===Problem 2===
The other problem was that even though I had 1GB of ram, and had a 1.5GB pagefile, it crashed my computer twice. The first time my page file reached from about 130mb (when I closed all the uncessary programs) to 909mb. The second time my page file reached 707mb and crashed. I got the following error to inform me about an hour into the build.
===Problem 3===<pre>Mark@pent4 ~/mozilla$ make -f client.mk build 8 [unknown (0x20EE0)] sed (134904) C:\cygwin\bin\sed.exe: *** fatal error - C:\cygwin\bin\sed.exe: *** CreateThread failed for sig - 0x0<0x0>, Win32 error 1450/bin/sh: /usr/bin/sed: Resource temporarily unavailable/bin/sh: /usr/bin/sed: Resource temporarily unavailablemake: execvp: /bin/sh.exe: Resource temporarily unavailablemake: execvp: /bin/sh.exe: Resource temporarily unavailableclient.mk:482: /.mozconfig.mk: No such file or directoryclient.mk:483: /build/unix/modules.mk: No such file or directorymake: execvp: /bin/sh.exe: Resource temporarily unavailablemake: *** No rule to make target `/build/unix/modules.mk'. Stop.</pre>
I researched the problem, but no solutions helped. I then defragged my hard drive, rebooted, closed all the extra programs) ran the build and it worked (thankfully)!
==Apendix==
1
edit

Navigation menu