Rockbox Technical Forums

Rockbox Development => Starting Development and Compiling => Topic started by: cela on July 30, 2016, 01:26:58 PM

Title: rockboxdev.sh error in Linux Mint 18 Cinnamon 64 bit
Post by: cela on July 30, 2016, 01:26:58 PM
Recently wiped my PC and upgraded to Linux Mint 18 Cinnamon 64 bit.

Followed the guide "http://www.rockbox.org/wiki/LinuxSimpleGuideToCompiling"  to reinstall the rockbox source and toolchain.


When I try to create the arm toolchain using sudo ./rockboxdev.sh
its fails with errors as below:-
Code: [Select]
Makefile:2470: recipe for target 'toplev.o' failed
make[2]: *** [toplev.o] Error 1
make[2]: Leaving directory '/tmp/rbdev-build/build-gcc/gcc'
Makefile:4863: recipe for target 'all-gcc' failed
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory '/tmp/rbdev-build/build-gcc'
Makefile:738: recipe for target 'all' failed
make: *** [all] Error 2

This guide has always worked flawlessly for me in the past, anyone else had this error and is there a fix for it?
Title: Re: rockboxdev.sh error in Linux Mint 18 Cinnamon 64 bit
Post by: pamaury on July 30, 2016, 02:57:04 PM
Hi,
this is a problem with newer GCC, can you try this patch: http://gerrit.rockbox.org/r/#/c/1297/ (http://gerrit.rockbox.org/r/#/c/1297/)
Title: Re: rockboxdev.sh error in Linux Mint 18 Cinnamon 64 bit
Post by: saratoga on July 30, 2016, 03:14:56 PM
If that is needed on newer gcc maybe it should be committed.
Title: Re: rockboxdev.sh error in Linux Mint 18 Cinnamon 64 bit
Post by: pamaury on July 30, 2016, 03:16:20 PM
I wanted to but then TheSeven came up with a better solution and then I forgot about it. I need to find out what his solution was and commit it.
Title: Re: rockboxdev.sh error in Linux Mint 18 Cinnamon 64 bit
Post by: cela on July 30, 2016, 06:54:40 PM
Hi,
this is a problem with newer GCC, can you try this patch: http://gerrit.rockbox.org/r/#/c/1297/ (http://gerrit.rockbox.org/r/#/c/1297/)

Thanks pamaury. Copied the patched rockboxdev.sh over and I can now build rockbox again.

Code: [Select]
ROCKBOXDEV: rm -rf build-gcc gcc-4.4.4

ROCKBOXDEV: Done!

ROCKBOXDEV: Make sure your PATH includes /usr/local/bin
Title: Re: rockboxdev.sh error in Linux Mint 18 Cinnamon 64 bit
Post by: Massa on October 31, 2016, 07:20:02 AM
Is this still an issue?
Also for other (newer) Ubuntu versions (e.g. 16.04 and 16.10)?

Or has it been integrated into the sources in the meantime?

[Edit]
I answer myself - yes, this patch (or Saint's version) is still needed and not integrated in the sources.
So I added it by myself to rockboxdev.sh (and also added some lines to ignore existing build directories instead of failing)

On a native Ubuntu 16.10 version the cross compiling works now.
[/Edit]