Re: compiling hugs

Anthony Clayden <[email protected]> Fri, 17 Apr 2020 23:11:38 +1200
Newsgroups gmane.comp.lang.haskell.hugs.user
Message-ID <CAM7nRYQMG7UWr4RfXtV_LCEBg29jjgZqpVeW2LSURnDKbAGyBg@mail.gmail.com>
--===============2607358550286274394==
Content-Type: multipart/alternative; boundary="0000000000009fb36905a37a9dfb"

--0000000000009fb36905a37a9dfb
Content-Type: text/plain; charset="UTF-8"

Hi again Sam, if you're still listening ...

WIth time on my hands during the lockdown, I had a crack at making the
libraries, and hit the same error, I think.

I'm on Windows, so the build complained about not finding Ptr.dll. Indeed
it wasn't created, even though there's a Ptr.c in the same directory.
There's 2 other .dll's which give the same error: Alloc.dll, Error.dll;
again there are .c files in the same directories.

There's other .dll's that got built OK. So seems the make isn't picking up
that it needs to compile the .c to .dll. DId you manage to figure out
what's going on? I tried reading what the Makefile is doing, but it's too
convoluted.

To hack my way through it (this eventually worked, but it's very dodgy): I
downloaded/unpacked the official Package distribution; found those .dll's
in it; copied them into the place the make was looking for them; and
restarted the make. There were a few other errors that I hacked through
similarly; the make did eventually finish (I won't say OK ;-).

So I have a kinda working cobbled-together system.

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


-- 
Best regards,
Sam

--0000000000009fb36905a37a9dfb
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto">Hi again Sam, if you&#39;re still listening ...</div><div=
 dir=3D"auto"><br></div><div dir=3D"auto">WIth time on my hands during the =
lockdown, I had a crack at making the libraries, and hit the same error, I =
think.</div><div dir=3D"auto"><br></div><div dir=3D"auto">I&#39;m on Window=
s, so the build complained about not finding Ptr.dll. Indeed it wasn&#39;t =
created, even though there&#39;s a Ptr.c in the same directory. There&#39;s=
 2 other .dll&#39;s which give the same error: Alloc.dll, Error.dll; again =
there are .c files in the same directories.</div><div dir=3D"auto"><br></di=
v><div dir=3D"auto">There&#39;s other .dll&#39;s that got built OK. So seem=
s the make isn&#39;t picking up that it needs to compile the .c to .dll. DI=
d you manage to figure out what&#39;s going on? I tried reading what the Ma=
kefile is doing, but it&#39;s too convoluted.</div><div dir=3D"auto"><br></=
div><div dir=3D"auto">To hack my way through it (this eventually worked, bu=
t it&#39;s very dodgy): I downloaded/unpacked the official Package distribu=
tion; found those .dll&#39;s in it; copied them into the place the make was=
 looking for them; and restarted the make. There were a few other errors th=
at I hacked through similarly; the make did eventually finish (I won&#39;t =
say OK ;-).</div><div dir=3D"auto"><br></div><div dir=3D"auto">So I have a =
kinda working cobbled-together system.</div><div dir=3D"auto"><br></div><di=
v dir=3D"auto">AntC</div><div dir=3D"auto"><pre style=3D"white-space:pre-wr=
ap;background-color:rgb(255,255,255)">&gt; 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 &#39;/home/fommil/tmp/hugs98-plus-Sep2006/libra=
ries&#39;
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&#39;
--scratchdir=3D&#39;../hugsdir/packages/cpphs&#39; --with-compiler=3D../src=
/ffihugs
runhugs: Error occurred
ERROR &quot;../libraries/bootlib/Foreign/Ptr.hs&quot; - Error while importi=
ng DLL
&quot;../libraries/bootlib/Foreign/Ptr.so&quot;:
../libraries/bootlib/Foreign/Ptr.so: cannot open shared object file: No suc=
h file or directory


--=20
Best regards,
Sam
</pre><div dir=3D"auto"><br></div></div>

--0000000000009fb36905a37a9dfb--

--===============2607358550286274394==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KSHVncy1Vc2Vy
cyBtYWlsaW5nIGxpc3QKSHVncy1Vc2Vyc0BoYXNrZWxsLm9yZwpodHRwOi8vbWFpbC5oYXNrZWxs
Lm9yZy9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vaHVncy11c2Vycwo=

--===============2607358550286274394==--