You are not logged in.
[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
So it looks like this topic is still up to date:
Offline