Compiling GHC that Segfaults

I have been able to “successfully” compile GHC on OpenBSD but when I run the executable even to just show the version it instantly segfaults. What would you suggest to for this problem?

I think at that point your only hope is to use gdb: compiled code · Wiki · Glasgow Haskell Compiler / GHC · GitLab

The packaged version of gdb on OpenBSD is so old. I’ll have to try compiling the newer version (won’t be easy).

You can also try another debugger like lldb. Or I see here that there are ways to get newer gdb on OpenBSD (without manually compiling it).