make[2]: *** 正在等待未完成的任务....
make: *** [/opt/buildroot-2012.08/output/toolchain/gcc-4.5.4-initial/.compiled] 错误 2
如果编译交叉编译器是出现这些问题可能就是pc上的编译器和交叉编译器的gcc版本不同引起的,这时候看一下PC的版本:
[fulinux@ubuntu buildroot-2012.08]$ gcc --version
gcc (Ubuntu/Linaro 4.8.1-10ubuntu8) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
这是4.8.1的版本,而交叉编译器的gcc版本是4.5.4版本。
在交叉编译器的.config文件中作如下类似的修改:
[fulinux@ubuntu buildroot-2012.08]$ vim .config
#
# GCC Options
#
# BR2_GCC_VERSION_4_3_X is not set
# BR2_GCC_VERSION_4_4_X is not set
#BR2_GCC_VERSION_4_5_X=y
# BR2_GCC_VERSION_4_6_X is not set
BR2_GCC_VERSION_4_7_X=y
# BR2_GCC_VERSION_SNAP is not set
BR2_GCC_SUPPORTS_FINEGRAINEDMTUNE=y
BR2_GCC_VERSION="4.8.1"
BR2_EXTRA_GCC_CONFIG_OPTIONS=""
# BR2_INSTALL_OBJC is not set
# BR2_INSTALL_FORTRAN is not set
BR2_GCC_SHARED_LIBGCC=y
BR2_GCC_ENABLE_TLS=y
# BR2_GCC_ENABLE_OPENMP is not set
。。。。
> 5. gcc 4.7.x (BR2_GCC_VERSION_4_7_X)
6. gcc snapshot (BR2_GCC_VERSION_SNAP)
choice[1-6?]: 5