Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,865
    • Issues 4,865
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 461
    • Merge requests 461
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #20872
Closed
Open
Created Dec 26, 2021 by Joachim Breitner@nomeataDeveloper

nofib fails to build in ben-raytrace: Word# vs. Word64##

I observe this in the perf-nofib job on master, e.g. in https://gitlab.haskell.org/ghc/ghc/-/jobs/894412:

Random/Wyhash64.hs:27:20: error:
    • Couldn't match expected type ‘GHC.Prim.Word#’
                  with actual type ‘GHC.Prim.Word64#’
    • In the first argument of ‘timesWord2#’, namely ‘a’
      In the expression: timesWord2# a b
      In the expression:
        case timesWord2# a b of (# x, y #) -> (W64# x, W64# y)
   |
27 |   case timesWord2# a b of (# x, y #) -> (W64# x, W64# y)
   |                    ^
Random/Wyhash64.hs:27:22: error:
    • Couldn't match expected type ‘GHC.Prim.Word#’
                  with actual type ‘GHC.Prim.Word64#’
    • In the second argument of ‘timesWord2#’, namely ‘b’
      In the expression: timesWord2# a b
      In the expression:
        case timesWord2# a b of (# x, y #) -> (W64# x, W64# y)
   |
27 |   case timesWord2# a b of (# x, y #) -> (W64# x, W64# y)
   |                      ^
Random/Wyhash64.hs:27:47: error:
    • Couldn't match expected type ‘GHC.Prim.Word64#’
                  with actual type ‘GHC.Prim.Word#’
    • In the first argument of ‘W64#’, namely ‘x’
      In the expression: W64# x
      In the expression: (W64# x, W64# y)
   |
27 |   case timesWord2# a b of (# x, y #) -> (W64# x, W64# y)
   |                                               ^
Random/Wyhash64.hs:27:55: error:
    • Couldn't match expected type ‘GHC.Prim.Word64#’
                  with actual type ‘GHC.Prim.Word#’
    • In the first argument of ‘W64#’, namely ‘y’
      In the expression: W64# y
      In the expression: (W64# x, W64# y)
   |
27 |   case timesWord2# a b of (# x, y #) -> (W64# x, W64# y)
   |                                                       ^

I didn’t find an existing issue; sorry if I didn't search enough.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking