[fpc-pascal] Why can't you cross-compile from x86_64-linux to i386-linux?

Sven Barth pascaldragon at googlemail.com
Wed Mar 7 09:37:34 CET 2012


Am 07.03.2012 08:33, schrieb Graeme Geldenhuys:
> As the subject line says? As can be seen below, i386 is not a supported target.
>
> -------------------------------
> $ fpc -i
> Free Pascal Compiler version 2.6.1
>
> Compiler Date      : 2012/02/29
> Compiler CPU Target: x86_64
>
> Supported targets:
>    Linux for x86-64
>    FreeBSD for x86-64
>    Win64 for x64
>    Darwin for x86_64
>    Solaris for x86-64 (under development)
>
> ...
> -------------------------------
>

Graeme, please. You should be around here long enough to already know 
that. ;)

Your fpc is compiled for x86_64 which defaults to calling ppcx64 which 
can only compile for x86_64. If you now pass "fpc -i -Pi386" and have a 
ppcross386 compiler available in the location fpc looks for then you'll 
see the available targets for i386 (cross-)compilation. Same for other 
platforms like ARM, Sparc, PowerPC, etc.

Regards,
Sven




More information about the fpc-pascal mailing list