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 compiler) but encountered problems with ./ghc/driver/ghc-asm.prl file. It has functions like mangle_asm and alike containing assembler code for various platforms.
The documentation here: https://downloads.haskell.org/~ghc/6.0/docs/html/building/sec-porting-ghc.html states that mangler is not needed in case I'm doing unregistered build but it's called in generated scripts somehow. Maybe I missed some steps to disable it or is it better to bootstrap some other GHC version?
--
With best regards, Igor Chudov
22.07.2019, 15:52, "Ben Gamari" <ben@well-typed.com>:
Indeed there are people here who can help with this. This is described in the articles you linked to but in short you want an unregistered build which compiles via the C backend.
Cheers,
- Ben
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.