Rockbox Technical Forums

Rockbox Development => Starting Development and Compiling => Topic started by: raybert on January 05, 2005, 06:16:18 PM

Title: problem building tool chain
Post by: raybert on January 05, 2005, 06:16:18 PM
Hi,

I'm trying to build the tool chain for rockbox but having some trouble: gcc won't compile (binutils and gdb compiled just fine).  The failure occurs on embed-bb.c (the error output is long so I won't post it unless someone requests it).  I suspect the problem is that I recently upgraded my system to Fedora Core 3 which installed gcc version 3.4.2.  So I'm trying to build the gcc cross compiler for sh1 (version 3.3.4) with gcc version 3.4.2/intel.  Anyone know what my options are?  Dare I try a newer version of the cross compiler (and which one, if so)?

Thanks,

~ray
Title: Re: problem building tool chain
Post by: LinusN on January 07, 2005, 07:07:48 PM
You could try the latest 3.4 version. The generated code will be somewhat larger, but it should work fine.

I hope you are aware that building the 3.3 compiler for the SH1 requires special steps (compiling it with newlib). It's all in the instructions on the docs page.

Good luck.
Title: Re: problem building tool chain
Post by: raybert on January 08, 2005, 02:26:00 AM
Hi Linus,

Thanks for the advice.  I'll give it a shot.

I do know about newlib, BTW.  I've been following the docs.

~ray
Title: Re: problem building tool chain
Post by: raybert on January 09, 2005, 02:48:33 AM
I got it working.  It turns out it was just a case of Stupid User Error.  I made the symlink for newlib in the wrong place: build dir instead of source dir.  doh!

Thanks again for your help Linus, even it was just Stupid User Error.   :-[

~ray
Title: Re: problem building tool chain
Post by: LinusN on January 09, 2005, 08:49:54 AM
Nice to hear that you had it working. If you have an idea how to make the instruction more clear on this point, please tell me. Or have a go at it yourself, it's a wiki after all.
Title: Re: problem building tool chain
Post by: raybert on January 10, 2005, 01:56:00 AM
Actually I think it is pretty clear.  I just didn't read it attentively enough. :(

I'm working on a new feature and its coming along very well.  I've gotten quite far with the existing docs in a short time.

There are a couple fo questions I have that I'm going to post to the developer's list shortly though (regarding updating lang files and creating LCD icons).  Those things could maybe use a little documentation (unless I've missed it somewhere).

~ray