<div>Thanks, Ben!</div><div> </div><div>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.</div><div> </div><div>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?</div><div> </div><div>-- </div><div>With best regards, Igor Chudov</div><div> </div><div> </div><div> </div><div>22.07.2019, 15:52, "Ben Gamari" <ben@well-typed.com>:</div><blockquote>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.<br /><br />Cheers,<br /><br />- Ben<br /> <div>On July 22, 2019 4:48:32 AM EDT, Igor Chudov <<a href="mailto:nir@altlinux.org">nir@altlinux.org</a>> wrote:<blockquote style="border-left-color:rgb( 204 , 204 , 204 );border-left-style:solid;border-left-width:1px;margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"><pre>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:

- <a href="https://elephly.net/posts/2017-01-09-bootstrapping-haskell-part-1.html">https://elephly.net/posts/2017-01-09-bootstrapping-haskell-part-1.html</a>
- <a href="http://www.joachim-breitner.de/blog/748-Thoughts_on_bootstrapping_GHC">http://www.joachim-breitner.de/blog/748-Thoughts_on_bootstrapping_GHC</a>

which I read and plan to give it a try.

I also read articles about cross-compiling GHC on Haskell wiki but the problem is complex so I don't know where to start.

Are there anyone who has experience with GHC compiling (cross-compiling?) and bootstrap on new architectures who could possibly help me to solve the problem or describe the steps needed?

-- 
With best regards, Igor Chudov</pre><hr />ghc-devs mailing list<br /><a href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a><br /><a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a></blockquote></div><br />--<br />Sent from my Android device with K-9 Mail. Please excuse my brevity.</blockquote>