Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Toolchain for i386 with floating point emulation
@ 2007-06-16 13:19 Claudio Leonel
  2007-06-16 17:43 ` Mats Erik Andersson
  0 siblings, 1 reply; 4+ messages in thread
From: Claudio Leonel @ 2007-06-16 13:19 UTC (permalink / raw)
  To: buildroot

Hi

I need to build a buildroot toolchain for the Vortex86SX chip.
This is a new low power chip from DMP which was shown in the
latest COMPUTEX (www.vortex86sx.com).
This chip is a 486 without the floating point coprocessor.

I didn't find any options in buildroot to build a toolchain for
the i386 architecture with floating point emulation.

Any suggestions ?


Best regards,
Claudio Leonel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] Toolchain for i386 with floating point emulation
  2007-06-16 13:19 [Buildroot] Toolchain for i386 with floating point emulation Claudio Leonel
@ 2007-06-16 17:43 ` Mats Erik Andersson
  2007-06-17 14:28   ` Claudio Leonel
  0 siblings, 1 reply; 4+ messages in thread
From: Mats Erik Andersson @ 2007-06-16 17:43 UTC (permalink / raw)
  To: buildroot

l?r 2007-06-16 klockan 10:19 -0300 skrev Claudio Leonel:
> Hi
> 
> I need to build a buildroot toolchain for the Vortex86SX chip.
> This is a new low power chip from DMP which was shown in the
> latest COMPUTEX (www.vortex86sx.com).
> This chip is a 486 without the floating point coprocessor.
> 
> I didn't find any options in buildroot to build a toolchain for
> the i386 architecture with floating point emulation.

Run

$ make uclibc-menuconfig

    Target Architecture Features and Options  -->
      Enable floating point support
        Target CPU has a floating point unit

Switch the latter tick off!

Good luck!   Mats E A 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] Toolchain for i386 with floating point emulation
  2007-06-16 17:43 ` Mats Erik Andersson
@ 2007-06-17 14:28   ` Claudio Leonel
       [not found]     ` <1182092405.3642.20.camel@localhost>
  0 siblings, 1 reply; 4+ messages in thread
From: Claudio Leonel @ 2007-06-17 14:28 UTC (permalink / raw)
  To: buildroot

Hi,

Thanks for the tip.
I have done that but I got an error when linking uClibc.
I seems that the floating point functions were not found.
I supplied the option "-msoft-float" in buildroot target optimization 
options.

These floating point emulation functions are part of uClibc ?
Any suggestions to solve this problem ?


Best regards,
Claudio Leonel


-----------------------------------------------------------------
LD libuClibc-0.9.29.so
libc/libc_so.a(difftime.os): In function `difftime':
difftime.c:(.text+0x16): undefined reference to `__floatsidf'
difftime.c:(.text+0x2e): undefined reference to `__subdf3'
libc/libc_so.a(_fpmaxtostr.os): In function `_fpmaxtostr':
_fpmaxtostr.c:(.text+0xc5): undefined reference to `__nexf2'
_fpmaxtostr.c:(.text+0xef): undefined reference to `__eqxf2'
_fpmaxtostr.c:(.text+0x114): undefined reference to `__divxf3'
_fpmaxtostr.c:(.text+0x125): undefined reference to `__ltxf2'
_fpmaxtostr.c:(.text+0x208): undefined reference to `__mulxf3'
_fpmaxtostr.c:(.text+0x499): undefined reference to `__gexf2'
_fpmaxtostr.c:(.text+0x54d): undefined reference to `__floatsixf'
_fpmaxtostr.c:(.text+0x566): undefined reference to `__addxf3'
_fpmaxtostr.c:(.text+0x57a): undefined reference to `__subxf3'
libc/libc_so.a(vfprintf.os): In function `vfprintf':
vfprintf.c:(.text+0x438): undefined reference to `__extenddfxf2'
libc/libc_so.a(__psfs_do_numeric.os): In function `__psfs_do_numeric':
__psfs_do_numeric.c:(.text+0x511): undefined reference to `__truncxfdf2'
__psfs_do_numeric.c:(.text+0x532): undefined reference to `__truncxfsf2'
libc/libc_so.a(strtof.os): In function `strtof':
strtof.c:(.text+0x42): undefined reference to `__extendsfxf2'
libc/libc_so.a(__strtofpmax.os): In function `__strtofpmax':
__strtofpmax.c:(.text+0x1d4): undefined reference to `__divdf3'
make[2]: *** [lib/libc.so] Error 1
make[1]: *** [lib/libc.so.0] Error 2
make[1]: Leaving directory 
`/home/s/exlinux_86sx/rootfs/buildroot/toolchain_build_i486/uClibc-0.9.29'
make: *** 
[/home/s/exlinux_86sx/rootfs/buildroot/toolchain_build_i486/uClibc-0.9.29/lib/libc.a] 
Error 2
-----------------------------------------------------------------------

Mats Erik Andersson wrote:
> l?r 2007-06-16 klockan 10:19 -0300 skrev Claudio Leonel:
>> Hi
>>
>> I need to build a buildroot toolchain for the Vortex86SX chip.
>> This is a new low power chip from DMP which was shown in the
>> latest COMPUTEX (www.vortex86sx.com).
>> This chip is a 486 without the floating point coprocessor.
>>
>> I didn't find any options in buildroot to build a toolchain for
>> the i386 architecture with floating point emulation.
> 
> Run
> 
> $ make uclibc-menuconfig
> 
>     Target Architecture Features and Options  -->
>       Enable floating point support
>         Target CPU has a floating point unit
> 
> Switch the latter tick off!
> 
> Good luck!   Mats E A 
> 
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] Toolchain for  i386 with  floating point emulation
       [not found]         ` <1182166638.3576.20.camel@localhost>
@ 2007-06-21 18:54           ` Claudio Leonel
  0 siblings, 0 replies; 4+ messages in thread
From: Claudio Leonel @ 2007-06-21 18:54 UTC (permalink / raw)
  To: buildroot

Hi,

That's it, there is nothing to be done with the toolchain
or uClibc, we just need to configure the kernel to use math emulation !
The kernel will intercept the FPU instructions and
emulate them in software.

Thanks,

Claudio Leonel



Mats Erik Andersson wrote:
> Hi again!
> 
> Just a quick idea: In the kernel configuration there is an
> option for building floating point emulation when targeting
> to i386. Could you find some function name in that code in
> order to search for the corresponding part within uClibc?
> I will keep thinking!
> 
> Best regards          Mats E A
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-06-21 18:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-16 13:19 [Buildroot] Toolchain for i386 with floating point emulation Claudio Leonel
2007-06-16 17:43 ` Mats Erik Andersson
2007-06-17 14:28   ` Claudio Leonel
     [not found]     ` <1182092405.3642.20.camel@localhost>
     [not found]       ` <46766463.8030504@elaxys.com.br>
     [not found]         ` <1182166638.3576.20.camel@localhost>
2007-06-21 18:54           ` Claudio Leonel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox