you can use arm-linux-gnueabihf-gcc hello.c -o hello command. And before you should install arm-linux-gnueabihf-gcc in your linux system .

here is full sample that work for me

Answer from reza rezaee on Stack Overflow
🌐
Arch Linux
aur.archlinux.org › packages › armv7l-gcc
AUR (en) - armv7l-gcc - Arch Linux
Download snapshot · Search wiki · armv7l-binutilsAUR · armv7l-glibcAUR · libisl (libisl-gitAUR) libmpc (libmpc-gitAUR) zstd (zstd-gitAUR, zstd-staticAUR) armv7l-binutilsAUR (make) armv7l-linux-api-headersAUR (make) git (git-gitAUR, git-glAUR, git-wd40AUR) (make) armv7l-glibc (make) git+https://sourceware.org/git/gcc.git#commit=0b99615a8aef011cff76c6caa8c09434f46598b3 ·
Packages
114787 packages found. Page 1 of 2296 · 1&nbsp2&nbsp3&nbsp4&nbsp5&nbsp6&nbsp..&nbsp2296 Next › Last »
Yay
Download snapshot · Search wiki · git (git-gitAUR, git-glAUR, git-wd40AUR) pacman (pacman-gitAUR, pacman-fancy-gitAUR, pacman-selinuxAUR) go (go-gitAUR, gcc-go-gitAUR, goup-rsAUR, go-binAUR, gcc-go-snapshotAUR, gcc-go) (make) doasAUR (opendoas-retryAUR, voixAUR, opendoas) (optional) – privilege ...
minecraft-launcher
I seem to be having a different issue than what others are describing. Suddenly today, I an unable to start the launcher without getting a generic "An unexpected issue occurred" message. Here's what I get in the terminal: · Edit: I found that deleting the webcache2 directory in the .minecraft ...
visual-studio-code-bin
FREQUENTLY ASKED QUESTIONS (read before flagging or commenting!) · This is the official binary distribution from Microsoft. The one in the community repo is an unofficial build made from source. Beyond the licence difference and branding, there are some proprietary features not available in ...
🌐
GitHub
gist.github.com › rikka0w0 › 612149263721050f69acdc0497bf9fb8
Build gcc cross-compiler for armv7l (arm-linux-gnueabi) · GitHub
Download ZIP · Build gcc cross-compiler for armv7l (arm-linux-gnueabi) Raw · buildcrossgcc.sh · This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
🌐
NI
ni.com › home › support › software and driver downloads › ni software product downloads › download detail page
GNU C & C++ Compile Tools for ARMv7 Download - NI
Download GNU C & C++ Compile Tools for ARMv7 and find support information. You can use this download page to access GNU C & C++ Compile Tools for ARMv7 and all available editions are available from this download page.
🌐
Arm Community
community.arm.com › developer › tools-software › tools › f › armds-forum › 3614 › gcc-for-armv7-a---where-can-i-get-the-latest-version
Challenge Validation
March 10, 2019 - The Arm tools range offers two software development families that provide you with all the necessary tools for every stage of your software development workflow.
🌐
GitHub
gist.github.com › tautologico › 3db84cf76fb85e9e3da8024251530d67
Build gcc cross-compiler for armv7-a (Cortex-A) · GitHub
Download ZIP · Build gcc cross-compiler for armv7-a (Cortex-A) Raw · buildcrossgcc.sh · This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
🌐
SourceForge
sourceforge.net › home › open source software › gcc-precompiled
Download gcc-armv7-linux-11.2.0.tar.xz (gcc-precompiled)
It is based on GCC, with various calculator specific extensions. 1 Review Downloads: 8 This Week Last Update: 2014-03-29
Find elsewhere
🌐
Arm Developer
developer.arm.com › downloads › - › gnu-rm
Downloads | GNU Arm Embedded Toolchain Downloads – Arm Developer
Download the GNU Embedded Toolchain for ARM, an open-source suite of tools for C, C++, and Assembly programming for 32-bit ARM Cortex-A, ARM Cortex-M and Cortex-R families
🌐
Arch Linux ARM
archlinuxarm.org › packages › armv7h › gcc
gcc (armv7h) | 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
🌐
Arm Community
community.arm.com › support-forums › f › armds-forum › 3614 › gcc-for-armv7-a---where-can-i-get-the-latest-version
GCC for ARMv7-A - Where can I get the latest version?
May 19, 2014 - Have a question about working on Arm technology? Browse our support forums for solutions to your questions, answer questions from fellow community members and get help from Arm experts.
🌐
Reddit
reddit.com › r/embedded › which gcc is safe for armv7l?
r/embedded on Reddit: Which gcc is safe for armv7l?
March 11, 2022 -

Hello everyone.

I run gentoo for development and use the crossdev tools to generate an arm cross compiler.

I'm having problems finding a version of gcc that behaves when compiling code for armv7l. (gnueabihf).

11.2.X seems to have pie problem (I don't get what pie is, I mean I do conceptually but I don't understand why it is suddenly enabled by default)

I was using 10.5, but gnueabihf wasn't working so I dropped the hf and it worked, but shouldn't it work with Cyclone V?

And I'm confused about how the arch is specified.

Right now I'm using arm-linux-gnueabi, but I wonder if I should be using arm-none-linux-gnueabihf...

Can you guys suggest a known working version of the cross arm tools.

ARM seems to recommend 7.5 and that is way too old for modern linux.

🌐
Arch Linux Forums
bbs.archlinux.org › viewtopic.php
cross compiling for armv7 / Other Architectures / Arch Linux Forums
make ARCH=arm CROSS_COMPILE=ar... /home/martin/Downloads/xcompile/u-boot-rockchip/include/linux/compiler-gcc.h:93:1: fatal error: linux/compiler-gcc8.h: No such file or directory #include gcc_header(__GNUC__) ^~~~ compilation terminated. ... I'm using the ARMv7l hard-float linked ...
🌐
Xpack-dev-tools
xpack-dev-tools.github.io › arm-none-eabi-gcc-xpack › blog › 2019 › 07 › 26 › arm-none-eabi-gcc-v7-3-1-1-2-released
Version 7.3.1-1.2 released | xPack GNU Arm Embedded GCC
July 26, 2019 - Version 7.3.1-1.2 is a maintenance release; it repacks the GNU MCU Eclipse Arm Embedded GCC v7.3.1-1.1 using the new build scripts.
🌐
Ubuntu Forums
ubuntuforums.org › archive › index.php › t-1371828.html
[SOLVED] Using gcc to compile for ARM7 processor [Archive] - Ubuntu Forums
By default, it will *not* spit out programs that will run on an ARM processor, even though it looks like it should accept a flag that tells it to do so. What you must do is get the source code for the gcc compiler, and compile it (using your default compiler) with the flags set to enable it to output ARM instructions.
🌐
Stack Overflow
stackoverflow.com › questions › 76639972 › how-can-i-cross-compile-code-for-armv7-m-with-an-fpu-with-gcc-on-ubuntu
c - how can I cross compile code for ARMv7-m with an FPU with gcc on Ubuntu? - Stack Overflow
The simpler is to use this, even if the link is defined obsolete, developer.arm.com/downloads/-/gnu-rm. In this case you have to write your syscall module to make functional the memory handling and I/O of libc.
🌐
Launchpad
launchpad.net › gcc-arm-embedded › +download
Download GCC ARM Embedded
The releases include the binaries and source packages, and are published without any warranty, but you can: * Report issues specific to the way a release was built or packaged on the Linaro Bugzilla: https://bugs.linaro.org/enter_bug.cgi?product=GNU Binary Toolchain * Ask questions about the Arm GNU Toolchain releases and read about previously answered ones on the Arm Community Compilers and Libraries forum: https://community.arm.com/support-forums/f/compilers-and-libraries-forum/ Launch...
🌐
GitHub
gist.github.com › m-ou-se › a9e1b3546713405527c6e538b3ed0d99
Compiling a cross compiler for armv7l-unknown-linux-gnueabihf (RPi3) · GitHub
Download ZIP · Compiling a cross compiler for armv7l-unknown-linux-gnueabihf (RPi3) Raw · instructions.txt · This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.