Re: compiling hugs
Anthony Clayden <[email protected]> Tue, 31 Mar 2020 00:01:29 +1300
| Newsgroups | gmane.comp.lang.haskell.hugs.user |
|---|---|
| Message-ID | <CAM7nRYRSQTWX0FF9Bnx_0MHrnSGKLHpVWCQj=grBjjAOttYwyQ@mail.gmail.com> |
--===============6252693007545887522== Content-Type: multipart/alternative; boundary="00000000000039558205a21060ef" --00000000000039558205a21060ef Content-Type: text/plain; charset="UTF-8" > I realise this mailing list is long defunct, ... Hi Sam, defunct but not forgotten. (Sorry I took a while to see your post.) I've been able to compile some of Hugs. That's on a Windows machine with MinGW/MSys. I'll probably not be able to help much with GNU/Linux, but FWIW the bit I couldn't get to compile was exactly the FFI. Also I had quite a bit of trouble backtracking to Win32: mine is a 64-bit machine, but I had to run everything in 32-bit mode, because the config files didn't know anything about 64-bit. Re FFI: do you need to support foreign functions? What I did in the end was just take the FFI objects from the distro, not recompile. (Hack the makefile to make only the /src sub-dir, miss out /libraries, /docs.) I'm interested only in modifying the language/syntax/semantics, not building industrial-strength interfaces. > ... but I am nevertheless interested in compiling hugs on a modern GNU/Linux system, > primarily motivated by thoughts that are along the lines of > http://www.joachim-breitner.de/blog/748-Thoughts_on_bootstrapping_GHC Yes, I thought Joachim was both a hero and foolish for trying. At a guess, you don't need FFI to bootstrap enough of the language to get a compiler running with the Prelude(?) By all means I'm happy for you to bounce ideas around. AntC > However, I hit this compilation error and I was hoping somebody could > help me to get past it: cd libraries; make all make[1]: Entering directory '/home/fommil/tmp/hugs98-plus-Sep2006/libraries' cd ../cpphs; HUGSFLAGS=-P../libraries/bootlib HUGSDIR=../hugsdir ../src/runhugs -98 ../packages/Cabal/examples/hapax.hs configure --verbose --hugs --prefix='/usr/local' --scratchdir='../hugsdir/packages/cpphs' --with-compiler=../src/ffihugs runhugs: Error occurred ERROR "../libraries/bootlib/Foreign/Ptr.hs" - Error while importing DLL "../libraries/bootlib/Foreign/Ptr.so": ../libraries/bootlib/Foreign/Ptr.so: cannot open shared object file: No such file or directory --00000000000039558205a21060ef Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <pre style=3D"white-space:pre-wrap;background-color:rgb(255,255,255)"><div = dir=3D"auto"> > I realise this mailing list is long defunct, ...</div><div dir=3D"auto= "><br></div><div dir=3D"auto">Hi Sam, defunct but not forgotten. (Sorry I t= ook a while to see your post.)</div><div dir=3D"auto"><br></div><div dir=3D= "auto">I've been able to compile some of Hugs. That's on a Windows = machine with MinGW/MSys.</div><div dir=3D"auto"><br></div><div dir=3D"auto"= >I'll probably not be able to help much with GNU/Linux,=C2=A0</div><div= dir=3D"auto">but FWIW the bit I couldn't get to compile was exactly th= e FFI.=C2=A0</div><div dir=3D"auto">Also I had quite a bit of trouble backt= racking to Win32:=C2=A0</div><div dir=3D"auto">mine is a 64-bit machine, bu= t I had to run everything in 32-bit mode,=C2=A0</div><div dir=3D"auto">beca= use the config files didn't know anything about 64-bit.</div><div dir= =3D"auto"><br></div><div dir=3D"auto">Re FFI: do you need to support foreig= n functions?=C2=A0</div><div dir=3D"auto">What I did in the end was just ta= ke the FFI objects from the distro,=C2=A0</div><div dir=3D"auto">not recomp= ile. (Hack the makefile to make only the /src sub-dir, <span style=3D"font-= family:-apple-system,HelveticaNeue">miss out /libraries, /docs.)</span></di= v><div dir=3D"auto"><br></div><div dir=3D"auto">I'm interested only in = modifying the language/syntax/semantics,=C2=A0</div><div dir=3D"auto">not b= uilding industrial-strength interfaces.</div><div dir=3D"auto"><br></div><d= iv dir=3D"auto">> ... but I am nevertheless interested in compiling hugs= on a modern GNU/Linux system,</div><div dir=3D"auto">> primarily motiva= ted by thoughts that are along the lines of </div><div dir=3D"auto">> <a href=3D"http://www.joachim-breitner.de/blog= /748-Thoughts_on_bootstrapping_GHC" style=3D"font-family:-apple-system,Helv= eticaNeue">http://www.joachim-breitner.de/blog/748-Thoughts_on_bootstrappin= g_GHC</a></div><br></pre><pre style=3D"white-space:pre-wrap;background-colo= r:rgb(255,255,255)"><div dir=3D"auto">Yes, I thought Joachim was both a her= o and foolish for trying. At a guess,=C2=A0</div><div dir=3D"auto">you don&= #39;t need FFI to bootstrap enough of the language to get a compiler runnin= g=C2=A0</div><div dir=3D"auto">with the Prelude(?)</div></pre><pre style=3D= "white-space:pre-wrap;background-color:rgb(255,255,255)"><div dir=3D"auto">= By all means I'm happy for you to bounce ideas around.</div><div dir=3D= "auto"><br></div><div dir=3D"auto">AntC</div><div dir=3D"auto"><br></div><d= iv dir=3D"auto"> > However, I hit this compilation error and I was hoping somebody could > help me to get past it: cd libraries; make all make[1]: Entering directory '/home/fommil/tmp/hugs98-plus-Sep2006/libra= ries' cd ../cpphs; HUGSFLAGS=3D-P../libraries/bootlib HUGSDIR=3D../hugsdir ../src= /runhugs -98 ../packages/Cabal/examples/hapax.hs configure --verbose --hugs --prefix=3D&= #39;/usr/local' --scratchdir=3D'../hugsdir/packages/cpphs' --with-compiler=3D../src= /ffihugs runhugs: Error occurred ERROR "../libraries/bootlib/Foreign/Ptr.hs" - Error while importi= ng DLL "../libraries/bootlib/Foreign/Ptr.so": ../libraries/bootlib/Foreign/Ptr.so: cannot open shared object file: No suc= h file or directory </div><div dir=3D"auto"><br></div></pre><div dir=3D"auto"><br></div> --00000000000039558205a21060ef-- --===============6252693007545887522== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KSHVncy1Vc2Vy cyBtYWlsaW5nIGxpc3QKSHVncy1Vc2Vyc0BoYXNrZWxsLm9yZwpodHRwOi8vbWFpbC5oYXNrZWxs Lm9yZy9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vaHVncy11c2Vycwo= --===============6252693007545887522==--