[fpc-devel] Haiku/x86-64 (Was: Proposal to adapt search patch under Haiku using a target specific option (-WH).)

Karoly Balogh (Charlie/SGR) charlie at scenergy.dfmk.hu
Thu Jan 3 15:08:07 CET 2019


Hi,

On Wed, 2 Jan 2019, Karoly Balogh (Charlie/SGR) wrote:

> > - port/fix to 64bit
> >
> > With the already proposed changes to simplify the initialization part,
> > it is probably "just" a matter of :
> > (...)
>
> Yup, that list sums it up. Also I'm not sure the do_syscall code is still
> used in Haiku RTL at this point, but if yes, it needs to be adapted to
> 64bit too. (Or remove if not needed.)

It turned out, it wasn't needed. So I made a really quick hack this
morning, and now FPC builds for and semi-works on Haiku/x86_64...

Screenshot:
https://twitter.com/chainq/status/1080826380466696192

There seems to be something wrong with the signal setup so strace is used
to hide a fatal error... Also file handling doesn't really work now. But
even to get to this level in a few hours was nice.

The patch is of course still a bit of a mess, especially the RTL part, but
I can commit the "trivial" parts of it to SVN, if you have nothing against
it? Like adding the target to the compiler at least. (This question is to
Olivier primarily, as he's the Haiku maintainer.)

Cheers,
--
Charlie



More information about the fpc-devel mailing list