chakokuのブログ(rev4)

テック・コミック・DTM・・・ごくまれにチャリ

ppc用にkernelをコンパイル。。エラー。。

もうやらないと思っていたけど、諸般の事情で、ppc用にkernelをコンパイルしてみた。。案の定エラーが出た。。
少しググルと、アーキ依存のヘッダファイルで定義が抜けているらしい。 menuconfigの段階で、#defineが正しく設定できていないのかも。もうちょっと調べるか、やっぱりこういうことはやめとくべきか。。*1
ちなみにハード等は以下
CPU:PowerPC 405GP OpenBlockSS相当のセット

gcc version 2.95.3 Kernel:linux-2.4.10 (PlatHome版)


[user_foo@LinuxServer kernel]$ make bzImage
make: *** Warning: File `Rules.make' has modification time in the future (2001-10-03 19:12:37 > 2000-01-01 09:44:44)
make[1]: Entering directory `/home/user_foo/tech/uc/kernel/linux-2.4.10-PlatHome-20030324-1/arch/ppc/kernel'
make[1]: *** Warning: File `/home/user_foo/tech/uc/kernel/linux-2.4.10-PlatHome-20030324-1/Rules.make' has modification time in the future (2001-10-03 19:12:37 > 2000-01-01 09:44:46)
gcc -I/home/user_foo/tech/uc/kernel/linux-2.4.10-PlatHome-20030324-1/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -D__KERNEL__ -fno-builtin -o checks checks.c
checks.c: In function `main':
checks.c:42: warning: implicit declaration of function `printf'
./checks
Task size : 1536 bytes
Tss size : 832 bytes
pt_regs size : 176 bytes
Kernel stack size: 6656 bytes
make[1]: warning: Clock skew detected. Your build may be incomplete.
make[1]: Leaving directory `/home/user_foo/tech/uc/kernel/linux-2.4.10-PlatHome-20030324-1/arch/ppc/kernel'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include scripts/split-include.c
scripts/split-include include/linux/autoconf.h include/config
gcc -D__KERNEL__ -I/home/user_foo/tech/uc/kernel/linux-2.4.10-PlatHome-20030324-1/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -D__powerpc__ -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -mcpu=403 -c -o init/main.o init/main.c
init/main.c: In function `do_basic_setup':
init/main.c:679: warning: large integer implicitly truncated to unsigned type
init/main.c: In function `prepare_namespace':
init/main.c:766: `bd_t' undeclared (first use in this function)
init/main.c:766: (Each undeclared identifier is reported only once
init/main.c:766: for each function it appears in.)
init/main.c:766: `bip' undeclared (first use in this function)
init/main.c:766: parse error before `)'
init/main.c:790: warning: large integer implicitly truncated to unsigned type
init/main.c: In function `init':
init/main.c:862: warning: large integer implicitly truncated to unsigned type
make: *** [init/main.o] Error 1
[user_foo@LinuxServer kernel]$

*1:なんでこの時代に10年以上も昔のボードをいじってるのか。。俺。。