Coin Cashew 1.35.5 Build Errors

Trying to build into 1.35.5, upon cabal build cardano-node cardano-cli, i get this return error. cant figure it out. tried re-installing GHC and Cabal. everything up to this point installs fine.

Failed to build algebraic-graphs-0.6.1. The failure occurred during the

configure step.
Build log (
/home/ada/.cabal/logs/ghc-8.10.7/algebraic-graphs-0.6.1-0c983061d157b28c465d1658fc930a2f80be0e871acdf3ed411a4ff8c9c15fd7.log
):
Configuring library for algebraic-graphs-0.6.1..
cabal-3.6.2.0: ghc-pkg dump failed: dieVerbatim: user error (cabal-3.6.2.0:
'/home/ada/.ghcup/ghc/8.10.7/bin/ghc-pkg-8.10.7' exited with an
error:
ghc-pkg: /home/ada/.cabal/store/ghc-8.10.7/package.db/package.cache:
GHC.PackageDb.readPackageDb: inappropriate type (Not a valid Unicode code
point!)
)



Failed to build ansi-terminal-0.11.4. The failure occurred during the
configure step.
Build log (
/home/ada/.cabal/logs/ghc-8.10.7/ansi-terminal-0.11.4-cff685a9e96f653800a0c1c83d8d38c406aa09607c584b5c1ee69a16bddb8550.log
):
Configuring library for ansi-terminal-0.11.4..
cabal-3.6.2.0: ghc-pkg dump failed: dieVerbatim: user error (cabal-3.6.2.0:
'/home/ada/.ghcup/ghc/8.10.7/bin/ghc-pkg-8.10.7' exited with an
error:
ghc-pkg: /home/ada/.cabal/store/ghc-8.10.7/package.db/package.cache:
GHC.PackageDb.readPackageDb: inappropriate type (Not a valid Unicode code
point!)
)


Failed to build lib:attoparsec-internal from attoparsec-0.14.4. The failure
occurred during the configure step.
Build log (
/home/ada/.cabal/logs/ghc-8.10.7/attoparsec-0.14.4-l-attoparsec-internal-493be6238a55027008e3e6ae85bec846d85540101279384db990d1c303527c53.log
):
Configuring library 'attoparsec-internal' for attoparsec-0.14.4..
cabal-3.6.2.0: ghc-pkg dump failed: dieVerbatim: user error (cabal-3.6.2.0:
'/home/ada/.ghcup/ghc/8.10.7/bin/ghc-pkg-8.10.7' exited with an
error:
ghc-pkg: /home/ada/.cabal/store/ghc-8.10.7/package.db/package.cache:
GHC.PackageDb.readPackageDb: inappropriate type (Not a valid Unicode code
point!)
)


Failed to build base-compat-0.12.2. The failure occurred during the configure
step.
Build log (
/home/ada/.cabal/logs/ghc-8.10.7/base-compat-0.12.2-565befe2c86ee48b65e8349cfccdd6be86bcc10a72c913333a1bda47b16cc502.log
):
Configuring library for base-compat-0.12.2..
cabal-3.6.2.0: ghc-pkg dump failed: dieVerbatim: user error (cabal-3.6.2.0:
'/home/ada/.ghcup/ghc/8.10.7/bin/ghc-pkg-8.10.7' exited with an
error:
ghc-pkg: /home/ada/.cabal/store/ghc-8.10.7/package.db/package.cache:
GHC.PackageDb.readPackageDb: inappropriate type (Not a valid Unicode code
point!)
)


Failed to build base-orphans-0.8.7. The failure occurred during the configure
step.
Build log (
/home/ada/.cabal/logs/ghc-8.10.7/base-orphans-0.8.7-2e63b02a231c60dc1867d037a0c16f56822014b1e427c4c1d49489c1790efb89.log
):
Configuring library for base-orphans-0.8.7..
cabal-3.6.2.0: ghc-pkg dump failed: dieVerbatim: user error (cabal-3.6.2.0:
'/home/ada/.ghcup/ghc/8.10.7/bin/ghc-pkg-8.10.7' exited with an
error:
ghc-pkg: /home/ada/.cabal/store/ghc-8.10.7/package.db/package.cache:
GHC.PackageDb.readPackageDb: inappropriate type (Not a valid Unicode code
point!)
)


Failed to build basement-0.0.15. The failure occurred during the configure
step.
Build log (
/home/ada/.cabal/logs/ghc-8.10.7/basement-0.0.15-5225fb8e4ca304f367ae85a489be8a075dfae8d3a1d66157271528e2189ca7d6.log
):
Configuring library for basement-0.0.15..
cabal-3.6.2.0: ghc-pkg dump failed: dieVerbatim: user error (cabal-3.6.2.0:
'/home/ada/.ghcup/ghc/8.10.7/bin/ghc-pkg-8.10.7' exited with an
error:
ghc-pkg: /home/ada/.cabal/store/ghc-8.10.7/package.db/package.cache:
GHC.PackageDb.readPackageDb: inappropriate type (Not a valid Unicode code
point!)
)


Failed to build boring-0.2. The failure occurred during the configure step.
Build log (
/home/ada/.cabal/logs/ghc-8.10.7/boring-0.2-b6e49b4470ed3ffb2c1ca9c45e7fda48e28148b024ed30ea2a2537fd798c4948.log
):
Configuring library for boring-0.2..
cabal-3.6.2.0: ghc-pkg dump failed: dieVerbatim: user error (cabal-3.6.2.0:
'/home/ada/.ghcup/ghc/8.10.7/bin/ghc-pkg-8.10.7' exited with an
error:
ghc-pkg: /home/ada/.cabal/store/ghc-8.10.7/package.db/package.cache:
GHC.PackageDb.readPackageDb: inappropriate type (Not a valid Unicode code
point!)
)


Failed to build canonical-json-0.6.0.1. The failure occurred during the
configure step.
Build log (
/home/ada/.cabal/logs/ghc-8.10.7/canonical-json-0.6.0.1-597bfd69c062d846207b2c39571aaccc7e5ba95a2d06cc20dbb5df2bed1b3fc8.log
):
Configuring library for canonical-json-0.6.0.1..
cabal-3.6.2.0: ghc-pkg dump failed: dieVerbatim: user error (cabal-3.6.2.0:
'/home/ada/.ghcup/ghc/8.10.7/bin/ghc-pkg-8.10.7' exited with an
error:
ghc-pkg: /home/ada/.cabal/store/ghc-8.10.7/package.db/package.cache:
GHC.PackageDb.readPackageDb: inappropriate type (Not a valid Unicode code
point!)
)


Failed to build cereal-0.5.8.3. The failure occurred during the configure
step.
Build log (
/home/ada/.cabal/logs/ghc-8.10.7/cereal-0.5.8.3-f61638202fb356606d1b5fa7185d0153d50da447a2d5ecec65de5eceb0cf376f.log
):
Configuring library for cereal-0.5.8.3..
cabal-3.6.2.0: ghc-pkg dump failed: dieVerbatim: user error (cabal-3.6.2.0:
'/home/ada/.ghcup/ghc/8.10.7/bin/ghc-pkg-8.10.7' exited with an
error:
ghc-pkg: /home/ada/.cabal/store/ghc-8.10.7/package.db/package.cache:
GHC.PackageDb.readPackageDb: inappropriate type (Not a valid Unicode code
point!)
)

cabal: Failed to build HsOpenSSL-0.11.7.4 (which is required by
test:cardano-node-test from cardano-node-1.35.5, exe:cardano-node from
cardano-node-1.35.5 and others). The failure occurred during the configure
step. The exception was:
dieVerbatim: user error (cabal: ghc-pkg dump failed: dieVerbatim: user error
(cabal:
'/home/ada/.ghcup/ghc/8.10.7/bin/ghc-pkg-8.10.7' exited with an error:
ghc-pkg: /home/ada/.cabal/store/ghc-8.10.7/package.db/package.cache:
GHC.PackageDb.readPackageDb: inappropriate type (Not a valid Unicode code
point!)
)
)
Failed to build algebraic-graphs-0.6.1 (which is required by
test:cardano-node-test from cardano-node-1.35.5, exe:cardano-node from
cardano-node-1.35.5 and others). See the build log above for details.
Failed to build ansi-terminal-0.11.4 (which is required by
test:cardano-cli-test from cardano-cli-1.35.5, test:cardano-node-test from
cardano-node-1.35.5 and others). See the build log above for details.
Failed to build lib:attoparsec-internal from attoparsec-0.14.4 (which is
required by test:cardano-node-test from cardano-node-1.35.5, exe:cardano-node
from cardano-node-1.35.5 and others). See the build log above for details.
Failed to build base-compat-0.12.2 (which is required by test:cardano-cli-test
from cardano-cli-1.35.5, test:cardano-node-test from cardano-node-1.35.5 and
others). See the build log above for details.
Failed to build base-orphans-0.8.7 (which is required by
test:cardano-node-test from cardano-node-1.35.5, exe:cardano-node from
cardano-node-1.35.5 and others). See the build log above for details.
Failed to build basement-0.0.15 (which is required by test:cardano-node-test
from cardano-node-1.35.5, exe:cardano-node from cardano-node-1.35.5 and
others). See the build log above for details.
Failed to build boring-0.2 (which is required by test:cardano-node-test from
cardano-node-1.35.5, exe:cardano-node from cardano-node-1.35.5 and others).
See the build log above for details.
Failed to build canonical-json-0.6.0.1 (which is required by
test:cardano-cli-test from cardano-cli-1.35.5, test:cardano-node-test from
cardano-node-1.35.5 and others). See the build log above for details.
Failed to build cereal-0.5.8.3 (which is required by test:cardano-node-test
from cardano-node-1.35.5, exe:cardano-node from cardano-node-1.35.5 and
others). See the build log above for details.

Are you following a guide for the build?

Yes. Line by line :slight_smile:

What operating system do you use for compiling?

Ubuntu 22.04.

Which guide?

Coin cashew

Maybe try clear out the git folder and start with a fresh clone of the repo, fresh config, then build. Make sure you do the cabal update step.

I believe I tried that but I’ll try again.

This might also be helpful How to build 1.35.0 from source on Ubuntu 22.04