darcs

Issue 1840 Cabal install issue with darcs 2.4.1

Title Cabal install issue with darcs 2.4.1
Priority bug Status duplicate
Milestone Resolved in
Superseder darcs fails at compile time: type error when building dependency "hashed-storage"
View: 1826
Nosy List dmitry.kurochkin, kowey, mike
Assigned To
Topics

Created on 2010-05-08.08:05:20 by mike, last changed 2010-05-08.08:06:47 by kowey.

Files
File name Uploaded Type Edit Remove
unnamed mike, 2010-05-08.08:05:18 text/html
Messages
msg11020 (view) Author: mike Date: 2010-05-08.08:05:18
Actually cabal install output:

>cabal install darcs-2.4.1
Resolving dependencies...
[1 of 1] Compiling Main             ( C:\Users\M\AppData\Local\Temp\hashed-stora
ge-0.4.116260\hashed-storage-0.4.11\Setup.hs, C:\Users\M\AppData\Local\Temp\hash
ed-storage-0.4.116260\hashed-storage-0.4.11\dist\setup\Main.o )
Linking C:\Users\M\AppData\Local\Temp\hashed-storage-0.4.116260\hashed-storage-0
.4.11\dist\setup\setup.exe ...
Configuring hashed-storage-0.4.11...
Preprocessing library hashed-storage-0.4.11...
Preprocessing executables for hashed-storage-0.4.11...
Building hashed-storage-0.4.11...
[ 1 of 12] Compiling Bundled.SHA256   ( Bundled\SHA256.hs, dist\build\Bundled\SH
A256.o )

on the commandline:
    Warning: -XPatternSignatures is deprecated: use -XScopedTypeVariables or pra
gma {-# LANGUAGE ScopedTypeVariables #-} instead
[ 2 of 12] Compiling Storage.Hashed.Hash ( Storage\Hashed\Hash.hs, dist\build\St
orage\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))
cabal: Error: some packages failed to install:
darcs-2.4.1 depends on hashed-storage-0.4.11 which failed to install.
hashed-storage-0.4.11 failed during the building phase. The exception was:
ExitFailure 1

Platform: Windows7

P.S. http://bugs.darcs.net/ is offline.
Attachments
msg11022 (view) Author: kowey Date: 2010-05-08.08:06:47
Thanks for the bug report, Mike! (And sorry for not noticing you earlier
in the anti-spam moderator queue).  This is a duplicate of issue1826,
which will be resolved in the upcoming darcs 2.4.2 release.
History
Date User Action Args
2010-05-08 08:05:20mikecreate
2010-05-08 08:06:47koweysetpriority: bug
status: unknown -> duplicate
superseder: + darcs fails at compile time: type error when building dependency "hashed-storage"
messages: + msg11022
nosy: + kowey