QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1475|回复: 2

交叉编译

[复制链接]
发表于 2006-2-19 21:35:55 | 显示全部楼层 |阅读模式
交叉编译

交叉编译内核出错了,给我看一下呀:
/usr/local/arm/2.95.3/bin/arm-linux-gcc -D__KERNEL__ -I/root/linux-2.4.18/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -DKBUILD_BASENAME=user -c -o user.o user.c/usr/local/arm/2.95.3/bin/arm-linux-gcc -D__KERNEL__ -I/root/linux-2.4.18/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -DKBUILD_BASENAME=signal -c -o signal.o signal.c
/usr/local/arm/2.95.3/bin/arm-linux-gcc -D__KERNEL__ -I/root/linux-2.4.18/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -DKBUILD_BASENAME=sys -c -o sys.o sys.c
/usr/local/arm/2.95.3/bin/arm-linux-gcc -D__KERNEL__ -I/root/linux-2.4.18/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -DKBUILD_BASENAME=kmod -c -o kmod.o kmod.c/usr/local/arm/2.95.3/bin/arm-linux-gcc -D__KERNEL__ -I/root/linux-2.4.18/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -DKBUILD_BASENAME=context -c -o context.o context.c
/usr/local/arm/2.95.3/bin/arm-linux-gcc -D__KERNEL__ -I/root/linux-2.4.18/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -DKBUILD_BASENAME=uid16 -c -o uid16.o uid16.c
rm -f kernel.o
/usr/local/arm/2.95.3/bin/arm-linux-ld -m elf_i386 -r -o kernel.o sched.o fork.o exec_domain.o panic.o printk.o module.o exit.o itimer.o info.o time.o softirq.o resource.o sysctl.o acct.o capability.o ptrace.o timer.o user.o signal.o sys.o kmod.o context.o uid16.o
/usr/local/arm/2.95.3/bin/arm-linux-ld: unrecognised emulation mode: elf_i386
Supported emulations: armelf_linux armelf
make[2]: *** [kernel.o] 错误 1
make[2]: Leaving directory `/root/linux-2.4.18/linux/kernel'
make[1]: *** [first_rule] 错误 2
make[1]: Leaving directory `/root/linux-2.4.18/linux/kernel'
make: *** [_dir_kernel] 错误 2
[root@localhost linux]#
是什么原因呀?
发表于 2006-2-22 10:20:07 | 显示全部楼层
你的文件夹名字和/root/linux-2.4.18/linux/kernel一样吗?重新命名可能就好了
回复

使用道具 举报

发表于 2006-2-23 21:14:29 | 显示全部楼层
I am confused of "armelf_linux armelf " in the log...
Could you present your detailed steps here?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-27 08:56 , Processed in 0.150930 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表