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

Tomas Hajny XHajT03 at hajny.biz
Tue Nov 13 09:12:43 CET 2012


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





More information about the fpc-devel mailing list