Installing an ARM Toolchain in Fedora

You can easily install an arm cross-compiler on Fedora as follows:

cd /etc/yum.repos.d/
sudo wget http://ftp.linux.org.uk/pub/linux/arm/fedora/cross/cross.repo
sudo yum install armv5tel-redhat-linux-gnueabi-gcc

You can check the installation worked by checking the cross-compiler version

[[email protected] ~]$ armv5tel-redhat-linux-gnueabi-gcc -v
Using built-in specs.
Target: armv5tel-redhat-linux-gnueabi
Configured with: ../configure –prefix=/usr –mandir=/usr/share/man –infodir=/usr/share/info –enable-shared –enable-threads=posix –enable-checking=release –with-system-zlib –enable-__cxa_atexit –disable-libunwind-exceptions –enable-languages=c,c++ –disable-libgcj –with-sysroot=yes –enable-version-specific-runtime-libs –target=armv5tel-redhat-linux-gnueabi
Thread model: posix
gcc version 4.1.2 20070925 (Red Hat 4.1.2-33.fa1)

This will only install the C compiler (gcc), to install the C++ compiler, run the following command:

sudo yum install armv5tel-redhat-linux-gnueabi-gcc-c++

Tested in Fedora 12.

Share this:

Support CNX Software! Donate via PayPal or cryptocurrencies, become a Patron on Patreon, or buy review samples

Subscribe
Notify of
guest
The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Please read and accept our website Terms and Privacy Policy to post a comment.
0 Comments
Advertisements