You are not logged in.

#1 2010-06-25 23:17:24

MkFly
Member
From: Mars
Registered: 2009-12-10
Posts: 141

[SOLVED] Compiling Rockbox on Arch Linux x86_64

I'm trying to compile Rockbox, the problem I am running into during compile:

LD bootloader.elf
/usr/bin/arm-elf-ld: skipping incompatible /usr/lib/gcc/arm-elf/4.5.0/libgcc.a when searching for -lgcc
/usr/bin/arm-elf-ld: cannot find -lgcc

I've tried with gcc-multilib as well as compiling from a 32-bit chroot.  What am I missing here?

Last edited by MkFly (2010-06-26 02:16:20)

Offline

#2 2010-06-26 00:09:43

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] Compiling Rockbox on Arch Linux x86_64

The 'arm' part is what's wrong. You need an ARM cross compiler.

Offline

#3 2010-06-26 02:16:06

MkFly
Member
From: Mars
Registered: 2009-12-10
Posts: 141

Re: [SOLVED] Compiling Rockbox on Arch Linux x86_64

falconindy wrote:

The 'arm' part is what's wrong. You need an ARM cross compiler.

Well, sure. smile  I should have posted that I have installed:
cross-arm-elf-binutils-sysroot 2.20
cross-arm-elf-gcc-base 4.5.0

Anyway, my error was pointed out to me by Rockbox dev funman over on the Rockbox forums:
http://forums.rockbox.org/index.php?topic=25155

You should use our tools/rockboxdev.sh to build the right cross compiler with the right patches and the right options (hint: select the arm eabi cross compiler for arm targets).

Cross compilers from distros are not supported, use at your own risk and don't report bugs if you didn't build with our cross compiler.

I was unware of that, having only compiled Rockbox in Cygwin before.

Offline

#4 2010-06-26 08:01:29

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: [SOLVED] Compiling Rockbox on Arch Linux x86_64

I asked this very same thing in the rockbox forums a long time ago, seems like you didn't use the search function! :-P http://forums.rockbox.org/index.php?topic=18686

Offline

#5 2010-06-26 08:28:42

MkFly
Member
From: Mars
Registered: 2009-12-10
Posts: 141

Re: [SOLVED] Compiling Rockbox on Arch Linux x86_64

Ha. Actually, I did try the search, but not as "Archlinux", just "Arch Linux" ... very different results. :-/

Offline

Board footer

Powered by FluxBB