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

sudo apt-get install gcc-aarch64-linux-gnu
Answer from user7305360 on Stack Overflow
🌐
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 ...
🌐
Arm Developer
developer.arm.com › downloads › - › arm-gnu-toolchain-downloads
Arm GNU Toolchain Downloads – Arm Developer
$ export PATH=$PATH:<install-dir>/arm-gnu-toolchain-14.3.rel1-<HOST_ARCH>-aarch64-none-elf/bin $ aarch64-none-elf-gcc --version
🌐
Debian
packages.debian.org › sid › gcc-aarch64-linux-gnu
Debian -- Details of package gcc-aarch64-linux-gnu in sid
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
🌐
Arch Linux
archlinux.org › packages › extra › x86_64 › aarch64-linux-gnu-gcc
Arch Linux - aarch64-linux-gnu-gcc 16.1.0-1 (x86_64)
View the file list for aarch64-linux-gnu-gcc · 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.
🌐
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
🌐
GNU
gcc.gnu.org › onlinedocs › gcc-8.1.0 › gcc › AArch64-Options.html
Using the GNU Compiler Collection (GCC): AArch64 Options
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, The permissible values for feature are listed in the sub-section on -march and -mcpu Feature Modifiers. Where conflicting feature modifiers are specified, the right-most feature is used. GCC ...
🌐
Arch Linux ARM
archlinuxarm.org › packages › aarch64 › gcc
gcc (aarch64) | Packages | Arch Linux ARM
Copyright ©2009-2026 Arch Linux ARM The registered trademark Linux® is used pursuant to a sublicense from LMI, the exclusive licensee of Linus Torvalds, owner of the mark on a world-wide basis. The Arch Linux™ name and logo are used under permission of the Arch Linux Project Lead
Find elsewhere
🌐
Linux Man Pages
linux.die.net › man › 1 › aarch64-linux-gnu-gcc
aarch64-linux-gnu-gcc(1) - Linux man page
When you invoke GCC , it normally does preprocessing, compilation, assembly and linking. The "overall options" allow you to stop this process at an intermediate stage. For example, the -c option says not to run the linker.
🌐
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 AArch64 systems. built from sources with latest binutils and glibc.
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 › gcc-mirror › gcc › blob › master › gcc › config › aarch64 › aarch64.h
gcc/gcc/config/aarch64/aarch64.h at master · gcc-mirror/gcc
/* Define AARCH64_FL aliases for architectural features which are protected · by -march flags in binutils but which receive no special treatment by GCC. These features are used in the aarch64-sys-regs.def file, which is copied · from Binutils. · We should try to eliminate these inconsistencies in future.
Author   gcc-mirror
🌐
Ubuntu
launchpad.net › ubuntu › jammy › +package › gcc-aarch64-linux-gnu
gcc-aarch64-linux-gnu : Jammy (22.04) : Ubuntu
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.
🌐
GNU
gcc.gnu.org › onlinedocs › gcc › AArch64-Built-in-Functions.html
AArch64 Built-in Functions (Using the GNU Compiler Collection (GCC))
unsigned int __builtin_aarch64_get_fpcr (); void __builtin_aarch64_set_fpcr (unsigned int); unsigned int __builtin_aarch64_get_fpsr (); void __builtin_aarch64_set_fpsr (unsigned int); unsigned long long __builtin_aarch64_get_fpcr64 (); void __builtin_aarch64_set_fpcr64 (unsigned long long); unsigned long long __builtin_aarch64_get_fpsr64 (); void __builtin_aarch64_set_fpsr64 (unsigned long long);
🌐
GitHub
github.com › orgs › Homebrew › discussions › 3203
Install GCC to cross-compile from x86_64 to aarch64 · Homebrew · Discussion #3203
Is it possible to cross-compile to "aarch64" (Apple Silicon) from a "x86_64" Mac with GCC, as provided by Homebrew? With the Apple clang compiler, we can simply do: $(CC) main.c -o x86_app -target ...
🌐
Arm Developer
developer.arm.com › downloads › - › gnu-a
Downloads | GNU-A Downloads – Arm Developer
Download the toolchain manifest file from the GNU Arm toolchain page on developer.arm.com, for example: gcc-arm-aarch64-none-elf-abe-manifest.txt.
🌐
Debian
packages.debian.org › stretch › gcc-aarch64-linux-gnu
Client Challenge
JavaScript is disabled in your browser · Please enable JavaScript to proceed · A required part of this site couldn’t load. This may be due to a browser extension, network issues, or browser settings. Please check your connection, disable any ad blockers, or try using a different browser