Skip to content

Couldn't match type 'COff' with 'Int64' When build using GHCJS #124

Closed
@Rizary

Description

@Rizary

When I try to build project using ghcjs, I got the following error:

[15 of 39] Compiling System.Posix.Files.Common ( dist/build/System/Posix/Files/Common.hs, dist/build/System/Posix/Files/Common.js_o )

System/Posix/Files/Common.hsc:523:51: error:
    • Couldn't match type ‘COff’ with ‘Int64’
      Expected type: Int64
        Actual type: FileOffset
    • In the second argument of ‘c_ftruncate’, namely ‘off’
      In the second argument of ‘throwErrnoIfMinus1_’, namely
        ‘(c_ftruncate fd off)’
      In the expression:
        throwErrnoIfMinus1_ "setFdSize" (c_ftruncate fd off)
    |
523 |   throwErrnoIfMinus1_ "setFdSize" (c_ftruncate fd off)
    |                                                   ^^^
cabal: Failed to build unix-2.7.2.2 (which is required by exe:matrix-ui from
matrix-ui-0.3.0.0).

OS: Ubuntu
GHCJS: 8.2
Cabal: Head

throwErrnoIfMinus1_ "setFdSize" (c_ftruncate fd off)

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