<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Well, for the HaLVM (and maybe native client), a stage2 compiler doesn’t really make sense. So the HaLVM’s compiler is simply a stage1 compiler, somewhat extended. We do some tricks via the top level Makefile, yes, but it’s mostly a standard build for a different target, stopped at the end of the stage1 process.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">- Adam</div><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 7, 2015, at 7:06 AM, Jakub Zalewski <<a href="mailto:jakzale@gmail.com" class="">jakzale@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi Adam,<div class="">thank you for your reply; <span style="font-size:13.1999998092651px;line-height:1.5" class="">I've looked into HaLVM code and it is really helpful.</span></div><div class=""><br class=""></div><div class="">After disabling some incompatible packages (in a similar fashion to HaLVM) from <a href="http://ghc.mk/" class="">ghc.mk</a> I got to an issue that configure for ghc stage2 requires those packages.</div><div class=""><br class=""></div><div class="">How did you solve that problem in HaLVM? Is it solved by calling parts of the ghc build system from within the top Makefile in the HaLVM repository?</div><div class=""><br class=""></div><div class="">Best wishes,</div><div class="">Jakub</div><div class=""><br class=""></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Fri, Jul 3, 2015 at 12:07 AM Adam Wick <<a href="mailto:awick@galois.com" class="">awick@galois.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Hi Jakub -<div class=""><br class=""></div><div class="">You will find that many of these questions are things we’ve had to address in the HaLVM (<a href="http://github.com/GaloisInc/HaLVM" target="_blank" class="">http://github.com/GaloisInc/HaLVM</a>). You may want to look in that code base for information on what we considered minimal and how we got around some of the build system and other issues a minimal build requires.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">- Adam</div><div class=""><br class=""></div><div class=""></div></div><div style="word-wrap:break-word" class=""><div class="">On Jul 2, 2015, at 1:20 PM, Jakub Zalewski <<a href="mailto:jakzale@gmail.com" target="_blank" class="">jakzale@gmail.com</a>> wrote:<br class=""></div></div><div style="word-wrap:break-word" class=""><div class=""><div class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class="">Dear all,<div class=""><span style="font-size:13.1999998092651px;line-height:19.7999992370605px" class="">I am working on porting GHC to [native client](</span><a href="https://developer.chrome.com/native-client" style="font-size:13.1999998092651px;line-height:19.7999992370605px" target="_blank" class="">https://developer.chrome.com/native-client</a><span style="font-size:13.1999998092651px;line-height:19.7999992370605px" class="">), which has some degree of POSIX-compliance.</span><br class=""></div><div class=""><span style="font-size:13.1999998092651px;line-height:19.7999992370605px" class=""><br class=""></span></div><div class=""><span style="font-size:13.1999998092651px;line-height:19.7999992370605px" class="">I was thinking about building just the minimal/most essential parts of GHC that is enough to compile simple Haskell programs.</span></div><div class=""><span style="font-size:13.1999998092651px;line-height:19.7999992370605px" class=""><br class=""></span></div><div class=""><span style="font-size:13.1999998092651px;line-height:19.7999992370605px" class="">I wanted to ask </span><span style="font-size:13.1999998092651px;line-height:19.7999992370605px" class="">which parts of GHC are the most essential and sufficient enough to compile a simple Haskell program, for instance to compile `main = putStrLn "Hello, world!"`?</span></div><div class=""><br class=""></div><div class="">I also wanted to ask how to force a GHC build without a particular package that comes by default, for instance how to build GHC without the `unix` package?</div><div class=""><br class=""></div><div class="">Best wishes,</div><div class="">Jakub</div></div></div></blockquote></div></div></div><div style="word-wrap:break-word" class=""><div class=""><div class=""><blockquote type="cite" class=""><div class="">
_______________________________________________<br class="">ghc-devs mailing list<br class=""><a href="mailto:ghc-devs@haskell.org" target="_blank" class="">ghc-devs@haskell.org</a><br class=""><a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" target="_blank" class="">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br class=""></div></blockquote></div><br class=""></div></div></blockquote></div>
</div></blockquote></div><br class=""></body></html>