Win32-network preventing cabal build of caradano-node

Any idea what could cause this win32-network problem on a debian 10 KVM ?

Warning: Requested index-state2020-07-15T00:00:00Z is newer than
'hackage.haskell.org'! Falling back to older state (2020-07-14T22:50:55Z).
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: Win32-network-0.1.0.0 (user goal)
[__1] next goal: base (dependency of Win32-network)
[__1] rejecting: base-4.14.0.0/installed-4.14.0.0 (conflict: Win32-network =>
base>=4.5 && <4.13)
[__1] skipping: base-4.14.0.0, base-4.13.0.0 (has the same characteristics
that caused the previous version to fail: excluded by constraint '>=4.5 &&
<4.13' from 'Win32-network')
[__1] rejecting: base-4.12.0.0, base-4.11.1.0, base-4.11.0.0, base-4.10.1.0,
base-4.10.0.0, base-4.9.1.0, base-4.9.0.0, base-4.8.2.0, base-4.8.1.0,
base-4.8.0.0, base-4.7.0.2, base-4.7.0.1, base-4.7.0.0, base-4.6.0.1,
base-4.6.0.0, base-4.5.1.0, base-4.5.0.0, base-4.4.1.0, base-4.4.0.0,
base-4.3.1.0, base-4.3.0.0, base-4.2.0.2, base-4.2.0.1, base-4.2.0.0,
base-4.1.0.0, base-4.0.0.0, base-3.0.3.2, base-3.0.3.1 (constraint from
non-upgradeable package requires installed instance)
[__1] fail (backjumping, conflict set: Win32-network, base)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: base, Win32-network
1 Like

Solution: ghcup

It’s probably my ghc version. I used the latest (8.10.1) when cardano-node needs 8.6.5
Unfortunately this version is not readily present for debian 10. I may have to compile the ghc or try the nix approach.

… (latter edit)… the best solution is to use ghcup to handle concurent ghc version.
from iohk’s docs

curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh

Then use ghcup to install ghc 8.6.5 on debian 10. In the end, It will simply install the deb9 version of ghc 8.6.5, and it works.

3 Likes

Maliky I was just trying to install my cardano node in AWS but after trying the comand cabal build all I get the error message that follows
Warning: Requested index-state2020-07-15T00:00:00Z is newer than
hackage.haskell.org’! Falling back to older state (2020-07-14T22:50:55Z).
Resolving dependencies…
cabal: Could not resolve dependencies:
[__0] next goal: cardano-crypto-class (user goal)
[__0] rejecting: cardano-crypto-class-2.0.0 (conflict: pkg-config package
libsodium-any, not found in the pkg-config database)
[__0] fail (backjumping, conflict set: cardano-crypto-class)
After searching the rest of the dependency tree exhaustively, these were the
goals I’ve had most trouble fulfilling: cardano-crypto-class
I already tried puting this command curl --proto ‘=https’ --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh and installed everything from there but the message persists.

With wich instant specifications?

Sorry but I think this is different from the problem I had. I would restart from scratch.

was getting these errors yesterday. but I was also mainly relying on my previous experiences and pieces of turorials here and there which are by now outdated. Once I checked the official docs I saw that recent cardano-node (1.30.1) requires ghc 8.10.4, then I made sure to install the required Debian/Ubuntu packages before that and problem solved :partying_face:

Also, latest cardano-wallet v2021-09-09 complained about ghc version above. It requires 8.10.5, so I did this:

ghcup install ghc 8.10.5
ghcup set ghc 8.10.5