[fpc-pascal] fpc 2.6.0 for arm-embedded

Koenraad Lelong fpascal at brouwerij.homelinux.net
Wed Feb 8 15:31:02 CET 2012


> I do have a working crosscompiler (I think), only I have to call it via
> /usr/lib/fpc/2.6.0/ppcrossarm ..., instead of via fpc ...
> The code seems not to work, but that could be my own RTL, which I copied
> from SMT32F103RE. I'm working on that.
>

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.

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.
Fatal: Compilation aborted
make[3]: *** [system.ppu] Fout 1
make[3]: Map '/home/koenraad/devel/fpc-svn/rtl/embedded' wordt verlaten
make[2]: *** [embedded_all] Fout 2
make[2]: Map '/home/koenraad/devel/fpc-svn/rtl' wordt verlaten
make[1]: *** [rtl_all] Fout 2
make[1]: Map '/home/koenraad/devel/fpc-svn' wordt verlaten
make: *** [base.build-stamp.arm-embedded] Fout 2

Any thoughts ?

Thanks,

Koenraad.



More information about the fpc-pascal mailing list