build error #105

Open
opened 2024-11-26 01:41:34 +00:00 by autotunafish · 6 comments

Following the given installation procedure, the command 'cabal install' fails with

Error: cabal: Could not resolve dependencies:
[__0] next goal: zenith (user goal)
[__0] rejecting: zenith-0.7.0.0 (conflict: pkg-config package
rustzcash_wrapper-any, not found in the pkg-config database)
[__0] fail (backjumping, conflict set: zenith)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: zenith

Following the given installation procedure, the command 'cabal install' fails with Error: cabal: Could not resolve dependencies: [__0] next goal: zenith (user goal) [__0] rejecting: zenith-0.7.0.0 (conflict: pkg-config package rustzcash_wrapper-any, not found in the pkg-config database) [__0] fail (backjumping, conflict set: zenith) After searching the rest of the dependency tree exhaustively, these were the goals I've had most trouble fulfilling: zenith
Author

I just found the updated docs that specify the zenith docker so I'll try that.

https://hedgedoc.vergara.tech/s/DzaD45e7H#Zenith-Installation

Following the "Build from source" procedure specified there, the './configure' command does a bunch of stuff but then returns "Error: cabal: Failed to build zcash-haskell-0.7.5.0. The failure occurred
during the configure step."

The following command 'cabal build' fails with the same "rustzcash_wrapper-any, not found" error in the above post.

I will attempt the docker soon.

I just found the updated docs that specify the zenith docker so I'll try that. https://hedgedoc.vergara.tech/s/DzaD45e7H#Zenith-Installation Following the "Build from source" procedure specified there, the './configure' command does a bunch of stuff but then returns "Error: cabal: Failed to build zcash-haskell-0.7.5.0. The failure occurred during the configure step." The following command 'cabal build' fails with the same "rustzcash_wrapper-any, not found" error in the above post. I will attempt the docker soon.
Author

A little more troubleshooting with docker, I get this error about zenusr
"zenith: /home/zenusr/Zenith/zenith.cfg: openFile: does not exist (No such file or directory)"

A little more troubleshooting with docker, I get this error about zenusr "zenith: /home/zenusr/Zenith/zenith.cfg: openFile: does not exist (No such file or directory)"
Owner

I just found the updated docs that specify the zenith docker so I'll try that.

https://hedgedoc.vergara.tech/s/DzaD45e7H#Zenith-Installation

Following the "Build from source" procedure specified there, the './configure' command does a bunch of stuff but then returns "Error: cabal: Failed to build zcash-haskell-0.7.5.0. The failure occurred
during the configure step."

The following command 'cabal build' fails with the same "rustzcash_wrapper-any, not found" error in the above post.

I will attempt the docker soon.

@autotunafish It seems that the compilation of the Rust bindings is failing. Can you switch to the zcash-haskell folder and run cabal build inside it?

> I just found the updated docs that specify the zenith docker so I'll try that. > > https://hedgedoc.vergara.tech/s/DzaD45e7H#Zenith-Installation > > Following the "Build from source" procedure specified there, the './configure' command does a bunch of stuff but then returns "Error: cabal: Failed to build zcash-haskell-0.7.5.0. The failure occurred > during the configure step." > > The following command 'cabal build' fails with the same "rustzcash_wrapper-any, not found" error in the above post. > > I will attempt the docker soon. @autotunafish It seems that the compilation of the Rust bindings is failing. Can you switch to the `zcash-haskell` folder and run `cabal build` inside it?
pitmutt self-assigned this 2024-11-27 15:39:27 +00:00
pitmutt added this to the Zenith Full Node Wallet project 2024-11-27 15:42:24 +00:00
pitmutt added this to the MVP 4 milestone 2024-11-27 15:42:26 +00:00
pitmutt added the
bug
label 2024-11-27 15:42:31 +00:00
Owner

A little more troubleshooting with docker, I get this error about zenusr
"zenith: /home/zenusr/Zenith/zenith.cfg: openFile: does not exist (No such file or directory)"

@autotunafish I just tested the latest docker image on an empty server and was successful. Did you perhaps see this error during the setup?

~/zenith-docker_0.7.0.0$ ./setup_docker 

Zenith Full Node Wallet and RPC-Server Docker Image Setup

... testing if docker service is active..
... Docker service active


... creating Zenith folder
permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Head "http://%2Fvar%2Frun%2Fdocker.sock/_ping": dial unix /var/run/docker.sock: connect: permission denied
... loading  zenith-docker:0.7.0.0 image
permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.47/images/load?quiet=0": dial unix /var/run/docker.sock: connect: permission denied
... docker image zenith-docker:0.7.0.0 loaded.
... creating default configuration
... copying zenith assets to Zenith folder.
... /home/rav/.local/bin exists
... copying runzenith to /home/rav/.local/bin
... PATH=/home/rav/.local/bin:/home/rav/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/rav/.cabal/bin:/home/rav/.ghcup/bin

To start zenith execute 'runzenith' from the command line.

Done

I ran into this because my user was not part of the docker group. Once I fixed that, the installation succeeded.

Which version of Linux are you using?

> A little more troubleshooting with docker, I get this error about zenusr > "zenith: /home/zenusr/Zenith/zenith.cfg: openFile: does not exist (No such file or directory)" @autotunafish I just tested the latest docker image on an empty server and was successful. Did you perhaps see this error during the setup? ``` ~/zenith-docker_0.7.0.0$ ./setup_docker Zenith Full Node Wallet and RPC-Server Docker Image Setup ... testing if docker service is active.. ... Docker service active ... creating Zenith folder permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Head "http://%2Fvar%2Frun%2Fdocker.sock/_ping": dial unix /var/run/docker.sock: connect: permission denied ... loading zenith-docker:0.7.0.0 image permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.47/images/load?quiet=0": dial unix /var/run/docker.sock: connect: permission denied ... docker image zenith-docker:0.7.0.0 loaded. ... creating default configuration ... copying zenith assets to Zenith folder. ... /home/rav/.local/bin exists ... copying runzenith to /home/rav/.local/bin ... PATH=/home/rav/.local/bin:/home/rav/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/rav/.cabal/bin:/home/rav/.ghcup/bin To start zenith execute 'runzenith' from the command line. Done ``` I ran into this because my user was not part of the `docker` group. Once I fixed that, the installation succeeded. Which version of Linux are you using?
Author

Similar error
"HEAD is now at 335e804 Add flake
HEAD is now at 39d8da7 Merge pull request 'Update Hexstring for binary' (#1) from dev into master
Build profile: -w ghc-9.6.5 -O1
In order, the following will be built (use -v for more details):

  • zcash-haskell-0.7.5.0 (lib:zcash-haskell) (first run)
    Error: cabal: Failed to build zcash-haskell-0.7.5.0. The failure occurred
    during the configure step.
    "
    I will try docker again
Similar error "HEAD is now at 335e804 Add flake HEAD is now at 39d8da7 Merge pull request 'Update Hexstring for binary' (#1) from dev into master Build profile: -w ghc-9.6.5 -O1 In order, the following will be built (use -v for more details): - zcash-haskell-0.7.5.0 (lib:zcash-haskell) (first run) Error: cabal: Failed to build zcash-haskell-0.7.5.0. The failure occurred during the configure step. " I will try docker again
Owner

@autotunafish I think it's failing during the Rust compilation. If you go into the zcash-haskell/librustzcash-wrapper folder and run cargo cbuild, you should see a more verbose output of what's going on.

@autotunafish I think it's failing during the Rust compilation. If you go into the `zcash-haskell/librustzcash-wrapper` folder and run `cargo cbuild`, you should see a more verbose output of what's going on.
Sign in to join this conversation.
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Vergara_Tech/zenith#105
No description provided.