[fpc-devel] cross copiling x86_64 to i386 ?

Vincent Snijders vincent.snijders at gmail.com
Wed Aug 29 08:40:52 CEST 2012


2012/8/28 Martin <lazarus at mfriebe.de>:
> I might be doing something wrong.
>
> I was trying to build a cross compiler (well I took a script that is to
> build a arm cross, and only did a search and replace... So there is plenty
> of room for error on by side.
>
> Before I go and look deeper: Should it work. Or is the below correct and it
> is not yet possible?
>
>
> C:/FPC/tag_build_2_6_0/fpcsrc/compiler/ppcx64.exe -Ur -Xs -O2 -n -Fui386
> -Fusystems -FuC:/fpc/tag_build_2_6_0/fpcsrc/rtl/units/x86_64-win64 -Fii386
> -FE. -FUi386
> /units/x86_64-win64 -dRELEASE  -di386 -dGDB -dBROWSERLOG -Fux86 pp.pas
> fpcdefs.inc(160,2) Error: User defined: Cross-compiling from systems without
> support for an 80 bit extended floating point type to i386 is not yet
> supported at
> this time
> fpcdefs.inc(160,2) Error: User defined: Cross-compiling from systems without
> support for an 80 bit extended floating point type to i386 is not yet
> supported at
> this time
> fpcdefs.inc(160,2) Error: User defined: Cross-compiling from systems without
> support for an 80 bit extended floating point type to i386 is not yet
> supported at
> this time
> cutils.pas(154,1) Fatal: There were 3 errors compiling module, stopping
> Fatal: Compilation aborted

AFAIK, 80 bits floating point (extended) is not supported on win64 by
Microsoft (it is on linux 64 bits).
For consequences see the user defined errors, which explain it. Remedy
is writing/ / using softfloat emulation for calcutions in the compiler
that require extended precision when targeting i386.

Vincent



More information about the fpc-devel mailing list