Rustc 1.20 FreeBSD 11.1 deadlock


#1

I’m facing deadlocks with rustc in FreeBSD 11.1,

uname -a
FreeBSD blackbird 11.1-RELEASE FreeBSD 11.1-RELEASE #0 r321309: Fri Jul 21 02:08:28 UTC 2017 root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64

rustc --version
rustc 1.20.0 (f3d6973f4 2017-08-27)

When I’m compiling, not all times, I get stucked and the compiler never returns,

Here is the command that cargo runs,

rustc --crate-name editor src/main.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=174bf5ad37d63699 -C extra-filename=-174bf5ad37d63699 --out-dir /usr/home/drocha/devel/editor/target/debug/deps -L dependency=/usr/home/drocha/devel/editor/target/debug/deps

Once again, is not all times that this problem occur, I tried find a solution online and in the forum,
but found nothing.


#2

This is tracked in https://github.com/rust-lang/rust/issues/44433. https://github.com/servo/servo/issues/11625#issuecomment-333988398 contains a rustc toolchain that avoids the problem for now.