Upgrading to 1.35.4 error

i got this msg when trying to upgrade so i ended up just rolling back to 1.35.3 how do i fix this so i can upgrade to 1.35.4

Got NamedPackage ouroboros-consensus-cardano-tools
CallStack (from HasCallStack):
error, called at src/Distribution/Client/CmdInstall.hs:474:33 in main:Distribution.Client.CmdInstall

Got the same error on 2 servers.

Able to share what OS you’re building this on?

Sounds like a cabal error. Did you put the correct flags in the cabal.project.local file?

package cardano-crypto-praos
  flags: -external-libsodium-vrf

Also running the correct version of cabal Here’s a github post about it but doesn’t have a solid solution. Do you have multiple cabal files in one directory?

OS ubuntu

version of cabal
cabal -V
cabal-install version
compiled using version of the Cabal library

this is what worked for me

echo "package cardano-crypto-praos" >> cabal.project.local
echo "  flags: -external-libsodium-vrf" >> cabal.project.local
echo "with-compiler: ghc-8.10.7" >> cabal.project.local

but now i have new error msg

cabal: Cannot build the package cardano-ping, it is not in this project
(either directly or indirectly). If you want to add it to the project then
edit the cabal.project file.

When I had strange errors, removing or renaming the ~/.cabal folder (from the home of the user used to build cardano-node) and running cabal update, then building again, helped.

1 Like

Are you running a script that is doing the compiling for you? If so then check the cabal command that it is doing. cardano-ping seems to have been removed from version 1.35.4 whereas it was available to compile in version 1.35.3.