Rockbox Technical Forums

Rockbox Development => Starting Development and Compiling => Topic started by: Phalangees on December 11, 2006, 09:12:36 PM

Title: Some problems compiling
Post by: Phalangees on December 11, 2006, 09:12:36 PM
I've spent 6 hours trying to get this to compile and I just can't seem to get the bootloader for my Toshiba Gigabeat F10. I've run rockboxdev.sh and all that stuff. did the ../tools/configure and that worked fine but then when I try to do the make command I get this:

Code: [Select]
make[1]: `rdf2binary' is up to date.
make[1]: `convbdf' is up to date.
make[1]: `scramble' is up to date.
make[1]: `descramble' is up to date.
make[1]: `bmp2rb' is up to date.
make[1]: `codepages' is up to date.
cpp0: config.h: No such file or directory
CONVBDF
CC sysfont.c
Header parsed
cc1: Invalid option `long-calls'
make[1]: *** [/home/kyle/rockbox/build/firmware/sysfont.o] Error 1
make: *** [all] Error 2

any help at all would be great. thanks.
Title: Re: Some problems compiling
Post by: Bagder on December 12, 2006, 02:58:29 AM
Your compiler seems to be weird.

Try invoking 'make V=1' to get to see the full command lines used.
Title: Re: Some problems compiling
Post by: Phalangees on December 12, 2006, 04:12:18 PM
Code: [Select]
kyle@kyle-desktop:~/rockbox/build$ make V=1
make -C /home/kyle/rockbox/tools CC=gcc rdf2binary convbdf scramble descramble bmp2rb codepages
make[1]: `rdf2binary' is up to date.
make[1]: `convbdf' is up to date.
make[1]: `scramble' is up to date.
make[1]: `descramble' is up to date.
make[1]: `bmp2rb' is up to date.
make[1]: `codepages' is up to date.
make -C /home/kyle/rockbox/firmware OBJDIR=/home/kyle/rockbox/build/firmware
cpp0: config.h: No such file or directory
CONVBDF
CC sysfont.c
/home/kyle/rockbox/tools/convbdf -c -o /home/kyle/rockbox/build/firmware/sysfont.c ../fonts/rockbox_default.bdf
Header parsed
arm-elf-gcc -I/home/kyle/rockbox/firmware/target/arm/gigabeat/meg-fx -I/home/kyle/rockbox/firmware/target/arm/gigabeat -I/home/kyle/rockbox/firmware/target/arm -Iinclude -I/home/kyle/rockbox/firmware -Iexport -Icommon -Idrivers -I/home/kyle/rockbox/build -W -Wall -O -nostdlib -ffreestanding -Wstrict-prototypes -mcpu=arm9tdmi -ffunction-sections -mlong-calls -fomit-frame-pointer -DGIGABEAT_F -DYEAR=2006 -DMONTH=12 -DDAY=12 -DBOOTLOADER -DMEM=32 -c /home/kyle/rockbox/build/firmware/sysfont.c -o /home/kyle/rockbox/build/firmware/sysfont.o
cc1: Invalid option `long-calls'
make[1]: *** [/home/kyle/rockbox/build/firmware/sysfont.o] Error 1
make: *** [all] Error 2
Title: Re: Some problems compiling
Post by: Bagder on December 12, 2006, 04:40:12 PM
And what does

arm-elf-gcc --version

say?
Title: Re: Some problems compiling
Post by: Phalangees on December 12, 2006, 04:54:39 PM
Code: [Select]
kyle@kyle-desktop:~$ arm-elf-gcc --version
2.95.3
Title: Re: Some problems compiling
Post by: Bagder on December 12, 2006, 05:10:17 PM
Right, then you have yourself to blame. You should use 4.0.2!
Title: Re: Some problems compiling
Post by: Phalangees on December 12, 2006, 05:18:41 PM
woops.  ;D

how do i update??
(i'm using ubuntu dapper which is based off of debian)

is their a download off of this site?
Title: Re: Some problems compiling
Post by: Bagder on December 12, 2006, 05:45:28 PM
There's lots of docs on how to do it, but tools/rockboxdev.sh is a quick and easy route to take on Linux.
Title: Re: Some problems compiling
Post by: Phalangees on December 12, 2006, 05:56:08 PM
i did that once before but i'll try it again. i'll post when it's done and let you know how everything goes.

thanks for you help by the way.
Title: Re: Some problems compiling
Post by: Phalangees on December 12, 2006, 10:33:16 PM
ok well i ran it and it didn't help. i added the thing to my path and it didn't help. still the same output from arm-elf-gcc --version. anyways i found a download called gcc-4.0.2 so i''ve spent a couple hours installing that. everything should work fine after i get this installed i think. and if it doesn't i'll come back to here with more problems. ;)
Title: Re: Some problems compiling
Post by: Phalangees on December 13, 2006, 05:40:31 PM
ok well i have GCC version 4.0.2 but not arm-elf-gcc. i think i have to build it but i don't know how. Please help!!
Title: Re: Some problems compiling
Post by: Llorean on December 13, 2006, 05:41:48 PM
http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler if you feel you must build it yourself.
Title: Re: Some problems compiling
Post by: Phalangees on December 13, 2006, 05:52:48 PM
wait i'm guessing just running rockboxdev.sh isn't enough. i looked in the folder and found this file:

Code: [Select]
== Summary ==
Target: arm-elf
gcc 4.0.3
binutils 2.16.1
install in /usr/local/arm-elf
when complete, make your PATH include /usr/local/arm-elf/bin

^how do i do these things??
Title: Re: Some problems compiling
Post by: Phalangees on December 13, 2006, 07:07:52 PM
Ok well i did some more researching and I found out i have to "us the gcc source tree to build arm-elf-gcc" but i have no idea how to.

lol. Why is it so complicated to install rockbox?? lol.
Title: Re: Some problems compiling
Post by: Llorean on December 13, 2006, 07:14:22 PM
It's not complicated at all to install Rockbox. But you're trying to compile it, something entirely unnecessary when you just want to install. As well, I assume you didn't follow the link I gave you, since you seem to be rambling on about not having any idea how to do something that the link I gave covers completely.
Title: Re: Some problems compiling
Post by: Phalangees on December 13, 2006, 07:20:15 PM
no I did actually. I read most of it... but understanding it is a different story.  It's been my first tab open for a while.

So i don't acutally need to compile it to get the bootloader?? Sorry if i'm getting you pissed with my stupidity.

If there is an easier way to get rockbox on my Gigabeat please let me know.
Title: Re: Some problems compiling
Post by: Llorean on December 13, 2006, 07:21:11 PM
Rockbox isn't officially on the gigabeat yet. If you can't follow the compiling instructions in the link I gave you, you're probably best not tinkering with a firwmare that doesn't even play music yet, and ought to wait until there's an official build available.
Title: Re: Some problems compiling
Post by: Soader03 on December 13, 2006, 07:23:24 PM
Question about that: Can we boot with the original firmware and then, boot with RockBox like the IPod? I know that we can do that with IPods like original firmware, then RockBox then IPod Linux...
Title: Re: Some problems compiling
Post by: Phalangees on December 13, 2006, 07:25:16 PM
Rockbox isn't officially on the gigabeat yet. If you can't follow the compiling instructions in the link I gave you, you're probably best not tinkering with a firwmare that doesn't even play music yet, and ought to wait until there's an official build available.

ohhhhh. Sorry I thought it was done enough to be functional. I figured since it had instructions (on how to get rockbox on the gigabeat), on the Gigabeat Info page that I could install it and then just update it once in a while to get rid of bugs. Sorry for getting you angy. Thanks for your help.