在编译uboot的时候出现了标题上的这个错误,晕死,我还是用比较新编译器编译,很多地方还是用4.6.1,我已经用到了4.7.2,都嫌弃我的编译器老,然后找到了解决办法,在这里记录一下。
uboot的源码:/arch/arm/config.mk
# Only test once
ifeq ($(CONFIG_$(SPL_)SYS_THUMB_BUILD),y)
#archprepare: checkthumb checkgcc6
archprepare: checkthumb
checkthumb:
@if test "$(call cc-name)" = "gcc" -a \
"$(call cc-version)" -lt "0404"; then \
echo -n '*** Your GCC does not produce working '; \
echo 'binaries in THUMB mode.'; \
echo '*** Your board is configured for THUMB mode.'; \
false; \
fi
#else
#archprepare: checkgcc6