#1 2019-01-08 01:21:05

vladon
Member
From: Naberezhnye Chelny
Registered: 2014-09-03
Posts: 8
Website

Cannot compile mORMot using FPC on Linux

vladon@DESKTOP-ICBHBFC:~/mORMot$ ./build-fpc-linux64.sh
Free Pascal Compiler version 3.0.4+dfsg-18ubuntu2 [2018/08/29] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling ./SQLite3/TestSQL3.dpr
Compiling SynLZ.pas
SynLZ.pas(660,21) Warning: Local variable "cache" does not seem to be initialized
SynLZ.pas(1333,21) Warning: Local variable "cache" does not seem to be initialized
Compiling SynLZO.pas
SynLZO.pas(897,4) Warning: Label not defined "m3_m4_offset"
Compiling SynLizard.pas
Compiling SynCommons.pas
SynCommons.pas(6534,23) Warning: Some fields coming after "" were not initialized
SynCommons.pas(13656,42) Warning: Some fields coming after "VType" were not initialized
Compiling SynFPCLinux.pas
Compiling SynFPCTypInfo.pas
SynFPCTypInfo.pas(92,26) Error: Identifier not found "PRecInitData"
SynFPCTypInfo.pas(92,38) Error: Error in type definition
SynFPCTypInfo.pas(94,1) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode

This is my configuration:

vladon@DESKTOP-ICBHBFC:~/mORMot$ fpc -iW
3.0.4+dfsg-18ubuntu2
vladon@DESKTOP-ICBHBFC:~/mORMot$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.1 LTS
Release:        18.04
Codename:       bionic
vladon@DESKTOP-ICBHBFC:~/mORMot$ git rev-parse HEAD
b83b46c7320c9fd655223e3d19a1d701536e1c9b
vladon@DESKTOP-ICBHBFC:~/mORMot$ git remote show origin
* remote origin
  Fetch URL: git@github.com:synopse/mORMot.git
  Push  URL: git@github.com:synopse/mORMot.git
  HEAD branch: master

What have I done wrong?

Last edited by vladon (2019-01-08 01:22:27)

Offline

#2 2019-01-08 07:20:53

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

Re: Cannot compile mORMot using FPC on Linux

Mormor use RTTI features available in FPC@3.1+. I use a FPC@3.2 fixes brunch

Offline

Board footer

Powered by FluxBB