[fpc-devel] Cross compiling x86_64 -> ARM (RPi) | EABI mis-match.

Bruce Tulloch pascal at causal.com
Thu May 23 05:54:19 CEST 2013


I built FPC 2.7.1 from trunk to cross compile as:

make crossall crosszipinstall \
CPU_TARGET=arm OS_TARGET=linux \
CROSSBINDIR=/usr/local/opt/binutils/bin \
BINUTILSPREFIX=arm-linux- \
OPT="-XX -CX -dFPC_ARMHF"

When using this cross compiler to build my code (also with -dFPC_ARMHF) I
get this error at the end of the link:

/usr/local/lib/fpc/2.7.1/units/arm-linux/rtl/cprt0.o has EABI version 0,
but target a.out has EABI version 5

which suggests the RTL was not built with EABI 5.

I used FPC 2.6.2 to build this FPC 2.7.1 cross compiler. Do I need to use
FPC 2.7.1 to build it instead or is there some other reason for this
problem?

Bruce.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20130523/7147c2f6/attachment.html>


More information about the fpc-devel mailing list