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:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Using arm-elf-gcc
« previous next »
  • Print
Pages: [1]

Author Topic: Using arm-elf-gcc  (Read 1706 times)

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Using arm-elf-gcc
« on: January 20, 2007, 07:54:51 PM »
I'm playing around with the new sansa emulator, and wanted to build some test code for it:


Code: [Select]
int lolwtf =1;

int main(){
int ABCDEF,LMNOP;

int ABCDEF2 = 0;

LMNOP = lolwtf;
ABCDEF2 = LMNOP +1;


}

However putting that in test.c and trying to compile gives:

Code: [Select]
[mgg6@smoky Desktop]$ arm-elf-gcc test.c
/home/mgg6/rockbox/bin/arm-elf/lib/gcc/arm-elf/4.0.3/../../../../arm-elf/bin/ld: crt0.o: No such file: No such file or directory
collect2: ld returned 1 exit status

Rockbox builds normally, so I think the cross compiler works.  Do I need to use some other flags when I compile?  I flipped through the rockbox makefile, but didn't really understand it well enough to figure out what it does differently.  
Logged

Offline Lear

  • Developer
  • Member
  • *
  • Posts: 533
Re: Using arm-elf-gcc
« Reply #1 on: January 22, 2007, 08:16:30 AM »
The cross-compiler, as built by the instructions in the Wiki, doesn't include any run-time library. Rockbox does a special link step that provides the necessary run-time environment, and you'll need something similar for the simulator.

I don't know what the Sansa emulator expects from "executable" files, so I can't help you there.
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Using arm-elf-gcc
« Reply #2 on: January 22, 2007, 06:30:19 PM »
Basically you'll need a C library. Maybe newlib helps: http://sources.redhat.com/newlib/
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Using arm-elf-gcc
 

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

Page created in 0.073 seconds with 15 queries.