Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

PowNeon dependencies failing the build #1199

Open
msarcev opened this issue Jul 12, 2023 · 1 comment · May be fixed by #1200
Open

PowNeon dependencies failing the build #1199

msarcev opened this issue Jul 12, 2023 · 1 comment · May be fixed by #1200
Labels
T - Bug Type - Bug : Functionality does not work as expected

Comments

@msarcev
Copy link
Contributor

msarcev commented Jul 12, 2023

Bug description

npm i is failing on fresh library repo cause of issue in installing pow-neon dependencies.

Version

Which version of the library are you running?
stardust

  • Version:

Hardware specification

What hardware are you using?

  • Operating system: M1 Mac

Steps To reproduce the bug

  1. Execute npm i in the root of the repo (stardust branch)

Expected behaviour

Builds successfully

Actual behaviour

Exits with error

Errors

Paste any errors that you see.

npm ERR!   gyp ERR! cwd ...stardust/packages/pow-neon/native/target/release/build/neon-sys-56508349f5eff748/out/native
npm ERR!   gyp ERR! node -v v16.16.0
npm ERR!   gyp ERR! node-gyp -v v7.1.2
npm ERR!   gyp ERR! not ok
npm ERR!   ', .../.cargo/registry/src/index.crates.io-6f17d22bba15001f/neon-sys-0.8.3/build.rs:176:13
npm ERR!   note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
npm ERR! neon ERR! cargo build failed
npm ERR!
npm ERR! Error: cargo build failed
npm ERR!     at Target.<anonymous> (...node_modules/neon-cli/lib/target.js:99:27)
npm ERR!     at Generator.next (<anonymous>)
npm ERR!     at fulfilled (...node_modules/neon-cli/lib/target.js:24:58)
npm ERR!     at processTicksAndRejections (node:internal/process/task_queues:96:5)
@msarcev msarcev added the T - Bug Type - Bug : Functionality does not work as expected label Jul 12, 2023
@msarcev
Copy link
Contributor Author

msarcev commented Jul 12, 2023

The fix is to up the neon related versions in Cargo.toml

diff --git a/packages/pow-neon/native/Cargo.toml b/packages/pow-neon/native/Cargo.toml
index 286573e7..66f8d2f3 100644
--- a/packages/pow-neon/native/Cargo.toml
+++ b/packages/pow-neon/native/Cargo.toml
@@ -12,8 +12,8 @@ name = "pow_neon"
 crate-type = ["cdylib"]

 [build-dependencies]
-neon-build = "0.8.1"
+neon-build = "0.10.1"

 [dependencies]
-neon = "0.8.1"
+neon = "0.10.1"
 bee-pow = "0.1"

A new version should be released with the fix.

@takaomizuno0032 takaomizuno0032 linked a pull request Nov 17, 2023 that will close this issue
2 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T - Bug Type - Bug : Functionality does not work as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant