Maybe aarch64-linux-gnu-gcc is not installed. Try

sudo apt-get install gcc-aarch64-linux-gnu
Answer from user7305360 on Stack Overflow
🌐
Arch Linux
archlinux.org › packages › extra › x86_64 › aarch64-linux-gnu-gcc
Arch Linux - aarch64-linux-gnu-gcc 15.2.0-1 (x86_64)
View the soname list for aarch64-linux-gnu-gcc · Copyright © 2002-2026 Judd Vinet, Aaron Griffin and Levente Polyák. The Arch Linux name and logo are recognized trademarks. Some rights reserved.
🌐
GNU
gcc.gnu.org › onlinedocs › gcc › AArch64-Options.html
AArch64 Options (Using the GNU Compiler Collection (GCC))
The value ‘native’ is available on native AArch64 GNU/Linux and causes the compiler to pick the architecture of the host system. This option has no effect if the compiler is unable to recognize the architecture of the host system. When -march=native is given and no other -mcpu or -mtune is given then GCC ...
🌐
Arch Linux ARM
archlinuxarm.org › packages › aarch64 › gcc
gcc (aarch64) | Packages | Arch Linux ARM
The Arch Linux™ name and logo are used under permission of the Arch Linux Project Lead.
🌐
Debian
packages.debian.org › sid › gcc-aarch64-linux-gnu
Debian -- Details of package gcc-aarch64-linux-gnu in sid
dep: gcc-15-aarch64-linux-gnu (>= 15.2.0-2~) GNU C compiler for the aarch64-linux-gnu architecture · rec: libc-dev [arm64] Package not available · rec: libc6-dev [arm64] GNU C Library: Development Libraries and Header Files also a virtual package provided by libc6.1-dev ·
🌐
Linux Man Pages
linux.die.net › man › 1 › aarch64-linux-gnu-gcc
aarch64-linux-gnu-gcc(1) - Linux man page
GNU/Linux Options -mglibc -muclibc -mbionic -mandroid -tno-android-cc -tno-android-ld · H8/300 Options -mrelax -mh -ms -mn -mint32 -malign-300 · HPPA Options -march=architecture-type -mbig-switch -mdisable-fpregs -mdisable-indexing -mfast-indirect-calls -mgas -mgnu-ld -mhp-ld -mfixed-range=register-range -mjump-in-delay -mlinker-opt -mlong-calls -mlong-load-store -mno-big-switch -mno-disable-fpregs -mno-disable-indexing -mno-fast-indirect-calls -mno-gas -mno-jump-in-delay -mno-long-load-store -mno-portable-runtime -mno-soft-float -mno-space-regs -msoft-float -mpa-risc-1-0 -mpa-risc-1-1 -mpa-risc-2-0 -mportable-runtime -mschedule=cpu-type -mspace-regs -msio -mwsio -munix=unix-std -nolibdld -static -threads
🌐
Arm Developer
developer.arm.com › downloads › - › gnu-a
Downloads | GNU-A Downloads – Arm Developer
The package names of the released GNU toolchain binaries have the following naming convention: gcc-arm-<Release Version>-<Host>-<Target Triple>.tar.xz · Extract XZ compressed release archive using TAR archiving utility: $ tar -xJf <toolchain binary> -C <destination directory> Example for Linux(x86_64) hosted for AArch64 Linux target
Find elsewhere
🌐
Ubuntu
launchpad.net › ubuntu › jammy › +package › gcc-aarch64-linux-gnu
gcc-aarch64-linux-gnu : Jammy (22.04) : Ubuntu - Launchpad
This is the GNU C compiler, a fairly portable optimizing compiler for C. . This is a dependency package providing the default GNU C cross-compiler for the arm64 architecture. gcc-defaults 1.193ubuntu1 source package in Ubuntu · gcc-aarch64...
🌐
Fedora
packages.fedoraproject.org › pkgs › cross-gcc › gcc-aarch64-linux-gnu
gcc-aarch64-linux-gnu - Fedora Packages
Cross-build binary utilities for aarch64-linux-gnu ... Cross-build GNU C compiler. Only building kernels is currently supported. Support for cross-building user space programs is not currently provided as that would massively multiply the number of packages. ... License(s): GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl
🌐
Arch Linux Man Pages
man.archlinux.org › man › aarch64-linux-gnu-gcc.1.en
aarch64-linux-gnu-gcc(1) — Arch manual pages
March 18, 2020 - GNU/Linux Options (GNU/Linux Options) -mglibc -muclibc -mmusl -mbionic -mandroid -tno-android-cc -tno-android-ld · H8/300 Options (H8/300 Options) -mrelax -mh -ms -mn -mexr -mno-exr -mint32 -malign-300 · HPPA Options (HPPA Options) -march=architecture-type -matomic-libcalls -mbig-switch -mcaller-copies -mdisable-fpregs -mdisable-indexing -mordered -mfast-indirect-calls -mgas -mgnu-ld -mhp-ld -mfixed-range=register-range -mcoherent-ldcw -mjump-in-delay -mlinker-opt -mlong-calls -mlong-load-store -mno-atomic-libcalls -mno-disable-fpregs -mno-disable-indexing -mno-fast-indirect-calls -mno-gas -mno-jump-in-delay -mno-long-load-store -mno-portable-runtime -mno-soft-float -mno-space-regs -msoft-float -mpa-risc-1-0 -mpa-risc-1-1 -mpa-risc-2-0 -mportable-runtime -mschedule=cpu-type -mspace-regs -msoft-mult -msio -mwsio -munix=unix-std -nolibdld -static -threads
🌐
Arch Linux
security.archlinux.org › package › aarch64-linux-gnu-gcc
aarch64-linux-gnu-gcc - Arch Linux
Arch Linux · Packages · Forums · GitLab · Security · Download · issues · advisories · stats · login
🌐
GitHub
github.com › radcolor › aarch64-linux-gnu
GitHub - radcolor/aarch64-linux-gnu: Bleeding edge GNU GCC toolchain (CC only) built from sources using latest binutils and glibc · GitHub
Bleeding edge GNU GCC toolchain (CC only) built from sources using latest binutils and glibc - radcolor/aarch64-linux-gnu
Starred by 32 users
Forked by 15 users
Languages   C++ 47.2% | C 38.5% | Roff 11.3% | Perl 1.8% | Python 0.4% | XC 0.3%
🌐
GitHub
github.com › najahiiii › aarch64-linux-gnu
GitHub - najahiiii/aarch64-linux-gnu: GNU GCC Toolchain
LINARO (GCC) ARM64 · 8.3.0 · LINARO 8.3.0 - 20190402 · git clone https://github.com/najahiiii/aarch64-linux-gnu.git -b linaro8-20190402 · Fine · Date · Variant · Arch · Version · Repo Link · Clone · Status · 01/03/2019 · GNU (GCC) ARM64 · 4.9.4 · GCC 4.9.4 - 20190301 ·
Starred by 11 users
Forked by 12 users
🌐
Pkgs.org
pkgs.org › download › gcc-aarch64-linux-gnu
Gcc-aarch64-linux-gnu Download (DEB, RPM)
Download gcc-aarch64-linux-gnu linux packages for ALT Linux, CentOS, Debian, Fedora, Mageia, Ubuntu · Filter: Distros: all Arches: arm intel Types: official thirdparty
🌐
Debian
packages.debian.org › gcc-aarch64-linux-gnu
Debian -- Package Search Results -- gcc-aarch64-linux-gnu
experimental (devel): GNU C compiler for the arm64 architecture 4:16-20251130-1: amd64 arm64 i386 ppc64el s390x x32
🌐
Internet Archive
archive.org › software
aarch64-linux-gnu-gcc package archive from Arch Linux : Arch Linux : Free Download, Borrow, and Streaming : Internet Archive
June 4, 2018 - The GNU Compiler Collection - cross compiler for ARM64 target This item contains old versions of the Arch Linux package for aarch64-linux-gnu-gcc. Website of...
🌐
Arch Linux Man Pages
man.archlinux.org › man › extra › aarch64-linux-gnu-gcc › aarch64-linux-gnu-g++.1.en
aarch64-linux-gnu-g++(1) — Arch manual pages
GNU/Linux Options (GNU/Linux Options) -mglibc -muclibc -mmusl -mbionic -mandroid -tno-android-cc -tno-android-ld · H8/300 Options (H8/300 Options) -mrelax -mh -ms -mn -mexr -mno-exr -mint32 -malign-300 · HPPA Options (HPPA Options) -march=architecture-type -matomic-libcalls -mbig-switch ...