* * *

Author Topic: I always get "Fatal: Compilation aborted" error the first time, ...  (Read 1228 times)

markus_ja

  • New member
  • *
  • Posts: 39
Hello,

since today, I always get an "Fatal: Compilation aborted" error, when I compile my project after I did some changes. When I "re-compile" the project, it compiles fine.

The last days it was just randomly, but since today it's always. Does anybody know, what the issue is here.

I use generics in delphi mode, maybe that is the issue? I remember when CodeGear/Emb introduced generics/closuers I had a similar problem.

Lazarus 1.6
Win7 + 64Bit

Thaddy

  • Hero Member
  • *****
  • Posts: 3031
Re: I always get "Fatal: Compilation aborted" error the first time, ...
« Reply #1 on: June 17, 2016, 11:34:20 am »
I remember when CodeGear/Emb introduced generics/closuers I had a similar problem.
Well then, give us some code that reproduces the issue.
If you had similar issues with Delphi, chances are your code "doesn't meet standards"  >:D.

markus_ja

  • New member
  • *
  • Posts: 39
Re: I always get "Fatal: Compilation aborted" error the first time, ...
« Reply #2 on: June 17, 2016, 11:43:06 am »
I will try to isolate the issue. I also use ZeosLib and mORMot in my project.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 4174
    • wiki
Re: I always get "Fatal: Compilation aborted" error the first time, ...
« Reply #3 on: June 17, 2016, 01:06:23 pm »
right click the message window, and get ALL and Hidden messages. That may give more info on the error

markus_ja

  • New member
  • *
  • Posts: 39
Re: I always get "Fatal: Compilation aborted" error the first time, ...
« Reply #4 on: June 17, 2016, 01:15:57 pm »
These are the messages, but don't see any hint, for that issue:

Nachrichten, Hinweise: 154
Note: Duplicate unit "ZSybaseToken" in "zcore 7.1", orphaned ppu "C:\Development\lazarus_external_lib\ZeosLib\packages\lazarus\lib\x86_64-win64\ZSybaseToken.ppu"
...
Projekt kompilieren, Ziel: _bin\x86_64-win64\DbSrvForm.exe: Exit code 1, Fehler: 1, Hinweise: 2
Hint: Start of reading config file C:\Development\lazarus\fpc\3.0.0\bin\x86_64-win64\fpc.cfg
Hint: End of reading config file C:\Development\lazarus\fpc\3.0.0\bin\x86_64-win64\fpc.cfg
Verbose: Free Pascal Compiler version 3.0.0 [2016/02/14] for x86_64
Verbose: Target OS: Win64 for x64
Verbose: Compiling DbSrvForm.lpr
Fatal: Compilation aborted
Verbose: C:\Development\lazarus\fpc\3.0.0\bin\x86_64-win64\ppcx64.exe returned an error exitcode

I also tried to use my delphi mode generic code in a new project, but there it works fine. The only thing I recognized is, that in the project where the error occuers, the compiler doesn't complain when I use my generic class the delphi way without declaring that unit as {$mode delphi}.

e.g.:

var
  x: TSimpleDict<Integer>; //compiles without {$mode delphi}

But adding that compiler mode, doesn't change anything.




« Last Edit: June 17, 2016, 01:22:59 pm by markus_ja »

markus_ja

  • New member
  • *
  • Posts: 39
Re: I always get "Fatal: Compilation aborted" error the first time, ...
« Reply #5 on: June 17, 2016, 02:14:24 pm »
I added some more code lines (proceeded with my work), and now the fatal error is gone.

Strange  :o


 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus