abracadaniel / cardano-pool-docker

Docker container for setting up and running a Cardano Stake Pool
164 stars 62 forks source link

Unable to build cardano-pool:1.33.0 #47

Closed SysEngDan closed 2 years ago

SysEngDan commented 2 years ago

I'm attempting to build all local images (./build.sh) with the latest Docker version. All images appear to build OK except for cardano-pool. Here's a snippet of the error from the Dockerbuild attempt:

Preprocessing executable 'demo-acceptor' for ekg-forward-0.1.0..
Building executable 'demo-acceptor' for ekg-forward-0.1.0..
[1 of 1] Compiling Main             ( demo/acceptor.hs, /build/voting-tools/dist-newstyle/build/x86_64-linux/ghc-8.10.2/ekg-forward-0.1.0/x/demo-acceptor/build/demo-acceptor/demo-acceptor-tmp/Main.o )
Linking /build/voting-tools/dist-newstyle/build/x86_64-linux/ghc-8.10.2/ekg-forward-0.1.0/x/demo-acceptor/build/demo-acceptor/demo-acceptor ...
Configuring library for byron-spec-ledger-0.1.0.0..
Preprocessing library for byron-spec-ledger-0.1.0.0..
Building library for byron-spec-ledger-0.1.0.0..
[ 1 of 16] Compiling Byron.Spec.Ledger.Core ( src/Byron/Spec/Ledger/Core.hs, /build/voting-tools/dist-newstyle/build/x86_64-linux/ghc-8.10.2/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/Core.o, /build/voting-tools/dist-newstyle/build/x86_64-linux/ghc-8.10.2/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/Core.dyn_o )
[ 2 of 16] Compiling Byron.Spec.Ledger.Core.Omniscient ( src/Byron/Spec/Ledger/Core/Omniscient.hs, /build/voting-tools/dist-newstyle/build/x86_64-linux/ghc-8.10.2/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/Core/Omniscient.o, /build/voting-tools/dist-newstyle/build/x86_64-linux/ghc-8.10.2/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/Core/Omniscient.dyn_o )
[ 3 of 16] Compiling Byron.Spec.Ledger.GlobalParams ( src/Byron/Spec/Ledger/GlobalParams.hs, /build/voting-tools/dist-newstyle/build/x86_64-linux/ghc-8.10.2/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/GlobalParams.o, /build/voting-tools/dist-newstyle/build/x86_64-linux/ghc-8.10.2/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/GlobalParams.dyn_o )
[ 4 of 16] Compiling Byron.Spec.Ledger.Core.Generators ( src/Byron/Spec/Ledger/Core/Generators.hs, /build/voting-tools/dist-newstyle/build/x86_64-linux/ghc-8.10.2/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/Core/Generators.o, /build/voting-tools/dist-newstyle/build/x86_64-linux/ghc-8.10.2/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/Core/Generators.dyn_o )
[ 5 of 16] Compiling Byron.Spec.Ledger.Util ( src/Byron/Spec/Ledger/Util.hs, /build/voting-tools/dist-newstyle/build/x86_64-linux/ghc-8.10.2/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/Util.o, /build/voting-tools/dist-newstyle/build/x86_64-linux/ghc-8.10.2/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/Util.dyn_o )
[ 6 of 16] Compiling Byron.Spec.Ledger.Update ( src/Byron/Spec/Ledger/Update.hs, /build/voting-tools/dist-newstyle/build/x86_64-linux/ghc-8.10.2/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/Update.o, /build/voting-tools/dist-newstyle/build/x86_64-linux/ghc-8.10.2/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/Update.dyn_o )

src/Byron/Spec/Ledger/Update.hs:236:10: error:
    Duplicate instance declarations:
      instance Hashable a => Hashable (Set a)
        -- Defined at src/Byron/Spec/Ledger/Update.hs:236:10
      instance Hashable v => Hashable (Set v)
        -- Defined in `hashable-1.3.4.1:Data.Hashable.Class'
    |
236 | instance Hashable a => Hashable (Set a) where
    |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cabal: Failed to build byron-spec-ledger-0.1.0.0 (which is required by
shelley-spec-ledger-test-0.1.0.0, cardano-ledger-alonzo-test-0.1.0.0 and
others).

The command '/bin/sh -c cd voting-tools/     && cabal configure --with-compiler=ghc-8.10.2     && echo "package cardano-crypto-praos" >>  cabal.project.local     && echo "  flags: -external-libsodium-vrf" >>  cabal.project.local     && cabal build all' returned a non-zero code: 1
SysEngDan commented 2 years ago

Actually, I'm unable to build the voting image first.

docker build -f Dockerfile.voting \
    --tag arradev/cardano-voting:latest .

Here's the output:

[ 6 of 16] Compiling Byron.Spec.Ledger.Update ( src/Byron/Spec/Ledger/Update.hs, /build/voting-tools/dist-newstyle/build/x86_64-linux/ghc-8.10.2/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/Update.o, /build/voting-tools/dist-newstyle/build/x86_64-linux/ghc-8.10.2/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/Update.dyn_o )

src/Byron/Spec/Ledger/Update.hs:236:10: error:
    Duplicate instance declarations:
      instance Hashable a => Hashable (Set a)
        -- Defined at src/Byron/Spec/Ledger/Update.hs:236:10
      instance Hashable v => Hashable (Set v)
        -- Defined in `hashable-1.3.4.1:Data.Hashable.Class'
    |
236 | instance Hashable a => Hashable (Set a) where
    |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cabal: Failed to build byron-spec-ledger-0.1.0.0 (which is required by
shelley-spec-ledger-test-0.1.0.0, cardano-ledger-alonzo-test-0.1.0.0 and
others).

The command '/bin/sh -c cd voting-tools/     && cabal configure --with-compiler=ghc-8.10.2     && echo "package cardano-crypto-praos" >>  cabal.project.local     && echo "  flags: -external-libsodium-vrf" >>  cabal.project.local     && cabal build all' returned a non-zero code: 1
abracadaniel commented 2 years ago

Hi, I removed the voting-tools as it does not compile.