Skip to content

Build Error: import "unix-bytestring" System.Posix.IO.ByteString (fdPreadBuf) #4471

@jritchie-nullable

Description

@jritchie-nullable

I apologize if this issue is a bit lacking in details. I have little/no experience with Cabal / Haskell / Cardano. I believe this is the correct repo for this issue.

In trying to build cardano-node it seems that unix-bytestring v0.4.0 has renamed System.Posix.IO.ByteString.

Chunk of log

[ 24 of 214] Compiling Ouroboros.Consensus.Storage.IO ( src-unix/Ouroboros/Consensus/Storage/IO.hs, dist/build/Ouroboros/Consensus/Storage/IO.o, dist/build/Ouroboros/Consensus/Storage/IO.dyn_o )

src-unix/Ouroboros/Consensus/Storage/IO.hs:28:1: error:
    Could not find module ‘System.Posix.IO.ByteString’
    Perhaps you meant
      System.Posix.IO.ByteString (from unix-2.7.2.2)
      System.Posix.ByteString (from unix-2.7.2.2)
      System.Posix.Env.ByteString (from unix-2.7.2.2)
   |
28 | import           "unix-bytestring" System.Posix.IO.ByteString (fdPreadBuf)

updating cabal.project.local with a package constraint seems to resolve the problem.

constraints: unix-bytestring == 0.3.7.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions