Hello
I'm unable to build darcs-2.12.0, nor 2.12.1, on both Windows 10 and
Windows 7 with the latest Haskel Platform (ghc-8.0.1) using "cabal install
darcs -f-curl".
It appears to originate in Darcs.Util.ByteString which hides the required
types using the preprocessor directives e.g.:
[ 41 of 234] Compiling Darcs.Util.ByteString (
src\Darcs\Util\ByteString.hs, dist\build\Darcs\Util\ByteString.o )
src\Darcs\Util\ByteString.hs:415:22: error:
Not in scope: type constructor or class `SomeException'
#if mingw32_HOST_OS
#else
import Control.Exception ( catch, SomeException )
#endif
Joris
Thanks for the report!
Indeed there has been a confusion in the module you're mentioning, which
now seems obvious. In one patch, Gasneh disabled some imports under
Windows, and in a latter patch, I moved a function that needed the same
imports *under all platforms*.
The fix will be part of a 2.12.3 release soon.
The following patch sent by Guillaume Hoffmann <guillaumh@gmail.com> updated issue issue2510 with
status=resolved;resolvedin=2.12.0 HEAD
* resolve issue2510: import Control.Exception even under Windows
Ignore-this: 5cb2533ab84e938858aafd62e8057b66
Hello again
This issue is not completely fixed. The one situation I gave was only an
example.
This is the current failure on darcs-2.12.3:
[ 40 of 234] Compiling Darcs.Util.Encoding ( src\Darcs\Util\Encoding.hs,
dist\build\Darcs\Util\Encoding.o )
[ 41 of 234] Compiling Darcs.Util.ByteString (
src\Darcs\Util\ByteString.hs, dist\build\Darcs\Util\ByteString.o )
src\Darcs\Util\ByteString.hs:416:30: error:
Variable not in scope: performGC :: IO a0
If you don't have Windows machines available I glad to assist by checking
out darcs-2.12 HEAD building and returning the result.
Regards
Joris
---------- Forwarded message ----------
From: noreply <bugs@darcs.net>
Date: 2016-09-11 0:44 GMT+02:00
Subject: [issue2510] Unable to build on Windows
To: joris.putcuyps@gmail.com
noreply <noreply@darcs.net> added the comment:
The following patch sent by Guillaume Hoffmann <guillaumh@gmail.com>
updated issue issue2510 with
status=resolved;resolvedin=2.12.0 HEAD
* resolve issue2510: import Control.Exception even under Windows
Ignore-this: 5cb2533ab84e938858aafd62e8057b66
----------
resolvedin: -> 2.12.0 HEAD
status: unknown -> resolved
__________________________________
Darcs bug tracker <bugs@darcs.net>
<http://bugs.darcs.net/issue2510>
__________________________________
Oops * 2
Indeed I only check darcs builds on my personal machine (Ubuntu Linux)
and I don't have a Windows machine available.
Could you send us a patch that fixes building under Windows?
Hello Guillaume
I've only had to change one extra thing on darcs HEAD
hunk ./src/Darcs/Util/ByteString.hs 114
-import System.Mem( performGC )
hunk ./src/Darcs/Util/ByteString.hs 116
+import System.Mem( performGC )
Note however I cannot be sure compilable means correct code!
Regards
Joris
2016-09-12 17:47 GMT+02:00 Guillaume Hoffmann <bugs@darcs.net>:
>
> Guillaume Hoffmann <guillaumh@gmail.com> added the comment:
>
> Oops * 2
>
> Indeed I only check darcs builds on my personal machine (Ubuntu Linux)
> and I don't have a Windows machine available.
>
> Could you send us a patch that fixes building under Windows?
>
> __________________________________
> Darcs bug tracker <bugs@darcs.net>
> <http://bugs.darcs.net/issue2510>
> __________________________________
>