Index | Thread | Search

From:
Greg Steuck <gnezdo@openbsd.org>
Subject:
Re: GHC on OpenBSD/arm64 -> retguard fail?
To:
حبيب محمد الأمين محمد الهادي <ha.alamin@gmail.com>
Cc:
ports@openbsd.org
Date:
Mon, 18 Nov 2024 13:09:04 -0800

Download raw body.

Thread
حبيب محمد الأمين محمد الهادي <ha.alamin@gmail.com> writes:

>> To be honest, I'm focusing on putting together a monster of a hack
>> environment on arm64 by cross-compiling just enough stuff. I suspect
>> polishing the cross-build flow is too much trouble for one use that we
>> need to happen. The next one is likely to be RISCV whenever this is.
>
> Yeah, it probably is for OpenBSD's purposes, but I really get frustrated
> and find it hard to walk away from utilising all the knowledge I've
> gained in this process to improve the process itself for the next poor
> sap.

Don't let my focus on getting the ports done discourage you from
contributing as much as possible upstream. I'm all for making GHC
better for everybody.

> I also don't know how we're gonna get the OpenBSD/arm64 port of
> GHC included into the project exactly. Presumably, they want an
> officially-built arm64 GHC binary where the stage 0 used to build it
> is the stage 2 arm64 GHC binary from a cross-compiled build, and they
> want that stage 2 cross-compilation process to be part of their build
> process, even if it's just temporary.

That'd be up to GHC folks. I spent some time pushing to include OpenBSD
into their CI but never finished that. More people helping there
wouldn't hurt.

> Honestly, getting this working for OpenBSD was my priority, so if we
> land an arm64 GHC into ports, I'll be satisfied. I've poured a lot of
> time into this and I wish I could pour more, but as much as I want to
> improve the cross-compilation process in general, I should probably
> defer that; our notes and all the work we did will still be here.

I very much appreciate your work on this. You took it over the hump that
I was not finding the energy to surmount. Thank you!

> As you have an @openbsd.org email address, you're probably better placed
> to get this past the finish line, so I'll leave it in your hands.
>
> Would you be so kind as to notify me by email once this is out in a
> release? :D

Certainly. I'll see if I find the time to make this happen over the next
weekend or the week after. At any rate, a ports snapshot build should
materialize first and the 7.7 release will happen on schedule.

Thanks
Greg