From: Thomas Petazzoni Date: Sun, 4 Aug 2019 06:50:48 +0000 (+0200) Subject: support/config-fragments/autobuild: set gcc version for RISC-V toolchains X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dc938c221d36c2dd7d22cfd19259662d823a2376;p=buildroot.git support/config-fragments/autobuild: set gcc version for RISC-V toolchains Prior to b3ba26150d49dbc6b06ad402c5f6fbd398a71451 ("toolchain/toolchain-external/toolchain-external-custom: be more flexible on gcc version"), the default gcc version selected by Buildroot for custom external toolchain was affected by the BR2_ARCH_NEEDS_GCC_AT_LEAST_xyz definitions. Since BR2_riscv selects BR2_ARCH_NEEDS_GCC_AT_LEAST_7, gcc 7.x was the default gcc version assumed to be used in a custom RISC-V external toolchain, so our config snippets for RISC-V toolchains were correct. With b3ba26150d49dbc6b06ad402c5f6fbd398a71451 applied, the default gcc version assumed for custom external toolchains is the latest one (currently gcc 9.x), while our RISC-V toolchains use gcc 7.x. So we now need to explicitly give the gcc version used by our RISC-V toolchains, otherwise the build fails with: Incorrect selection of gcc version: expected 9.x, got 7.4.0 Fixes: http://autobuild.buildroot.net/results/b872befe1adec2633b9cbcc49bc0eb7619f606c2/ Signed-off-by: Thomas Petazzoni --- diff --git a/support/config-fragments/autobuild/br-riscv32.config b/support/config-fragments/autobuild/br-riscv32.config index c64dd79b4d..cea472400b 100644 --- a/support/config-fragments/autobuild/br-riscv32.config +++ b/support/config-fragments/autobuild/br-riscv32.config @@ -3,6 +3,7 @@ BR2_RISCV_32=y BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y BR2_TOOLCHAIN_EXTERNAL_URL="http://autobuild.buildroot.net/toolchains/tarballs/br-riscv32-glibc-2019.05.1.tar.bz2" +BR2_TOOLCHAIN_EXTERNAL_GCC_7=y BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_0=y BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y BR2_TOOLCHAIN_EXTERNAL_CXX=y diff --git a/support/config-fragments/autobuild/br-riscv64.config b/support/config-fragments/autobuild/br-riscv64.config index 4c156e9e34..2b6ba7094d 100644 --- a/support/config-fragments/autobuild/br-riscv64.config +++ b/support/config-fragments/autobuild/br-riscv64.config @@ -2,6 +2,7 @@ BR2_riscv=y BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y BR2_TOOLCHAIN_EXTERNAL_URL="http://autobuild.buildroot.net/toolchains/tarballs/br-riscv64-glibc-2019.05.1.tar.bz2" +BR2_TOOLCHAIN_EXTERNAL_GCC_7=y BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_1=y BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y BR2_TOOLCHAIN_EXTERNAL_CXX=y