You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, I'm trying to run and test the project but on "anchor test" receive to following error:
error: target is not supported, for more information see: https://docs.rs/getrandom/#unsupported-targets
--> src/lib.rs:267:9
|
267 | / compile_error!("\
268 | | target is not supported, for more information see: \
269 | | https://docs.rs/getrandom/#unsupported-targets\
270 | | ");
| |__________^
error[E0433]: failed to resolve: use of undeclared crate or module `imp`
--> src/lib.rs:291:5
|
291 | imp::getrandom_inner(dest)
| ^^^ use of undeclared crate or module `imp`
For more information about this error, try `rustc --explain E0433`.
error: could not compile `getrandom` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
Steps to reproduce:
clone repository
yarn install
anchor test
Versions
Yarn: 1.22.19
Anchor: tried on 0.21.0 and 0.29.0
Node: v16.20.2
Environment:
WSL Ubuntu-20.04
The text was updated successfully, but these errors were encountered:
t3dkich
changed the title
Error with compiling on "anchor test"
Error with compilling on "anchor test"
Feb 13, 2024
Hello! Can't reproduce your error using same Yarn version and Anchor CLI 0.29.0.
Please check that your Solana versions are also updated (I'm using 1.16.12). Here's a perhaps related issue on Solana stack exchange in case it might help.
Some users have solved this by importing a specific version of getrandom. In case you manage to solve the build for your system please let me know which version works.
Hi there, I'm trying to run and test the project but on "anchor test" receive to following error:
Steps to reproduce:
Versions
Yarn: 1.22.19
Anchor: tried on 0.21.0 and 0.29.0
Node: v16.20.2
Environment:
WSL Ubuntu-20.04
The text was updated successfully, but these errors were encountered: