Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re[2]: How to build firmware and other issues
From: Alex Gitelman (alex_at_fg-soup.com)
Date: 2002-06-21


Hi Daniel,
Thanks for reply. I'll try you suggestions.
Now,
   

>> 2. _memcmp could not be resolved so I had to add -lc to linker options in
>> apps

DS> Oh? What uses memcmp()? We should not rely on any external libc-like library
DS> (we've recently worked hard to remove the newlib dependency) so if we need
DS> memcmp() we should provide our own.

Message is as follows. And I attached nm output. Apparently memcmp is
not used directly.

sh-elf-gcc -Os -nostdlib -o /home/alexgit/archos/build/archos.elf /home/alexgit
/archos/build/credits.o /home/alexgit/archos/build/main.o /home/alexgit/archos/b
uild/main_menu.o /home/alexgit/archos/build/menu.o /home/alexgit/archos/build/pl
ay.o /home/alexgit/archos/build/playlist.o /home/alexgit/archos/build/showtext.o
 /home/alexgit/archos/build/sound_menu.o /home/alexgit/archos/build/tree.o /home
/alexgit/archos/build/recorder/bmp.o /home/alexgit/archos/build/recorder/bounce.
o /home/alexgit/archos/build/recorder/boxes.o /home/alexgit/archos/build/recorde
r/icons.o /home/alexgit/archos/build/recorder/sokoban.o /home/alexgit/archos/bui
ld/recorder/tetris.o -L/home/alexgit/archos/build -lrockbox -lgcc -L../firmware
-T../firmware/app.lds -Wl,-Map,/home/alexgit/archos/build/archos.map
/home/alexgit/archos/build/librockbox.a(id3.o): In function `_setid3v2title':
id3.o(.text+0x2ac): undefined reference to `_memcmp'
id3.o(.text+0x340): undefined reference to `_memcmp'
/home/alexgit/archos/build/librockbox.a(id3.o): In function `_getid3v2len':
id3.o(.text+0x3d8): undefined reference to `_memcmp'
/home/alexgit/archos/build/librockbox.a(id3.o): In function `_getid3v1len':
id3.o(.text+0x444): undefined reference to `_memcmp'
collect2: ld returned 1 exit status
make[1]: *** [/home/alexgit/archos/build/archos.elf] Error 1
make[1]: Leaving directory `/home/alexgit/archos/apps'
make: *** [apps] Error 2

Best Regards,
Alex


  • text/plain attachment: nm.txt



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa