2.6.9(同じバージョン)の64ビットLinuxホスト上に32ビットLinuxカーネル2.6.9をビルドしようとしています。いくつかのグーグル検索を行い、以下を試しました:
ステップ1)ARCH = i386 CFLAGS =-m32menuconfigを作成します
ステップ2)ARCH = i386 CFLAGS=-m32にする
ステップ1は大丈夫でした。しかし、ステップ2で次のエラーが発生しました。私は何を間違えましたか?
make ARCH=i386 CFLAGS=-m32
< snip >
In file included from include/asm/smp.h:18,
from include/linux/smp.h:17,
from include/linux/sched.h:23,
from arch/i386/kernel/asm-offsets.c:7:
include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory
In file included from include/asm/smp.h:18,
from include/linux/smp.h:17,
from include/linux/sched.h:23,
from arch/i386/kernel/asm-offsets.c:7:
include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (not in a function)
include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
In file included from include/linux/smp.h:17,
from include/linux/sched.h:23,
from arch/i386/kernel/asm-offsets.c:7:
include/asm/smp.h:72:26: mach_apicdef.h: No such file or directory
make[1]: *** [arch/i386/kernel/asm-offsets.s] Error 1
make: *** [arch/i386/kernel/asm-offsets.s] Error 2