kernel编译报错
make: “include/generated/mach-types.h”是最新的。HOSTCCscripts/dtc/livetree.o
HOSTCCscripts/dtc/srcpos.o
CC kernel/bounds.s
cc1: 错误: unrecognized command line option ‘-mlittle-endian’
cc1: 错误: unrecognized command line option ‘-mno-thumb-interwork’
kernel/bounds.c:1:0: 错误: ABI (aapcs-linux)未知,-mabi= switch
kernel/bounds.c:1:0: 错误: -march= switch所带参数(armv5t)不正确
make: *** 错误 1
make: *** 错误 2
make: *** 正在等待未完成的任务....
HOSTCCscripts/dtc/treesource.o
HOSTCCscripts/dtc/util.o
HOSTLDscripts/dtc/dtc
make: *** 错误 2
楼主搭建环境都安装成功了吗?这个貌似是交叉编译的问题 我使用ubuntu12.04版系统,环境都按你给的脚本执行,/home/sky000/Download/arm.sh;/home/sky000/Download/java6.sh;
/home/sky000/Download/ubuntu1204_evn.sh,最后还apt-get update,但还是报错。。 还有android的源码,我在百度云盘下载失败,固件也无法下载。。 应该是交叉工具键没有配置正确。
http://blog.csdn.net/bugouyonggan/article/details/21712659 谢谢,确定是编译路径有问题,但之后重新编译还是有上贴的报错。。
arm-linux-gnueabihf-ld: BFD (GNU Binutils for Ubuntu) 2.22 internal error, aborting at ../../bfd/elflink.c line 8758 in elf_link_output_extsym
arm-linux-gnueabihf-ld: Please report this bug.
make: *** 错误 1
make: *** 错误 2
把全部命令完整地贴一下吧,只有部分信息,无法判断。 $export ARCH=arm
$export CROSS_COMPILE=arm-linux-gnueabihf-
$make firefly-rk3288-linux_defconfig
$make -j8 firefly-rk3288.img
......
CC drivers/net/wireless/rockchip_wlan/rtl8188eu/hal/OUTSRC/rtl8188e/odm_RTL8188E.o
CC drivers/net/wireless/rockchip_wlan/rtl8188eu/platform/platform_ops.o
CC drivers/net/wireless/rockchip_wlan/rtl8188eu/core/rtw_mp.o
CC drivers/net/wireless/rockchip_wlan/rtl8188eu/core/rtw_mp_ioctl.o
LD drivers/net/wireless/rockchip_wlan/rtl8188eu/8188eu.o
LD drivers/net/wireless/rockchip_wlan/rtl8188eu/built-in.o
LD drivers/net/wireless/built-in.o
LD drivers/net/built-in.o
LD drivers/built-in.o
LINK vmlinux
LD vmlinux.o
MODPOST vmlinux.o
LD pie/libpie_stage1.o
OBJCOPY pie/pie_stage1.o
OBJCOPY pie/libpie_stage2.o
LD pie/pie_stage2.o
arm-linux-gnueabihf-ld: BFD (GNU Binutils for Ubuntu) 2.22 internal error, aborting at ../../bfd/elflink.c line 8758 in elf_link_output_extsym
arm-linux-gnueabihf-ld: Please report this bug.
make: *** 错误 1
make: *** 错误 2 sky000 发表于 2014-12-18 16:22
$export ARCH=arm
$export CROSS_COMPILE=arm-linux-gnueabihf-
$make firefly-rk3288-linux_defconfi ...
我使用了 gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux/bin/arm-linux-gnueabihf- 这个编译器后,通过编译了,生成了kernel.img,你可以尝试下
页:
[1]