<div dir="ltr">Hi Adam,<div>thank you for your reply; <span style="font-size:13.1999998092651px;line-height:1.5">I've looked into HaLVM code and it is really helpful.</span></div><div><br></div><div>After disabling some incompatible packages (in a similar fashion to HaLVM) from <a href="http://ghc.mk">ghc.mk</a> I got to an issue that configure for ghc stage2 requires those packages.</div><div><br></div><div>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><br></div><div>Best wishes,</div><div>Jakub</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jul 3, 2015 at 12:07 AM Adam Wick <<a href="mailto:awick@galois.com">awick@galois.com</a>> wrote:<br></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">Hi Jakub -<div><br></div><div>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">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><br></div><div><br></div><div>- Adam</div><div><br></div><div></div></div><div style="word-wrap:break-word"><div>On Jul 2, 2015, at 1:20 PM, Jakub Zalewski <<a href="mailto:jakzale@gmail.com" target="_blank">jakzale@gmail.com</a>> wrote:<br></div></div><div style="word-wrap:break-word"><div><div><blockquote type="cite"><div><div dir="ltr">Dear all,<div><span style="font-size:13.1999998092651px;line-height:19.7999992370605px">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">https://developer.chrome.com/native-client</a><span style="font-size:13.1999998092651px;line-height:19.7999992370605px">), which has some degree of POSIX-compliance.</span><br></div><div><span style="font-size:13.1999998092651px;line-height:19.7999992370605px"><br></span></div><div><span style="font-size:13.1999998092651px;line-height:19.7999992370605px">I was thinking about building just the minimal/most essential parts of GHC that is enough to compile simple Haskell programs.</span></div><div><span style="font-size:13.1999998092651px;line-height:19.7999992370605px"><br></span></div><div><span style="font-size:13.1999998092651px;line-height:19.7999992370605px">I wanted to ask </span><span style="font-size:13.1999998092651px;line-height:19.7999992370605px">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><br></div><div>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><br></div><div>Best wishes,</div><div>Jakub</div></div></div></blockquote></div></div></div><div style="word-wrap:break-word"><div><div><blockquote type="cite"><div>
_______________________________________________<br>ghc-devs mailing list<br><a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br><a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br></div></blockquote></div><br></div></div></blockquote></div>