hit counter

Timeline

My development logbook

Finally Firefox Is Built

1
2
3
4
5
6
7
8
9
609:58.75 TestStartupCache
610:02.99 /home/antkong/wd/mozilla-central/js/xpconnect/tests/components/js/xpctest.manifest: WARNING: no preprocessor directives found
610:06.51 /home/antkong/wd/mozilla-central/startupcache/test/TestStartupCacheTelemetry.manifest: WARNING: no preprocessor directives found
610:06.53 /home/antkong/wd/mozilla-central/startupcache/test/TestStartupCacheTelemetry.js: WARNING: no preprocessor directives found
610:06.61 Packaging quitter@mozilla.org.xpi...
610:06.95 816 compiler warnings present.
We know it took a while, but your build finally finished successfully!
To take your build for a test drive, run: /home/antkong/wd/mozilla-central/obj-x86_64-unknown-linux-gnu/dist/bin/firefox
For more information on what to do now, see https://developer.mozilla.org/docs/Developer_Guide/So_You_Just_Built_Firefox

It took almost 10 hours to build in a VM instance of Ubuntu desktop 13.10 with 4GB RAM and 1 CPU

Fixing Qt4 Dependency of Pyqt4

SIP is installed

PyQt needs qt4. brew install qt4 takes care of this dependency.

PyQt cannot be installed by either easy_install or pip. I have to download the package, run configure.py and then make and make install

Mach Problem: Failed at Unified_cpp_2

Failed at this point

1
2
3
4
5
6
7
8
9
10
11
12
8:57.00 {standard input}: Assembler messages:
 8:57.17 {standard input}:104313: Warning: end of file not at end of a line; newline inserted
 8:57.17 {standard input}:104921: Error: unknown pseudo-op: `.lvl'
 8:57.18 {standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
 8:57.18 c++: internal compiler error: Killed (program cc1plus)
 8:57.18 Please submit a full bug report,
 8:57.19 with preprocessed source if appropriate.
 8:57.19 See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
 8:57.19 
 8:57.19 In the directory  /home/antkong/wd/mozilla-central/obj-x86_64-unknown-linux-gnu/js/src
 8:57.19 The following command failed to execute properly:
 8:57.19 c++ -o Unified_cpp_2.o -c -I../../dist/system_wrappers_js -include /home/antkong/wd/mozilla-central/js/src/config/gcc_hidden.h -DENABLE_PARALLEL_JS -DENABLE_BINARYDATA -DEXPORT_JS_API -DJS_HAS_CTYPES -DDLL_PREFIX="lib" -DDLL_SUFFIX=".so" -DMOZ_GLUE_IN_PROGRAM -DNO_NSPR_10_SUPPORT -DUSE_ZLIB -I/home/antkong/wd/mozilla-central/js/src -I. -Ictypes/libffi/include -I/home/antkong/wd/mozilla-central/js/src/../../mfbt/double-conversion -I/home/antkong/wd/mozilla-central/js/src/../../intl/icu/source/common -I/home/antkong/wd/mozilla-central/js/src/../../intl/icu/source/i18n -I../../dist/include -I/home/antkong/wd/mozilla-central/obj-x86_64-unknown-linux-gnu/dist/include/nspr -I/home/antkong/wd/mozilla-central/js/src -fPIC -DMOZILLA_CLIENT -include ./js-confdefs.h -MD -MP -MF .deps/Unified_cpp_2.o.pp -Wall -Wpointer-arith -Woverloaded-virtual -Werror=return-type -Wtype-limits -Wempty-body -Werror=conversion-null -Wsign-compare -Wno-invalid-offsetof -Wcast-align -fno-rtti -fno-exceptions -fno-math-errno -std=gnu++0x -pthread -pipe -DNDEBUG -DTRIMMED -g -O3 -freorder-blocks -fomit-frame-pointer -DUSE_SYSTEM_MALLOC=1 -DENABLE_ASSEMBLER=1 -DENABLE_JIT=1 /home/antkong/wd/mozilla-central/obj-x86_64-unknown-linux-gnu/js/src/Unified_cpp_2.cpp

Could be due to a change I made earlier related to autoconf in client.mk. In order to do a clean build I will

1
2
3
hg revert --no-backup client.mk
./mach clobber
hg pull -u

When I ran hg pull I got this error message:

$ hg pull -u
abort: repository default not found!

Fixed it by creating a .hg/hgrc file:

1
2
3
[paths]
default = http://hg.mozilla.org/mozilla-central/
default-push = ssh://hg.mozilla.org/mozilla-central/

Unfortunately it does not fix my problem .

It turns out it has something to do with the PC. I created an instance of VirtualBox to run ubuntu desktop 13.10 for the compilation. I only allocted 512MB RAM for the exercise. The failure above is a problem of too little RAM.

Allocated 4GB of RAM to the VM and the exception is gone.

Mach Problem: Gstreamer Backend

This is the full error message:

1
2
3
4
5
6
7
8
9
10
0:09.25 configure:20757: checking for gstreamer-0.10 >= 0.10.25
 0:09.25                       gstreamer-app-0.10
 0:09.25                       gstreamer-plugins-base-0.10
 0:09.25 configure: error: gstreamer and gstreamer-plugins-base development packages are needed to build gstreamer backend. Install them or disable gstreamer support with --disable-gstreamer
 0:09.26 *** Fix above errors and then restart with\
 0:09.26                "/usr/bin/make -f client.mk build"
 0:09.26 make[2]: *** [configure] Error 1
 0:09.26 make[1]: *** [obj-x86_64-unknown-linux-gnu/Makefile] Error 2
 0:09.26 make: *** [build] Error 2
 0:09.27 0 compiler warnings present.

Solution: sudo apt-get install -y libgstreamer-plugins-base0.10-dev