[fpc-pascal] Help building FPC on armhf

Jonas Maebe jonas.maebe at elis.ugent.be
Mon Jun 29 14:41:54 CEST 2015


Andrew Brunner wrote on Sun, 28 Jun 2015:

> make clean all OPT=-dARMHF DEBUG=1 OS_TARGET=linux CPU_TARGET=arm  
> CPU_SOURCE=arm
>
> Building crashes at compiling system.pp
>
> as   -o /Developer/FPC/rtl/units/arm-linux/dllprt0.o arm/dllprt0.as
> as  -o /Developer/FPC/rtl/units/arm-linux/cprt0.o arm/cprt0.as
> as  -o /Developer/FPC/rtl/units/arm-linux/gprt0.o arm/gprt0.as
> as  -o /Developer/FPC/rtl/units/arm-linux/ucprt0.o arm/ucprt0.as
> /Developer/FPC/compiler/ppc1 -Ur -gl -Ur -Xs -O2 -n -Fi../inc  
> -Fi../arm -Fi../unix -Fiarm -FE.  
> -FU/Developer/FPC/rtl/units/arm-linux -dARMHF -darm -dDEBUG  
> -dRELEASE -Us -Sg system.pp
> flt_pack.inc(119,5) Error: Syntax error while parsing a conditional  
> compiling expression

That suggests a miscompiled ppc1. You can try using OPT="-dARMHF -O-"  
for the initial bootstrap to avoid potential wrong optimisations by  
the 2.6.4 starting compiler. Unrelated to this, you should probably  
also specify the correct architecture and VFP version for your  
platform, similar to what Michael suggested (but not necessarily the  
same, as it depends on your CPU).


Jonas



More information about the fpc-pascal mailing list