Re: [fpc-pascal]ARM compiling error

2004-06-17 Thread Vincent Snijders
On Wed, 16 Jun 2004 12:25:31 +0200
"Jose Pascual" <[EMAIL PROTECTED]> 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


> --- 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.


crth.patch.gz
Description: GNU Zip compressed data


RE: [fpc-pascal]ARM compiling error

2004-06-17 Thread Jose Pascual
Patch applied
but right now the compiling stop in system.pp

DUMP SCREEN--
arm-linux-as -o prt0.o arm/prt0.as
arm-linux-as -o dllprt0.o arm/dllprt0.as
arm-linux-as -o cprt0.o arm/cprt0.as
arm-linux-as -o gprt0.o arm/gprt0.as
/trabajo/programas/freepascal/cvs/fpc/compiler/ppcrossarm -Ur
-XParm-linux- -Xc -Xr -Xs  -n -Fi../inc -Fi../arm -Fi../unix -Fiarm -FE.
-darm -dRELEASE -Us -Sg system.pp
Panic : Internal compiler error, exiting.
sstrings.inc(602,1) Fatal: Internal error 
make[4]: *** [system.ppu] Error 1
make[4]: Leaving directory
`/trabajo/programas/freepascal/cvs/fpc/rtl/linux'
make[3]: *** [rtl] Error 2
make[3]: Leaving directory
`/trabajo/programas/freepascal/cvs/fpc/compiler'
make[2]: *** [cycle] Error 2
make[2]: Leaving directory
`/trabajo/programas/freepascal/cvs/fpc/compiler'
make[1]: *** [compiler_cycle] Error 2
make[1]: Leaving directory `/trabajo/programas/freepascal/cvs/fpc'
make: *** [build-stamp.linux] Error 2

regards

> -Mensaje original-
> De: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] En nombre de 
> Vincent Snijders
> Enviado el: jueves, 17 de junio de 2004 11:44
> Para: [EMAIL PROTECTED]
> Asunto: Re: [fpc-pascal]ARM compiling error
> 
> 
> On Wed, 16 Jun 2004 12:25:31 +0200
> "Jose Pascual" <[EMAIL PROTECTED]> 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
> 
> 
> > --- 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.
> 
> 
> __ Información de NOD32 1.789 (20040614) __
> 
> Este mensaje ha sido analizado con  NOD32 Antivirus System
> http://www.nod32.com
> 
> 
> 
> __ Información de NOD32 1.789 (20040614) __
> 
> Este mensaje ha sido analizado con  NOD32 Antivirus System
> http://www.nod32.com
> 
> 


___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal]ARM compiling error

2004-06-17 Thread Peter Vreman

>
> 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.
Thanks, patch applied.
Peter
___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal