Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile in Delphi with a Linux 64 target #246

Closed
gcarreno opened this issue Apr 4, 2024 · 4 comments
Closed

Cannot compile in Delphi with a Linux 64 target #246

gcarreno opened this issue Apr 4, 2024 · 4 comments

Comments

@gcarreno
Copy link

gcarreno commented Apr 4, 2024

Hey Arnaud(@synopse),

While attempting to compile Georges entry for 1BRC I was unable to do it.

From a very superficial look into it, it appears that mORMot2's .inc files make Delphi think that it's on a Windows target. And because of that, a lot of the {$IFDEF}s will fail.

This for the latest mORMot2 v2.2 stable with Delphi 12.1.

I don't quite know how to better describe this issue, sorry Arnaud!!

But I'm completely available to test this and get to the bottom of it.

Many thanks in advance.

Cheers,
Gus

@synopse
Copy link
Owner

synopse commented Apr 4, 2024

mORMot is not compatible with Delphi for Linux: only Delphi for Windows.
I don't have any Delphi for Linux compiler, to be honnest. ;)

We use FPC to compiler for Linux.

@synopse synopse closed this as completed Apr 4, 2024
@gcarreno
Copy link
Author

gcarreno commented Apr 4, 2024

Hey Arnaud(@synopse),

I don't have any Delphi for Linux compiler, to be honest. 😉

I suspected as much, hence me offering to help with getting this to work.

Cheers,
Gus

@synopse
Copy link
Owner

synopse commented Apr 4, 2024

I don't think how I may be able to do it without even a Delphi for Linux compiler on my side.
Honestly, no one asked for this support yet, once they found out FPC + Lazarus on Linux.
I use FPC + Lazarus on Linux since years, as my main dev and work platform.
https://synopse.info/forum/viewtopic.php?pid=36212
https://synopse.info/forum/viewtopic.php?id=5864

And last time someone checked the Delphi for Linux compiler generated code, it was just cr*p.

@gcarreno
Copy link
Author

gcarreno commented Apr 4, 2024

To be quite honest, you make a lot of sense.

I guess that I kinda had a knee jerk reaction and came here instead of using my head a bit more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants