dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Re[2]: How to build firmware and other issues

Re[2]: How to build firmware and other issues

From: Alex Gitelman <>
Date: Fri, 21 Jun 2002 06:29:42 -0700

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

>> 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/ -Wl,-Map,/home/alexgit/archos/build/
/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,
  • text/plain attachment: nm.txt
Received on 2002-06-21

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy