Rockbox mail archiveSubject: 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
>> function `__div0_wrap_s':
>> (.text+0x4): undefined reference to `__div0'
>> 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
>> make: ***
>> [/cyg/d/Source/C/Rockbox/rockbox/build/apps/plugins/credits.rock] Error
> __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:
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...
-- MagnusReceived on 2012-01-28