On Sat, 9 Jan 2021 at 11:37, xian li <lixian2008cool@xxxxxxxxx> wrote: > > Thanks for your information, I have tried to use existing aarch64 > toolchain to compile gcc only, but there is some problem( > eg. '/usr/lib64/libgmp.la' is not a valid libtool archive even though > I have configure with --with-gmp) , it make me think that I should > compile gcc from scratch(glic,linux-kernel headers, mpfr,gmp,mpc so > on), No. > am I right, or there is some way to use existing toolchain to build > modified gcc? Just follow the steps at https://gcc.gnu.org/wiki/InstallingGCC The contrib/download_prerequisites script makes it very easy, you don't need to install GMP etc. separately.