Euterpea / Euterpea2

Euterpea version 2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install failure on Windows with GHC 9.4 / cabal 3.8 or later

donya opened this issue · comments

Trace...

Resolving dependencies...
Starting Euterpea-2.0.8
Building Euterpea-2.0.8
Failed to install Euterpea-2.0.8
Build log ( C:\Users\Admin\AppData\Local\cabal\logs\ghc-9.4.8\Euterpea-2.0.8-AzYTJppmCnXKF95rXuMISi.log ):
Preprocessing library for Euterpea-2.0.8..
Building library for Euterpea-2.0.8..
lld: error: unknown argument: -r
cabal: Leaving directory '.'
Error: cabal-3.10.2.1.exe: Some packages failed to install:
Euterpea-2.0.8-AzYTJppmCnXKF95rXuMISi failed during the building phase. The
exception was:
ExitFailure 1

This appears to be a Windows-specific issue; same versions tested worked on Mac.

Possibly relevant issue elsewhere with what looks like the same error somehow related to cabal/ghc versions on Windows although I haven't had time to dig into this yet to be sure that it really is the same thing:
haskell/cabal#8780

Best solution currently is to use a different GHC version. 8.10.5 is good, but I also had a successful build with 9.0.1.

Hmm...same error as that other issue I linked but maybe not the same cause. My 9.4.8 install was using cabal 3.10.2.1.

Looks like this is the fix:
haskell/cabal#9443
which was merged into cabal (Nov 17) after the last formal release (3.10.2.1 on Nov 9) so I guess an earlier cabal is the only viable solution right now, and earlier cabal means earlier ghc.