You are not logged in.
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
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.
Online
@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
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
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
Good to know.
You may also try https://synopse.info/fossil/info/2c5ef2333a
Online
Unfortunately, I need to try it under Delphi xe4 but it failed to compile
[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
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
Yes, Delphi compiler is much less advanced than FPC about inlining...
Please check https://synopse.info/fossil/info/f6fa9e09ff
Online
@ab, I'll stick with whichever FPC trunk version you use, so have you upgraded your Lazarus?
Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.
Offline
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
@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
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.
Online
@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
@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