compiler crashes with range check error
Original Reporter info from Mantis: Martin @martin_frb
-
Reporter name: Martin Friebe
Original Reporter info from Mantis: Martin @martin_frb
- Reporter name: Martin Friebe
Description:
Vista, win 32, svn trunk r17548
I got the below crash while making fpc itself.
make clean
make.exe all LINKSMART=1 CREATESMART=1 DEBUG=1 OPTIMIZE=0 OPT="-gl -gw -godwarfsets -O1 -Cr" FPC=c:\FPC\trunk_cr\bin\i386-win32\fpc.exe
Steps to reproduce:
c:\FPC\trunk_cr\bin\i386-win32\fpc.exe is the fpc with the same revision, but build without -Cr.
(So yes I realize, there is no guarantee this will build, but it should not crash. It is an older batch script, needs clean up...)
Since the compiler that crashes is C:/FPC/SVN/trunc/compiler/ppc1.exe, I assume the exact details of c:\FPC\trunk_cr\bin\i386-win32\fpc.exe wont matter?
Additional information:
make.exe[7]: Leaving directory C:/FPC/SVN/trunc/rtl/win32'<br/> make.exe[6]: Leaving directory
C:/FPC/SVN/trunc/rtl'
make.exe -C C:/FPC/SVN/trunc/rtl 'OPT=-gl -gw -godwarfsets -O1 -Cr' all
make.exe[6]: Entering directory C:/FPC/SVN/trunc/rtl'<br/> make.exe -C win32 all<br/> make.exe[7]: Entering directory
C:/FPC/SVN/trunc/rtl/win32'
C:/FPC/SVN/trunc/compiler/ppc1.exe -XX -CX -gl -Ur -Xs -O2 -n -O2 -Fi../inc -Fi../i386 -Fi../win -FE. -FUC:/FPC/SVN/trunc/rtl/units/i386-win
32 -gl -gw -godwarfsets -O1 -Cr -di386 -dDEBUG -dRELEASE -Us -Sg system.pp -Fi../win
Fatal: Compilation aborted
An unhandled exception occurred at $004228AB :
ERangeError : Range check error<br/>
$004228AB line 248 of cfileutl.pas
$00423052 line 351 of cfileutl.pas
$00423478 line 422 of cfileutl.pas
$00423D89 line 676 of cfileutl.pas
$004250FD line 1120 of cfileutl.pas
$00424BAD line 975 of cfileutl.pas
$0042DAD2 line 897 of options.pas
$00431318 line 2049 of options.pas
$004324E8 line 2573 of options.pas
$00413AB2 line 187 of compiler.pas
Mantis conversion info:
- Mantis ID: 19405
- OS: win
- OS Build: vista
- Build: 17548
- Platform: w32
- Version: 2.5.1
- Fixed in version: 2.6.0
- Fixed in revision: 17660 (#33de8c83)