[mc1322x] linking in math libraries?
Jon Smirl
jonsmirl at gmail.com
Fri Apr 9 18:38:21 EDT 2010
On Fri, Apr 9, 2010 at 6:26 PM, Andrew Pullin <pullin at berkeley.edu> wrote:
> On 4/9/2010 5:48 AM, Jon Smirl wrote:
>>
>> On Fri, Apr 9, 2010 at 6:04 AM, Andrew Pullin<pullin at berkeley.edu> wrote:
>>
>>>
>>> On 4/8/2010 7:49 AM, Mariano Alvira wrote:
>>>
>>>>
>>>> On Thu, Apr 08, 2010 at 10:22:40AM -0400, Jon Smirl wrote:
>>>>
>>>>
>>>>>
>>>>> Now you get to sort through and figure out what went wrong.
>>>>>
>>>>> It may be bring in floating point emulation because of printf. There's
>>>>> an option somewhere to stop that.
>>>>>
>>>>>
>>>>
>>>> eh. I find it's easier to fix it when glibc blows up.
>>>>
>>>> If think there is enough info is this thread to get someone started
>>>> with newlib if they are really gung-ho about it.
>>>>
>>>> And also, wasn't the whole point of this to bring in floating point
>>>> emulation? (e.g. sqrt())? So even under that case, glibc is still half
>>>> the size.
>>>>
>>>> -Mar.
>>>>
>>>>
>>>>
>>>>
>>>
>>> Well, this sort of works for newlib:
>>> http://andrewpullin.org/tools/arm/buildscript.sh
>>>
>>> It works in the sense that it builds, and prints a lot of libraries when
>>> doing arm-elf-gcc -print-multi-lib , but the build still complains that
>>> the
>>> library is build without interworking and with software FP. If anyone's
>>> got
>>>
>>
>> Set the compiler flags to turn on interworking when building newlib.
>>
>>
>
> I thought that enabling multilibs and having arm-elf-gcc -print-multi-lib
> show:
> thumb;@mthumb
> interwork;@mthumb-interwork
> thumb/interwork;@mthumb at mthumb-interwork
> thumb/be/interwork;@mthumb at mbig-endian@mthumb-interwork
>
> Meant that it built all it's libraries with the -m-thumb-interwork enabled?
> Maybe not. If not, is that an option I set through the configure scripts for
> one of the pacakges?
>
>>> a stroke of genius about how to make it work, I'd be very interested to
>>> hear...
>>>
>>
>> Keep playing with it. You have the source to everything so it is
>> possible to find a solution.
>>
>> I have an email somewhere for a consultant that specializes in build
>> environments if you're interested.
>>
>>
>
> Ah, I would be very interested to see that email if it contains useful
> instructions.
Mar, check out the ARM eclipse support in this link:
http://home.comcast.net/~mcatudal/
OpenOCD has already been integrated into Eclipse.
>
>
>>> -Andrew
>>>
>>> _______________________________________________
>>> mc1322x mailing list
>>> mc1322x at devl.org
>>> http://devl.org/cgi-bin/mailman/listinfo/mc1322x
>>>
>>>
>>
>>
>
>
> _______________________________________________
> mc1322x mailing list
> mc1322x at devl.org
> http://devl.org/cgi-bin/mailman/listinfo/mc1322x
>
--
Jon Smirl
jonsmirl at gmail.com
More information about the mc1322x
mailing list