darcs

Issue 1826 darcs fails at compile time: type error when building dependency "hashed-storage"

Title darcs fails at compile time: type error when building dependency "hashed-storage"
Priority bug Status resolved
Milestone 2.4.x Resolved in 2.4.x
Superseder Nosy List barendventer, craigstjean, darcs-devel, dmitry.kurochkin, kowey, mornfall
Assigned To mornfall
Topics

Created on 2010-04-21.07:09:57 by barendventer, last changed 2010-06-16.14:38:15 by kowey.

Files
File name Uploaded Type Edit Remove
unnamed barendventer, 2010-04-21.07:09:56 text/html
Messages
msg10780 (view) Author: barendventer Date: 2010-04-21.07:09:56
I cannot build darcs with cabal on either of my two windows machines (one 32
bit running Windows XP, the other 64 bit running Windows 7)

Both of them are using the 2010.1.1 haskell platform for windows (and thus
GHC v 6.12.1).

I send this here with the belief that the darcs team is responsible for
hashed-storage, or that you'll be able to forward it to those who are.

Sincery, Barend Venter,

Command line output follows:

[ 3 of 12] Compiling Bundled.Posix    ( dist\build\Bundled\Posix.hs,
dist\build\
Bundled\Posix.o )

Bundled\Posix.hsc:86:36:
    Couldn't match expected type `Foreign.C.Types.CChar'
           against inferred type `Foreign.C.Types.CWchar'
      Expected type: Foreign.C.String.CString
      Inferred type: System.Posix.Internals.CFilePath
    In the second argument of `withCString', namely `(`lstat` p)'
    In the expression: (fp `withCString` (`lstat` p))

Bundled\Posix.hsc:91:43:
    Couldn't match expected type `Foreign.C.Types.CChar'
           against inferred type `Foreign.C.Types.CWchar'
      Expected type: Foreign.C.String.CString
      Inferred type: System.Posix.Internals.CFilePath
    In the second argument of `unsafeUseAsCString', namely
        `(`lstat` p)'
    In the expression: (fp `unsafeUseAsCString` (`lstat` p))
cabal.exe: Error: some packages failed to install:
hashed-storage-0.4.11 failed during the building phase. The exception was:
ExitFailure 1
Attachments
msg10806 (view) Author: craigstjean Date: 2010-04-25.05:07:21
I also get this on my Windows 7 64-bit machine, Haskell Platform 2010.1.1.
msg10809 (view) Author: kowey Date: 2010-04-25.09:54:02
Thanks for the report(s)!  We should have this addressed by Darcs 2.4.2.
Could you both confirm that hashed-storage 0.4.12 builds for you?

The darcs hashed-storage dependency is (deliberately) pinned to one
precise version of hashed-storage (for predictability).  We'll have a
patch shortly to modify the darcs.cabal file (but please feel invited to
try this out yourselves and report back)
msg10812 (view) Author: craigstjean Date: 2010-04-25.19:43:43
hashed-storage 0.4.12 also does not build for me.

Preprocessing library hashed-storage-0.4.12...
Preprocessing executables for hashed-storage-0.4.12...
Building hashed-storage-0.4.12...
[ 1 of 12] Compiling Bundled.SHA256   ( Bundled\SHA256.hs,
dist\build\Bundled\SHA256.o )

on the commandline:
    Warning: -XPatternSignatures is deprecated: use
-XScopedTypeVariables or pragma {-# LANGUAGE ScopedTypeVariables #-} instead
[ 2 of 12] Compiling Storage.Hashed.Hash ( Storage\Hashed\Hash.hs,
dist\build\Storage\Hashed\Hash.o )
[ 3 of 12] Compiling Bundled.Posix    ( dist\build\Bundled\Posix.hs,
dist\build\Bundled\Posix.o )

Bundled\Posix.hsc:86:36:
    Couldn't match expected type `Foreign.C.Types.CChar'
           against inferred type `Foreign.C.Types.CWchar'
      Expected type: Foreign.C.String.CString
      Inferred type: System.Posix.Internals.CFilePath
    In the second argument of `withCString', namely `(`lstat` p)'
    In the expression: (fp `withCString` (`lstat` p))

Bundled\Posix.hsc:91:43:
    Couldn't match expected type `Foreign.C.Types.CChar'
           against inferred type `Foreign.C.Types.CWchar'
      Expected type: Foreign.C.String.CString
      Inferred type: System.Posix.Internals.CFilePath
    In the second argument of `unsafeUseAsCString', namely
        `(`lstat` p)'
    In the expression: (fp `unsafeUseAsCString` (`lstat` p))
msg10813 (view) Author: kowey Date: 2010-04-25.20:18:56
Whoops, mistaken identity about the problem, sorry Craig and Barend. 
Petr, I believe this one is an easy one for you to fix?  Thanks!
msg11023 (view) Author: mornfall Date: 2010-05-08.08:53:35
Fixed in h-s 0.4.13.
msg11031 (view) Author: craigstjean Date: 2010-05-10.05:31:54
Confirmed, hashed-storage 0.4.13 now builds for me.  Thank you!
History
Date User Action Args
2010-04-21 07:09:57barendventercreate
2010-04-25 05:07:22craigstjeansetnosy: + craigstjean
messages: + msg10806
2010-04-25 09:54:04koweysetstatus: unknown -> waiting-for
priority: bug
nosy: + kowey, mornfall
messages: + msg10809
topic: + Target-2.4
assignedto: barendventer
2010-04-25 19:43:44craigstjeansetassignedto: barendventer -> kowey
messages: + msg10812
2010-04-25 20:18:56koweysetstatus: waiting-for -> needs-implementation
assignedto: kowey -> mornfall
messages: + msg10813
2010-05-08 08:06:47koweylinkissue1840 superseder
2010-05-08 08:53:36mornfallsetstatus: needs-implementation -> resolved
messages: + msg11023
2010-05-10 05:31:55craigstjeansetstatus: resolved -> unknown
messages: + msg11031
2010-05-10 05:32:10craigstjeansetstatus: unknown -> resolved
2010-06-15 21:31:28adminsetmilestone: 2.4.x
2010-06-15 21:31:28adminsettopic: - Target-2.4
2010-06-16 14:38:15koweysetresolvedin: 2.4.x