[fpc-devel] Problem with compilation (unknown crash)
Michel Catudal
mcatudal at comcast.net
Tue Nov 13 13:46:45 CET 2012
Le 13/11/2012 03:12, Tomas Hajny a écrit :
> On Tue, November 13, 2012 02:08, Michel Catudal wrote:
>> 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?
> No, not only: -gl ensures including line information and allows providing
> information about source lines related to the stack.
>
>> The crash here is during compilation
>>
>> with the -gl flag :
> .
> .
>
> Make sure to add also "-Xs-" (i.e. OPT="-O- -gl -Xs-").
>
> Tomas
>
>
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
It gave no additional information :
/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 -Xs- -davr32
-dRELEASE -O- -gl -Xs- -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