From cc44a47b5acc8a5fe0e70a7da6bdecf4f6450417 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sun, 11 Jun 2023 01:22:18 +0800 Subject: [PATCH] loongarch: hostreq: Bump Binutils and GCC requirement Binutils 2.38 is the first release supporting LoongArch. Maybe we should make it 2.40 (when the stupid "stack-based relocs" are gone) but with our cross-compile method it should not make a significant difference. GCC 12.1 is the first release supporting LoongArch but it suffers a severe bug [1] and it may miscompile GCC pass 1, so require 12.2 here. [1]:https://gcc.gnu.org/PR106096 --- chapter02/hostreqs.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/chapter02/hostreqs.xml b/chapter02/hostreqs.xml index 3f9131f77..88a130745 100644 --- a/chapter02/hostreqs.xml +++ b/chapter02/hostreqs.xml @@ -44,7 +44,7 @@ - Binutils-2.13.1 (Versions + Binutils-2.38 (Versions greater than &binutils-version; are not recommended as they have not been tested) @@ -72,7 +72,7 @@ - GCC-5.1 including the C++ + GCC-12.2 including the C++ compiler, g++ (Versions greater than &gcc-version; are not recommended as they have not been tested). C and C++ standard libraries (with headers) must also be present so the C++ compiler can @@ -230,13 +230,13 @@ ver_kernel() # Coreutils first because-sort needs Coreutils >= 7.0 ver_check Coreutils sort 7.0 || bail "--version-sort unsupported" ver_check Bash bash 3.2 -ver_check Binutils ld 2.13.1 +ver_check Binutils ld 2.38 ver_check Bison bison 2.7 ver_check Diffutils diff 2.8.1 ver_check Findutils find 4.2.31 ver_check Gawk gawk 4.0.1 -ver_check GCC gcc 5.1 -ver_check "GCC (C++)" g++ 5.1 +ver_check GCC gcc 12.2 +ver_check "GCC (C++)" g++ 12.2 ver_check Grep grep 2.5.1a ver_check Gzip gzip 1.3.12 ver_check M4 m4 1.4.10