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: libarm_support

Re: libarm_support

From: Magnus Holmgren <magnushol_at_gmail.com>
Date: Sat, 28 Jan 2012 14:27:35 +0100

On 2012-01-28 13:43, Thomas Martitz wrote:

>> LD credits.rock
>> /cyg/d/Source/C/Rockbox/rockbox/build/lib/libarm_support.a(support-arm.o):
>> In
>> function `__div0_wrap_s':
>> (.text+0x4): undefined reference to `__div0'
>> /cyg/d/Source/C/Rockbox/rockbox/build/lib/libarm_support.a(support-arm.o):
>> In
>> function `__div0_wrap':
>> (.text+0xc): undefined reference to `__div0'
>> collect2: ld returned 1 exit status
>> /cyg/d/Source/C/Rockbox/rockbox/apps/plugins/plugins.make:117: recipe
>> for target
>> `/cyg/d/Source/C/Rockbox/rockbox/build/apps/plugins/credits.rock'
>> failed
>> make: ***
>> [/cyg/d/Source/C/Rockbox/rockbox/build/apps/plugins/credits.rock] Error
>> 1
>
> __div0 should be part of that library, unless I made an error?

It was a bit more complicated than the above. If I make a full rebuild without
that line, I get this error:

/usr/local/bin/gcc-arm/lib/gcc/arm-elf-eabi/4.6.2/../../../../arm-elf-eabi/bin/ld:
cannot find -larm_support

So, to make a build, I need first to build with the above line, which fails with
the first error, then remove the line and build again.

When I check the source file, I don't see any __div0. __div0_wrap_s and
__div0_wrap calls (?) __div0 ("b __div0"), but not any actual __div0. Then
again, I'm not familiar with gas ARM assembler...

>> I'm using gcc 4.6.2 on Cygwin, in case that makes a difference.
>>
>
> Is that your host gcc or arm gcc? We have a supported gcc (the one build by rockboxdev.sh). Compiler versions can make a difference.

Arm gcc. But that version worked fine before, so it would seem the move to a
separate library has something to do with it...

-- 
   Magnus
Received on 2012-01-28

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