#1 2019-09-29 13:42:21

okoba
Member
Registered: 2019-09-29
Posts: 121

Compability with FPC Trunk 3.3.1

Hi,

mORMot is not compiling with last version of FPC because of error in the SynFPCTypInfo unit.
Do anyone know a workaround?

Last edited by okoba (2019-09-29 13:42:36)

Offline

#2 2019-09-30 06:28:15

pvn0
Member
From: Slovenia
Registered: 2018-02-12
Posts: 211

Re: Compability with FPC Trunk 3.3.1

See documentation.

FPC trunk is often unstable so trunk revision 40491 is recommended.

Offline

#3 2019-09-30 07:47:21

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

Re: Compability with FPC Trunk 3.3.1

Trunk is indeed unstable... for instance, Windows is broken since a few days...

Trunk has new RTTI for attributes, so RTTI layout changed.
We have preliminary support for it, but it is not fully working now (some more testing to do).
You can try to use mORMot with the Trunk version if you define FPC_PROVIDE_ATTR_TABLE line 262 of Synopse.inc.

Offline

#4 2019-09-30 07:49:18

AOG
Member
Registered: 2014-02-24
Posts: 490

Re: Compability with FPC Trunk 3.3.1

I am working on it ... but there still remains a single issue with dynamic arrays (rtti) that remains to be solved.

Offline

#5 2019-09-30 12:01:20

okoba
Member
Registered: 2019-09-29
Posts: 121

Re: Compability with FPC Trunk 3.3.1

ab, defining FPC_PROVIDE_ATTR_TABLE does not solve the problem.
"SynFPCTypInfo.pas(109,3) Fatal: Syntax error, "BEGIN" expected but "[" found"

AOG, it will be very useful to have it as Trunk has more new options.

Offline

Board footer

Powered by FluxBB