Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Some problems compiling
« previous next »
  • Print
Pages: [1] 2

Author Topic: Some problems compiling  (Read 5207 times)

Offline Phalangees

  • Member
  • *
  • Posts: 136
  • Gigabeat F20 and S60
Some problems compiling
« 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.
Logged

Offline Bagder

  • Member
  • *
  • Posts: 1452
    • Daniel's site
Re: Some problems compiling
« Reply #1 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.
Logged

Offline Phalangees

  • Member
  • *
  • Posts: 136
  • Gigabeat F20 and S60
Re: Some problems compiling
« Reply #2 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
Logged

Offline Bagder

  • Member
  • *
  • Posts: 1452
    • Daniel's site
Re: Some problems compiling
« Reply #3 on: December 12, 2006, 04:40:12 PM »
And what does

arm-elf-gcc --version

say?
Logged

Offline Phalangees

  • Member
  • *
  • Posts: 136
  • Gigabeat F20 and S60
Re: Some problems compiling
« Reply #4 on: December 12, 2006, 04:54:39 PM »
Code: [Select]
kyle@kyle-desktop:~$ arm-elf-gcc --version
2.95.3
Logged

Offline Bagder

  • Member
  • *
  • Posts: 1452
    • Daniel's site
Re: Some problems compiling
« Reply #5 on: December 12, 2006, 05:10:17 PM »
Right, then you have yourself to blame. You should use 4.0.2!
Logged

Offline Phalangees

  • Member
  • *
  • Posts: 136
  • Gigabeat F20 and S60
Re: Some problems compiling
« Reply #6 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?
Logged

Offline Bagder

  • Member
  • *
  • Posts: 1452
    • Daniel's site
Re: Some problems compiling
« Reply #7 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.
Logged

Offline Phalangees

  • Member
  • *
  • Posts: 136
  • Gigabeat F20 and S60
Re: Some problems compiling
« Reply #8 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.
Logged

Offline Phalangees

  • Member
  • *
  • Posts: 136
  • Gigabeat F20 and S60
Re: Some problems compiling
« Reply #9 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. ;)
Logged

Offline Phalangees

  • Member
  • *
  • Posts: 136
  • Gigabeat F20 and S60
Re: Some problems compiling
« Reply #10 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!!
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Some problems compiling
« Reply #11 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.
Logged

Offline Phalangees

  • Member
  • *
  • Posts: 136
  • Gigabeat F20 and S60
Re: Some problems compiling
« Reply #12 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??
Logged

Offline Phalangees

  • Member
  • *
  • Posts: 136
  • Gigabeat F20 and S60
Re: Some problems compiling
« Reply #13 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.
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Some problems compiling
« Reply #14 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.
Logged

  • Print
Pages: [1] 2
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Some problems compiling
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.077 seconds with 15 queries.