# cd /usr/src; make world 2>&1 | tee /var/tmp/world.log # sh 系 とか # cd /usr/src; make world |& tee /var/tmp/world.log # csh 系とかやっておいて
$ wlog /var/tmp/world.log
/var/tmp/world.log
26 2:>>> Rebuilding the temporary build tree
176 28:>>> stage 1: bootstrap tools
2235 204:>>> stage 2: rebuilding the object tree
109 2439:>>> stage 2: build tools
530 2548:>>> stage 3: cross tools
3078:/var/tmp/world.log
てな感じで使う。
右側は grep -n '^>>>' /var/tmp/world.log の出力で、 数字は行番号。 左側の数字は、その stage の行数を表す。 上の例では、stage 1 は 28 行目から 203 行目まで、176 行あるということがわかる。
んで、リファレンスがあると「あとどれくらい」ってのもわかるんだけど、
4.0-STABLE の場合はこんな感じだ
。
/var/tmp/world.log
3 2:>>> elf make world started on Fri Mar 31 10:50:57 JST 2000
26 5:>>> Rebuilding the temporary build tree
176 31:>>> stage 1: bootstrap tools
2235 207:>>> stage 2: rebuilding the object tree
109 2442:>>> stage 2: build tools
767 2551:>>> stage 3: cross tools
221 3318:>>> stage 4: populating /usr/obj/usr/src/i386/usr/include
12702 3539:>>> stage 4: building libraries
5073 16241:>>> stage 4: make dependencies
10934 21314:>>> stage 4: building everything..
13 32248:>>> Making hierarchy
7109 32261:>>> Installing everything..
6 39370:>>> Rebuilding man page indices
1 39376:>>> elf make world started on Fri Mar 31 10:50:57 JST 2000
2 39377:>>> elf make world completed on Fri Mar 31 12:10:54 JST 2000
39379:/var/tmp/world.log
# cd /usr/src/sys # patch -p -s < smp-patch-07.diffその他、/usr/src/sys/posix4/ksched.c に
#include <machine/ipl.h>を追加する必要があった。 んで、make -j 4 buildworld した。
BGL カーネルだと、ロードアベレージが 8 位まであがり、
X サーバも頻繁に止まり、マウスがカクカクする。
ちょっと使いにくいので、ふつーのカーネルに戻したナリ
。