[fpc-pascal] Compiling arm-embedded fpc
Koenraad Lelong
fpascal at brouwerij.homelinux.net
Wed Jan 23 14:38:59 CET 2013
Hi,
I was looking into the latest fpc to see if there were updates about
arm-embedded since my last version. Indeed there are !
So I downloaded it (svn 23505) and tried to compile it, following the
wiki (http://wiki.freepascal.org/TARGET_Embedded). It crashes at
'ppcrossarm system.pp', message : segmentation-fault. Just that.
I tried running the last line, and adding -vv. In the fpcdebug.txt I
can't see much, but I don't know what I'm looking for. I could show
that, but it's big, about 240k.
Any suggestions how to try to resolve this ? How do you keep debugging
symbols in the compiler ?
> gdb --args ../../compiler/ppcrossarm -Cparmv7m @rtl.cfg -Ur
-Tembedded -Parm -XParm-embedded- -Xr -Ur -Xs -O2 -n -Fi../inc -Fi../arm
-FE. -FU/home/koenraad/Documenten/fpc-20130123/rtl/units/arm-embedded
-darm -dRELEASE -Us -Sg system.pp
GNU gdb (GDB) SUSE (7.3-41.1.2)
...
Reading symbols from
/home/koenraad/Documenten/fpc-20130123/compiler/ppcrossarm...(no
debugging symbols found)...done.
(gdb) run
Starting program:
/home/koenraad/Documenten/fpc-20130123/compiler/ppcrossarm -Cparmv7m
@rtl.cfg -Ur -Tembedded -Parm -XParm-embedded- -Xr -Ur -Xs -O2 -n
-Fi../inc -Fi../arm -FE.
-FU/home/koenraad/Documenten/fpc-20130123/rtl/units/arm-embedded -darm
-dRELEASE -Us -Sg system.pp
Program received signal SIGSEGV, Segmentation fault.
0x0000000000416a66 in ?? ()
(gdb) bt
#0 0x0000000000416a66 in ?? ()
#1 0x0000000000000020 in ?? ()
#2 0x0000000000000020 in ?? ()
#3 0x00000000008dcb90 in ?? ()
#4 0x0000000000000009 in ?? ()
#5 0x00007ffff7b161c0 in ?? ()
#6 0x00007ffff7415c80 in ?? ()
#7 0x00007ffff7b161c0 in ?? ()
#8 0x0000000000416ca0 in ?? ()
#9 0x00007fffffffca40 in ?? ()
#10 0x00000000008dcb90 in ?? ()
#11 0x0018000100000115 in ?? ()
#12 0x0000000000415bc7 in ?? ()
#13 0x00000000008dcb90 in ?? ()
#14 0x000000000040ff5a in ?? ()
#15 0x00007ffff74521c0 in ?? ()
#16 0x0000000000000000 in ?? ()
(gdb)
Regards,
Koenraad Lelong
More information about the fpc-pascal
mailing list