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

sudo apt-get install gcc-aarch64-linux-gnu
Answer from user7305360 on Stack Overflow
🌐
Toradex Community
community.toradex.com › technical support
Aarch64-none-linux-gnu-gcc: not found - Technical Support - Toradex Community
July 11, 2024 - Hi, i am using colibri-imx6ull SOM and trying to create the costume linux by using “Build U-Boot From Source Code | Toradex Developer Center” right now i am in the phase of host image creation in host device, while i am trying to follow the same i am facing the following issue lcl@lcl-Latitude-5430:~/workdir/u-boot$ make mrproper /bin/sh: 1: aarch64-none-linux-gnu-gcc: not found make: aarch64-none-linux-gnu-gcc: No such file or directory /bin/sh: 1: aarch64-none-linux-gnu-gcc: not found ...
🌐
Stack Overflow
stackoverflow.com › questions › 72183352 › bin-sh-aarch64-linux-gnu-gcc-ar-command-not-found-on-centos-7
centos7 - /bin/sh: aarch64-linux-gnu-gcc-ar: command not found on centos-7 - Stack Overflow
Sorry, the file 'aarch64-linux-gnu-gcc-ar' appeared first time with gcc v5.3.1 : Fedora 22 packages archives.fedoraproject.org/pub/archive/fedora/linux/updates/22 ..... + archives.fedoraproject.org/pub/archive/fedora/linux/releases/22/… .........
🌐
GitHub
github.com › openssl › openssl › issues › 14221
aarch64-linux-gnu-gccranlib: not found · Issue #14221 · openssl/openssl
Currently facing issues with the 'make install' command. install ./include/openssl/x509v3.h -> /usr/include/openssl/x509v3.h install ./include/openssl/x509v3err.h -> /usr/include/openssl/x509v3err.h install libcrypto.a -> /usr/lib/libcrypto.a /bin/sh: 5: aarch64-linux-gnu-gccranlib: not found Makefile:311: recipe for target 'install_dev' failed make: *** [install_dev] Error 127
🌐
NVIDIA Developer Forums
forums.developer.nvidia.com › developer tools › other tools
Make clean: gcc not found - Other Tools - NVIDIA Developer Forums
March 19, 2020 - Hi, I am rebuilding the Linux kernel for a NANO device. “make ARCH=arm64 O=$TEGRA_KERNEL_OUT tegra_defconfig” was successful. But “make mrproper” or “make clean” generates the following error: make: /l4t-gcc/gcc-lin…
🌐
Friendlyarm
friendlyarm.net › forum › topic › 5239
arm-linux-gcc command not found - FriendlyARM
June 6, 2013 - Thanks, i did it and now i am getting a new error. prateek@ubuntu:/host/xilinx_example/ZYNQ_TRD_HOME/u-boot-xlnx$ make zynq_zc70xConfiguring for zynq_zc70x board... make make[1]: Entering directory `/host/xilinx_example/ZYNQ_TRD_HOME/u-boot-xlnx' Generating include/autoconf.mk cc1: error: unrecognized command line option "-mno-unaligned-access" cc1: error: unrecognized command line option "-mno-unaligned-access" cc1: error: unrecognized command line option "-fstack-usage" Generating include/autoconf.mk.dep cc1: error: unrecognized command line option "-mno-unaligned-access" cc1: error: unrecog
🌐
Medium
medium.com › geekculture › error-command-usr-bin-aarch64-linux-gnu-gcc-failed-with-exit-code-1-36dfac6c72d6
error: command ‘/usr/bin/aarch64-linux-gnu-gcc’ failed with exit code 1 - Geek Culture - Medium
October 14, 2022 - error: command ‘/usr/bin/aarch64-linux-gnu-gcc’ failed with exit code 1 · ~ #include <Python.h> ^~~~~~~~~~ compilation terminated. ~ ~ legacy-install-failure ~ You need Python header files. You can solve the problem by installing pythonx.x-dev with apt-get. (replace x.x with the python version you are using) sudo apt-get install python3.8-dev · After that, it will be installed without issues. Note: If it is not Python3, python-dev seems to be the way to go.
Find elsewhere
🌐
Linux Man Pages
linux.die.net › man › 1 › aarch64-linux-gnu-gcc
aarch64-linux-gnu-gcc(1) - Linux man page
The option -fno-gnu89-inline explicitly tells GCC to use the C99 semantics for "inline" when in C99 or gnu99 mode (i.e., it specifies the default behavior). This option was first supported in GCC 4.3. This option is not supported in -std=c90 or -std=gnu90 mode.
🌐
GitHub
github.com › NVIDIA-AI-IOT › tf_trt_models › issues › 25
Installation error: command 'aarch64-linux-gnu-gcc' failed with exit status 1 · Issue #25 · NVIDIA-AI-IOT/tf_trt_models
October 24, 2018 - In file included from /tmp/pip-install-s479x1s5/h5py/h5py/defs.c:654:0: /tmp/pip-install-s479x1s5/h5py/h5py/api_compat.h:27:18: fatal error: hdf5.h: No such file or directory compilation terminated. error: command 'aarch64-linux-gnu-gcc' failed with exit status 1
Author   AtomicJosh
🌐
Texas Instruments E2E
e2e.ti.com › support › processors-group › processors › f › processors-forum › 1173632 › processor-sdk-am64x-am64-compiler-aarch64-linux-gnu-gcc
PROCESSOR-SDK-AM64X: AM64 compiler : aarch64-linux-gnu-gcc? - Processors forum - Processors - TI E2E support forums
November 22, 2022 - bash: aarch64-linux-gnu-gcc: command not found mk/compile.mk:250: recipe for target 'out/arm-plat-k3/core/include/generated/.asm-defines.s' failed make: *** [out/arm-plat-k3/core/include/generated/.asm-defines.s] Error 127
🌐
GitHub
github.com › dani-garcia › vaultwarden › issues › 322
Package gcc-aarch64-linux-gnu is not available · Issue #322 · dani-garcia/vaultwarden
January 1, 2019 - Please forgive me if this isn't an issue and I am doing something wrong, complete docker noob here. Anyway when trying to build the docker image for arm using this command: sudo docker build -t bitwardenarm -f Dockerfile.aarch64 . The gcc package is not found. Package gcc-aarch64-linux-gnu is not ...
Author   darrenjl0
🌐
Stack Overflow
stackoverflow.com › questions › 67014598 › aarch64-linux-gnu-gcc-error-unrecognized-command-line-option-i
c++ - aarch64-linux-gnu-gcc: error: unrecognized command line option ‘-i’ - Stack Overflow
April 9, 2021 - I use both native and cross compiler(gcc and aarch64-linux-gnu) but both produces same result, the --help command show where there is no -i command at any compiler, I find this command in "Advanced C and C++ Compiling - 2014 by Milan Stevanovic" book. ... What exactly does the book say? I'm not ...
Top answer
1 of 11
122

After a fair amount of work, I was able to get it to build on Ubuntu 12.04 x86 and Debian 7.4 x86_64. I wrote up a guide below. Can you please try following it to see if it resolves the issue?

If not please let me know where you get stuck.

Install Common Dependencies

sudo apt-get install build-essential autoconf libtool pkg-config python-opengl python-imaging python-pyrex python-pyside.qtopengl idle-python2.7 qt4-dev-tools qt4-designer libqtgui4 libqtcore4 libqt4-xml libqt4-test libqt4-script libqt4-network libqt4-dbus python-qt4 python-qt4-gl libgle3 python-dev

Install NumArray 1.5.2

wget https://tinyurl.com/ywzmahjf -O numarray-1.5.2.tgz
tar xfvz numarray-1.5.2.tgz
cd numarray-1.5.2
sudo python setup.py install

Install Numeric 23.8

wget http://downloads.sourceforge.net/project/numpy/OldFiles/23.8/Numeric-23.8.tar.gz?r&ts=1395946715&use_mirror=iweb -O numeric-23.8.tgz
tar xfvz numeric-23.8.tgz
cd Numeric-23.8
sudo python setup.py install

Install HDF5 1.6.5

wget ftp://ftp.hdfgroup.org/HDF5/releases/hdf5-1.6/hdf5-1.6.5.tar.gz
tar xfvz hdf5-1.6.5.tar.gz
cd hdf5-1.6.5
./configure --prefix=/usr/local
sudo make 
sudo make install

Install Nanoengineer

git clone https://github.com/kanzure/nanoengineer.git
cd nanoengineer
./bootstrap
./configure
make
sudo make install

Troubleshooting

On Debian Jessie, you will receive the error message that cant pants mentioned. There seems to be an issue in the automake scripts. x86_64-linux-gnu-gcc is inserted in CFLAGS and gcc will interpret that as a name of one of the source files. As a workaround, let's create an empty file with that name. Empty so that it won't change the program and that very name so that compiler picks it up. From the cloned nanoengineer directory, run this command to make gcc happy (it is a hack yes, but it does work) ...

touch sim/src/x86_64-linux-gnu-gcc

If you receive an error message when attemping to compile HDF5 along the lines of: "error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments", then modify the file perform/zip_perf.c, line 548 to look like the following and then rerun make...

output = open(filename, O_RDWR | O_CREAT, S_IRUSR|S_IWUSR);

If you receive an error message about Numeric/arrayobject.h not being found when building Nanoengineer, try running

export CPPFLAGS=-I/usr/local/include/python2.7
./configure
make
sudo make install

If you receive an error message similar to "TRACE_PREFIX undeclared", modify the file sim/src/simhelp.c lines 38 to 41 to look like this and re-run make:

#ifdef DISTUTILS
static char tracePrefix[] = "";
#else
static char tracePrefix[] = "";

If you receive an error message when trying to launch NanoEngineer-1 that mentions something similar to "cannot import name GL_ARRAY_BUFFER_ARB", modify the lines in the following files

/usr/local/bin/NanoEngineer1_0.9.2.app/program/graphics/drawing/setup_draw.py
/usr/local/bin/NanoEngineer1_0.9.2.app/program/graphics/drawing/GLPrimitiveBuffer.py
/usr/local/bin/NanoEngineer1_0.9.2.app/program/prototype/test_drawing.py

that look like this:

from OpenGL.GL import GL_ARRAY_BUFFER_ARB
from OpenGL.GL import GL_ELEMENT_ARRAY_BUFFER_ARB

to look like this:

from OpenGL.GL.ARB.vertex_buffer_object import GL_ARRAY_BUFFER_AR
from OpenGL.GL.ARB.vertex_buffer_object import GL_ELEMENT_ARRAY_BUFFER_ARB

I also found an additional troubleshooting text file that has been removed, but you can find it here

2 of 11
104

You just need to enter this command:

sudo apt install python-dev gcc
🌐
Command Not Found
command-not-found.com › aarch64-linux-gnu-g++
command-not-found.com – aarch64-linux-gnu-g++
pacman -S aarch64-linux-gnu-gcc · Kali Linux · apt-get install g++-aarch64-linux-gnu · Fedora · dnf install gcc-c++-aarch64-linux-gnu · Windows (WSL2) sudo apt-get update sudo apt-get install g++-aarch64-linux-gnu · Raspbian · apt-get install g++-aarch64-linux-gnu ·
🌐
Arch Linux Forums
bbs.archlinux.org › viewtopic.php
I can't cross compile to aarch64-linux-gnu with clang / Programming & Scripting / Arch Linux Forums
July 28, 2021 - You are not logged in. ... I want to use clang and cross compile to aarch64. I tried, but the error occurs. [reimu@main Desktop]$ clang --target=aarch64-linux-gnu -fuse-ld=lld -v a.c clang version 12.0.1 Target: aarch64-unknown-linux-gnu Thread model: posix InstalledDir: /usr/bin Found candidate GCC installation: /usr/bin/../lib/gcc/aarch64-linux-gnu/11.1.0 Found candidate GCC installation: /usr/bin/../lib64/gcc/aarch64-linux-gnu/11.1.0 Found candidate GCC installation: /usr/lib/gcc/aarch64-linux-gnu/11.1.0 Found candidate GCC installation: /usr/lib64/gcc/aarch64-linux-gnu/11.1.0 Selected GCC