Building stage2 tool rls (x86_64-unknown-linux-gnu)
Compiling futures v0.1.29
Compiling slab v0.4.2
Compiling winapi v0.3.9
Compiling mio-named-pipes v0.1.7
Compiling gimli v0.22.0
Compiling failure_derive v0.1.8
Compiling adler v0.2.3
Compiling rustc-demangle v0.1.18
Compiling object v0.21.1
Compiling percent-encoding v1.0.1
Compiling rayon-core v1.7.1
Compiling rustc_tools_util v0.2.0
Compiling json v0.11.15
Compiling ordslice v0.3.0
Compiling rayon v1.3.1
Compiling miniz_oxide v0.4.0
Compiling heck v0.3.1
Compiling idna v0.1.5
Compiling iovec v0.1.4
Compiling net2 v0.2.34
Compiling parking_lot_core v0.7.2
Compiling fst v0.3.5
Compiling tokio-sync v0.1.8
Compiling tokio-service v0.1.0
Compiling bytes v0.4.12
Compiling url v1.7.2
Compiling tokio-executor v0.1.10
Compiling crossbeam-queue v0.2.3
Compiling crossbeam-channel v0.4.4
Compiling addr2line v0.13.0
Compiling mio v0.6.22
Compiling parking_lot v0.10.2
Compiling derive_more v0.99.9
Compiling serde_repr v0.1.6
Compiling psm v0.1.11
Compiling stacker v0.1.12
Compiling tokio-current-thread v0.1.7
Compiling tokio-timer v0.2.13
Compiling tokio-io v0.1.13
Compiling backtrace v0.3.53 (/home/grommish/openwrt/build_dir/hostpkg/rust-1.49.0/library/backtrace)
Compiling env_logger v0.7.1
Compiling rls v1.41.0 (/home/grommish/openwrt/build_dir/hostpkg/rust-1.49.0/src/tools/rls)
Compiling miow v0.3.5
Compiling mio-uds v0.6.8
Compiling tokio-threadpool v0.1.18
Compiling tokio-codec v0.1.2
Compiling toml v0.5.7
Compiling rls-span v0.5.2
Compiling tokio-fs v0.1.7
Compiling jsonrpc-core v14.2.0
Compiling lsp-types v0.60.0
Compiling tokio-reactor v0.1.12
Compiling rustc-ap-rustc_data_structures v679.0.0
Compiling proc-macro-crate v0.1.5
Compiling tokio-uds v0.2.7
Compiling tokio-udp v0.1.6
Compiling tokio-tcp v0.1.4
Compiling rls-data v0.19.0
Compiling rls-vfs v0.8.0
Compiling jsonrpc-pubsub v14.2.0
error[E0308]: mismatched types
--> /home/grommish/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_data_structures-679.0.0/src/graph/iterate/mod.rs:182:37
|
182 | return Some(val);
| ^^^ expected associated type, found `()`
|
= note: expected associated type `<V as TriColorVisitor<G>>::BreakVal`
found unit type `()`
help: consider constraining the associated type `<V as TriColorVisitor<G>>::BreakVal` to `()`
|
170 | V: TriColorVisitor<G, BreakVal = ()>,
| ^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> /home/grommish/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_data_structures-679.0.0/src/graph/iterate/mod.rs:197:37
|
197 | return Some(val);
| ^^^ expected associated type, found `()`
|
= note: expected associated type `<V as TriColorVisitor<G>>::BreakVal`
found unit type `()`
help: consider constraining the associated type `<V as TriColorVisitor<G>>::BreakVal` to `()`
|
170 | V: TriColorVisitor<G, BreakVal = ()>,
| ^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> /home/grommish/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_data_structures-679.0.0/src/graph/iterate/mod.rs:260:9
|
259 | ) -> ControlFlow<Self::BreakVal> {
| --------------------------- expected `std::ops::ControlFlow<(), <Self as TriColorVisitor<G>>::BreakVal>` because of return type
260 | ControlFlow::CONTINUE
| ^^^^^^^^^^^^^^^^^^^^^ expected associated type, found `()`
|
= note: expected enum `std::ops::ControlFlow<_, <Self as TriColorVisitor<G>>::BreakVal>`
found enum `std::ops::ControlFlow<_, ()>`
= help: consider constraining the associated type `<Self as TriColorVisitor<G>>::BreakVal` to `()` or calling a method that returns `<Self as TriColorVisitor<G>>::BreakVal`
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
error[E0308]: mismatched types
--> /home/grommish/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_data_structures-679.0.0/src/graph/iterate/mod.rs:265:9
|
264 | fn node_settled(&mut self, _node: G::Node) -> ControlFlow<Self::BreakVal> {
| --------------------------- expected `std::ops::ControlFlow<(), <Self as TriColorVisitor<G>>::BreakVal>` because of return type
265 | ControlFlow::CONTINUE
| ^^^^^^^^^^^^^^^^^^^^^ expected associated type, found `()`
|
= note: expected enum `std::ops::ControlFlow<_, <Self as TriColorVisitor<G>>::BreakVal>`
found enum `std::ops::ControlFlow<_, ()>`
= help: consider constraining the associated type `<Self as TriColorVisitor<G>>::BreakVal` to `()` or calling a method that returns `<Self as TriColorVisitor<G>>::BreakVal`
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
error: aborting due to 4 previous errors
For more information about this error, try `rustc --explain E0308`.
error: could not compile `rustc-ap-rustc_data_structures`
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
command did not execute successfully: "/home/grommish/openwrt/build_dir/hostpkg/rust-1.49.0/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "8" "--release" "--locked" "--manifest-path" "/home/grommish/openwrt/build_dir/hostpkg/rust-1.49.0/src/tools/rls/Cargo.toml" "--features" "clippy" "--message-format" "json-render-diagnostics"
expected success, got: exit code: 101
Unable to build RLS, skipping dist
When building Rust from source (master@b2d115f6db5172c961dfeb50de15f35784dbc7c9), when compiling with
x.py --config ./config.toml dist cargo extended library/std llvm-tools miri rust-dev rustc-dev src src/librustc src/lldb_batchmode.py src/tool /build-manifestBuilding with the following
./configureflags:Details
It should be noted that I've never gotten rustfmt and RLS to build, even when building from built-in triple targets.
Rustfmt
RLS