You are not logged in.
Pages: 1
When initializing mORMot with current FPC trunk the following exception is raised:
[Debugger Exception Notification]
Project Server raised exception class 'ESynException' with message:
TJSONRecordTextDefinition.Create: TSynMapSymbol text definition is not accurate, or the type has not been defined as PACKED record: RTTI size is 7735812 bytes but text definition generated 12 bytes
In file '..\..\units\SynCommons.pas' at line 38490
Backtrace:
#0 fpc_raiseexception(0x760a28, 0x1, 0x18655f8) at ..\inc\except.inc:158
#1 CREATE(0x18655f8, 0x1, 0x760a28, 0x760948 'Name:RawUTF8 Start,Stop:integer') at ..\..\units\SynCommons.pas:38490
#2 FROMCACHE(0x754994, 0x760a28, 0x760948 'Name:RawUTF8 Start,Stop:integer') at ..\..\units\SynCommons.pas:38471
#3 REGISTERFROMTEXT(0x180a920, 0x760a28, 0x760948 'Name:RawUTF8 Start,Stop:integer') at ..\..\units\SynCommons.pas:37428
#4 REGISTERCUSTOMJSONSERIALIZERFROMTEXT(0x754650, {}, 3) at ..\..\units\SynCommons.pas:46831
#5 SYNLOG_$$_init at :5500
#6 fpc_initializeunits at ..\inc\system.inc:914
#7 main at Server.lpr:16
This issue was opened somewhere in revisions 35123-35128 by svenbarth, which basically were patches by Maciej Izak for http://mantis.freepascal.org/view.php?id=30687.
Any chance to get this working?
+ SynSSPI.pas doesn't compile in FPC either (easy to fix: semicolons are missing).
Offline
SynSSPI compilation should be fixed by http://synopse.info/fossil/info/0afb1b7cd7
About RTTI, I do not know the current state of the trunk...
It is a very moving/unstable area.
I'm currently using a NewPascal build from a few days ago, with no problem.
Offline
At the moment we need to wait - I am working with Sven from FPC core team on some important changes for RTTI (few notes : http://synopse.info/forum/viewtopic.php?id=3689 ). mORMot will be updated too, but it has not much sense at the moment. Generally for mORMot NewPascal is recommended. If for some reasons you like to use "pure FPC trunk" the latest stable and recommended for mORMot is r35095 (pre RTTI.pas). Latest NewPascal (v1.0.39) is synced with r35095.
TLTR: For mORMot users I see 2 options:
* use NewPascal (for latest fresh stuff) instead of FPC trunk otherwise you will have many troubles
* use latest stable FPC 3.0.x (older FPC stable like 2.6.x means also many troubles)
best regards,
Maciej Izak
Offline
@Vitaly
Why not use NewPascal ? That is trunk !
Offline
AOG is right. Usage of pure FPC trunk for mORMot has no sense and is extremely risky. I have special version of mORMot which is *almost* ready and compatible both with current FPC trunk and with next NewPascal release:
https://github.com/maciej-izak/mORMot/tree/fpc_newrtti
The branch of mORMot is incomplete yet (we have some serious bug around - and ready to use by FPC core team related patch):
http://bugs.freepascal.org/view.php?id=31249
http://bugs.freepascal.org/view.php?id=31305
#31249 will be fixed directly in NewPascal (or even in FPC trunk).
Last edited by hnb (2017-01-31 14:01:13)
best regards,
Maciej Izak
Offline
You can use fpcupdeluxe to install only NewPascal FPC.
Then point CT towards this FPC.
Offline
I have special version of mORMot which is *almost* ready and compatible both with current FPC trunk and with next NewPascal release:
Thank you very much! Your special mORMot version seems workable for me.
Offline
Offline
Pages: 1