#1 2018-04-10 07:20:58

edwinsn
Member
Registered: 2010-07-02
Posts: 1,215

[issue] mORMotWrappers.pas compilation error under Lazarus 1.9 trunk

Error message:
===
mORMotWrappers.pas(724,75) Error: Incompatible type for arg no. 2: Got "Variant", expected "TFileName"

mORMot version:
===
Almost latest, i checked and and the line where the error happened is exactly the same as the one in the latest github repository.

Lazarus version:
===
Lazarus trunk built with fpcupdelux few days ago.

Screenshot:
===
https://screenpresso.com/=5pazd


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#2 2018-04-10 12:04:20

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

Re: [issue] mORMotWrappers.pas compilation error under Lazarus 1.9 trunk

Weird.
I am not able to reproduce it with the current mORMot revision (1.18.4514) and my FPC trunk from 2018/01/25 (SVN 57146).

Please ensure that you have the latest version of mORMot.

Offline

#3 2018-04-10 15:26:05

edwinsn
Member
Registered: 2010-07-02
Posts: 1,215

Re: [issue] mORMotWrappers.pas compilation error under Lazarus 1.9 trunk

@ab,
Did a check just now, I confirm I'm using the latest revision of mORMotWrappers.pas.

Do you know how to let fpcupdeluxe to retrieve the FPC trunk 2018/01/25 (SVN 57146) instead of the latest rev? I'd like to use that revision!


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#4 2018-04-10 18:32:25

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

Re: [issue] mORMotWrappers.pas compilation error under Lazarus 1.9 trunk

Perhaps you may ask alfred on the fpcupdeluxe forum...

Offline

#5 2018-04-11 03:11:06

edwinsn
Member
Registered: 2010-07-02
Posts: 1,215

Re: [issue] mORMotWrappers.pas compilation error under Lazarus 1.9 trunk

Yes, I got my answer from Alred - go to the Setup+ dialog and on the upper right there are edit boxes to enter the rev. numbers.


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#6 2018-04-11 03:33:07

edwinsn
Member
Registered: 2010-07-02
Posts: 1,215

Re: [issue] mORMotWrappers.pas compilation error under Lazarus 1.9 trunk

Update: Using FPC trunk 2018/01/25 (SVN 57146) the latest mORMot TestSQL3.dpr project can be build successfully!


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#7 2018-04-11 07:55:49

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

Re: [issue] mORMotWrappers.pas compilation error under Lazarus 1.9 trunk

Good to know.

You may also try https://synopse.info/fossil/info/2c5ef2333a

Offline

#8 2018-04-11 10:31:33

edwinsn
Member
Registered: 2010-07-02
Posts: 1,215

Re: [issue] mORMotWrappers.pas compilation error under Lazarus 1.9 trunk

Unfortunately, I need to try it under Delphi xe4 but it failed to compile tongue

[dcc32 Error] SynCommons.pas(62196): E2441 Inline function declared in interface section must not use local symbol 'COMPRESS_SYNLZ'


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#9 2018-04-11 11:28:08

polidados
Member
From: Brazil
Registered: 2017-03-08
Posts: 14

Re: [issue] mORMotWrappers.pas compilation error under Lazarus 1.9 trunk

Hello!

[dcc32 Error] SynCommons.pas(62196): E2441 Inline function declared in interface section must not use local symbol 'COMPRESS_SYNLZ'

Same under Delphi Tokyo 10.2.

Offline

#10 2018-04-11 11:51:21

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

Re: [issue] mORMotWrappers.pas compilation error under Lazarus 1.9 trunk

Yes, Delphi compiler is much less advanced than FPC about inlining...

Please check https://synopse.info/fossil/info/f6fa9e09ff

Offline

#11 2018-04-11 13:47:04

edwinsn
Member
Registered: 2010-07-02
Posts: 1,215

Re: [issue] mORMotWrappers.pas compilation error under Lazarus 1.9 trunk

@ab, I'll stick with whichever FPC trunk version you use, so have you upgraded your Lazarus? wink


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#12 2018-04-12 04:26:41

edwinsn
Member
Registered: 2010-07-02
Posts: 1,215

Re: [issue] mORMotWrappers.pas compilation error under Lazarus 1.9 trunk

Update: Now the latest commit can be compiled under xe4.
But it surprises me that the fpc-compiled TestSQL3 program passed all test cases, while 20,293 of 40,427,058 test cases compiled by XE4 failed!

The log file is here: https://send.firefox.com/download/d16be … Ar_b_E93NQ

FPC/Lazarus trunk version 2018/01/25 TestSQL3.exe result:
===
Run on: Windows 7 64bit SP1 (6.1.7601) - codepage=936
    4 x Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz (x86)
Using mORMot 1.18.4518
    TSQLite3LibraryStatic 3.23.0 with internal MM
Generated with: Free Pascal 3.1.1 MOP 32 bit compiler

Time elapsed for all tests: 1m19
Performed 2018-04-12 12:04:37 by edwin on EDWIN-T450

Total assertions failed for all test suits:  0 / 38,960,317
! All tests passed successfully.

Delphi XE4TestSQL3.exe result :
===
Run on: Windows 7 64bit SP1 (6.1.7601) - codepage=936
    4 x Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz (x86)
Using mORMot 1.18.4518
    TSQLite3LibraryStatic 3.23.0 with internal MM
Generated with: Delphi XE4 32 bit compiler
Time elapsed for all tests: 5m50
Performed 2018-04-12 12:00:21 by edwin on EDWIN-T450

Total assertions failed for all test suits:  20,293 / 40,427,058
! Some tests FAILED: please correct the code.


Update 2:
Additional console output:
===
1.6. ECC cryptography:
- Reference vectors: 23 assertions passed  31.39ms
- ecc_make_key: 50 assertions passed  126.61ms
- ecdsa_sign: 50 assertions passed  128.60ms
- ecdsa_verify: 50 assertions passed  156.48ms
- ecdh_shared_secret: 147 assertions passed  271.41ms
  - Certificates and signatures: 6 / 91 FAILED  113.64ms
- ECC command line tool: 118 assertions passed  26.63s
- ECDHE stream protocol: 521,295 assertions passed  1.94s
Total failed: 6 / 521,824  - ECC cryptography FAILED  29.41s

There are more but I cannot scroll up the console window...

Last edited by edwinsn (2018-04-12 09:02:05)


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#13 2018-04-12 06:03:38

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,549
Website

Re: [issue] mORMotWrappers.pas compilation error under Lazarus 1.9 trunk

@edwinsn We use conemu as a console replacement (at last you can be able to scroll smile )

Last edited by mpv (2018-04-12 06:03:52)

Offline

#14 2018-04-12 06:46:47

edwinsn
Member
Registered: 2010-07-02
Posts: 1,215

Re: [issue] mORMotWrappers.pas compilation error under Lazarus 1.9 trunk

@mpv, thanks, downloaded it and tried, but TestSql3.exe would still opens another console window... what happened? I'm compiling the official TestSql3.dpr project.

Update: Initially I also tried running testSql3.exe > output.txt, while the output.txt file was generated, it's empty.

Last edited by edwinsn (2018-04-12 06:48:12)


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#15 2018-04-12 08:36:30

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

Re: [issue] mORMotWrappers.pas compilation error under Lazarus 1.9 trunk

I guess something is wrong with your mORMot setup - some unsynch .pas or .obj files.
Or it is just about the code page on your system.

On my computer, I have no problem with XE4/Win32:

Run on: Windows 10 64bit (10.0.16299) - codepage=1252
    4 x Intel(R) Core(TM) i7-3517U CPU @ 1.90GHz (x86)
Using mORMot 1.18.4518
    TSQLite3LibraryStatic 3.23.0 with internal MM
Generated with: Delphi XE4 32 bit compiler

Time elapsed for all tests: 1m25
Performed 2018-04-12 10:36:09 by User on ACER

Total assertions failed for all test suits:  0 / 40,434,972
 All tests passed successfully.

You have the local logs to look at too.
Which you may run in verbose mode.

Offline

#16 2018-04-12 09:04:55

edwinsn
Member
Registered: 2010-07-02
Posts: 1,215

Re: [issue] mORMotWrappers.pas compilation error under Lazarus 1.9 trunk

@ab,
I use the very same set of Synopse Framework source code for both XE4 and FPC, so it's not possible some of the files are un-synced (out of date).

Last edited by edwinsn (2018-04-12 09:31:26)


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#17 2018-04-12 09:37:57

edwinsn
Member
Registered: 2010-07-02
Posts: 1,215

Re: [issue] mORMotWrappers.pas compilation error under Lazarus 1.9 trunk

@ab,

I tried run it with the debugger, the first hundreds of failures happens in method TTestLowLevelCommon._UTF8.Test() exactly this line:

Check(StringCodePage(W)=1252);

The stack trace in the log file shows hexadecimal source locations like:

stack trace API 005BAB82 005D1B4A 005CFA79 008874BA 0088A5A5 005D0BB5 0098950C 009897FF 00993C09 76C3336A 77C298F2 77C298C5

Is there a way to shows the real call stack with real method names and line numbers?


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#18 2018-04-12 10:43:26

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,549
Website

Re: [issue] mORMotWrappers.pas compilation error under Lazarus 1.9 trunk

You should enable map file generation (in project settings) to view human readable stack trace

Offline

Board footer

Powered by FluxBB