Rockbox Technical Forums

Rockbox Development => Starting Development and Compiling => Topic started by: Bedlore on March 03, 2012, 01:22:52 AM

Title: Compiling on Ubuntu - m68k-elf-gcc not found
Post by: Bedlore on March 03, 2012, 01:22:52 AM
Where can I find m68k-elf-gcc for Ubuntu, I need to compile myself because  I use iH120 with the RTC mod so need to select Advanced / RTC which I don't think the installer offers.

Thanks
Title: Re: Compiling on Ubuntu - m68k-elf-gcc not found
Post by: bluebrother on March 03, 2012, 03:20:46 AM
You obviously need to install the compiler. See the wiki.
Title: Re: Compiling on Ubuntu - m68k-elf-gcc not found
Post by: Bedlore on March 03, 2012, 03:39:19 AM
Which compiler though, this http://www.rockbox.org/wiki/HowToCompile indicates a package called m68k-elf-gcc but I can't find any such package.  This is the only thing which is close and doesn't help.

$ apt-cache search gcc |grep m68
gcc-m68hc1x - GNU C compiler for the Motorola 68HC11/12 processors
Title: Re: Compiling on Ubuntu - m68k-elf-gcc not found
Post by: bluebrother on March 03, 2012, 04:32:52 AM
This is not a package, it's the compiler. Even if your distro provides a package you shouldn't use it sine we use a specific version. rockboxdev.sh is a script to set that up for you. The wiki page should mention it.
Title: Re: Compiling on Ubuntu - m68k-elf-gcc not found
Post by: Bedlore on March 03, 2012, 07:12:49 AM
Thanks Bluebrother, using the script now, I found no mention of it in the wiki page I linked to above however.
Title: Re: Compiling on Ubuntu - m68k-elf-gcc not found
Post by: bluebrother on March 03, 2012, 07:22:02 AM
It's not directly mentioned on that page but the compiler issue is explained and the wiki page explaining it is linked. Is there anything unclear about that paragraph that should be clarified?

Quote
Before you start

Do you have the cross compilers installed? Rockbox cannot be built on your standard compilers. Instructions for installing the cross compilers can be found at http://www.rockbox.org/wiki/CrossCompiler