トップ «前の日記(2013年10月25日) 最新 次の日記(2013年11月09日)» 編集

Masa's blog

検索キーワード:

2013年11月03日 How to build firefox-25.0 with poor memory environment :P [長年日記]

_ How to build firefox-25.0 with poor memory environment :P

I could build firefox-24.0 with 2GB memory and 2GB swap partition, but I couldn't build firefox-25.0 with same environment because of memory exhaust during linking phase.

Slackware-14.0 has 2 kinds of ld command, they are ld.bfd and ld.gold. Default ld is ld.bfd, but I have to use ld.gold instead of ld.bfd to get success to build.

ld.gold is light weight and faster (about x5) than ld.bfd, but it may be a little bit unstable(?)

Next steps are summary to get success to build

I made /usr/bin/ld ld.gold.

# cd /usr/bin
# mv ld ld.ORG
# ln -s ld.gold ld

I made locale UTF-8 and extracted source.

$ export LANG=ja_JP.UTF-8
$ export LC_ALL=ja_JP.UTF-8
$ tar xvvf firefox-25.0.source.tar.bz2
$ cd mozilla-release

I created .mozconfig like following.

$ cat .mozconfig
. $topsrcdir/browser/config/mozconfig
ac_add_options --enable-optimize
ac_add_options --enable-default-toolkit=cairo-gtk2
ac_add_options --disable-debug
ac_add_options --disable-tests
ac_add_options --disable-mochitest

Build!

$ nice make -f client.mk build && cd obj-i686-pc-linux-gnu/ && nice make package

I re-made /usr/bin/ld original ld(ld.bfd).

# cd /usr/bin
# rm ld
# mv ld.ORG ld