Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5193

Thrift is not compatible with GHC >= 8.8

    XMLWordPrintableJSON

    Details

    • Type: Wish
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 0.13.0
    • Fix Version/s: None
    • Component/s: Haskell - Library
    • Labels:
      None
    • Environment:

      macOS 10.15.4

      stack 2.3.1

      Description

      When building using GHC >= 8.8, I get the following error

      > stack --resolver lts-15.11 build thrift
      ...
      Error: While constructing the build plan, the following exceptions were encountered:In the dependencies for thrift-0.13.0:
          network-3.1.1.1 from stack configuration does not match >=2.6 && <3.0  (latest matching version
                          is 2.8.0.1)
      needed since thrift is a build target.Some different approaches to resolving this:  * Set 'allow-newer: true'
          in /Users/liam/.stack/config.yaml to ignore all version constraints and build anyway.  * Recommended action: try adding the following to your extra-deps
          in /Users/liam/.stack/global-project/stack.yaml:- network-2.8.0.1@sha256:0f165dffa752d8cde30c2bde86f80609c4f1dc5eeb3182d593041f97839c5b3b,3011

      In a monolithic project, it is not acceptable to downgrade all uses of the networking library.

      Trying to debug further by allowing the newer networking library shows that the networking API has substantially changed between 2.x and 3.x

      > stack --resolver lts-15.11 build thrift
      ...
      thrift              > configure
      thrift              > Configuring thrift-0.13.0...
      thrift              > build
      thrift              > Preprocessing library for thrift-0.13.0..
      thrift              > Building library for thrift-0.13.0..
      thrift              > [ 1 of 17] Compiling Thrift.Arbitraries
      thrift              > [ 2 of 17] Compiling Thrift.Transport
      thrift              > [ 3 of 17] Compiling Thrift.Transport.Empty
      thrift              > [ 4 of 17] Compiling Thrift.Transport.Handle
      thrift              > 
      thrift              > /private/var/folders/b4/vndwlkd168l7lnn9zcq_3y080000gn/T/stack-650b5907574f1d58/thrift-0.13.0/src/Thrift/Transport/Handle.hs:34:1: error:
      thrift              >     Could not find module 'Network'
      thrift              >     Use -v (or `:set -v` in ghci) to see a list of the files searched for.
      thrift              >    |
      thrift              > 34 | import Network
      thrift              >    | ^^^^^^^^^^^^^^
      thrift              > 

       

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              liamd Liam Damewood
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: