x86 地獄

dev-java/servletapi の emerge で失敗します!
とりあえず emerge --sync だ! …って gentoo-source-2.6.11-r11 が出てるし…

>emerge -uDpv world

These are the packages that I would merge, in order:

Calculating world dependencies ...done!
[ebuild     U ] sys-devel/binutils-config-1.8-r3 [1.8-r2] 0 kB
[ebuild     U ] sys-devel/binutils-2.16.1 [2.16-r1] -debug -multislot -multitarget -nls -test 12,390 kB
[ebuild     U ] sys-devel/gcc-config-1.3.11-r3 [1.3.11-r2] 0 kB
[ebuild     U ] sys-apps/grep-2.5.1-r8 [2.5.1-r7] -build -debug -nls -pcre -static 0 kB
[ebuild  NS   ] sys-kernel/gentoo-sources-2.6.11-r11  -build -doc -symlink (-ultra1) 255 kB
[ebuild     U ] sys-apps/pciutils-2.1.11-r5 [2.1.11-r4] -debug 0 kB
[ebuild     U ] x11-base/xorg-x11-6.8.2-r2 [6.8.2-r1] -3dfx -3dnow +bitmap-fonts +cjk -debug -dlloader -dmx -doc -font-server -insecure-drivers -ipv6 -minimal +mmx -nls +opengl +pam -sdk +sse -static +truetype-fonts +type1-fonts (-uclibc) -xprint +xv 168 kB
[ebuild     U ] x11-terms/xterm-200-r3 [200-r2] -Xaw3d -debug -toolbar +truetype -unicode 0 kB
[ebuild     U ] net-p2p/azureus-bin-2.3.0.2 [2.3.0.0] +gtk -kde 6,463 kB
[ebuild  NS   ] dev-java/servletapi-2.4-r2  -doc -jikes -source 0 kB
[ebuild     U ] dev-java/bsh-2.0_beta2 [2.0_beta1-r1] -doc -gnome -jikes +junit* -kde +readline 1,020 kB
[ebuild     U ] dev-java/commons-net-1.3.0-r1 [1.2.2-r1] -doc -examples -jikes +junit* -source 260 kB
[ebuild     U ] dev-java/ant-tasks-1.6.2-r10 [1.6.2-r9] -javamail -noantlr -nobcel -nobeanutils -nobsf -nobsh -nocommonslogging -nocommonsnet -nojdepend -nojsch -nojython -nolog4j -nooro -noregexp -norhino -noxalan -noxerces 0 kB

Total size of downloads: 20,559 kB

emerge するとしょっぱなの sys-devel/binutils-config からこける。

checking for C compiler default output... configure: error: C compiler cannot create executables

バイナリが作れないとおっしゃる。なんじゃらほい。あと、'as' が無いともおっしゃっていた。
"which as" すると確かに無いという。 /usr/bin には 'as' はあるのに…
で、わかった。 /usr/bin/as からの symbolic link が途中で切れてる。切れてる箇所は /usr/i686-pc-linux-gnu/bin

>ls /usr/i686-pc-linux-gnu/bin
total 0
lrwxrwxrwx  1 root root 50  6月 12 21:34 addr2line -> /usr/i686-pc-linux-gnu/binutils-bin/2.16/addr2line
lrwxrwxrwx  1 root root 43  6月 12 21:34 ar -> /usr/i686-pc-linux-gnu/binutils-bin/2.16/ar
lrwxrwxrwx  1 root root 43  6月 12 21:34 as -> /usr/i686-pc-linux-gnu/binutils-bin/2.16/as
lrwxrwxrwx  1 root root 48  6月 12 21:34 c++filt -> /usr/i686-pc-linux-gnu/binutils-bin/2.16/c++filt
lrwxrwxrwx  1 root root 46  6月 12 21:34 gprof -> /usr/i686-pc-linux-gnu/binutils-bin/2.16/gprof
lrwxrwxrwx  1 root root 43  6月 12 21:34 ld -> /usr/i686-pc-linux-gnu/binutils-bin/2.16/ld
lrwxrwxrwx  1 root root 43  6月 12 21:34 nm -> /usr/i686-pc-linux-gnu/binutils-bin/2.16/nm
lrwxrwxrwx  1 root root 48  6月 12 21:34 objcopy -> /usr/i686-pc-linux-gnu/binutils-bin/2.16/objcopy
lrwxrwxrwx  1 root root 48  6月 12 21:34 objdump -> /usr/i686-pc-linux-gnu/binutils-bin/2.16/objdump
lrwxrwxrwx  1 root root 47  6月 12 21:34 ranlib -> /usr/i686-pc-linux-gnu/binutils-bin/2.16/ranlib
lrwxrwxrwx  1 root root 48  6月 12 21:34 readelf -> /usr/i686-pc-linux-gnu/binutils-bin/2.16/readelf
lrwxrwxrwx  1 root root 45  6月 12 21:34 size -> /usr/i686-pc-linux-gnu/binutils-bin/2.16/size
lrwxrwxrwx  1 root root 48  6月 12 21:34 strings -> /usr/i686-pc-linux-gnu/binutils-bin/2.16/strings
lrwxrwxrwx  1 root root 46  6月 12 21:34 strip -> /usr/i686-pc-linux-gnu/binutils-bin/2.16/strip

/2.16/ なんてディレクトリは無い。 /2.16.1/ で張り直し。
とりあえず emerge -uDv world が進み始めた。
問題の dev-java/servletapi のビルドにたどり着くまでにかなり掛かりそう。
うげ、エラー代わらず。

>java-config -L

ぎゃぼ。java_config が無いと言われる。決定的に何か足りないみたい。
gentoo forum での発言を試してみる。

>emerge -ep world | grep java | grep -v jdk | sed -e 's/.*] /=/' | xargs emerge --oneshot -pv

これでアップデートが必要な java 関連の portage が列挙される。結構あるけど emerge してみる。
emerge するのは最後の -pv から p を抜けば良い。
おっし。 no error で終了。 jakarta も OK。

最後に gentoo-source-2.6.11-r11 を build して終わりだ。

Linux localhost 2.6.11-gentoo-r11 #1 Tue Jun 14 01:50:00 JST 2005 i686 Intel(R) Pentium(R) M processor 1.60GHz GenuineIntel GNU/Linux

/etc/dnsdomainname と /etc/hostname を削除したから hostname が localhost になったけど、まぁいいや。
あと、 gentoo-source-2.6.11 の r8 と r9 は要らないのですて。