[fpc-pascal] Help building FPC on armhf
Michael Ring
mail at michael-ring.org
Sun Jun 28 15:56:24 CEST 2015
I am using parameters suggested on this page (modified for armv7a):
http://michellcomputing.co.uk/blog/2014/05/freepascal-2-7-1-on-raspberry-pi/
OPT="-dREVINC -dFPC_ARMHF -CX -CpARMV7A -CfVFPV3_D16 -OpARMV7A -O2
-OoFASTMATH -XX -Xs"
as your error seems to be caused by some conditional parsing the extra
defines above might help (or not .....)
Michael
Am 28.06.15 um 14:16 schrieb Andrew Brunner:
>
>
> On 6/28/2015 4:47 AM, Jonas Maebe wrote:
>> 1) the error you get means that the "fpc" binary is not in your path.
>> Building FPC always has been and always will be only supported with
>> an existing, complete installation of the latest FPC release in your
>> path 2) FPC 2.6.4 does not contain ARMHF support (except in an
>> unofficial, and completely unsupported by us, Debian backport) 3)
>> "ARM hard float" not a different kind of CPU compared to ARM. To
>> build FPC for ARM hard-float using a non-ARMHF compiler, perform a
>> make all for CPU_TARGET=ARM with OPT="-dARMHF"
>
> Thanks Jonas, I was able to get a bit further along in the build
> process.
>
> 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
> system.inc(1884,8) Warning: Implicit string type conversion from
> "RawByteString" to "UnicodeString"
> system.pp(377) Fatal: There were 1 errors compiling module, stopping
> Makefile:3573: recipe for target 'system.ppu' failed
> make[7]: *** [system.ppu] Error 1
> make[7]: Leaving directory '/Developer/FPC/rtl/linux'
> Makefile:1950: recipe for target 'linux_all' failed
> make[6]: *** [linux_all] Error 2
> make[6]: Leaving directory '/Developer/FPC/rtl'
> Makefile:4157: recipe for target 'rtl' failed
> make[5]: *** [rtl] Error 2
> make[5]: Leaving directory '/Developer/FPC/compiler'
> Makefile:4046: recipe for target 'next' failed
> make[4]: *** [next] Error 2
> make[4]: Leaving directory '/Developer/FPC/compiler'
> Makefile:4055: recipe for target 'ppc2' failed
> make[3]: *** [ppc2] Error 2
> make[3]: Leaving directory '/Developer/FPC/compiler'
> Makefile:4063: recipe for target 'cycle' failed
> make[2]: *** [cycle] Error 2
> make[2]: Leaving directory '/Developer/FPC/compiler'
> Makefile:2826: recipe for target 'compiler_cycle' failed
> make[1]: *** [compiler_cycle] Error 2
> make[1]: Leaving directory '/Developer/FPC'
> Makefile:2858: recipe for target 'build-stamp.arm-linux' failed
> make: *** [build-stamp.arm-linux] Error 2
>
>
More information about the fpc-pascal
mailing list