IntersectMBO / plutus-apps

The Plutus application platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to build plutus-ledger-0.1.0.0.

Fiftyw3bs opened this issue · comments

Running cabal v2-build my-app-test generates the following error message:

Failed to build plutus-ledger-0.1.0.0.
Build log (
/home/aoaddeola/.cabal/logs/ghc-8.10.4.20210212/plutus-ledger-0.1.0.0-66e82a31b21f8a2d6a99a7ba5c6b5074aac66be708a02ffaf5f46a395b1e745e.log
):
Warning: plutus-ledger.cabal:151:21: colon specifier is experimental feature
(issue #5660)
Warning: plutus-ledger.cabal:92:21: colon specifier is experimental feature
(issue #5660)
Configuring library for plutus-ledger-0.1.0.0..
Preprocessing library for plutus-ledger-0.1.0.0..
Building library for plutus-ledger-0.1.0.0..
[ 1 of 25] Compiling Data.Time.Units.Extra ( src/Data/Time/Units/Extra.hs, dist/build/Data/Time/Units/Extra.o, dist/build/Data/Time/Units/Extra.dyn_o )
[ 2 of 25] Compiling Ledger.Crypto    ( src/Ledger/Crypto.hs, dist/build/Ledger/Crypto.o, dist/build/Ledger/Crypto.dyn_o )
[ 3 of 25] Compiling Ledger.Orphans   ( src/Ledger/Orphans.hs, dist/build/Ledger/Orphans.o, dist/build/Ledger/Orphans.dyn_o )
[ 4 of 25] Compiling Ledger.Scripts   ( src/Ledger/Scripts.hs, dist/build/Ledger/Scripts.o, dist/build/Ledger/Scripts.dyn_o )
[ 5 of 25] Compiling Ledger.Contexts  ( src/Ledger/Contexts.hs, dist/build/Ledger/Contexts.o, dist/build/Ledger/Contexts.dyn_o )
[ 6 of 25] Compiling Ledger.Address   ( src/Ledger/Address.hs, dist/build/Ledger/Address.o, dist/build/Ledger/Address.dyn_o )
[ 7 of 25] Compiling Ledger.TimeSlot  ( src/Ledger/TimeSlot.hs, dist/build/Ledger/TimeSlot.o, dist/build/Ledger/TimeSlot.dyn_o )
[ 8 of 25] Compiling Ledger.Tokens    ( src/Ledger/Tokens.hs, dist/build/Ledger/Tokens.o, dist/build/Ledger/Tokens.dyn_o )
[ 9 of 25] Compiling Ledger.Tx.CardanoAPITemp ( src/Ledger/Tx/CardanoAPITemp.hs, dist/build/Ledger/Tx/CardanoAPITemp.o, dist/build/Ledger/Tx/CardanoAPITemp.dyn_o )

src/Ledger/Tx/CardanoAPITemp.hs:137:42: error:
    Not in scope: type constructor or class ‘Ledger.ShelleyBased’
    Neither ‘Cardano.Ledger.Core’ nor ‘Cardano.Ledger.Shelley.Constraints’ exports ‘ShelleyBased’.
    |
137 |                   IsShelleyBasedEra era, Ledger.ShelleyBased ledgerera)
    |                                          ^^^^^^^^^^^^^^^^^^^

<no location info>: warning: [-Wunused-packages]
    The following packages were specified via -package or -package-id flags,
    but were not needed for compilation:
      - servant-0.18.3
      - plutus-tx-plugin-0.1.0.0
      - iohk-monitoring-0.2.0.0
      - cardano-wallet-core-2022.1.18
      - cardano-api-1.33.0
      - cardano-addresses-3.7.0
cabal: Failed to build plutus-ledger-0.1.0.0 (which is required by
test:my-app-test from dagribiz-0.1.0.0). See the build log above for
details.

Plutus-app: c330fc60d0cd174743c95de71e5c404b5008f186

Please make sure that https://github.com/input-output-hk/cardano-ledger in your cabal.project has the same tag as in plutus-apps/cabal.project of c330fc6:

https://github.com/input-output-hk/plutus-apps/blob/c330fc60d0cd174743c95de71e5c404b5008f186/cabal.project#L196-L200

Feel free to reopen if it doesn't help.