[fpc-pascal] Bug in RTL for arm

Martin Schreiber fpmse at bluewin.ch
Mon Feb 20 12:44:17 CET 2006


On Sunday 19 February 2006 19.04, Koenraad Lelong wrote:
> Hi,
> Today I did an update via svn. When I compiled for arm (in the hope that
> the bug I encountered a while ago would have disappeared) I found a bug
> in rtl/linux/arm/sysnr.inc :
> Const
>   syscall_nr_base = syscall_nr_base;
> I modified this to :
> Const
>   syscall_nr_base = $900000;
> which is similar to fpc 2.0.2. When I compiled this I got my ususal error :
....
Do you have compiler option -e/usr/local/arm-linux/bin or similar?
With fixes_2_0 rev. 2644 and attached MSEide project (adjust 
'Project'-'Options'-'Macros'-'MSEDIR' and 'FPCDIR') I can compile until next 
compiler AV:

Free Pascal Compiler version 2.0.3 [2006/02/20] for arm
Copyright (c) 1993-2005 by Florian Klaempfl
Target OS: Linux for ARM
Compiling demo.pas
Compiling /home/mse/proj/msegui/branches/fixes_0_8/lib/common/kernel/msegui.pas
Compiling /home/mse/proj/msegui/branches/fixes_0_8/lib/common/kernel/msegraphics.pas
Compiling /home/mse/proj/msegui/branches/fixes_0_8/lib/common/kernel/msegui.pas
Compiling /home/mse/proj/msegui/branches/fixes_0_8/lib/common/kernel/msepointer.pas
Compiling /home/mse/proj/msegui/branches/fixes_0_8/lib/common/kernel/msetimer.pas
Compiling /home/mse/proj/msegui/branches/fixes_0_8/lib/common/kernel/msegui.pas
Compiling /home/mse/proj/msegui/branches/fixes_0_8/lib/common/kernel/msepointer.pas
Compiling /home/mse/proj/msegui/branches/fixes_0_8/lib/common/kernel/msegui.pas
Compiling /home/mse/proj/msegui/branches/fixes_0_8/lib/common/kernel/msebitmap.pas
Compiling /home/mse/proj/msegui/branches/fixes_0_8/lib/common/kernel/msegui.pas
msegui.pas(8004,2) Note: Local variable "window" is assigned but never used
msegui.pas(4,74) Fatal: Compilation aborted
An unhandled exception occurred at $0809BF4E :
EAccessViolation : Access violation
  $0809BF4E  TCGARM__A_LOAD_CONST_REG,  line 578 of ./arm/cgcpu.pas
  $0809B9F5  TCGARM__A_OP_CONST_REG_REG_CHECKOVERFLOW,  line 436 
of ./arm/cgcpu.pas
  $0809B593  TCGARM__A_OP_CONST_REG_REG,  line 323 of ./arm/cgcpu.pas
  $0809B43D  TCGARM__A_OP_CONST_REG,  line 287 of ./arm/cgcpu.pas
  $080CE4DF  TCG__G_ADJUST_SELF_VALUE,  line 2065 of cgobj.pas
  $0809DFA1  TCGARM__G_INTF_WRAPPER,  line 1479 of ./arm/cgcpu.pas
  $0811F36C  GEN_INTF_WRAPPER,  line 2370 of ncgutil.pas
  $0811F3DF  GEN_INTF_WRAPPERS,  line 2386 of ncgutil.pas
  $080E20A9  PROC_UNIT,  line 1303 of pmodules.pas
  $080904BA  COMPILE,  line 532 of parser.pas
  $080D8531  TPPUMODULE__LOADPPU,  line 1509 of fppu.pas
  $080D7E8F  TPPUMODULE__LOAD_USEDUNITS,  line 1244 of fppu.pas
  $080D8435  TPPUMODULE__LOADPPU,  line 1471 of fppu.pas
  $080E0BD6  LOADUNITS,  line 622 of pmodules.pas
  $080E1371  PARSE_IMPLEMENTATION_USES,  line 840 of pmodules.pas
  $080E1D3C  PROC_UNIT,  line 1185 of pmodules.pas
  $080904BA  COMPILE,  line 532 of parser.pas

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: demoarm.prj.zip
Type: application/x-zip
Size: 2592 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20060220/59568228/attachment.bin>


More information about the fpc-pascal mailing list