[fpc-pascal] make CPU_TARGET=arm OS_TARGET=linux ignores both flags

ik idokan at gmail.com
Mon Nov 23 15:37:42 CET 2009

Thanks Jonas.


does create a cross compile, but does not pack the ppcrossarm . Is there a
way I can make a cross compiler zipinstall to install (at the end) as a
package in my linux ?



On Mon, Nov 23, 2009 at 3:06 PM, Jonas Maebe <jonas.maebe at elis.ugent.be>wrote:

> On 23 Nov 2009, at 13:58, ik wrote:
>  I'm trying to cross compile FPC 2.5.1 in Linux 64 bit (in Arch Linux) to
>> arm
>> (eabi) cpu.
>> When I'm using
>> make CPUT_TARGET=arm OS=TARGET=linux all
> That should be CPU_TARGET, not CPUT_TARGET, and OS_TARGET instead of
>  The make file build an x86_64 units and not arm units. The result is also
>> not ppcrossarm but ppcx64.
> That's probably because of the above.
>  Only when I'm doing:
>> make OPT='-dFPC_ARMEL -dFPC_ABI_EABI -Xd -Tlinux -CaEABI -Op arm'
> I think you have to add at least OPT='-dFPC_ARMEL -dFPC_ABI_EABI -Xd' to
> the first command anyway, otherwise you'll probably get an OABI instead of
> an EABI compiler (and the -Xd makes sure the compiler ignores the standard
> search paths). The "-Op arm" is a bogus parameter, so remove that (-Op
> expects a cpu type right after the p, without a space; right now, you are
> not setting any cpu type, and passing "arm" as separate parameter to the
> compiler).
> If ain't broken, don't try to fix it. The second command works (and I think
> the only things that may be superfluous, when you compile under linux, are
> the "-Tlinux -Op arm" parameters).
> Jonas
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20091123/378c1928/attachment.html>

More information about the fpc-pascal mailing list