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.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to