Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2010-01

Fatal: Compilation aborted

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marten Feldtmann

Hello,

I'm doing my first steps in fp - and for a long time in Pascal again - and use the 2.4.0 version. I more or less often come into a situation, where the compiler simply tries to compile my program and just says (after a long list of infos - but not errors or warning): "Compilation aborted" (and boy: I have lots of syntax errors - it is 20 years agos when I did my last Pascal programming). Then I terminate fp, start it again, compile the same source code and get the error messages I need to fix my errors.

Marten Feldtmann

Reply by email

Jonas Maebe
to Mimu Bunnylin: On Wed, 06 Jan 2010 22:22:46 -0800, Marten Feldtmann Strangely enough, I get that too.…
Mimu Bunnylin wrote 14 lines
Strangely enough, I get that too. Seems like the IDE-compiler gets stuck if it encounters a specific obscure combination of errors in the program code, or maybe after reporting a few hundred of them. The IDE works otherwise fine, just compiling refuses to go further than "Compilation aborted." The command-line compiler is not affected. Restarting the IDE gets the F9-compilation running again and reporting errors right. I think this has only happened to me if there were errors to be reported. Never hung yet when compiling error-free code.

The problem is that the compiler contains quite a lot of global variables. When the compiler is used from the command line (or when the IDE is initially started), these are all 0. When you have multiple compilations within one execution (such as with multiple compilations in the IDE), these variables must be explicitly reinitialised for each compilation, or the next compilation can be influenced by the results of the previous one. These initialisations are however forgotten from time to time.

Jonas

Reply by email

Mimu Bunnylin
to Marten Feldtmann: I'm doing my first steps in fp - and for a long time in Pascal again - and use the 2.4.0…
Marten Feldtmann wrote 12 lines
Hello, I'm doing my first steps in fp - and for a long time in Pascal again - and use the 2.4.0 version. I more or less often come into a situation, where the compiler simply tries to compile my program and just says (after a long list of infos - but not errors or warning): "Compilation aborted" (and boy: I have lots of syntax errors - it is 20 years agos when I did my last Pascal programming). Then I terminate fp, start it again, compile the same source code and get the error messages I need to fix my errors. Marten Feldtmann

Strangely enough, I get that too. Seems like the IDE-compiler gets stuck if it encounters a specific obscure combination of errors in the program code, or maybe after reporting a few hundred of them. The IDE works otherwise fine, just compiling refuses to go further than "Compilation aborted." The command-line compiler is not affected. Restarting the IDE gets the F9-compilation running again and reporting errors right.

I think this has only happened to me if there were errors to be reported. Never hung yet when compiling error-free code.

-Mimu

Reply by email