2 Building Firefox-2.0.0.12 from source, for testing Helgrind
3 -----------------------------------------------------------
6 ftp://ftp.mozilla.org/pub/firefox/releases/2.0.0.12/source/firefox-2.0.0.12-source.tar.bz2
8 bzip2 -dc firefox-2.0.0.12-source.tar.bz2 | tar xvf -
10 mv mozilla firefox-2.0.0.12
12 mkdir InstFirefox20012
13 export XYZZYFOOBAR=`pwd`/InstFirefox20012
17 ./configure --prefix=$XYZZYFOOBAR --enable-application=browser \
18 --enable-optimize="-O -g"
23 cd ../InstFirefox20012
25 MOZ_NO_REMOTE=1 NO_EM_RESTART=1 \
26 LD_LIBRARY_PATH=`pwd`/lib/firefox-2.0.0.12:\
27 `pwd`/lib/firefox-2.0.0.12/components:\
28 `pwd`/lib/firefox-2.0.0.12/plugins \
29 /home/sewardj/VgTRUNK/hgdev/Inst/bin/valgrind --tool=helgrind \
30 --trace-children=no -v ./lib/firefox-2.0.0.12/firefox-bin
32 # start and then quit firefox a couple of times before measuring
33 # it, analysing results, etc. This is because (I think) the new
34 # build is probably a different version from whatever you used
35 # before and so on the first run, the new build wants to mess with
36 # ~/.mozilla (or something) and that makes it take much longer than
39 # Patch the recycling allocator thusly (is this still necessary) ?
42 $ diff -U3 ./xpcom/ds/nsRecyclingAllocator.cpp-ORIG ./xpcom/ds/nsRecyclingAllocator.cpp
43 --- ./xpcom/ds/nsRecyclingAllocator.cpp-ORIG 2008-03-14 19:09:17.000000000 +0100
44 +++ ./xpcom/ds/nsRecyclingAllocator.cpp 2008-03-14 19:39:34.000000000 +0100
50 +#include "/home/sewardj/VgTRUNK/hgde2/Inst/include/valgrind/helgrind.h"
51 // Allocation and free routines
53 nsRecyclingAllocator::Malloc(PRSize bytes, PRBool zeroit)
57 void *data = DATA(freeBlock);
59 +if (bytes > 0) VALGRIND_HG_CLEAN_MEMORY(data,bytes);
61 memset(data, 0, bytes);
66 Building OpenOffice 2.4/3.0 from source
67 ---------------------------------------
69 svn co svn://svn.gnome.org/svn/ooo-build/trunk ooo-build
73 export ARCH_FLAGS="-g -O"
74 export DOWNLOADCACHE=~/DOWNLOADS/OOo
76 #export ARCH_FLAGS="-g -O -fno-inline -fno-inline-functions"
77 # very slow, and not helpful
79 ./autogen.sh --with-distro=SUSE-11.0
80 --disable-gstreamer --disable-mono
82 # --with-max-jobs=2 --with-num-cpus=2 sounds good on paper, but often
83 # cause the build to fail
84 # --with-alloc=system is used by default
90 # make now runs the 'inner' configure (of OOo proper) and
91 # invariably fails. To fix, install 987,654,321 packages you never
92 # heard of before, that OOo absolutely needs, and go back to the
93 # autogen step. You probably need to do this ten times or more.
95 # configure: error: \genbrk\ not found in $PATH, install the icu
96 # development tool \genbrk""
98 # means you have to install packages: icu libicu-devel
100 # eventually you might get through the inner configure. After
101 # a couple of hours of flat out computation on both cores of
102 # a fast Core 2, the build might complete successfully.
104 # in the likely event of even all that not working, go on to #go-oo
105 # at irc.freenode.org and ask questions
109 ./bin/ooinstall ~/OOoBuild/Inst01
111 valgrind -v ./program/soffice.bin
116 # Use two shells, (C)ompile and (R)un. In (C):
119 . ./LinuxX86Env.Set.sh (or ". ./LinuxX86-64Env.Set.sh")
120 ./solenv/bin/linkoo ~/OOoBuild/Inst01
122 # This replaces all the .so's in the install tree with symlinks
123 # back into the build tree, so you can then re-run without
124 # having to endlessly reinstall. It also creates 'ooenv' in
125 # ~/OOoBuild/Inst01/program, which needs to be sourced
126 # once before running.
128 # So having changed something in OOo, eg in svx/, do:
132 # Meanwhile in the (R)un shell:
133 source ooenv # just once!
134 # appears to complain aobut "ulimit -c", but OK nevertheless
136 valgrind [args] ./soffice.bin
139 ## More notes, 2 May 08
140 export DOWNLOADCACHE=~/DOWNLOADS/OOo to cache downloaded tarballs
141 ##export CONFIGURE_FLAGS=--disable-mediawiki is needed for dev300-m10
142 ##or not -- causes the build to fail later. Don't use this.
145 # These are packages I had to install on a fairly vanilla OpenSUSE
146 # 10.3 in order to get a build working
148 perl-Archive-Zip-1.20
163 mozilla-xulrunner181-devel
188 export QTDIR=/usr/lib/qt3