[fpc-devel] Problem with compilation (unknown crash)

Michel Catudal mcatudal at comcast.net
Mon Nov 12 13:32:15 CET 2012


Is there a way to figure out when a crash occurs, in other words get the compiler to tell me the conditions that made it crash the compilation?
I am able to create a compiler but it looks like it barfs when trying to create the RTL stuff, it is kind of hard to fix if I don't know what causes the crash.

Here is a part of the last messages :

/home/michel/packages/BUILD/avr32-fpc-2.7.1/compiler/ppc -Ur -Xs -O2 -n -Fuavr32 -Fusystems -Fu/home/michel/packages/BUILD/avr32-fpc-2.7.1/rtl/units/x86_64-linux -Fiavr32 -FE. -FUavr32/units/x86_64-linux -Cg -dRELEASE    -davr32 -dGDB -dBROWSERLOG -Sew pp.pas
/usr/bin/ld: warning: ./link.res contains output sections; did you forget -T?
/bin/mv -f ./pp ppcrossavr32
make[3]: quittant le répertoire « /home/michel/packages/BUILD/avr32-fpc-2.7.1/compiler »
make 'FPC=/home/michel/packages/BUILD/avr32-fpc-2.7.1/compiler/ppcrossavr32' 'OPT= -O-' rtlclean rtl CYCLELEVEL=3
make[3]: entrant dans le répertoire « /home/michel/packages/BUILD/avr32-fpc-2.7.1/compiler »
make -C /home/michel/packages/BUILD/avr32-fpc-2.7.1/rtl clean
make[4]: entrant dans le répertoire « /home/michel/packages/BUILD/avr32-fpc-2.7.1/rtl »
/bin/rm -f fpcmade.avr32-embedded Package.fpc ppas.sh script.res link.res
/bin/rm -f *.s *_ppas.bat
make -C embedded clean
make[5]: entrant dans le répertoire « /home/michel/packages/BUILD/avr32-fpc-2.7.1/rtl/embedded »
/bin/rm -f /home/michel/packages/BUILD/avr32-fpc-2.7.1/rtl/units/avr32-embedded/system.ppu /home/michel/packages/BUILD/avr32-fpc-2.7.1/rtl/units/avr32-embedded/uuchar.ppu /home/michel/packages/BUILD/avr32-fpc-2.7.1/rtl/units/avr32-embedded/objpas.ppu 
/home/michel/packages/BUILD/avr32-fpc-2.7.1/rtl/units/avr32-embedded/heapmgr.ppu /home/michel/packages/BUILD/avr32-fpc-2.7.1/rtl/units/avr32-embedded/consoleio.ppu
/bin/rm -f fpcmade.avr32-embedded Package.fpc ppas.sh script.res link.res
/bin/rm -f *.s *_ppas.bat
make[5]: quittant le répertoire « /home/michel/packages/BUILD/avr32-fpc-2.7.1/rtl/embedded »
make[4]: quittant le répertoire « /home/michel/packages/BUILD/avr32-fpc-2.7.1/rtl »
make -C /home/michel/packages/BUILD/avr32-fpc-2.7.1/rtl 'OPT=-O-  ' all
make[4]: entrant dans le répertoire « /home/michel/packages/BUILD/avr32-fpc-2.7.1/rtl »
make -C embedded all
make[5]: entrant dans le répertoire « /home/michel/packages/BUILD/avr32-fpc-2.7.1/rtl/embedded »
/bin/mkdir -p /home/michel/packages/BUILD/avr32-fpc-2.7.1/rtl/units/avr32-embedded
/home/michel/packages/BUILD/avr32-fpc-2.7.1/compiler/ppcrossavr32 @rtl.cfg -Ur -Tembedded -Pavr32 -XPavr32-embedded- -Xr -Ur -Xs -O2 -n -Fi../inc -Fi../avr32 -FE. -FU/home/michel/packages/BUILD/avr32-fpc-2.7.1/rtl/units/avr32-embedded -O-   -davr32 
-dRELEASE -O- -Us -Sg system.pp
Fatal: Compilation aborted
An unhandled exception occurred at $000000000049E010:
EAccessViolation: Access violation
   $000000000049E010

make[5]: *** [system.ppu] Erreur 217
make[5]: quittant le répertoire « /home/michel/packages/BUILD/avr32-fpc-2.7.1/rtl/embedded »
make[4]: *** [embedded_all] Erreur 2
make[4]: quittant le répertoire « /home/michel/packages/BUILD/avr32-fpc-2.7.1/rtl »
make[3]: *** [rtl] Erreur 2
make[3]: quittant le répertoire « /home/michel/packages/BUILD/avr32-fpc-2.7.1/compiler »
make[2]: *** [cycle] Erreur 2
make[2]: quittant le répertoire « /home/michel/packages/BUILD/avr32-fpc-2.7.1/compiler »
make[1]: *** [compiler_cycle] Erreur 2
make[1]: quittant le répertoire « /home/michel/packages/BUILD/avr32-fpc-2.7.1 »
make: *** [base.build-stamp.avr32-embedded] Erreur 2



The command used to compile is the following :

PP=ppcx64 make buildbase OS_TARGET=embedded CPU_TARGET=avr32 CROSSOPT=-O-

This is on a Scientific Linux 6.2 platform

Michel

-- 
For Linux Software visit
http://home.comcast.net/~mcatudal




More information about the fpc-devel mailing list