Rockbox Development > Starting Development and Compiling
Using arm-elf-gcc
(1/1)
saratoga:
I'm playing around with the new sansa emulator, and wanted to build some test code for it:
--- Code: ---int lolwtf =1;
int main(){
int ABCDEF,LMNOP;
int ABCDEF2 = 0;
LMNOP = lolwtf;
ABCDEF2 = LMNOP +1;
}
--- End code ---
However putting that in test.c and trying to compile gives:
--- Code: ---[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
--- End code ---
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.
Lear:
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.
bluebrother:
Basically you'll need a C library. Maybe newlib helps: http://sources.redhat.com/newlib/
Navigation
[0] Message Index
Go to full version