Hugs troubs: build from source on Windows
Anthony Clayden <[email protected]> Sun, 22 Jul 2018 01:19:01 +1200
| Newsgroups | gmane.comp.lang.haskell.hugs.bugs |
|---|---|
| Message-ID | <CAM7nRYR1ZQuTxhyyPJUmidiKeJn2aBpAL7=G35mbrspBFLJy4w@mail.gmail.com> |
--===============2701597697876454460==
Content-Type: multipart/alternative; boundary="00000000000020f89a057182424d"
--00000000000020f89a057182424d
Content-Type: text/plain; charset="UTF-8"
Thank you Neil, I'm amazed anybody's still monitoring this forum. (I was
more posting for the sake of posterity/somebody else trying to revive Hugs.)
In that case, I'm sure you'll remember this ;-)
https://mail.haskell.org/pipermail/hugs-bugs/2006-August/001612.html
I'm building Hugs from the Sep 2006 source, on a 64-bit Windows 8 machine,
using MinGW32.
The good news is it built and I can at least run the interpreter.
The bad news is I hacked and bumbled my way through, so I'm not sure what I
got. In particular, three .dll's didn't build, so I copied them over from
the binaries distro; then hacked the Makefile; then carried on. Those three
are
Ptr.dll; Alloc.dll; Error.dll -- from corresponding .c in
./libraries/bootlib/Foreign, and sub-dirs.
Presumably the .c didn't compile. Those are three of the four .dll's
mentioned in your August 2006 message.
Can you remember any clues as to what was wrong or where to go looking?
I can explain the message in your post, because I got the same message in
an earlier attempt: "too many arguments to function 'mkdir'."
Microsoft in their wisdom changed the command. There's a call to it from
dirprim.c, guarded by a check of the HOST_OS. The August 2006 message is
wrt a call in HsBase.h, similarly guarded but maybe subtly different?:
INLINE HsInt
__hscore_mkdir( HsAddr pathName, HsInt mode )
{ ... mkdir ... }
Full disclosure: I got the error re 'mkdir' when I was trying to compile
under MSys2 -- trying to be modern. That gives a HOST_OS of 'msys', and
Hugs just doesn't know about it. I tried hacking config.sub, but ran into
more and more trouble in other places. Eventually I abandoned MSys2 and
fell back to old MSys vintage 2011.
Thank you for any pointers(!) And thank you Hugs team for such a
robust/long-lived piece of software. Building Hugs (or at least building
whatever I've got) has been less trouble than GHC on Windows looks to be
https://mmhaskell.com/blog/2018/6/11/contributing-to-ghc-1-preparation
AntC
On Fri, 20 Jul 2018 at 9:40 PM, Neil Mitchell <[email protected]>
wrote:
> Hi Anthony,
>
> Thanks for finding it. I don't even know how to update the website.
> Ross (cc'd) might...
>
>
--00000000000020f89a057182424d
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div><div dir=3D"auto">Thank you Neil, I'm amazed anybody's still m=
onitoring this forum. (I was more posting for the sake of posterity/somebod=
y else trying to revive Hugs.)</div></div><div dir=3D"auto"><br></div><div =
dir=3D"auto">In that case, I'm sure you'll remember this ;-)</div><=
div dir=3D"auto"><br></div><div dir=3D"auto"><div><a href=3D"https://mail.h=
askell.org/pipermail/hugs-bugs/2006-August/001612.html">https://mail.haskel=
l.org/pipermail/hugs-bugs/2006-August/001612.html</a></div><br></div><div d=
ir=3D"auto">I'm building Hugs from the Sep 2006 source, on a 64-bit Win=
dows 8 machine, using MinGW32.</div><div dir=3D"auto"><br></div><div dir=3D=
"auto">The good news is it built and I can at least run the interpreter.</d=
iv><div dir=3D"auto"><br></div><div dir=3D"auto">The bad news is I hacked a=
nd bumbled my way through, so I'm not sure what I got. In particular, t=
hree .dll's didn't build, so I copied them over from the binaries d=
istro; then hacked the Makefile; then carried on. Those three are</div><div=
dir=3D"auto"><br></div><div dir=3D"auto">Ptr.dll; Alloc.dll; Error.dll =C2=
=A0-- from corresponding .c in ./libraries/bootlib/Foreign, and sub-dirs.</=
div><div dir=3D"auto"><br></div><div dir=3D"auto">Presumably the .c didn=
9;t compile. Those are three of the four .dll's mentioned in your Augus=
t 2006 message.</div><div dir=3D"auto"><br></div><div dir=3D"auto">Can you =
remember any clues as to what was wrong or where to go looking?</div><div d=
ir=3D"auto"><br></div><div dir=3D"auto">I can explain the message in your p=
ost, because I got the same message in an earlier attempt: "too many a=
rguments to function 'mkdir'."</div><div dir=3D"auto"><br></di=
v><div dir=3D"auto">Microsoft in their wisdom changed the command. There=
9;s a call to it from dirprim.c, guarded by a check of the HOST_OS. The Aug=
ust 2006 message is wrt a call in HsBase.h, similarly guarded but maybe sub=
tly different?:</div><div dir=3D"auto"><br></div><div dir=3D"auto">=C2=A0 =
=C2=A0 INLINE HsInt</div><div dir=3D"auto">=C2=A0 =C2=A0 __hscore_mkdir( Hs=
Addr pathName, HsInt mode )</div><div dir=3D"auto">=C2=A0 =C2=A0 { =C2=A0..=
. =C2=A0mkdir =C2=A0... }</div><div dir=3D"auto"><br></div><div dir=3D"auto=
">Full disclosure: I got the error re 'mkdir' when I was trying to =
compile under MSys2 -- trying to be modern. That gives a HOST_OS of 'ms=
ys', and Hugs just doesn't know about it. I tried hacking config.su=
b, but ran into more and more trouble in other places. Eventually I abandon=
ed MSys2 and fell back to old MSys vintage 2011.<br></div><div dir=3D"auto"=
><br></div><div dir=3D"auto"><br></div><div dir=3D"auto">Thank you for any =
pointers(!) And thank you Hugs team for such a robust/long-lived piece of s=
oftware. Building Hugs (or at least building whatever I've got) has bee=
n less trouble than GHC on Windows looks to be=C2=A0<div><a href=3D"https:/=
/mmhaskell.com/blog/2018/6/11/contributing-to-ghc-1-preparation">https://mm=
haskell.com/blog/2018/6/11/contributing-to-ghc-1-preparation</a></div></div=
><div dir=3D"auto"><br></div><div dir=3D"auto"><br></div><div dir=3D"auto">=
AntC</div><div dir=3D"auto"><br></div><div><br><div class=3D"gmail_quote"><=
div dir=3D"ltr">On Fri, 20 Jul 2018 at 9:40 PM, Neil Mitchell <<a href=
=3D"mailto:[email protected]">[email protected]</a>> wrote:<=
br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;borde=
r-left:1px #ccc solid;padding-left:1ex">Hi Anthony,<br>
<br>
Thanks for finding it. I don't even know how to update the website.<br>
Ross (cc'd) might...<br>
<br></blockquote></div></div>
--00000000000020f89a057182424d--
--===============2701597697876454460==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KSHVncy1CdWdz
IG1haWxpbmcgbGlzdApIdWdzLUJ1Z3NAaGFza2VsbC5vcmcKaHR0cDovL21haWwuaGFza2VsbC5v
cmcvY2dpLWJpbi9tYWlsbWFuL2xpc3RpbmZvL2h1Z3MtYnVncwo=
--===============2701597697876454460==--