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:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  GCC 4.6 and cross-compiler
« previous next »
  • Print
Pages: [1]

Author Topic: GCC 4.6 and cross-compiler  (Read 1865 times)

Offline tieum

  • Member
  • *
  • Posts: 6
GCC 4.6 and cross-compiler
« on: May 05, 2011, 10:41:44 AM »
Hello,

Right now rockboxdev.sh pulls binutils-2.20.1. This fails to build with gcc 4.6 which begins to be available on some Linux distributions. binutils-2.21 builds fine with gcc 4.6. I was able to build the cross-compiler for Sansa Fuze this way. I was just wondering if there are some drawbacks to using 2.21 that would explain why rockboxdev.sh  was not changed to use 2.21 or if it is just that there was no need until now.


Tieum
Logged

Offline nls

  • Developer
  • Member
  • *
  • Posts: 460
Re: GCC 4.6 and cross-compiler
« Reply #1 on: May 06, 2011, 04:19:12 AM »
We normally uppgrade the toolchains when there is reason to do so and someone does the necessary testing but we have not seen any reason for a new binutils.

How does it fail to build?
Logged

Offline tieum

  • Member
  • *
  • Posts: 6
Re: GCC 4.6 and cross-compiler
« Reply #2 on: May 06, 2011, 09:26:38 AM »
gcc 4.6 added a warning for variables declared but not used. binutils build with warnings as errors. There are quite a few variables declared but not used in binutils 2.20-1 that make the build fails since they are considered an error.
Logged

Offline torne

  • Developer
  • Member
  • *
  • Posts: 994
  • arf arf
Re: GCC 4.6 and cross-compiler
« Reply #3 on: May 06, 2011, 03:34:34 PM »
We should probably have rockboxdev.sh configure the toolchain with --disable-werror. You can make this change locally to solve the problem.
Logged
some kind of ARM guy. ipodvideo/gigabeat-s/h120/clipv2. to save time let's assume i know everything.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  GCC 4.6 and cross-compiler
 

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

Page created in 0.073 seconds with 15 queries.