Skip to content

the trait std::error::Error is not implemented for getrandom::error::Error | #64563

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
BaoshanPang opened this issue Sep 17, 2019 · 5 comments
Closed
Labels
E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@BaoshanPang
Copy link
Contributor

I am seeing this issue when building rust libstd unit test:

error[E0277]: the trait bound getrandom::error::Error: std::error::Error is not satisfied
--> /folk/prj-rust-dev/bpang/ala-diab-pb19l/fix_bugs/latest/.cargo/git/checkouts/rand-cc8f5b7ec2d3b6d9/64a4000/rand_core/src/er
ror.rs:150:28
|
150 | Error { inner: Box::new(error) }
| ^^^^^^^^^^^^^^^ the trait std::error::Error is not implemented for getrandom::error::Error
|
= note: required for the cast to the object type dyn std::error::Error + std::marker::Send + std::marker::Sync

error: aborting due to previous error

For more information about this error, try rustc --explain E0277.

Is anyone else seeing this issue?

Thanks,
Baoshan

@Mark-Simulacrum
Copy link
Member

How are you building unit tests?

@Mark-Simulacrum Mark-Simulacrum added T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example labels Sep 17, 2019
@BaoshanPang
Copy link
Contributor Author

I am using this command line:
./x.py test --stage 1 --target aarch64-wrs-vxworks src/libstd

@BaoshanPang
Copy link
Contributor Author

And I also use the crate getrandom at https://github.com/Wind-River/getrandom.git to have the supporting for vxWorks:
[patch.crates-io]
getrandom = { git = 'https://github.com/Wind-River/getrandom.git', branch = 'master' }

@BaoshanPang
Copy link
Contributor Author

Sorry, the problem is in the getrandom crate used by me.

@n-salim
Copy link
Contributor

n-salim commented Sep 18, 2019

See rust-random/getrandom#105 for resolution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

No branches or pull requests

3 participants