spell-music / csound-expression

Haskell Framework for Electronic Music
320 stars 31 forks source link

Failed to build csound-expression-dynamic-0.3.7 using ghc 8.4.4 on macos #64

Closed shakfu closed 2 years ago

shakfu commented 2 years ago

With a ghcup install 8.4.4 on macOS catalina 10.15.7 and cabal version 3.4.0.0 I get the following build failure after trying cabal update && cabal install csound-expression:

Failed to build csound-expression-dynamic-0.3.7.
Build log (
/Users/sa/.cabal/logs/ghc-8.4.4/csnd-xprssn-dynmc-0.3.7-27fe7c14.log ):
Warning: csound-expression-dynamic.cabal:3:23: Packages with 'cabal-version:
1.12' or later should specify a specific version of the Cabal spec of the form
'cabal-version: x.y'. Use 'cabal-version: 1.22'.
Configuring library for csound-expression-dynamic-0.3.7..
clang: warning: argument unused during compilation: '-no-pie' [-Wunused-command-line-argument]
Preprocessing library for csound-expression-dynamic-0.3.7..
Building library for csound-expression-dynamic-0.3.7..
[ 1 of 15] Compiling Csound.Dynamic.Tfm.DeduceTypes ( src/Csound/Dynamic/Tfm/DeduceTypes.hs, dist/build/Csound/Dynamic/Tfm/DeduceTypes.o )
[ 2 of 15] Compiling Csound.Dynamic.Tfm.UnfoldMultiOuts ( src/Csound/Dynamic/Tfm/UnfoldMultiOuts.hs, dist/build/Csound/Dynamic/Tfm/UnfoldMultiOuts.o )
[ 3 of 15] Compiling Csound.Dynamic.Types.Exp ( src/Csound/Dynamic/Types/Exp.hs, dist/build/Csound/Dynamic/Types/Exp.o )

src/Csound/Dynamic/Types/Exp.hs:396:10: error:
    Duplicate instance declarations:
      instance Hashable1 IM.IntMap
        -- Defined at src/Csound/Dynamic/Types/Exp.hs:396:10
      instance Hashable1 IM.IntMap
        -- Defined in ‘hashable-1.3.4.1:Data.Hashable.Class’
    |
396 | instance Hashable1 IM.IntMap
    |          ^^^^^^^^^^^^^^^^^^^
cabal: Failed to build csound-expression-dynamic-0.3.7 (which is required by
csound-expression-5.4.1). See the build log above for details.
anton-k commented 2 years ago

Thanks for report, seems like they have implemented and made the proper instancefor IntMap, which was missing in prev versions.

I'll fix that

чт, 7 окт. 2021 г., 14:39 Shakeeb Alireza @.***>:

With a ghcup install 8.4.4 on macOS catalina 10.15.7 and cabal version 3.4.0.0 I get the following build failure when after trying cabal install && cabal install csound-expression:

Failed to build csound-expression-dynamic-0.3.7.

Build log (

/Users/sa/.cabal/logs/ghc-8.4.4/csnd-xprssn-dynmc-0.3.7-27fe7c14.log ):

Warning: csound-expression-dynamic.cabal:3:23: Packages with 'cabal-version:

1.12' or later should specify a specific version of the Cabal spec of the form

'cabal-version: x.y'. Use 'cabal-version: 1.22'.

Configuring library for csound-expression-dynamic-0.3.7..

clang: warning: argument unused during compilation: '-no-pie' [-Wunused-command-line-argument]

Preprocessing library for csound-expression-dynamic-0.3.7..

Building library for csound-expression-dynamic-0.3.7..

[ 1 of 15] Compiling Csound.Dynamic.Tfm.DeduceTypes ( src/Csound/Dynamic/Tfm/DeduceTypes.hs, dist/build/Csound/Dynamic/Tfm/DeduceTypes.o )

[ 2 of 15] Compiling Csound.Dynamic.Tfm.UnfoldMultiOuts ( src/Csound/Dynamic/Tfm/UnfoldMultiOuts.hs, dist/build/Csound/Dynamic/Tfm/UnfoldMultiOuts.o )

[ 3 of 15] Compiling Csound.Dynamic.Types.Exp ( src/Csound/Dynamic/Types/Exp.hs, dist/build/Csound/Dynamic/Types/Exp.o )

src/Csound/Dynamic/Types/Exp.hs:396:10: error:

Duplicate instance declarations:

  instance Hashable1 IM.IntMap

    -- Defined at src/Csound/Dynamic/Types/Exp.hs:396:10

  instance Hashable1 IM.IntMap

    -- Defined in ‘hashable-1.3.4.1:Data.Hashable.Class’

|

396 | instance Hashable1 IM.IntMap

|          ^^^^^^^^^^^^^^^^^^^

cabal: Failed to build csound-expression-dynamic-0.3.7 (which is required by

csound-expression-5.4.1). See the build log above for details.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/spell-music/csound-expression/issues/64, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALLPMTC7QA3YNCOCFUCZUTUFWBHLANCNFSM5FRCLPUQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

shakfu commented 2 years ago

Great thanks!

anton-k commented 2 years ago

It was fixed.