Install the Ubuntu toolchain gcc-aarch64-linux-gnu GNU C compiler for the arm64 architecture:
$ sudo apt-get install gcc-aarch64-linux-gnu
Export the environment variables:
$ export ARCH=arm64
$ export CROSS_COMPILE=/usr/bin/aarch64-linux-gnu-
you can refer to these steps to download the ubuntu toolchain