<div dir="auto">Hi Ben,<div dir="auto"><br></div><div dir="auto">Updating the new build tool is e right thing to do, long term, but it unfortunate doesn't help with my objective of compiling old versions of ghc ... but there is a quick here that I could exploit. Since I'm building for the same platform, bug just using different versions of the operating system, I think I can create the C files in an old Debian inside docker and use them in the more modern host machine to build the old ghc.</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, 31 Aug 2018, 15:36 Ben Gamari, <<a href="mailto:ben@smart-cactus.org">ben@smart-cactus.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Sam Halliday <<a href="mailto:sam.halliday@gmail.com" target="_blank" rel="noreferrer">sam.halliday@gmail.com</a>> writes:<br>
<br>
> Hi Ben,<br>
><br>
> This would definitely help. I could use a docker image of a really old<br>
> OS that has old ghc binaries available, to generate the .c for that<br>
> old version of GHC (e.g. v 7.0 or something). Then I could use those<br>
> files to bootstrap a ghc 7.0 on my machine, and from there every<br>
> version of ghc since. It would make a lot of sense for the<br>
> "unregistered" sources to be made available as an optional download<br>
> alongside the source code, if <a href="http://haskell.org" rel="noreferrer noreferrer" target="_blank">haskell.org</a> were open to that<br>
> possibility.<br>
><br>
This is a very interesting idea. The build system currently isn't<br>
really setup in a way to make this possible, but this could likely be<br>
changed in our new build system, Hadrian. Also, I suspect this would<br>
require some adjustments to the C code generator, which very likely has<br>
some platform dependence in its output.<br>
<br>
Perhaps you'd like to try picking up this task?<br>
<br>
Cheers,<br>
<br>
- Ben<br>
</blockquote></div>