#1 2017-06-20 07:22:02

ImproSnake
Member
Registered: 2017-06-20
Posts: 30

Compilation Error in Current Nightly Build

Hello,

i downloaded the current Nightly Build.

I followed the Instructions to install mORMot.

But i can't compile the TestSQL3.

I' am working on Rad Studio XE5.

The Compilation error Stops at line 30642 in mormot.pas  : "with Deref(CT^.ParentInfo)^ do"

The Error Log say that an inline function cant use the local symbol "Deref"

Maybe Someone of you eperienced an similiar issue and can help me out.

Offline

#2 2017-06-20 09:09:20

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

Re: Compilation Error in Current Nightly Build

I am not able to reproduce it here.

Are you sure there is no conflict of mORMot units in several folders on your system?

The line number your stated (30642) does not match current mORMot.pas content: "with Deref(CT^.ParentInfo)^ do" currently appears in line number 29580...

I guess there is a conflict of unit versions in your IDE path.

Offline

#3 2017-06-20 09:16:21

ImproSnake
Member
Registered: 2017-06-20
Posts: 30

Re: Compilation Error in Current Nightly Build

Ty for your fast Reaction.

I will check this and let you know if this solved my Problem.

Offline

#4 2017-06-20 09:59:58

ImproSnake
Member
Registered: 2017-06-20
Posts: 30

Re: Compilation Error in Current Nightly Build

Hello again,

i removed all mORMot Versions from my System and downloaded a new fresh Version of the NightlyBuild.zip . I get the Same error now in line 29580 but i get further errors,

like undeclared identifier RawUTF8. I set all the needed Lib and search paths like it is documented.

Last edited by ImproSnake (2017-06-20 10:01:15)

Offline

#5 2017-06-20 12:13:34

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

Re: Compilation Error in Current Nightly Build

On which platform are you trying to compile it?

I'm not able to reproduce the issue with Win32 or Win64 using Delphi XE6.

Offline

#6 2017-06-20 12:14:56

ImproSnake
Member
Registered: 2017-06-20
Posts: 30

Re: Compilation Error in Current Nightly Build

Hello,

the platform ist Windows 8.1 Pro 64 Bit

Offline

#7 2017-06-20 12:15:39

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

Re: Compilation Error in Current Nightly Build

I meant target platform for the Project.

Offline

#8 2017-06-20 12:19:44

ImproSnake
Member
Registered: 2017-06-20
Posts: 30

Re: Compilation Error in Current Nightly Build

Delphi XE5 on a Windos 8 64 Bit Machine big_smile

Offline

#9 2017-06-20 12:23:55

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

Re: Compilation Error in Current Nightly Build

I asked for the TARGET platform.
Win32 ?

Offline

#10 2017-06-20 12:28:19

ImproSnake
Member
Registered: 2017-06-20
Posts: 30

Re: Compilation Error in Current Nightly Build

ab wrote:

On which platform are you trying to compile it?

I'm not able to reproduce the issue with Win32 or Win64 using Delphi XE6.


It is the same Platform, it gets compiled on this machine and it stays there for test reasons. We are in the process to decide if we use mORMot or some other Frameworks for our upcoming Application.

So Win64.

And for further Clarification, i try to run the TestSql3 project shipped with mORMot.

But Maybe i am only misunderstanding your question^^

Last edited by ImproSnake (2017-06-20 12:33:02)

Offline

#11 2017-06-20 15:14:35

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

Re: Compilation Error in Current Nightly Build

What is the "target platform" of your project?
http://docwiki.embarcadero.com/RADStudi … s_Overview

I just tested with Delphi XE6 (I don't have XE5 at hand) on Win32 and Win64 target platforms, with no problem.

Offline

#12 2017-06-21 06:04:55

ImproSnake
Member
Registered: 2017-06-20
Posts: 30

Re: Compilation Error in Current Nightly Build

Hello again, like i said i missunderstood your question.

Thank you for your patience.

The Target Platform is Win32.

Last edited by ImproSnake (2017-06-21 06:05:11)

Offline

#13 2017-06-21 09:00:55

Chaa
Member
Registered: 2011-03-26
Posts: 248

Re: Compilation Error in Current Nightly Build

With Delphi XE5 Update 2 (version 19.0.14356.6604) all compiles fine, and all tests passed for Win32 and Win64 platform.

Offline

#14 2017-06-22 05:37:15

ImproSnake
Member
Registered: 2017-06-20
Posts: 30

Re: Compilation Error in Current Nightly Build

Hello again,

There had to be an error in my system, i don't know which. I just build me a fresh setup an anything works fine.

Thank you all for your patience and help.

Can be Closed

Offline

#15 2017-06-22 13:10:44

ASiwon
Member
From: Poland
Registered: 2015-01-30
Posts: 82

Re: Compilation Error in Current Nightly Build

Hi,

I think I have the same problem with compilation on mORMot build 4101 in svn repository. Date of commit is: 9:21:51 22 June. I'm using Delphi XE4 Pro, platform target is Win32. Exactly compiler occurs an error:

E2441 Inline function declared in interface section must not use local symbol Deref.

When I move declaration of the Deref function to the interface section in mORMot unit compilation is done correctly. If you wish I could to prepare pull request on github.


best regards
Adam Siwon

Offline

#16 2017-06-22 15:04:27

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

Re: Compilation Error in Current Nightly Build

@ASiwon I can't reproduce the issue with Delphi XE4.

But anyway, here is a potential fix https://synopse.info/fossil/info/20c4edcab7

Please report if it is a good workaround for your compilers.

Offline

#17 2017-06-22 16:21:32

ASiwon
Member
From: Poland
Registered: 2015-01-30
Posts: 82

Re: Compilation Error in Current Nightly Build

Hi,

I have tried to compile project with fix. The problem still occured. So I have to start to check what is going wrong. After small investigation I found old version of the Synopse.inc file. This file was used during compilation and that is why the problem occured in my environment. My apologies for reporting non existing problem.


best regards
Adam Siwon

Offline

#18 2018-06-06 08:22:08

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

Re: Compilation Error in Current Nightly Build

I tried (again) to circumvent the DeRef() function inlining compiler error by https://synopse.info/fossil/info/58d63eddc1

Offline

Board footer

Powered by FluxBB