交叉编译环境升级,arm-linux-gnueabihf-gcc升级到6,Your GCC is older than 6.0 and is not supported

上面是我创建的群聊,欢迎新朋友的加入。

今天下载Uboot,发现编译失败

交叉编译环境升级,arm-linux-gnueabihf-gcc升级到6,Your GCC is older than 6.0 and is not supported_第1张图片

看提示信息,是版本过低

查看当前版本

交叉编译环境升级,arm-linux-gnueabihf-gcc升级到6,Your GCC is older than 6.0 and is not supported_第2张图片

查看当前版本信息,果然是这个问题

修改Uboot源码

uboot的源码:/arch/arm/config.mk

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
endif
 
#checkgcc6:
#   @if test "$(call cc-name)" = "gcc" -a \
#           "$(call cc-version)" -lt "0600"; then \
#       echo '*** Your GCC is older than 6.0 and is not supported'; \
#       false; 

如果再次编译报错,那就检查是不是没有用tab,而是用的空格

交叉编译环境升级,arm-linux-gnueabihf-gcc升级到6,Your GCC is older than 6.0 and is not supported_第3张图片

你可能感兴趣的:(交叉编译环境升级,arm-linux-gnueabihf-gcc升级到6,Your GCC is older than 6.0 and is not supported)