[fpc-devel] compile fpc for i386 from a 64 bit machine
Joost van der Sluis
joost at cnoc.nl
Thu Nov 29 10:28:47 CET 2007
Op donderdag 29-11-2007 om 10:19 uur [tijdzone +0100], schreef Alvise
Nicoletti:
> Hi... I need to cross-compile an application in a 64 bit environment,
> (fully working with lazarus 0.9.23 and FPC 2.2.1), for 32 bits archs.
>
> I tryed to follow this guide:
> http://wiki.lazarus.freepascal.org/Cross_compiling
>
> But I have the following errors:
> /home/siteland/lazarus/FPC_2.2.1/compiler/ppc -Ur -Xs -O2 -n -Fui386
> -Fusystems -Fu/home/siteland/lazarus/FPC_2.2.1/rtl/units/x86_64-linux
> -Fii386 -FE. -FUi386/units/x86_64-linux -Cg -dRELEASE -di386 -dGDB
> -dBROWSERLOG -Fux86 pp.pas
> fpcdefs.inc(111,2) Error: User defined: Cross-compiling from non-i386 to
> i386 is not yet supported at this time
> fpcdefs.inc(111,2) Error: User defined: Cross-compiling from non-i386 to
> i386 is not yet supported at this time
> fpcdefs.inc(111,2) Error: User defined: Cross-compiling from non-i386 to
> i386 is not yet supported at this time
> fpcdefs.inc(111,2) Error: User defined: Cross-compiling from non-i386 to
> i386 is not yet supported at this time
> cutils.pas(148,1) Fatal: There were 4 errors compiling module, stopping
>
> This is my arch:
> Linux myserver 2.6.15-28-amd64-server #1 SMP Wed Jul 18 23:04:02 UTC
> 2007 x86_64 GNU/Linux
Most linux-distubutions do support 32 bit and 64 bit at the same time.
So you can just install the 32-bit fpc-compiler on your system, and use
this compiler to create 32-bit applications on your 64/32-bit OS.
Joost.
More information about the fpc-devel
mailing list