On 08 Feb 2012, at 15:31, Koenraad Lelong wrote:

After some debugging, I think my compiler does not work. I'm pretty certain it outputs arm-code in stead of the needed thumb2 code.

The error below indicates the compiler does not get to emitting any kind of code at all.

I just tried to make a crosscompiler using svn 20278, which fails :

make rtl_all FPC=/home/koenraad/devel/fpc-svn/compiler/ppcrossarm RELEASE=1
make[1]: Map '/home/koenraad/devel/fpc-svn' wordt binnengegaan
make -C rtl all
make[2]: Map '/home/koenraad/devel/fpc-svn/rtl' wordt binnengegaan
make -C embedded all
make[3]: Map '/home/koenraad/devel/fpc-svn/rtl/embedded' wordt binnengegaan
/bin/mkdir -p /home/koenraad/devel/fpc-svn/rtl/units/arm-embedded
/home/koenraad/devel/fpc-svn/compiler/ppcrossarm -Cparmv7m @rtl.cfg - Ur -Tembedded -Parm -XParm-none-eabi- -Xr -Ur -Xs -O2 -n -Fi../inc - Fi../arm -FD/home/koenraad/CodeSourcery/ Sourcery_CodeBench_Lite_for_ARM_EABI/bin -FE. -FU/home/koenraad/ devel/fpc-svn/rtl/units/arm-embedded -darm -dRELEASE -CfSoft -Us -Sg system.pp text.inc(1897,3) Fatal: Unknown compilerproc "fpc_ansistr_assign". Check if you use the correct run time library.

This means you are trying to compile an FPC 2.6.x (or 2.4.x) RTL using an FPC 2.7.x starting compiler, or an FPC 2.7.x RTL using an FPC 2.7.x compiler built from a different 2.7.x revision.

Always first build a native compiler for the version you want to use (starting with the previous release relative to that version), and use the resulting native compiler to build a cross-compiler from those same sources.


Jonas
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to