[fpc-devel] fpc 2.6.2 gives AV on arm

Joost van der Sluis joost at cnoc.nl
Fri Aug 9 18:46:12 CEST 2013


Hi all,

I've cross-compiled a ppcarm, and now I try to use that compiler on qemu 
to build fpc (2.6.2).

But the compiler crashes on compiling the system-unit. But with trunk 
(2.7.1) this all works.

Thing is that I'm trying to get fpc 2.6.2 working on the new arm-target 
of Fedora (armv7, hardware float, little endian). Maybe someone knows in 
which revision this could have been fixed, so that I can apply that fix 
to 2.6.2 on Fedora?

Here's the stacktrace:

/home/joost/ppcarm -Ur -Ur -Xs -O2 -n -Fi../inc -Fi../arm -Fi../unix 
-Fiarm -FE. 
-FU/home/joost/rpmbuild/BUILD/fpcbuild-2.6.2/fpcsrc/rtl/units/arm-linux 
-k"--build-id" -gl -darm -dRELEASE -Us -Sg system.pp -dFPC_ARMEL
Fatal: Compilation aborted
An unhandled exception occurred at $0003CDD0 :
EAccessViolation : Access violation
   $0003CDD0  FINDGETFILEINFO,  line 711 of ../unix/sysutils.pp
   $0003D118  FINDNEXT,  line 774 of ../unix/sysutils.pp
   $0003D350  FINDFIRST,  line 816 of ../unix/sysutils.pp
   $0004B970  TCACHEDDIRECTORY__RELOAD,  line 266 of cfileutl.pas
   $0004B678  TCACHEDDIRECTORY__FORCEUSECACHE,  line 223 of cfileutl.pas
   $0004B624  TCACHEDDIRECTORY__TRYUSECACHE,  line 212 of cfileutl.pas
   $0004BE94  TCACHEDDIRECTORY__DIRECTORYEXISTS,  line 346 of cfileutl.pas
   $0004C464  TDIRECTORYCACHE__DIRECTORYEXISTS,  line 422 of cfileutl.pas
   $0004CF90  PATHEXISTS,  line 676 of cfileutl.pas
   $0004E6BC  TSEARCHPATHLIST__ADDPATH,  line 1120 of cfileutl.pas
   $0004DFC8  TSEARCHPATHLIST__ADDPATH,  line 975 of cfileutl.pas
   $000E0AB8  TOPTION__INTERPRET_OPTION,  line 1058 of options.pas
   $000E53C0  TOPTION__READ_PARAMETERS,  line 2280 of options.pas
   $000E6ACC  READ_ARGUMENTS,  line 2808 of options.pas
   $0002CE74  INITCOMPILER,  line 187 of compiler.pas
   $0002CF68  COMPILE,  line 234 of compiler.pas
   $00008360  main,  line 223 of pp.pas



More information about the fpc-devel mailing list