This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: sprintf causes a procesoor crash when I use %f


Hi,

Thanks for the answers. I already made a cross compiler without this
'"--enable-newlib-hw-fp', but my sprintf wasn't work fine, it has the same
problem. All my other floating functions where working fine...
 
Gr,

Koen

-----Oorspronkelijk bericht-----
Van: crossgcc-owner@sourceware.org [mailto:crossgcc-owner@sourceware.org]
Namens Dave Korn
Verzonden: vrijdag 11 augustus 2006 18:51
Aan: 'Dave Korn'; 'Peter Barada'
CC: koen.teetaert@scarlet.be; crossgcc@sourceware.org
Onderwerp: RE: sprintf causes a procesoor crash when I use %f

On 11 August 2006 17:34, Dave Korn wrote:

> On 11 August 2006 17:29, Peter Barada wrote:
> 
>>>  Does the m5307 have an FPU?
>> 
>> No, the 5307 does *not* have an FPU.
>> 
>>>  Did you compile newlib using software FP emulation, or is it trying to
>>> invoke non-existent FPU opcodes?
>> 
>> Newlib should have built itself with multi-libs for each of the
>> variants that the compiler supports.
> 
> 
>   No, check the OP's post: he didn't build it in-tree, but by
> hand-configuring and making it.


  And in fact:

> tar xzfv newlib-1.13.0.tar.gz
> mkdir build-newlib
> cd build-newlib
> ../newlib-1.13.0/configure --target=$TARGET --prefix=$PREFIX
> -enable-newlib-hw-fp
> make all
> make install


  Koen, I /really/ don't think you want to use "--enable-newlib-hw-fp" on a
CPU that doesn't have any hardware FP!


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
For unsubscribe information see http://sourceware.org/lists.html#faq


__________ NOD32 1.1703 (20060811) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com



--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]