You are not logged in.

#1 2014-10-09 18:03:34

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 859
Website

arch-rpi-cross: A working cross-compiler targeting Arch Linux ARM

Based on the arm-linux-gnueabihf-gcc AUR packages, I've created a working cross-compiler that targets Arch Linux ARM on the Raspberry Pi (and probably others).  It's on GitHub here for now.  Just clone it and run ./install.sh to build and install all the stages in the right order.

The fixes over the AUR packages are:
- glibc-headers installs an empty include/gnu/stubs.h, which fixes libgcc compilation
- Hard float ABI actually used (--with-float=hard --with-fpu=vfp)
- Enabled linker plugins to allow LTO
- Use /lib instead of /libexec, which fixes gcc-ar (for building static libs with LTO)

Since Arch ARM is sitll on gcc 4.8 still, you may need to build and install a newer libstdc++ to get C++ code working.

Last edited by tavianator (2014-10-09 18:04:40)

Offline

Board footer

Powered by FluxBB