-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot build on MacOS using Cabal #985
Comments
UpdateBuilding from Hackage fails. Cloning to a local machine works: $ git clone --recurse-submodules https://github.com/mihaimaruseac/hindent
Cloning into 'hindent'...
remote: Enumerating objects: 8933, done.
remote: Counting objects: 100% (414/414), done.
remote: Compressing objects: 100% (208/208), done.
remote: Total 8933 (delta 245), reused 346 (delta 199), pack-reused 8519 (from 1)
Receiving objects: 100% (8933/8933), 2.17 MiB | 2.16 MiB/s, done.
Resolving deltas: 100% (5379/5379), done.
$ cd hindent/
$
$ time cabal install --overwrite-policy=always
Wrote tarball sdist to
/Users/ur20980/src/hindent/dist-newstyle/sdist/hindent-6.2.0.tar.gz
Resolving dependencies...
Build profile: -w ghc-9.10.1 -O2
In order, the following will be built (use -v for more details):
- Cabal-syntax-3.10.3.0 (lib) (requires build)
- ghc-lib-parser-9.10.1.20241103 (lib) (requires download & build)
- monad-loops-0.4.3 (lib) (requires build)
- unicode-show-0.1.1.1 (lib) (requires build)
- path-0.5.11 (lib) (requires download & build)
- vector-algorithms-0.9.0.3 (lib) (requires build)
- Cabal-3.10.3.0 (lib) (requires build)
- ghc-lib-parser-ex-9.10.0.0 (lib) (requires download & build)
- path-io-1.1.0 (lib) (requires download & build)
- mono-traversable-1.0.20.0 (lib) (requires build)
- conduit-1.3.6 (lib) (requires build)
- libyaml-0.1.4 (lib) (requires build)
- yaml-0.11.11.2 (lib) (requires build)
- hindent-6.2.0 (lib) (requires build)
- hindent-6.2.0 (exe:hindent) (requires build)
Downloading ghc-lib-parser-9.10.1.20241103
Starting monad-loops-0.4.3 (lib)
Starting unicode-show-0.1.1.1 (lib)
Starting vector-algorithms-0.9.0.3 (lib)
Starting Cabal-syntax-3.10.3.0 (lib)
Downloaded ghc-lib-parser-9.10.1.20241103
Downloading ghc-lib-parser-ex-9.10.0.0
Starting ghc-lib-parser-9.10.1.20241103 (lib)
Downloaded ghc-lib-parser-ex-9.10.0.0
Downloading path-0.5.11
Downloaded path-0.5.11
Downloading path-io-1.1.0
Starting path-0.5.11 (lib)
Downloaded path-io-1.1.0
Building monad-loops-0.4.3 (lib)
Building unicode-show-0.1.1.1 (lib)
Building Cabal-syntax-3.10.3.0 (lib)
Building path-0.5.11 (lib)
Building vector-algorithms-0.9.0.3 (lib)
Building ghc-lib-parser-9.10.1.20241103 (lib)
Installing unicode-show-0.1.1.1 (lib)
Installing monad-loops-0.4.3 (lib)
Completed unicode-show-0.1.1.1 (lib)
Completed monad-loops-0.4.3 (lib)
Installing path-0.5.11 (lib)
Completed path-0.5.11 (lib)
Starting path-io-1.1.0 (lib)
Building path-io-1.1.0 (lib)
Installing vector-algorithms-0.9.0.3 (lib)
Installing path-io-1.1.0 (lib)
Completed vector-algorithms-0.9.0.3 (lib)
Starting mono-traversable-1.0.20.0 (lib)
Completed path-io-1.1.0 (lib)
Building mono-traversable-1.0.20.0 (lib)
Installing mono-traversable-1.0.20.0 (lib)
Completed mono-traversable-1.0.20.0 (lib)
Starting conduit-1.3.6 (lib)
Building conduit-1.3.6 (lib)
Installing conduit-1.3.6 (lib)
Completed conduit-1.3.6 (lib)
Starting libyaml-0.1.4 (lib)
Building libyaml-0.1.4 (lib)
Installing libyaml-0.1.4 (lib)
Completed libyaml-0.1.4 (lib)
Starting yaml-0.11.11.2 (lib)
Building yaml-0.11.11.2 (lib)
Installing yaml-0.11.11.2 (lib)
Completed yaml-0.11.11.2 (lib)
Installing Cabal-syntax-3.10.3.0 (lib)
Completed Cabal-syntax-3.10.3.0 (lib)
Starting Cabal-3.10.3.0 (lib)
Building Cabal-3.10.3.0 (lib)
Installing Cabal-3.10.3.0 (lib)
Completed Cabal-3.10.3.0 (lib)
Installing ghc-lib-parser-9.10.1.20241103 (lib)
Completed ghc-lib-parser-9.10.1.20241103 (lib)
Starting ghc-lib-parser-ex-9.10.0.0 (lib)
Building ghc-lib-parser-ex-9.10.0.0 (lib)
Installing ghc-lib-parser-ex-9.10.0.0 (lib)
Completed ghc-lib-parser-ex-9.10.0.0 (lib)
Starting hindent-6.2.0 (lib)
Building hindent-6.2.0 (lib)
Installing hindent-6.2.0 (lib)
Completed hindent-6.2.0 (lib)
Starting hindent-6.2.0 (exe:hindent)
Building hindent-6.2.0 (exe:hindent)
Installing hindent-6.2.0 (exe:hindent)
Completed hindent-6.2.0 (exe:hindent)
Symlinking 'hindent' to '/Users/ur20980/.cabal/bin/hindent'
real 85m41.637s
user 13m11.650s
sys 1m38.483s
$ So, something appears to be wrong with the Hackage version, even though both the local repo and the Hackage version claim to be v6.2.0. |
That explains why we didn't notice this. We are building the package on CI and it succeeded. I'll try to debug this over the coming weeks, apologies for the delay (Thanksgiving and December trip). |
Sorry for the inconvenience. This problem is resolved on the current master as you see (#962), but it's not released yet. |
Eagerly waiting for the upcoming release. I confirm that master builds OK. Happy Thanksgiving! |
Oooh, I forgot about that. Let's do a release then. |
Uploaded now https://hackage.haskell.org/package/hindent-6.2.1 |
Problem
Cannot install on MacOS (14.7.1 and 15.1)
I checked the issue tracker for existing issues about this problem.
I'm using the latest version of hindent (available on Hackage).
Cabal 3.12.1.0
GHC-9.4.8 (and 9.8.2, 9.10.1)
Error:
Complete build log:
The text was updated successfully, but these errors were encountered: