-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Cargo 0.21.0 Hanging while compiling without RUST_LOG=debug #4573
Comments
Rust on FreeBSD 12 has some libc-related problems, which is probably what's going on here. There are rust-builds being posted in rust-lang/rust#42681, maybe you could try building cargo with those and then try compiling your crate. We are probably out of luck with debugging Cargo as long as Rust itself is unstable on FreeBSD 12. |
rust-lang/rust#44433 is probably what's going on here. |
@lukaslueg I don't doubt these in the slightest, but the most confusing part to me was this: why would the project compile whenever I removed the Even with |
Different code paths may or may not get exposed to what is essentially undefined behavior. One can be happy to get a crash right away in such situations. My point being that there is little use to actually debug this situation in Cargo, as long as the implementation of |
@lukaslueg Ahh, that makes sense. Guess it's back to ubuntu for me for the foreseeable future. |
Closing as it sounds like this isn't Cargo-related |
On Freebsd 12.0 whenever attempting to
cargo build
orcargo run
a semi brand-newcargo new test --bin
project, the compilation will hang seemingly indefinitely (10+ minutes).I did notice, however, if
Cargo.lock
and thetarget/
directory were both deleted whileRUST_LOG=debug
then the package would compile. If, however, eithertarget/
orCargo.lock
were in the path, cargo would hang indefinitely.Whenever attempting to build or run, I would get output like this:
which is where it would hang.
If attempting to build with
RUST_LOG=debug
, it would hang around:I'm using
cargo 0.21.0 (5b4b8b2ae 2017-08-12)
If any other questions are needing to be answered to shed some light, just let me know and I'd be happy to supply further info!
Thanks!
The text was updated successfully, but these errors were encountered: