Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Compile Rockbox on Archlinux?
« previous next »
  • Print
Pages: [1]

Author Topic: Compile Rockbox on Archlinux?  (Read 3003 times)

Offline Army

  • Member
  • *
  • Posts: 29
Compile Rockbox on Archlinux?
« on: September 24, 2008, 04:16:01 AM »
Hi there

I'm on Archlinux, a rolling release Linux distribution, which is always very up to date. So the version of arm-elf-gcc is newer than recommended.
I do have an iPod Video, so I need arm-elf-gcc.

Code: [Select]
Using arm-elf-gcc 4.3.2 (403)
WARNING: Your cross-compiler arm-elf-gcc 4.3.2 is not of the recommended
WARNING: version 4.0.3!
WARNING: This may cause your build to fail since it may be a version
WARNING: that isn't functional or known to not be the best choice.
WARNING: If you suffer from build problems, you know that this is
WARNING: a likely source for them...
Using arm-elf-ld 2.18
Found and uses ccache (/usr/bin/ccache)
Created Makefile

It doesn't compile, as expected :( I tried to build the recommended version by myself, but it doesn't build. So my questions are:
- Are there any patches, which make Rockbox compile on an up to date distro? Was searching through the tracker, didn't find anything.
- Which distro has all the recommended versions of arm-elf-gcc and others? Is it Debian stable?! Because I thought about installing this in a virtual machine to build Rockbox in there.

Thanx :)
Logged

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Compile Rockbox on Archlinux?
« Reply #1 on: September 24, 2008, 04:28:38 AM »
By far the best thing to do is run the rockboxdev.sh script in the tools directory.  It will get the correct versions of the cross compilers, apply patches that are required, qnd then build them for you.
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline Army

  • Member
  • *
  • Posts: 29
Re: Compile Rockbox on Archlinux?
« Reply #2 on: September 24, 2008, 10:14:06 AM »
Oh thanx! Seems to work quite well, compiling right at the moment, hope this thread will be closable then. But still, how do you devs look after compatibility with newer versions? For how long will it be 4.0.3?
Don't understand me wrong, this is no complaint, it's simply interest ;)

Greetz
Logged

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: Compile Rockbox on Archlinux?
« Reply #3 on: September 24, 2008, 10:21:05 AM »
We try out newer versions of compilers as they come along. We even submit bug reports back the gcc developers when we find them in the new versions. Unfortunately they're not very responsive - so we've stuck with versions we know that work.
Logged

Read The Manual Please

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Compile Rockbox on Archlinux?
« Reply #4 on: September 24, 2008, 11:10:50 AM »
Quote from: Army on September 24, 2008, 10:14:06 AM
Oh thanx! Seems to work quite well, compiling right at the moment, hope this thread will be closable then. But still, how do you devs look after compatibility with newer versions? For how long will it be 4.0.3?
Don't understand me wrong, this is no complaint, it's simply interest ;)

Greetz

Someone tested 4.2 or 4.3 a while back and noted no apparent improvement for ARM, so we'll probably stick with 4.03 until some future version improves performance, some critical bug turns up that forces an update, or a new ARM target requires a newer build.
Logged

Offline Army

  • Member
  • *
  • Posts: 29
Re: Compile Rockbox on Archlinux?
« Reply #5 on: September 24, 2008, 01:08:28 PM »
Quote from: saratoga on September 24, 2008, 11:10:50 AM
Someone tested 4.2 or 4.3 a while back and noted no apparent improvement for ARM, so we'll probably stick with 4.03 until some future version improves performance, some critical bug turns up that forces an update, or a new ARM target requires a newer build.
That's fine for me :) For the users it's way more important to have a stable build than a bleeding edge build. You guys know, what you are doing, you have my trust.

So I did my own build. It's a bit hard to find out, which patches work and which are outdated, but it was only bmp-resize for me, so that was not too hard, took it from tdtooke ;)

Topic is solved for me :)

edit:
Almost forgot:
@ GodEater: Well ... Seems to be a real big argument for staying with one fix version. But with that script mentioned by BigBambi it's really not a big deal, except if you then have two different versions in your PATH, but I'm sure there is a solution for this as well, although I don't know, how to tell make, which version to take..
« Last Edit: September 24, 2008, 01:11:41 PM by Army »
Logged

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: Compile Rockbox on Archlinux?
« Reply #6 on: September 25, 2008, 03:18:12 AM »
Quote from: Army on September 24, 2008, 01:08:28 PM
@ GodEater: Well ... Seems to be a real big argument for staying with one fix version. But with that script mentioned by BigBambi it's really not a big deal, except if you then have two different versions in your PATH, but I'm sure there is a solution for this as well, although I don't know, how to tell make, which version to take..

Indeed - when (and if) we find a newer version of the cross compilers that we like and work well, then rockboxdev.sh will be updated to download and install that instead.

Is there something you specifically needed a later version of arm-elf-gcc for ?
Logged

Read The Manual Please

Offline Army

  • Member
  • *
  • Posts: 29
Re: Compile Rockbox on Archlinux?
« Reply #7 on: September 25, 2008, 09:31:21 AM »
Will there also be an announcement, as soon as this happens? Because I think I won't look into that script every time I update my build, maybe from time to time or so.
Logged

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Compile Rockbox on Archlinux?
« Reply #8 on: September 25, 2008, 10:28:16 AM »
Yes, if this ever happens it will be announced.
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline Army

  • Member
  • *
  • Posts: 29
Re: Compile Rockbox on Archlinux?
« Reply #9 on: September 26, 2008, 03:27:43 AM »
Great! :)

Me @ complete satisfaction :)
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Compile Rockbox on Archlinux?
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.085 seconds with 16 queries.