Rockbox Development > Starting Development and Compiling

GCC 4.6 and cross-compiler

(1/1)

tieum:
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

nls:
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?

tieum:
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.

torne:
We should probably have rockboxdev.sh configure the toolchain with --disable-werror. You can make this change locally to solve the problem.

Navigation

[0] Message Index

Go to full version