CentOSに触る vol.5 kernel

カーネルのインストール中にエラーが出た模様。

#make bzImage

中略

LD .tmp_vmlinux1
drivers/built-in.o(.devinit.text+0x51c9): In function `quirk_usb_disable_ehci':
drivers/usb/host/pci-quirks.c:678: undefined reference to `__bad_udelay'
make: *** [.tmp_vmlinux1] エラー 1

原因は不明。コンパイラが原因かなあ。。。
*1

Probably the old compiler, even though it may nominally still be
supported, doesn't generate correct code here. Since this is a
compiler problem, you ought to report it on a more appropriate mailing
list. I'm not sure which list would be best, but you can always use
LKML.

ということで、とりあえずgccのアップデートとgcc4のエイリアス作成を。

#yum gcc install

中略

# which gcc4
/usr/bin/gcc4
# alias gcc='/usr/bin/gcc4'
#

再度bzImageを作成してみる。結果はいかに?

*1:Re: Kernel 3.1 fails to build due to error in USB subsystem. http://www.spinics.net/lists/linux-usb/msg53763.html