[fpc-pascal] How to crosscompile i386-linux from X86_64-win64
ulrich
romrum at cbox.cz
Wed Mar 30 10:23:50 CEST 2016
Dne 29.3.2016 v 12:19 Sven Barth napsal(a):
> Am 29.03.2016 10:30 schrieb "Jonas Maebe"
> <jonas.maebe at elis.ugent.be
> <mailto:jonas.maebe at elis.ugent.be>>:
> >
> > On 29/03/16 09:58, ulrich wrote:
> >>
> >> what parameter(s) need to cross-compiling i386-Linux from X86_64-win64 ?
> >
> >
> > It is not possible, because the needed 80 bits extended type is not
> supported on Win64, and we don't have emulation for this type yet in the
> compiler. You can follow http://bugs.freepascal.org/view.php?id=9262 if
> you wish to be notified in case this ever gets implemented.
> >
>
> However on Windows there's no real penalty in using the i386-win32
> release for this instead of the x86_64-win64 one.
Thanks,
c:\lazarus16\fpc\3.0.0\bin\i386-win32\make.exe CROSSCOMPILE=1
CPU_TARGET=i386 OS_TARGET=linux all
CROSSBINUTILS=c:\lazarus16\fpc\3.0.0\bin\i386-linux
BINUTILSPREFIX=i386-linux-
I do not know what I'm doing wrong, but this is the result:
c:/lazarus16/fpc/3.0.0/bin/i386-win32/make -C C:/lazarus16/fpc/3.0.0/rtl
'OPT= ' all
make[4]: Entering directory `C:/lazarus16/fpc/3.0.0/rtl'
c:/lazarus16/fpc/3.0.0/bin/i386-win32/make -C win32 all
make[5]: Entering directory `C:/lazarus16/fpc/3.0.0/rtl/win32'
c:/lazarus16/fpc/3.0.0/bin/i386-win32/ppc386.exe -Ur -Xs -O2 -n
-Fi../inc -Fi../i386 -Fi../win -FE.
-FUC:/lazarus16/fpc/3.0.0/rtl/units/i386-win32 -di386 -dRELEASE -Us -Sg
system.pp -Fi../win
systemh.inc(138,16) Error: Duplicate identifier "FarPointer"
systemh.inc(138,29) Error: Identifier not found "NearFsPointer"
systemh.inc(138,29) Error: Error in type definition
systemh.inc(1059,75) Error: Type "FarPointer" is not completely defined
system.pp(107,34) Fatal: There were 4 errors compiling module, stopping
Fatal: Compilation aborted
make[5]: *** [system.ppu] Error 1
make[5]: Leaving directory `C:/lazarus16/fpc/3.0.0/rtl/win32'
make[4]: *** [win32_all] Error 2
make[4]: Leaving directory `C:/lazarus16/fpc/3.0.0/rtl'
make[3]: *** [rtl] Error 2
make[3]: Leaving directory `C:/lazarus16/fpc/3.0.0/compiler'
make[2]: *** [cycle] Error 2
make[2]: Leaving directory `C:/lazarus16/fpc/3.0.0/compiler'
make[1]: *** [compiler_cycle] Error 2
make[1]: Leaving directory `C:/lazarus16/fpc/3.0.0'
make: *** [build-stamp.i386-linux] Error 2
Ulrich
>
> Regards,
> Sven
>
>
>
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>
More information about the fpc-pascal
mailing list