Re: GHC native bootstrap

2019-07-22 Thread Brandon Allbery
IIRC another way to do this, which was and possibly still is used on ARM, is to compile on the host with -fllvm, saving the LLVM IR output, and then run opt on the target. This requires the target have an LLVM toolchain at the same (or at least IR compatible, but note that they make few if any

Re: GHC native bootstrap

2019-07-22 Thread Ben Gamari
Igor Chudov writes: > Thanks, Ben! > > I read old docs and found that it was mentioned that it's possible to > start bootstrap with GHC 4.08.2 and HC files supplied. I performed > "./configure && make" stage on x86_64 machine and moved sources to the > desired machine (and successfully patched

Re: GHC native bootstrap

2019-07-22 Thread Igor Chudov
Thanks, Ben! I read old docs and found that it was mentioned that it's possible to start bootstrap with GHC 4.08.2 and HC files supplied. I performed "./configure && make" stage on x86_64 machine and moved sources to the desired machine (and successfully patched some files to work with exotic C

GHC native bootstrap

2019-07-22 Thread Igor Chudov
Hello! I want to bootstrap GHC on an exotic architecture and I have GCC-compatible compiler but miss cross-compiling toolchain. I was able to bootstrap Hugs98 (with manual fixes) and guys on IRC channel pointed me to GHC bootstrap articles: -