mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 09:46:00 +03:00
[GH-ISSUE #593] Build fails on FreeBSD #392
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#392
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @esell on GitHub (Aug 29, 2019).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/593
First, thanks for creating/maintaining this project, it is pretty awesome.
With that being said, I am having trouble building it on FreeBSD. I am trying to build just the binary using the directions from the wiki, but it keeps crashing out. I believe, based on the error, that the problem is with a 3rd party dependency but I thought I'd post it here first to make sure.
Running
cargo build --features sqlitewith a current git checkout ends with:Any thoughts? The host is a FreeBSD jail running
FreeBSD 12.0-RELEASE-p3 GENERIC amd64@esell commented on GitHub (Aug 29, 2019):
I am quickly getting out of my element here as I'm not much of a rust person, but I did try to pull down this crate (which I believe is the correct one) https://github.com/rust-random/rand, and all of the tests passed...
@mprasil commented on GitHub (Aug 30, 2019):
It might be worth reporting the issue under the rand repo, maybe it will make more sense to them.
@dani-garcia commented on GitHub (Aug 30, 2019):
We had a user report this in the matrix channel and for him updating the version of rust to the latest nightly fixed it, You might also need to do a cargo clean before to make sure there aren’t any old files around.
@esell commented on GitHub (Aug 30, 2019):
I just pulled down the latest nightly with rustup + cargo clean and still am getting the failures. I'll bubble this up to the rand folks and see what happens :). Thanks for taking a look.
@esell commented on GitHub (Aug 30, 2019):
Just adding some notes here in case anyone else runs into this. It seems like it is the version of the rand crate that is causing issues. Running the tests with rand_pcg at version 0.1.2 fails, but if you run the tests on the latest version, which currently is 0.2.0, everything passes.
It appears one of the bitwarden_rs dependencies is pulling in rand_pcg v0.1.2 :(.
@ownaginatious commented on GitHub (Sep 11, 2019):
@esell ran into the exact same issue as you. I'm totally unfamiliar with
rust, but I was able to finally get things to build by upgrading to the newest rust compiler first (as @dani-garcia mentioned) by doing the following:Hopefully this helps you and the rest of the tiny handful of people trying to get
bitwarden_rsworking in a FreeBSD jail out there :)