Hi Pierre,
if you want, I can integrate those changes into trunk for you.
Thank you for the offer but i should have some free time in the next two
days. I should already have the change in a 3.0.4 branch. It should be
easy to port to trunk i think. A proper patch would be easier to commit.
Did you already start working on other CPU support for Haiku?
Not really. I have investigated what need to be done for x86-64 port but
the assembly part (cprt0.as) was enough to dissuade me so far ;-) Other
CPUs will require a working kernel first ;-) Help is welcome though, on
both sides...
Here is the current state :
https://www.haiku-os.org/guides/building/port_status/.
Do you have any compile-farm similar to gcc-farm?
Not yet as far as i know. We have machines to build our packages when
new recipe arrive, but no tests machines i think.
It would be nice to also get regular testsuite results for Haiku OS!
Indeed... We now have a working virtio driver and vagrant support. Maybe
i will experiment on automating something in a virtual machine on my
desktop machine as a first step.
Have a nice new year celebration!
Happy new year !
Olivier
PS: I don't remember if you speak French,
but, just in case,
Bonne et heureuse année
Yes, french is my native language ;-)
Bonne année, bonne santé ! ;-)
else
Happy New Year!
Le 30/12/2018 à 14:58, Olivier Coursière via fpc-devel a écrit :
Some background :
Haiku currently supports two compilers toolchains with two sets of
libraries and ABI for its 32 bits flavor :
- gcc 2 for BeOS compatibility
- gcc 4 (or above : currently 7.3) for newer libraries like Qt (and
Lazarus).
The default gcc toolchain can be changed using a command line : setarch
currently accepting x86_gcc2 or x86.
Once this is done, the only practical difference from Freepascal point
of view is that the search patch should be adapted to use the rights
libraries according to the context.
A few years ago, i have open the bug 26486
(https://bugs.freepascal.org/view.php?id=26486) with a first proposal
that was too hacky to be committed. Since then, i have made another
proposition involving a new command line switch to let specifying the
set of search paths when targeting gcc4. This alternative proposal got
unnoticed since then.
I am currently looking at packaging Lazarus for Haiku and it would
simplify the process a lot in our Haikuports system (our equivalent of
Ports in FreeBSD).
So here is the proposal :
I propose to add a -WH option that can accept a "gcc4" parameter to
specify the alternative option. This is similar to others -W options
used to specify the kind of applications on the same platform (like -WA
or -WG for Windows).
It would simplify lazarus building under Haiku using a command like that :
make LCL_PLATFORM=qt OPT="-WHgcc4"
Do you think that kind of options could be upstreamed ? If so, i can
update the patch to match current sources and maybe use the same option
names as setarch to specify the platform.
If not, i can still patch freepascal sources before packaging freepascal
for Haiku through our haikuports system. But it would be, in my opinion,
less practical on the long term.
Or maybe someone will come up with a better idea to handle that kind of
problems ?
What do you think about this proposal ?
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel