Home > Linux, Programming > Installing an ARM Toolchain in Fedora

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

[jaufranc@localhost ~]$ 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.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter

Categories: Linux, Programming Tags: arm, cross-compilation, fedora, programming
  1. No comments yet.
  1. No trackbacks yet.