<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 2019-09-12, at 7:51 AM, Mojca Miklavec wrote:</div><blockquote type="cite"><div><font class="Apple-style-span" color="#000000"><br></font></div><div><font class="Apple-style-span" color="#000000"><br></font>Cool!<br><br>Doesn't it work if you simply use this working ghc-bootstrap to build version 8?<br>Or is Haskell too picky about what version of compiler you require to<br>build something newer, and you can only go forward one tiny step at a<br>time?<br><br></div></blockquote><div><br></div><div>The Haskell bootstrap rule appears to be two major steps at a time, and for whatever reason they skip odd numbered minor versions.</div><div><br></div><div>Bootstrapping up to a current ghc from our previous ghc 7.8.3 looks like it may not be overly difficult, in the end, at least it went pretty smoothly:</div><div><br></div><div><div><div>$ port -v installed ghc</div><div>The following ports are currently installed:</div><div> ghc @7.8.3_6 platform='darwin 10' archs='x86_64' date='2017-11-19T13:47:09-0800'</div><div> ghc @8.0.2_0 (active) platform='darwin 10' archs='x86_64' date='2019-09-12T18:04:13-0700'</div><div><br></div></div></div><div><br></div><div>It all goes pretty easily, but it does take some time. </div><div><br></div><div>This ghc compiler I'm building looks like it should work on all 64bit systems 10.6+, I think. Have to see.</div><div><br></div><div>I think this might deliver a newer ghc 8.6.3 for older systems (actually 8.8.1 is out now, so I might just go all the way to there) and then once we have a bootstrap we can just use the current haskell infrastructure & stack.</div><div><br></div><div><br></div><div><br></div><div>On the way-out-there fringe, who knows about i386: There is an 8.8.1 i386 bootstrap binary for debian, so it appears possible to ponder that, at least. </div><div><br></div><div>I would not be surprised if it also worked on Intel 10.5, but PPC is pretty much out, I think, because the llvm backend that haskell uses can't produce quality PPC code... although I do in fact have a working llvm-3.9 and llvm-5.0 for PPC that might actually work, as ghc is only C code. Not sure about the ABI issues...</div><div><br></div><div>Maybe a cross compiler might be fun to try out, someday...</div><div><br></div><div>Ken</div><div><br></div><div><br></div></div></body></html>