#1 Today 15:34:17

rastafarey
Member
Registered: 2019-05-13
Posts: 3

Compiling mORMot 2 for Linux with Delphi's LLVM compiler: Is it feasib

[English]
Hi everyone / Arnaud,

I am trying to cross-compile a mORMot 2 server for Linux natively, using Delphi's Linux compiler (LLVM). However, I immediately hit hundreds of errors related to unsupported inline ASM (e.g., ReadBarrier missing PUREPASCAL check) and missing RTL functions (like GetTickCount64 in mormot.core.base.pas).

Trying to patch all these #IFDEFs and libc calls manually feels like I would need to modify half the framework.

My question is straightforward: Is there a supported/configured way to compile mORMot 2 for Linux strictly using the Delphi Linux compiler? Or is the framework architecture for Linux exclusively designed to be compiled via Free Pascal (or Delphi Win64 + Wine)?

Thank you very much!


[Français]
Bonjour à tous / Arnaud,

J'essaie de compiler (cross-compile) un serveur mORMot 2 pour Linux en utilisant le compilateur Linux natif de Delphi (LLVM). Cependant, je rencontre immédiatement des centaines d'erreurs liées à l'ASM non supporté (ex: ReadBarrier sans vérification PUREPASCAL) et aux fonctions RTL manquantes (comme GetTickCount64 dans mormot.core.base.pas).

Essayer de patcher manuellement tous ces #IFDEF et appels libc reviendrait presque à modifier la moitié du framework.

Ma question est simple : Existe-t-il une méthode supportée pour compiler mORMot 2 pour Linux exclusivement avec le compilateur Linux de Delphi ? Ou bien l'architecture du framework pour Linux est-elle exclusivement pensée pour être compilée via Free Pascal (ou Delphi Win64 + Wine) ?

Merci beaucoup !


[Español]
Hola a todos / Arnaud,
Estoy intentando compilar de forma cruzada un servidor mORMot 2 para Linux de forma nativa, utilizando el compilador de Delphi para Linux (LLVM). Sin embargo, inmediatamente me topo con cientos de errores relacionados con ASM no soportado (ej. ReadBarrier sin chequeo de PUREPASCAL) y funciones RTL faltantes (como GetTickCount64 en mormot.core.base.pas).

Intentar parchear manualmente todos estos #IFDEF y llamadas a libc se siente como si tuviera que modificar medio framework.

Mi pregunta es directa: ¿Existe alguna forma soportada/configurada de compilar mORMot 2 para Linux usando estrictamente el compilador de Delphi para Linux? ¿O la arquitectura del framework para Linux está diseñada exclusivamente para ser compilada mediante Free Pascal (o Delphi Win64 + Wine)?

¡Muchas gracias!

Offline

#2 Today 18:23:07

danielkuettner
Member
From: Germany
Registered: 2014-08-06
Posts: 403

Re: Compiling mORMot 2 for Linux with Delphi's LLVM compiler: Is it feasib

So it looks like this topic is still up to date:

https://synopse.info/forum/viewtopic.php?id=6050

Offline

#3 Today 20:18:16

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,407
Website

Re: Compiling mORMot 2 for Linux with Delphi's LLVM compiler: Is it feasib

Not yet feasible, sorry.

The Linux x86_64 target is our main target for optimizations and productions, but... only with FPC yet.

Offline

Board footer

Powered by FluxBB