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

Michel Catudal mcatudal at comcast.net
Tue Nov 13 02:08:13 CET 2012


Le 12/11/2012 07:34, Jonas Maebe a écrit :
>
> On 12 Nov 2012, at 13:32, Michel Catudal wrote:
>
>> 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?
>
> By debugging the compiler. Add OPT="-O- -gl" to add debug information and disable optimizations.
>
>
> Jonas
>
Isn't this just to add debugging information for using gdb?

The crash here is during compilation

with the -gl flag :

make[5]: entrant dans le répertoire « /home/michel/packages/BUILD/avr32-fpc-2.7.1/rtl/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- -gl   -davr32 
-dRELEASE -O- -gl -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

whithout it :

make[5]: entrant dans le répertoire « /home/michel/packages/BUILD/avr32-fpc-2.7.1/rtl/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


Michel

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




More information about the fpc-devel mailing list