Recent

Author Topic: Need help compiling mORMot framework  (Read 3494 times)

shobits1

  • Sr. Member
  • ****
  • Posts: 271
  • .
Need help compiling mORMot framework
« on: February 10, 2016, 03:17:36 pm »
I'm trying to test and evaluate mORMot for an upcoming project but when I try to compile `TestSQL3.lpi` using lazarus1.6RC2 the compiler returns the following error:

Code: [Select]
mORMot.pas(22986,7) Error: Internal error 2006111510
Lazarus 1.4.4 wouldn't work since it uses FPC2.6.4 (since the document states FPC2.7.1/3.1.1 )

using Lazarus 1.7 (downloaded from getlazarus.org) the projects compiles ok.

does anyone have insight in the problem.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4468
  • I like bugs.
Re: Need help compiling mORMot framework
« Reply #1 on: February 10, 2016, 04:03:37 pm »
I'm trying to test and evaluate mORMot for an upcoming project but when I try to compile `TestSQL3.lpi` using lazarus1.6RC2 the compiler returns the following error:

Code: [Select]
mORMot.pas(22986,7) Error: Internal error 2006111510
Lazarus 1.4.4 wouldn't work since it uses FPC2.6.4 (since the document states FPC2.7.1/3.1.1 )

using Lazarus 1.7 (downloaded from getlazarus.org) the projects compiles ok.

The internal error must be from FPC 3.0. That's what Lazarus 1.6RC2 uses.
I recommend using the version from getlazarus.org if it works. Apparently FPC trunk has fixed the bug that caused an internal error.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

shobits1

  • Sr. Member
  • ****
  • Posts: 271
  • .
Re: Need help compiling mORMot framework
« Reply #2 on: February 10, 2016, 04:36:41 pm »
Well, using the FPC trunk it sure compiles the project without errors but running the generated executable (a self test for the entire framework) reports many errors and eventually crashes.

maybe the framework is not so ready for FPC. I'll try and post the problem on mORMot forums and reports back any-finding.

shobits1

  • Sr. Member
  • ****
  • Posts: 271
  • .
Re: Need help compiling mORMot framework
« Reply #3 on: February 11, 2016, 05:09:11 pm »
ok, so A. Bouchez (author of mORMot) response was:
Quote from: ab
http://synopse.info/forum/viewtopic.php?pid=19447#p19447

Yes, there are issues, mainly due to string constant comparison in FPC.
In Delphi, AnsiStrings with code page do not handle source constant with a particular code page, when compared with another string. It is handled as it code pages do match.

But FPC has a much more pessimistic approach, and depending on the compiler revision, it may - or may not - make a codepage conversion.
A lot of aString='constant' are failing with FPC, whereas aString DO contain the expected 'constant'.
IMHO FPC AnsiString implementation is still broken, and induce a huge performance penalty.
We are waiting for the RTL and compiler to stabilize, until we make some more changes.

In all cases, the interface-RTTI branch is highly recommended.
Perhaps FPC users may help identifying the problems, and help here.

What do you say and what can I do; any help would be appreciated.

 

TinyPortal © 2005-2018