#1 2015-08-04 13:21:37

marius maximus
Member
From: Olsztyn
Registered: 2015-06-11
Posts: 30

FPC compilation problem(s)

My platform 64bit linux (debian 8)
fpc current svn trunk

I have problem with lines:


File SynCrypto.pas
Line 3221
        movdqu  xmm12,[PSHUFFLE_BYTE_FLIP_MASK]
        movdqu  xmm10,[_SHUF_00BA]
        movdqu  xmm11,[_SHUF_DC00]
@loop0: mov     rbp,[K256Aligned]


Compile Project, Mode: linux, Target: fpc/x86_64-linux/TestSQL3: Exit code 256, Errors: 4
SynCrypto.pas(3221,47) Error: Generating PIC, but reference is not PIC-safe
SynCrypto.pas(3222,34) Error: Generating PIC, but reference is not PIC-safe
SynCrypto.pas(3223,34) Error: Generating PIC, but reference is not PIC-safe
SynCrypto.pas(3224,33) Error: Generating PIC, but reference is not PIC-safe

On windows (64bit) this same fpc version no errors !


Lazarus x64 Linux

Offline

#2 2015-08-04 14:14:23

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

Re: FPC compilation problem(s)

x86-64 is not supported as a target for FPC, under Linux or Windows.
We started to support FPC with x86-32 under Linux and Windows.

Only Delphi as compiler is supported yet for Windows 64.

Offline

#3 2015-12-07 09:22:18

Thomas-Acia
Member
From: Metz (France)
Registered: 2015-04-16
Posts: 79

Re: FPC compilation problem(s)

Hi ab,
I would like to know if the support of x86-64 as a target for FPC under Linux is planned.
Thank you


Delphi 2010 - Delphi XE5 (x64 Apps) - CodeTyphon - Typhon IDE v 5.7 - FPC 3.1.1 - mORMot 1.18
Windows 7 - VirtualBox : Linux Debian 8.5 Jessie 32 bits

Offline

#4 2015-12-07 10:06:10

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

Re: FPC compilation problem(s)

It is planned for sure, but with no date.
In-house, we currently use CrossKylix for Linux32 target, on production.

And we are also looking after Delphi compiler for Linux, which would be Linux64 only AFAIK.
We would like the Linux64 version to compile with both FPC and Delphi.
... and if Delphi for Linux64 is ARC-only, we would almost certainly NOT support this Delphi compiler, and only support FPC.
So FPC Linux64 will eventually be supported, in all cases.
My guess is that Delphi compiler for Linux release would be the release date of the Linux64 official support of mORMot.

Any input is welcome: any patch helping to increase compatibility would be included in the trunk.

Offline

Board footer

Powered by FluxBB