[fpc-pascal]ARM compiling error

Vincent Snijders vslist at zonnet.nl
Thu Jun 17 11:44:23 CEST 2004


On Wed, 16 Jun 2004 12:25:31 +0200
"Jose Pascual" <josepascual at almudi.com> wrote:

> 
> I have tried to build last cvs version 1.9.4 for ARM and It can't
> compile
> 
> I'm using ppc386 version 1.0.10 to make it!
> 
> #>
> #> make clean all OS_TARGET=linux CPU_TARGET=arm
> BINUTILSPREFIX=arm-linux-
> #>
> 
> ------------------ DUMP SCREEN --------------------------- 
> /usr/bin/ppc386 -dUNIX -Ur -Xs -OG2p3 -n -Fi../inc -Fi../i386 -Fi../unix
> -Fii386 -FE. -di386 -dRELEASE ../unix/dos.pp
> /usr/bin/ppc386 -dUNIX -Ur -Xs -OG2p3 -n -Fi../inc -Fi../i386 -Fi../unix
> -Fii386 -FE. -di386 -dRELEASE ../unix/crt.pp
> crth.inc(60,18) Fatal: Syntax error, ; expected but = found
<snipped rest of make output>

> --------------- this is line 60 in crth.inc-------------
>   TextAttr: Byte = $07;         { Current text attribute }
> --------------------------------------------------
> 
> it seems as know about Byte but not about initializating value in this
> line, perhaps because it's byte type?
> Any suggestion? 
This is not a ARM specific error, I have it on linux too. It is caused by the fact that fpc 1.0 doesn't know initialized variables, only typed constants.

Attached patch fixes cycling the compiler again.

Regards,
Vincent.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crth.patch.gz
Type: application/x-gzip
Size: 440 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20040617/bf0910e8/attachment.bin>


More information about the fpc-pascal mailing list