Re: [fpc-pascal] problem compiling svn-fpc for arm-linux

2006-04-02 Thread Koenraad Lelong

Florian Klaempfl schreef:

Koenraad Lelong wrote:


Koenraad Lelong schreef:


Jonas Maebe schreef:



...


...

I'm going to look at this.
Regards,
Koenraad Lelong.


I got past this error by modifying sysstr.inc (see the enclosed diff). I
hope it's an acceptable patch.



No ;) It solves the problem but not the cause :) I'll look into it when
I find time ;)


I don't know if it's usefull : those lfm and sfm instructions seem to be 
 limited to 10 bit offsets (max 1024, 4byte boundary, found by trail 
and error).
I didn't find much information in arm-docs about those floating point 
register instructions.

Regards,
Koenraad Lelong.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] problem compiling svn-fpc for arm-linux

2006-04-02 Thread Florian Klaempfl
Koenraad Lelong wrote:
> Koenraad Lelong schreef:
>> Jonas Maebe schreef:
>>
> ...
>> /home/koenraad/fpc-devel/fpc/compiler/ppcrossarm -Ur -XParm-linux- -Xc
>> -Xr -Ur -Xs -O2 -n -Fi../inc -Fi../arm -Fi../unix -Fiarm -FE.
>> -FU/home/koenraad/fpc-devel/fpc/rtl/units/arm-linux -darm -dRELEASE
>> ../objpas/sysconst.pp
>> /home/koenraad/fpc-devel/fpc/compiler/ppcrossarm -Ur -XParm-linux- -Xc
>> -Xr -Ur -Xs -O2 -n -Fi../inc -Fi../arm -Fi../unix -Fiarm -FE.
>> -FU/home/koenraad/fpc-devel/fpc/rtl/units/arm-linux -darm -dRELEASE
>> -Fi../objpas/sysutils ../unix/sysutils.pp
>> /home/koenraad/fpc-devel/fpc/rtl/units/arm-linux/sysutils.s: Assembler
>> messages:
>> /home/koenraad/fpc-devel/fpc/rtl/units/arm-linux/sysutils.s:11815:
>> Error: offset too large -- `sfm f4,1,[r11,#-1152]'
>> /home/koenraad/fpc-devel/fpc/rtl/units/arm-linux/sysutils.s:11862:
>> Error: offset too large -- `lfm f4,1,[r11,#-1152]'
>> sysutils.pp(551,20) Error: Error while assembling exitcode 1
>> sysutils.pp(551,20) Fatal: There were 2 errors compiling module, stopping
>> Fatal: Compilation aborted
>> make[5]: *** [sysutils.ppu] Fout 1
>> make[5]: Leaving directory `/home/koenraad/fpc-devel/fpc/rtl/linux'
>> make[4]: *** [linux_all] Fout 2
>> make[4]: Leaving directory `/home/koenraad/fpc-devel/fpc/rtl'
>> make[3]: *** [rtl] Fout 2
>> make[3]: Leaving directory `/home/koenraad/fpc-devel/fpc/compiler'
>> make[2]: *** [cycle] Fout 2
>> make[2]: Leaving directory `/home/koenraad/fpc-devel/fpc/compiler'
>> make[1]: *** [compiler_cycle] Fout 2
>> make[1]: Leaving directory `/home/koenraad/fpc-devel/fpc'
>> make: *** [build-stamp.arm-linux] Fout 2
>> I'm going to look at this.
>> Regards,
>> Koenraad Lelong.
> I got past this error by modifying sysstr.inc (see the enclosed diff). I
> hope it's an acceptable patch.

No ;) It solves the problem but not the cause :) I'll look into it when
I find time ;)

> Now I'm having internal error 200203271 when compiling
> buildgtk2.pp/gtkspinbutton.inc. I'm going to look at that.
> Regards,
> Koenraad Lelong.
> 
> 
> 
> 
> Index: fpc/rtl/objpas/sysutils/sysstr.inc
> ===
> --- fpc/rtl/objpas/sysutils/sysstr.inc(revision 3121)
> +++ fpc/rtl/objpas/sysutils/sysstr.inc(working copy)
> @@ -1917,7 +1917,7 @@
>  Function FormatFloat(Const format: String; Value: Extended): String;
>  
>  Var
> -  buf : Array[0..1024] of char;
> +  buf : Array[0..1023] of char;
>  
>  Begin
>Buf[FloatToTextFmt(@Buf[0],Value,Pchar(Format))]:=#0;
> 
> 
> 
> 
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Internal error 200203271

2006-04-02 Thread Koenraad Lelong

Hi,
When I ty to compile fpc-svn for arm-linux it stops with Internal error 
200203271 when buildgtk2.pp/gtkspinbutton.inc is compiled.

I backtraced this :
Breakpoint 1, INTERNALERROR () at verbose.pas:446
446   begin
(gdb) bt
#0  INTERNALERROR () at verbose.pas:446
#1  0x080c9fdd in VTREF46_VMT_CGOBJ_TCG$$49 () at cgobj.pas:896
#2  0x08129759 in VTREF67_VMT_CGOBJ_TCG64$$28 () at ncgld.pas:649
#3  0x08123e00 in VTREF1_VMT_NODE_TNODE$$30 () at pass_2.pas:175
#4  0x08127b4a in TCGBLOCKNODE__PASS_2 () at ncgbas.pas:345
#5  0x08123e00 in VTREF1_VMT_NODE_TNODE$$30 () at pass_2.pas:175
#6  0x08127b4a in TCGBLOCKNODE__PASS_2 () at ncgbas.pas:345
#7  0x08123e00 in VTREF1_VMT_NODE_TNODE$$30 () at pass_2.pas:175
#8  0x08123e9f in DO_SECONDPASS () at pass_2.pas:205
#9  0x080e2665 in VTREF59_VMT_PARAMGR_TPARAMANAGER$$32 () at psub.pas:807
#10 0x080e343f in DO_GENERATE_CODE (parentfp=0xa8838b) at psub.pas:1274
#11 0x080e3394 in VTREF65_VMT_PROCINFO_TPROCINFO$$21 () at psub.pas:1349
#12 0x080e36aa in READ_PROC () at psub.pas:1484
#13 0x080e3a11 in READ_DECLARATIONS () at psub.pas:1592
#14 0x080e10eb in BLOCK () at psub.pas:165
#15 0x080e2f8d in TCGPROCINFO__PARSE_BODY () at psub.pas:1156
#16 0x080e0179 in VTREF16_VMT_SYMBASE_TSYMTABLE$$22 () at pmodules.pas:1008
#17 0x08090755 in COMPILE (FILENAME='./gtk+/gtk/gtk2.pas') at parser.pas:422
#18 0x080d6e72 in VTREF31_VMT_FPPU_TPPUMODULE$$21 () at fppu.pas:1411
#19 0x080df578 in VTREF9_VMT_SYMBASE_TSYMTABLE$$22 () at pmodules.pas:592
#20 0x080dfeb2 in VTREF16_VMT_SYMBASE_TSYMTABLE$$22 () at pmodules.pas:905
#21 0x08090755 in COMPILE (FILENAME='buildgtk2.pp') at parser.pas:422
#22 0x080627fc in COMPILE (CMD='') at compiler.pas:375
#23 0x0804829d in main () at pp.pas:212

Is this enough information to solve this ?
Regards,
Koenraad Lelong.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] problem compiling svn-fpc for arm-linux

2006-04-02 Thread Koenraad Lelong

Koenraad Lelong schreef:

Jonas Maebe schreef:


...
/home/koenraad/fpc-devel/fpc/compiler/ppcrossarm -Ur -XParm-linux- -Xc 
-Xr -Ur -Xs -O2 -n -Fi../inc -Fi../arm -Fi../unix -Fiarm -FE. 
-FU/home/koenraad/fpc-devel/fpc/rtl/units/arm-linux -darm -dRELEASE 
../objpas/sysconst.pp
/home/koenraad/fpc-devel/fpc/compiler/ppcrossarm -Ur -XParm-linux- -Xc 
-Xr -Ur -Xs -O2 -n -Fi../inc -Fi../arm -Fi../unix -Fiarm -FE. 
-FU/home/koenraad/fpc-devel/fpc/rtl/units/arm-linux -darm -dRELEASE 
-Fi../objpas/sysutils ../unix/sysutils.pp
/home/koenraad/fpc-devel/fpc/rtl/units/arm-linux/sysutils.s: Assembler 
messages:
/home/koenraad/fpc-devel/fpc/rtl/units/arm-linux/sysutils.s:11815: 
Error: offset too large -- `sfm f4,1,[r11,#-1152]'
/home/koenraad/fpc-devel/fpc/rtl/units/arm-linux/sysutils.s:11862: 
Error: offset too large -- `lfm f4,1,[r11,#-1152]'

sysutils.pp(551,20) Error: Error while assembling exitcode 1
sysutils.pp(551,20) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
make[5]: *** [sysutils.ppu] Fout 1
make[5]: Leaving directory `/home/koenraad/fpc-devel/fpc/rtl/linux'
make[4]: *** [linux_all] Fout 2
make[4]: Leaving directory `/home/koenraad/fpc-devel/fpc/rtl'
make[3]: *** [rtl] Fout 2
make[3]: Leaving directory `/home/koenraad/fpc-devel/fpc/compiler'
make[2]: *** [cycle] Fout 2
make[2]: Leaving directory `/home/koenraad/fpc-devel/fpc/compiler'
make[1]: *** [compiler_cycle] Fout 2
make[1]: Leaving directory `/home/koenraad/fpc-devel/fpc'
make: *** [build-stamp.arm-linux] Fout 2
I'm going to look at this.
Regards,
Koenraad Lelong.
I got past this error by modifying sysstr.inc (see the enclosed diff). I 
hope it's an acceptable patch.
Now I'm having internal error 200203271 when compiling 
buildgtk2.pp/gtkspinbutton.inc. I'm going to look at that.

Regards,
Koenraad Lelong.
Index: fpc/rtl/objpas/sysutils/sysstr.inc
===
--- fpc/rtl/objpas/sysutils/sysstr.inc  (revision 3121)
+++ fpc/rtl/objpas/sysutils/sysstr.inc  (working copy)
@@ -1917,7 +1917,7 @@
 Function FormatFloat(Const format: String; Value: Extended): String;
 
 Var
-  buf : Array[0..1024] of char;
+  buf : Array[0..1023] of char;
 
 Begin
   Buf[FloatToTextFmt(@Buf[0],Value,Pchar(Format))]:=#0;
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal