#1 2017-06-23 07:18:18

BlueAngel
Member
Registered: 2015-07-01
Posts: 5

Error Compiling using Delphi 2009

Hi All,

I've tried to compile the TestSQL3 using Delphi 2009 and I receive this error:
   

[DCC Warning] SynCrtSock.pas(2787): W1021 Comparison always evaluates to False
   [DCC Fatal Error] SynMongoDB.pas(6142): F2084 Internal Error: URW1135

Also if I try to compile Sample: 01 - In Memory ORM, I receive this error
 

[DCC Warning] SynZip.pas(1434): W1023 Comparing signed and unsigned types - widened both operands
  [DCC Warning] SynZip.pas(1447): W1023 Comparing signed and unsigned types - widened both operands
  [DCC Fatal Error] SynZip.pas(1452): F2084 Internal Error: C12079

Any idea in how to solve this?

Kind regards,
Hugo Brites

Offline

#2 2017-06-23 07:52:37

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: Error Compiling using Delphi 2009

Are you sure you downloaded the latest nightly build?
Current version is 1.18.3694.

Offline

#3 2017-06-23 08:10:26

BlueAngel
Member
Registered: 2015-07-01
Posts: 5

Re: Error Compiling using Delphi 2009

Hi Ab,

Yes, this errors are with the current nightly build.
I had the issue with a previous nightly build, but I wanted to do a fresh install of Delphi, just to make sure.
By the way, I'm using Windows 7 Pro OS.

Kind regards,
Hugo Brites

Offline

#4 2017-06-23 09:47:51

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: Error Compiling using Delphi 2009

I don't get why SynCrtSock.pas(2787) line should lead into a "comparison always evaluated to false":

      if c>9 then

Does not make any sense.
Delphi 2009 is a buggy compiler, for sure... but is it really the same line content on your source code?

I honestly don't know what to propose...

Offline

#5 2017-06-23 10:39:37

BlueAngel
Member
Registered: 2015-07-01
Posts: 5

Re: Error Compiling using Delphi 2009

Hi Ab,

Yes, it's the same line.
I'm using TWinINet from SynCrtSock to consume a non-standard rest service, and I'm able to do so with Delphi 2009, despite of the warning.
If I include mORMot, then I get the "F2084 Internal Error: C12079" error, even with a clean project.
This is a very old project, and I was just trying to add some data caching functionality.

The "comparison always evaluated to false" i don't know when it started to appear.

I've tried on XE3 and both of them are compiling, so it's only some buggy issue of Delphi 2009.

Kind regards,
Hugo Brites

Last edited by BlueAngel (2017-06-23 10:40:11)

Offline

#6 2017-06-23 15:38:51

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: Error Compiling using Delphi 2009

NativeUInt was noticeably broken in Delphi 2009.
Please try https://synopse.info/fossil/info/1d9bb74980

Offline

#7 2017-06-24 09:47:39

BlueAngel
Member
Registered: 2015-07-01
Posts: 5

Re: Error Compiling using Delphi 2009

Hi Ab,

Trying to compile TestSQL still gives the error

[DCC Fatal Error] SynMongoDB.pas(6142): F2084 Internal Error: URW1135

Trying to compile Sample: 01 - In Memory ORM, it still happens

[DCC Warning] SynZip.pas(1434): W1023 Comparing signed and unsigned types - widened both operands
[DCC Warning] SynZip.pas(1447): W1023 Comparing signed and unsigned types - widened both operands
[DCC Fatal Error] SynZip.pas(1452): F2084 Internal Error: C12079

Maybe there is nothing to do regarding the buggy compiler.

King regards,
Hugo Brites

Offline

Board footer

Powered by FluxBB