On Wed, Aug 13, 2008 at 12:37:14AM +0000, Jona Joachim wrote: > > Simon Kuhnle reported problems, but only for ghci. The non-interactive > > ghc still worked for him on amd64. > > Yes, I can confirm this, ghci doesn't work but ghc does. > > ghci exits with an abort trap: > > ghc-6.6.1: internal error: R_X86_64_PC32 relocation out of range: environ = > 0xfffffffdf7a303ee > (GHC version 6.6.1 for x86_64_unknown_openbsd)
There are some patches floating around; I'll have a little bit more in a little bit more than a week and will try to fix the bug. > kili, I was wondering about your plans for the ghc 6.8 port. I tested > your work-in-progress port some time ago and it compiled fine with the > inplace ghc 6.6 compiler. No surprise. I had the 6.8 release candidate running (on i386 and amd64) last year at p2k7. > If I understand correctly you want to have bootstrapping from hc files > work before you update the port, however it might take some time until > the bootstrapping problem is fixed. I mostly fixed it, but with some really crude hacks, and there's still stuff from the initial .hc and .hi stage1 build kreeping into stage2 and stage3. I suspect this can also happen for "normal" builds (the libraries either aren't rebuilt at all or rebuilt in-place). And since ghc-6.10 will be released this year, I guess I have to work on ghc-HEAD, because there's no chance to get any diff for 6.8 committed upstream. > I saw that the FreeBSD port downloads a precompiled ghc from one of > their servers to compile the port, wouldn't that be a good solution for > the OpenBSD port, too, until bootstrapping is fixed? No, the GHC build system already nothing more than a huge pile of workarounds. I'm not willing to add yet another workaround. The only alternatives to bootstrapping from .hc files are: - maintain two versions of ghc in the tree (6.6, which is the last bootstrappable version, and 6.8 or the upcoming 6.10), - write a Haskell compiler (in C) that implements all the extensions to the Haskell language that GHC needs to build. Ciao, Kili