-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
rustc could not initialize thread_rng (on pre-getrandom Linux kernel) #63848
Comments
This looks like an issue in the getrandom crate (cc @dhardy @newpavlov). What distro and hardware are you building on? Can you post the output of |
Hi.
Fast reply -- thanks ! ... cheers, drl
OS, ker|rel, machine: Linux, 3.16.0-7-amd64, x86_64
Distribution : Debian 8.11 (jessie)
Linux leap 3.16.0-7-amd64 #1 SMP Debian 3.16.59-1 (2018-10-03) x86_64
GNU/Linux
On 2019-08-24 08:43, Jonas Schievink wrote:
This looks like an issue in the getrandom crate (cc @dhardy [1] @newpavlov [2]).
What distro and hardware are you building on? Can you post the output of uname -a?
--
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub [3], or mute the thread [4].
Links:
------
[1] https://github.com/dhardy
[2] https://github.com/newpavlov
[3]
#63848?email_source=notifications&email_token=AAOLDKJFPMNEBGGFM2BC3FDQGE3JHA5CNFSM4IPGF37KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5CAIWY#issuecomment-524551259
[4]
https://github.com/notifications/unsubscribe-auth/AAOLDKLKS3HA35GE4KXC623QGE3JHANCNFSM4IPGF37A
|
That kernel version is missing the |
The error report uses Rand v0.6.1 which does not even use the I don't understand why this issue was reported here, instead of against nu or rand? |
@dhardy the compiler is panicking due to its use of |
Not sure how much it would take to update rustc to rand 0.7.0, but updating to 0.6.5 would be easy. @dhardy do you think that could help? |
Actually, doing Build error
|
@RalfJung that's a known issue; you must update |
The issue with upgrading to rand 0.6.5 is described in rust-random/rand#852 |
Hi.
Command used: On this system:
Thanks ... cheers, drl |
( Previous attempt at reply failed.)
On a system:
|
( Needed to re-open apparently ... cheers, drl ) |
|
Hi.
So I checked for the version after install nightly and failed compilation:
Where does it put the updated (nightly) compiler? ... cheers, drl |
|
Hi.
Trying the compile again ... cheers, drl |
Hi.
Thanks ... cheers, drl |
Thanks, it's valuable data. Guess we gotta get rid of |
Hi.
This is a pretty big rust code compared to others I have seen (perhaps 6 or so), so good work. I have no idea how setting the default as I first did differs from the way RalfJung suggested, but his suggestion appeared to be the correct one. Thanks to all for getting me to this point ... cheers, drl |
Can you add a backtrace?
|
@newpavlov: |
Overrides are explained in https://github.com/rust-lang/rustup.rs#directory-overrides I identified |
@newpavlov it's true the tools might not work because of the old |
For Miri I already opened rust-lang/miri#947. |
@RalfJung the thing is currently all the tools and
rand upgrade but if you can make it though it'd be great.
I'll start with removing unnecessary dependencies from |
I don't think so. That check is for the same version of the same crate being compiled multiple times due to different feature flags. We've had multiple versions of |
Upgrade parking_lot and tempfile rustc dependencies This should be last piece to unbreak `rustc` in rust-lang#63848
Upgrade parking_lot and tempfile rustc dependencies This should be last piece to unbreak `rustc` in #63848
Upgrade parking_lot and tempfile rustc dependencies This should be last piece to unbreak `rustc` in #63848
Status update: @lienke could you try next nightly (it will be released around 2019-09-17 01:00 UTC)? edit: fixed date |
To be fully precise, it'll be released around 1h later than that (the release process starts shortly after midnight UTC but it has to shuffle quite a lot of data around so it takes a bit). |
Compiled with: Recompiled with:
Thanks to all for dealing with this ... cheers, drl |
Installed missing libraries, allowing build to complete, but with warnings. Assuming
|
Tried to build nushell from source and it required "nightly" rust. Didn't know how to install that, so I used "cargo install nu"
I expected to see this happen:
Build complete -- the cargo install has worked with other tools.
Instead, this happened:
Meta
rustc --version --verbose
:This issue has been assigned to @mati865 via this comment.
The text was updated successfully, but these errors were encountered: