Skip to content
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

bootstraping does not find libLLVM-4.0.so #49052

Closed
dilyanpalauzov opened this issue Mar 15, 2018 · 4 comments
Closed

bootstraping does not find libLLVM-4.0.so #49052

dilyanpalauzov opened this issue Mar 15, 2018 · 4 comments
Labels
C-bug Category: This is a bug. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@dilyanpalauzov
Copy link

I am trying to build rustc-1.24.1-src, first with:
./configure --enable-ninja --enable-docs --enable-compiler-docs --enable-llvm-link-shared --enable-optimize --enable-full-bootstrap --enable-extended

and then with python /src/rustc-1.24.1-src/x.py build -v:

running: /src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage0/bin/cargo build --manifest-path /src/rustc-1.24.1-src/src/bootstrap/Cargo.toml --verbose
       Fresh quote v0.3.15
       Fresh libc v0.2.34
       Fresh dtoa v0.4.2
       Fresh cc v1.0.3
       Fresh cfg-if v0.1.2
       Fresh lazy_static v0.2.11
       Fresh serde v1.0.25
       Fresh num-traits v0.1.41
       Fresh unicode-xid v0.0.4
       Fresh itoa v0.3.4
       Fresh getopts v0.2.15
       Fresh num_cpus v1.7.0
       Fresh time v0.1.39
       Fresh cmake v0.1.29
       Fresh filetime v0.1.14
       Fresh toml v0.4.5
       Fresh synom v0.11.3
       Fresh serde_json v1.0.8
       Fresh build_helper v0.1.0 (file:///src/rustc-1.24.1-src/src/build_helper)
       Fresh syn v0.11.11
       Fresh serde_derive_internals v0.18.1
       Fresh serde_derive v1.0.25
       Fresh bootstrap v0.0.0 (file:///src/rustc-1.24.1-src/src/bootstrap)
    Finished dev [unoptimized] target(s) in 0.0 secs
running: /src/rustc-1.24.1-src/build/bootstrap/debug/bootstrap build -v
finding compilers
CC_x86_64-unknown-linux-gnu = "cc"
AR_x86_64-unknown-linux-gnu = "ar"
CXX_x86_64-unknown-linux-gnu = "c++"
running sanity check
learning about cargo
> Assemble { target_compiler: Compiler { stage: 2, host: "x86_64-unknown-linux-gnu" } }
  > Assemble { target_compiler: Compiler { stage: 1, host: "x86_64-unknown-linux-gnu" } }
    > Assemble { target_compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" } }
    < Assemble { target_compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" } }
    > Rustc { compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" }, target: "x86_64-unknown-linux-gnu" }
      > Test { compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" }, target: "x86_64-unknown-linux-gnu" }
        > Std { target: "x86_64-unknown-linux-gnu", compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" } }
          > StartupObjects { compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" }, target: "x86_64-unknown-linux-gnu" }
          < StartupObjects { compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" }, target: "x86_64-unknown-linux-gnu" }
Building stage0 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
          > Sysroot { compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" } }
          < Sysroot { compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" } }
running: "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "--target" "x86_64-unknown-linux-gnu" "-j" "4" "--release" "--features" "panic-unwind jemalloc backtrace" "--manifest-path" "/src/rustc-1.24.1-src/src/libstd/Cargo.toml" "--message-format" "json"
    Finished release [optimized] target(s) in 0.0 secs
not updating "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/release/.libstd.stamp"; contents equal and 1521131078.509539045s <= 1521131078.576539337s
          c Assemble { target_compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" } }
          > StdLink { compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" }, target_compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" }, target: "x86_64-unknown-linux-gnu" }
Copying stage0 std from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
            > Libdir { compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" }, target: "x86_64-unknown-linux-gnu" }
              c Sysroot { compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" } }
            < Libdir { compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" }, target: "x86_64-unknown-linux-gnu" }
            > CleanTools { compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" }, target: "x86_64-unknown-linux-gnu", mode: Libstd }
            < CleanTools { compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" }, target: "x86_64-unknown-linux-gnu", mode: Libstd }
          < StdLink { compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" }, target_compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" }, target: "x86_64-unknown-linux-gnu" }
        < Std { target: "x86_64-unknown-linux-gnu", compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" } }
Building stage0 test artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
        c Sysroot { compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" } }
running: "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "--target" "x86_64-unknown-linux-gnu" "-j" "4" "--release" "--manifest-path" "/src/rustc-1.24.1-src/src/libtest/Cargo.toml" "--message-format" "json"
    Finished release [optimized] target(s) in 0.0 secs
not updating "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage0-test/x86_64-unknown-linux-gnu/release/.libtest.stamp"; contents equal and 1521131098.552624956s <= 1521131098.598625149s
        c Assemble { target_compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" } }
        > TestLink { compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" }, target_compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" }, target: "x86_64-unknown-linux-gnu" }
Copying stage0 test from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
          c Libdir { compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" }, target: "x86_64-unknown-linux-gnu" }
          > CleanTools { compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" }, target: "x86_64-unknown-linux-gnu", mode: Libtest }
          < CleanTools { compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" }, target: "x86_64-unknown-linux-gnu", mode: Libtest }
        < TestLink { compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" }, target_compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" }, target: "x86_64-unknown-linux-gnu" }
      < Test { compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" }, target: "x86_64-unknown-linux-gnu" }
      > Llvm { target: "x86_64-unknown-linux-gnu" }
      < Llvm { target: "x86_64-unknown-linux-gnu" }
      c Assemble { target_compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" } }
      c Std { target: "x86_64-unknown-linux-gnu", compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" } }
Building stage0 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
      c Sysroot { compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" } }
running: "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "--target" "x86_64-unknown-linux-gnu" "-j" "4" "--release" "--features" " jemalloc llvm" "--manifest-path" "/src/rustc-1.24.1-src/src/rustc/Cargo.toml" "--message-format" "json"
    Finished release [optimized] target(s) in 0.2 secs
not updating "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/.librustc.stamp"; contents equal and 1521136580.448277454s <= 1521136583.688292879s
      c Assemble { target_compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" } }
      > RustcLink { compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" }, target_compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" }, target: "x86_64-unknown-linux-gnu" }
Copying stage0 rustc from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
        c Libdir { compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" }, target: "x86_64-unknown-linux-gnu" }
        > CleanTools { compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" }, target: "x86_64-unknown-linux-gnu", mode: Librustc }
        < CleanTools { compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" }, target: "x86_64-unknown-linux-gnu", mode: Librustc }
      < RustcLink { compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" }, target_compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" }, target: "x86_64-unknown-linux-gnu" }
    < Rustc { compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" }, target: "x86_64-unknown-linux-gnu" }
Assembling stage1 compiler (x86_64-unknown-linux-gnu)
    > Sysroot { compiler: Compiler { stage: 1, host: "x86_64-unknown-linux-gnu" } }
    < Sysroot { compiler: Compiler { stage: 1, host: "x86_64-unknown-linux-gnu" } }
    c Libdir { compiler: Compiler { stage: 0, host: "x86_64-unknown-linux-gnu" }, target: "x86_64-unknown-linux-gnu" }
    c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-unknown-linux-gnu" } }
  < Assemble { target_compiler: Compiler { stage: 1, host: "x86_64-unknown-linux-gnu" } }
  > Rustc { compiler: Compiler { stage: 1, host: "x86_64-unknown-linux-gnu" }, target: "x86_64-unknown-linux-gnu" }
    > Test { compiler: Compiler { stage: 1, host: "x86_64-unknown-linux-gnu" }, target: "x86_64-unknown-linux-gnu" }
      > Std { target: "x86_64-unknown-linux-gnu", compiler: Compiler { stage: 1, host: "x86_64-unknown-linux-gnu" } }
        > StartupObjects { compiler: Compiler { stage: 1, host: "x86_64-unknown-linux-gnu" }, target: "x86_64-unknown-linux-gnu" }
        < StartupObjects { compiler: Compiler { stage: 1, host: "x86_64-unknown-linux-gnu" }, target: "x86_64-unknown-linux-gnu" }
Building stage1 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
        c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-unknown-linux-gnu" } }
        c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-unknown-linux-gnu" } }
        c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-unknown-linux-gnu" } }
        c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-unknown-linux-gnu" } }
running: "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "--target" "x86_64-unknown-linux-gnu" "-j" "4" "--release" "--features" "panic-unwind jemalloc backtrace" "--manifest-path" "/src/rustc-1.24.1-src/src/libstd/Cargo.toml" "--message-format" "json"
error: process didn't exit successfully: `/src/rustc-1.24.1-src/build/bootstrap/debug/rustc -vV` (exit code: 127)
--- stderr
/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage1/bin/rustc: error while loading shared libraries: libLLVM-4.0.so: cannot open shared object file: No such file or directory

thread 'main' panicked at 'command did not execute successfully: "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "--target" "x86_64-unknown-linux-gnu" "-j" "4" "--release" "--features" "panic-unwind jemalloc backtrace" "--manifest-path" "/src/rustc-1.24.1-src/src/libstd/Cargo.toml" "--message-format" "json"
expected success, got: exit code: 101', src/bootstrap/compile.rs:886:8
note: Run with `RUST_BACKTRACE=1` for a backtrace.
Traceback (most recent call last):
  File "/src/rustc-1.24.1-src/x.py", line 20, in <module>
    bootstrap.main()
  File "/src/rustc-1.24.1-src/src/bootstrap/bootstrap.py", line 758, in main
    bootstrap()
  File "/src/rustc-1.24.1-src/src/bootstrap/bootstrap.py", line 749, in bootstrap
    run(args, env=env, verbose=build.verbose)
  File "/src/rustc-1.24.1-src/src/bootstrap/bootstrap.py", line 148, in run
    raise RuntimeError(err)
RuntimeError: failed to run: /src/rustc-1.24.1-src/build/bootstrap/debug/bootstrap build -v

libLLVM-4.0.so is available, as find shows:
./build/x86_64-unknown-linux-gnu/llvm/lib/libLLVM-4.0.so ./build/x86_64-unknown-linux-gnu/llvm/lib/libLLVM-4.0.1.so ./build/x86_64-unknown-linux-gnu/llvm/build/lib/libLLVM-4.0.so

On my system I have clang 5.

@Centril Centril added A-build T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) C-bug Category: This is a bug. labels Mar 16, 2018
@dilyanpalauzov
Copy link
Author

readelf -d /src/rustc-1.24.1-src/build/bootstrap/debug/rustc doesn't show any RPATH which shall be considered when loading libLLVM-4.0.

Calling LD_LIBRARY_PATH=/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/llvm/lib python /src/rustc-1.24.1-src/x.py build helps.

@dilyanpalauzov
Copy link
Author

Next problem is, that libLLVM-4.0 is not found during linking:

    Finished dev [unoptimized] target(s) in 0.0 secs
Building stage0 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.0 secs
Copying stage0 std from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage0 test artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.0 secs
Copying stage0 test from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage0 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.2 secs
Copying stage0 rustc from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Assembling stage1 compiler (x86_64-unknown-linux-gnu)
Building stage1 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.2 secs
Copying stage1 std from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage1 test artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.0 secs
Copying stage1 test from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage1 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.4 secs
Copying stage1 rustc from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Assembling stage2 compiler (x86_64-unknown-linux-gnu)
Building stage2 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.0 secs
Copying stage2 std from stage2 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage2 test artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.0 secs
Copying stage2 test from stage2 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage2 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.3 secs
Copying stage2 rustc from stage2 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage2 tool cargo (x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.0 secs
Building stage2 tool rls (x86_64-unknown-linux-gnu)
   Compiling rls v0.124.0 (file:///src/rustc-1.24.1-src/src/tools/rls)
error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/rls-6fa7621e3afa102e.rls0-e7b7c7a71b72d98d0483c7aec53eed2.rs.rcgu.o" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/rls-6fa7621e3afa102e.rls1-e7b7c7a71b72d98d0483c7aec53eed2.rs.rcgu.o" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/rls-6fa7621e3afa102e.rls10-e7b7c7a71b72d98d0483c7aec53eed2.rs.rcgu.o" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/rls-6fa7621e3afa102e.rls11-e7b7c7a71b72d98d0483c7aec53eed2.rs.rcgu.o" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/rls-6fa7621e3afa102e.rls12-e7b7c7a71b72d98d0483c7aec53eed2.rs.rcgu.o" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/rls-6fa7621e3afa102e.rls13-e7b7c7a71b72d98d0483c7aec53eed2.rs.rcgu.o" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/rls-6fa7621e3afa102e.rls14-e7b7c7a71b72d98d0483c7aec53eed2.rs.rcgu.o" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/rls-6fa7621e3afa102e.rls15-e7b7c7a71b72d98d0483c7aec53eed2.rs.rcgu.o" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/rls-6fa7621e3afa102e.rls2-e7b7c7a71b72d98d0483c7aec53eed2.rs.rcgu.o" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/rls-6fa7621e3afa102e.rls3-e7b7c7a71b72d98d0483c7aec53eed2.rs.rcgu.o" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/rls-6fa7621e3afa102e.rls4-e7b7c7a71b72d98d0483c7aec53eed2.rs.rcgu.o" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/rls-6fa7621e3afa102e.rls5-e7b7c7a71b72d98d0483c7aec53eed2.rs.rcgu.o" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/rls-6fa7621e3afa102e.rls6-e7b7c7a71b72d98d0483c7aec53eed2.rs.rcgu.o" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/rls-6fa7621e3afa102e.rls7-e7b7c7a71b72d98d0483c7aec53eed2.rs.rcgu.o" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/rls-6fa7621e3afa102e.rls8-e7b7c7a71b72d98d0483c7aec53eed2.rs.rcgu.o" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/rls-6fa7621e3afa102e.rls9-e7b7c7a71b72d98d0483c7aec53eed2.rs.rcgu.o" "-o" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/rls-6fa7621e3afa102e" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/rls-6fa7621e3afa102e.crate.allocator.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps" "-L" "/usr/local/lib" "-L" "/usr/local/lib" "-L" "/usr/local/lib64" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/build/backtrace-sys-8b95203cb4afec6c/out/.libs" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/build/miniz-sys-9a94e9614a4627d7/out" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/build/libgit2-sys-dd878d17cc10560c/out/lib" "-L" "/usr/local/lib" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/liblanguageserver_types-50cfa718577ae2f4.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/liburl_serde-544dffc96ea28d1a.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/librayon-a5ca6ebc62adae2b.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/librls_rustc-77054359ab73dcfe.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/librustfmt_nightly-42ac94f1ca343f34.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libunicode_segmentation-3588c2ebbf20a5fe.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/librls_analysis-69410ee0a4caf5bb.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/librls_data-11a4ccbbbd5c1e81.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libjsonrpc_core-4b4e190ba8153ee6.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libcargo-a92bb37bc9975857.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libcrypto_hash-447d6ef67ff84830.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libopenssl-e88c3c2bba71bc57.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtermcolor-14ad06986ffacb13.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtempdir-0bc3edfbf3e1b866.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtar-5e482c26e14145fd.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libserde_ignored-96753ed1974ecafc.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsemver-c82c445954bcd993.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libjobserver-75da7a33c5dfe771.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libignore-c06b7bdb886b1fc8.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libmemchr-c8190ccf20fb8d55.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libglobset-6f8cb601bb5a3b1d.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libcrossbeam-7efaba4aab3d35fe.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libhome-6a363488468abcbc.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libglob-bd87eea405623c73.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libfs2-106da97115aded1c.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libflate2-ddc1938adff99ab3.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libcrossbeam-68579a916e8dfc56.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libcrates_io-2d8fc040075ab693.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libcurl-df996938ca8349f5.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsocket2-b29f2e5f02cbe8fe.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libfailure-853cebcfdeefbd46.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libshell_escape-dc2b4e8335d43e5b.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libserde_json-35728aacd79fc4b2.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libdtoa-266bec90afc46c42.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libenum_primitive-a33c64ca50144da7.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libnum_traits-aeda3f7000de1315.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/librayon_core-d90410f0d414de72.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libcoco-3cfa90024d292539.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libeither-6797e53fa697fca8.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libdiff-502bc0d4c3b845ce.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libgit2-6e98dd91f5d896f4.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libopenssl_probe-c17a48c2463232ce.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/liblibgit2_sys-f18945b2838649ab.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/liblibssh2_sys-1e23fd4b0cfcf55c.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/liburl-0d8697496efe4ebc.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libpercent_encoding-158e1bc306054d88.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libwalkdir-e2270cc2d5af70fc.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsame_file-a3f4156b8d273d4c.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtoml-0e99d9d0831158a8.rlib" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bdynamic" "-l" "rustc_driver-a8da0812f1c45983" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_save_analysis-62943b23e22eac89" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_resolve-5eb509023fcc1475" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_plugin-19da91d3b366bd98" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_passes-3f8dcb718a3ebc5a" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_borrowck-7f9b4b1a140fa643" "-Wl,-Bstatic" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libatty-d804b011837376b8.rlib" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bdynamic" "-l" "rustc_metadata-8c478ab9c411479f" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "syntax_ext-ab558b3a54e0cdb8" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "proc_macro-099090b45cc33e00" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_trans-1faf3ed315f83b42" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_incremental-e4c00b507ef96f29" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_allocator-5f1c74abca48cb47" "-Wl,-Bstatic" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libhex-8212eb75e060fa44.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsemver_parser-0159a9ac937f71c9.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libscoped_tls-a3ace0c12d08c56a.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libenv_logger-e8ccbeb5d7649971.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/librls_vfs-d51fa8eeda16a177.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libracer-dbf15f8e75560292.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtoml-56c50abf269e9c33.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/librls_span-f67b5a0d54106ff6.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libminiz_sys-f6c7268277e77498.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libfnv-9d6874e32a7f4b09.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libbacktrace-76431e629ee19ff1.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libbacktrace_sys-47f83b20074c0ebb.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/librustc_demangle-1f1299f4e8c8d75c.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/librand-34dce5bf98e492c8.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libitoa-33754ddaca7fbf0c.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsyntex_syntax-a5f976c2b9eac3ea.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsyntex_errors-fd304b81b5f0aee6.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsyntex_pos-f50ee1521b6cc67f.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libbitflags-f9968cf3efad54c4.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libterm-4d7ea6e1b03c7ba6.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/librustc_serialize-88e257f9ea550a7c.rlib" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bdynamic" "-l" "rustc_lint-21cd4a5fbf0dbb58" "-Wl,-Bstatic" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libidna-26e15631183b8823.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libunicode_normalization-a33b1923e2d40d96.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libunicode_bidi-7d4fd4be3e31fc56.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libmatches-51d4bb95cf5b17c1.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libscopeguard-e1c1ffe02f0c68ce.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libfutures-8f754c5947ebf8f0.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libbitflags-6f285b03c49fa194.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libnum_cpus-cbbae96fd97c0270.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/liblog-b3a1c6003ef08308.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/liblog-b1e8ffb6531b4aa9.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libforeign_types-a3f03f74b2e4d463.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libforeign_types_shared-9957c8570a6c771d.rlib" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bdynamic" "-l" "rustc_mir-86e01446f0a0ec88" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_trans_utils-76ea7df6070c3f13" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_const_eval-df8c1a497f7d8cea" "-Wl,-Bstatic" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libcurl_sys-8c34911dc30450d2.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libopenssl_sys-23b4c1178e02f04c.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/liblibz_sys-35152d6cdf623936.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libunicode_xid-05248eb67898ae9a.rlib" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bdynamic" "-l" "rustc_privacy-5dcb330d4aa5c87b" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_typeck-786cd7ade147b8ba" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_platform_intrinsics-c789f3ad23e717ef" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc-0ef74f8830c07acc" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "test-2fbb83aa4955bd56" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_const_math-4bfac1b82afd3f6f" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_back-ace57dff437e8db0" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "syntax-c0c0ab3615bb20d5" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_errors-1fce1d15a6a69193" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "syntax_pos-fa5b3888d06111d1" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_data_structures-92bdd8837f6a18ef" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "term-e1f430363064a150" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "serialize-cf203a2baba01226" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "graphviz-e0f5d694bff46eb6" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "arena-c8c6c2f781c9b79f" "-Wl,-Bstatic" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libdocopt-c912ee343c2b44a8.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libserde-ce9090c5e7be0a45.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libstrsim-86fed21ed35bae0f.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libregex-d173975548288f07.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libutf8_ranges-f7edd30982667de7.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libregex_syntax-c1ab3fd38831cc1b.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libthread_local-2059922525399ca3.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/liblazy_static-f012e70b1aa41376.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libunreachable-9f645da158058ace.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libvoid-5994ff27c7e46adb.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libaho_corasick-1cf35a73198bcd6b.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libmemchr-b30613efdea393a3.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/liblazy_static-875976de7dd840bf.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libradix_trie-ab3d31d6eab6c2c7.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libendian_type-be1e5ad232bf7dd2.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libnibble_vec-6cd646535e1cdbb6.rlib" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bdynamic" "-l" "rustc_llvm-7e7e90e981d6b2fa" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_cratesio_shim-548007839df00ace" "-Wl,-Bstatic" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libfiletime-87ceef736785ef58.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/liblibc-4f05204f9e0964bd.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libcfg_if-0751135813088e45.rlib" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bdynamic" "-l" "fmt_macros-e6edaa7d4ac76979" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "std-7081eca8b6968852" "-Wl,-Bstatic" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-18b9917f2688d520.rlib" "-Wl,-Bdynamic" "-l" "ssh2" "-l" "curl" "-l" "ssl" "-l" "crypto" "-l" "z" "-l" "util" "-l" "util" "-l" "LLVM-4.0" "-l" "stdc++" "-l" "util" "-l" "util" "-l" "dl" "-l" "rt" "-l" "pthread" "-l" "pthread" "-l" "gcc_s" "-l" "c" "-l" "m" "-l" "rt" "-l" "pthread" "-l" "util" "-l" "util" "-Wl,-rpath,$ORIGIN/../lib"
  = note: /usr/local/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lLLVM-4.0
          collect2: error: ld returned 1 exit status
          

error: aborting due to previous error

error: Could not compile `rls`.

To learn more, run the command again with --verbose.


command did not execute successfully: "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "--target" "x86_64-unknown-linux-gnu" "-j" "4" "--release" "--manifest-path" "/src/rustc-1.24.1-src/src/tools/rls/Cargo.toml"
expected success, got: exit code: 101


Building rustdoc for stage2 (x86_64-unknown-linux-gnu)
   Compiling rustdoc-tool v0.0.0 (file:///src/rustc-1.24.1-src/src/tools/rustdoc)
error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/rustdoc_tool_binary-2d5a7914be5c0a86.rustdoc_tool_binary0-cc344ac0945950b0d6ab0b4c493f5cc6.rs.rcgu.o" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/rustdoc_tool_binary-2d5a7914be5c0a86.rustdoc_tool_binary1-cc344ac0945950b0d6ab0b4c493f5cc6.rs.rcgu.o" "-o" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/rustdoc_tool_binary-2d5a7914be5c0a86" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/rustdoc_tool_binary-2d5a7914be5c0a86.crate.allocator.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/build/rustdoc-f0cfe59e7eddc04d/out" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/librustdoc-b5ff638bb49ffd2b.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtempdir-0bc3edfbf3e1b866.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libhtml_diff-524b31c361e23d4e.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libpulldown_cmark-a03bde0b7a0706ca.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libbitflags-6f285b03c49fa194.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libkuchiki-2e4f27fc576e6b87.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libselectors-faa920a48d5ceba1.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsmallvec-3c3e84c9b9a6761b.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libfnv-9d6874e32a7f4b09.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libbitflags-f9968cf3efad54c4.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libhtml5ever-e11183db0aa1dd18.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/liblog-b3a1c6003ef08308.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/liblog-b1e8ffb6531b4aa9.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libcfg_if-0751135813088e45.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libcssparser-b4e1c2170fdf8422.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libprocedural_masquerade-6d9fc8ad9f7f3380.rlib" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bdynamic" "-l" "rustc_driver-a8da0812f1c45983" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_trans-1faf3ed315f83b42" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_llvm-7e7e90e981d6b2fa" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_save_analysis-62943b23e22eac89" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_resolve-5eb509023fcc1475" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_incremental-e4c00b507ef96f29" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_privacy-5dcb330d4aa5c87b" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_typeck-786cd7ade147b8ba" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_platform_intrinsics-c789f3ad23e717ef" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_plugin-19da91d3b366bd98" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_metadata-8c478ab9c411479f" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_lint-21cd4a5fbf0dbb58" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_passes-3f8dcb718a3ebc5a" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_borrowck-7f9b4b1a140fa643" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_mir-86e01446f0a0ec88" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_trans_utils-76ea7df6070c3f13" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_const_eval-df8c1a497f7d8cea" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_allocator-5f1c74abca48cb47" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc-0ef74f8830c07acc" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "test-2fbb83aa4955bd56" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_const_math-4bfac1b82afd3f6f" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_back-ace57dff437e8db0" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "graphviz-e0f5d694bff46eb6" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "arena-c8c6c2f781c9b79f" "-Wl,-Bstatic" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libmarkup5ever-58f43e73579b3bb5.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtendril-88faf567f84600ab.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libfutf-844e5dd7442f8075.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libmac-33c7bebba2eaf7cc.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libphf-a535f3724121294a.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libstring_cache-639bdf042d573b63.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libstring_cache_shared-fc04b9163727cd97.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libserde-ce9090c5e7be0a45.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libphf_shared-d7663161bf86298f.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsiphasher-eb57f2ccd78256f9.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libdebug_unreachable-5d2c07b4673fc685.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libunreachable-b61a9eabb92fa41c.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libvoid-5994ff27c7e46adb.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/liblazy_static-875976de7dd840bf.rlib" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bdynamic" "-l" "syntax_ext-ab558b3a54e0cdb8" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "proc_macro-099090b45cc33e00" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "syntax-c0c0ab3615bb20d5" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_errors-1fce1d15a6a69193" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "syntax_pos-fa5b3888d06111d1" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_data_structures-92bdd8837f6a18ef" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "term-e1f430363064a150" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "rustc_cratesio_shim-548007839df00ace" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "fmt_macros-e6edaa7d4ac76979" "-Wl,-Bstatic" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libprecomputed_hash-a96604013d642afe.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libutf8-73b549b86ef55ffa.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libmatches-51d4bb95cf5b17c1.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/librand-34dce5bf98e492c8.rlib" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/liblibc-4f05204f9e0964bd.rlib" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bdynamic" "-l" "serialize-cf203a2baba01226" "-L" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "std-7081eca8b6968852" "-Wl,-Bstatic" "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-18b9917f2688d520.rlib" "-Wl,-Bdynamic" "-l" "LLVM-4.0" "-l" "stdc++" "-l" "util" "-l" "util" "-l" "util" "-l" "util" "-l" "dl" "-l" "rt" "-l" "pthread" "-l" "pthread" "-l" "gcc_s" "-l" "c" "-l" "m" "-l" "rt" "-l" "pthread" "-l" "util" "-l" "util" "-Wl,-rpath,$ORIGIN/../lib"
  = note: /usr/local/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lLLVM-4.0
          collect2: error: ld returned 1 exit status
          

error: aborting due to previous error

error: Could not compile `rustdoc-tool`.

To learn more, run the command again with --verbose.


command did not execute successfully: "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "--target" "x86_64-unknown-linux-gnu" "-j" "4" "--release" "--manifest-path" "/src/rustc-1.24.1-src/src/tools/rustdoc/Cargo.toml"
expected success, got: exit code: 101


failed to run: /src/rustc-1.24.1-src/build/bootstrap/debug/bootstrap build
Build completed unsuccessfully in 0:02:51

@dilyanpalauzov
Copy link
Author

Another case. For me it is unclear, whey it prints at the end "aborting due to 2 previous errors" and "Build completed successfully in 0:00:38":

    Finished dev [unoptimized] target(s) in 0.0 secs
Building stage0 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.1 secs
Copying stage0 std from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage0 test artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.0 secs
Copying stage0 test from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage0 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.2 secs
Copying stage0 rustc from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Assembling stage1 compiler (x86_64-unknown-linux-gnu)
Building stage1 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.1 secs
Copying stage1 std from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage1 test artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.0 secs
Copying stage1 test from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage1 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.1 secs
Copying stage1 rustc from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Assembling stage2 compiler (x86_64-unknown-linux-gnu)
Building stage2 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.1 secs
Copying stage2 std from stage2 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage2 test artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.0 secs
Copying stage2 test from stage2 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage2 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.2 secs
Copying stage2 rustc from stage2 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage2 tool cargo (x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.1 secs
Building stage2 tool rls (x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.1 secs
Building rustdoc for stage2 (x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.0 secs
Building stage2 tool clippy-driver (x86_64-unknown-linux-gnu)
   Compiling clippy_lints v0.0.174 (file:///src/rustc-1.24.1-src/src/tools/clippy/clippy_lints)
error[E0407]: method `visit_lifetime_def` is not a member of trait `Visitor`
   --> src/tools/clippy/clippy_lints/src/lifetimes.rs:411:5
    |
411 | /     fn visit_lifetime_def(&mut self, _: &'tcx LifetimeDef) {
412 | |         // don't actually visit `<'a>` or `<'a: 'b>`
413 | |         // we've already visited the `'a` declarations and
414 | |         // don't want to spuriously remove them
415 | |         // `'b` in `'a: 'b` is useless unless used elsewhere in
416 | |         // a non-lifetime bound
417 | |     }
    | |_____^ not a member of trait `Visitor`

error[E0433]: failed to resolve. Use of undeclared type or module `ViewPath_`
  --> src/tools/clippy/clippy_lints/src/unsafe_removed_from_name.rs:40:17
   |
40 |                 ViewPath_::ViewPathSimple(ref name, ref path) => {
   |                 ^^^^^^^^^ Use of undeclared type or module `ViewPath_`

error[E0433]: failed to resolve. Use of undeclared type or module `ViewPath_`
  --> src/tools/clippy/clippy_lints/src/unsafe_removed_from_name.rs:51:17
   |
51 |                 ViewPath_::ViewPathList(_, ref path_list_items) => for path_list_item in path_list_items.iter() {
   |                 ^^^^^^^^^ Use of undeclared type or module `ViewPath_`

error[E0433]: failed to resolve. Use of undeclared type or module `ViewPath_`
  --> src/tools/clippy/clippy_lints/src/unsafe_removed_from_name.rs:57:17
   |
57 |                 ViewPath_::ViewPathGlob(_) => {},
   |                 ^^^^^^^^^ Use of undeclared type or module `ViewPath_`

error[E0531]: cannot find tuple struct/variant `TyImplTraitUniversal` in this scope
   --> src/tools/clippy/clippy_lints/src/lifetimes.rs:335:13
    |
335 |             TyImplTraitUniversal(_, ref param_bounds) => for bound in param_bounds {
    |             ^^^^^^^^^^^^^^^^^^^^ not found in this scope

error[E0407]: method `visit_lifetime_def` is not a member of trait `Visitor`
   --> src/tools/clippy/clippy_lints/src/lifetimes.rs:411:5
    |
411 | /     fn visit_lifetime_def(&mut self, _: &'tcx LifetimeDef) {
412 | |         // don't actually visit `<'a>` or `<'a: 'b>`
413 | |         // we've already visited the `'a` declarations and
414 | |         // don't want to spuriously remove them
415 | |         // `'b` in `'a: 'b` is useless unless used elsewhere in
416 | |         // a non-lifetime bound
417 | |     }
    | |_____^ not a member of trait `Visitor`

error[E0433]: failed to resolve. Use of undeclared type or module `ViewPath_`
  --> src/tools/clippy/clippy_lints/src/unsafe_removed_from_name.rs:40:17
   |
40 |                 ViewPath_::ViewPathSimple(ref name, ref path) => {
   |                 ^^^^^^^^^ Use of undeclared type or module `ViewPath_`

error[E0433]: failed to resolve. Use of undeclared type or module `ViewPath_`
  --> src/tools/clippy/clippy_lints/src/unsafe_removed_from_name.rs:51:17
   |
51 |                 ViewPath_::ViewPathList(_, ref path_list_items) => for path_list_item in path_list_items.iter() {
   |                 ^^^^^^^^^ Use of undeclared type or module `ViewPath_`

error[E0433]: failed to resolve. Use of undeclared type or module `ViewPath_`
  --> src/tools/clippy/clippy_lints/src/unsafe_removed_from_name.rs:57:17
   |
57 |                 ViewPath_::ViewPathGlob(_) => {},
   |                 ^^^^^^^^^ Use of undeclared type or module `ViewPath_`

error[E0531]: cannot find tuple struct/variant `TyImplTraitUniversal` in this scope
   --> src/tools/clippy/clippy_lints/src/lifetimes.rs:335:13
    |
335 |             TyImplTraitUniversal(_, ref param_bounds) => for bound in param_bounds {
    |             ^^^^^^^^^^^^^^^^^^^^ not found in this scope

error[E0615]: attempted to take value of method `ty_params` on type `&'tcx rustc::hir::Generics`
   --> src/tools/clippy/clippy_lints/src/lifetimes.rs:104:26
    |
104 |     for typ in &generics.ty_params {
    |                          ^^^^^^^^^
    |
    = help: maybe a `()` to call it is missing?

error[E0615]: attempted to take value of method `lifetimes` on type `&'tcx rustc::hir::Generics`
   --> src/tools/clippy/clippy_lints/src/lifetimes.rs:125:52
    |
125 |     if could_use_elision(cx, decl, body, &generics.lifetimes, bounds_lts) {
    |                                                    ^^^^^^^^^
    |
    = help: maybe a `()` to call it is missing?

error[E0615]: attempted to take value of method `ty_params` on type `&'tcx rustc::hir::Generics`
   --> src/tools/clippy/clippy_lints/src/lifetimes.rs:104:26
    |
104 |     for typ in &generics.ty_params {
    |                          ^^^^^^^^^
    |
    = help: maybe a `()` to call it is missing?

error[E0615]: attempted to take value of method `lifetimes` on type `&'tcx rustc::hir::Generics`
   --> src/tools/clippy/clippy_lints/src/lifetimes.rs:125:52
    |
125 |     if could_use_elision(cx, decl, body, &generics.lifetimes, bounds_lts) {
    |                                                    ^^^^^^^^^
    |
    = help: maybe a `()` to call it is missing?

error[E0609]: no field `bound_lifetimes` on type `&rustc::hir::WhereBoundPredicate`
   --> src/tools/clippy/clippy_lints/src/lifetimes.rs:373:58
    |
373 |                 let allowed_lts = allowed_lts_from(&pred.bound_lifetimes);
    |                                                          ^^^^^^^^^^^^^^^

error[E0615]: attempted to take value of method `lifetimes` on type `&'tcx rustc::hir::Generics`
   --> src/tools/clippy/clippy_lints/src/lifetimes.rs:425:10
    |
425 |         .lifetimes
    |          ^^^^^^^^^
    |
    = help: maybe a `()` to call it is missing?

error[E0609]: no field `bound_lifetimes` on type `&rustc::hir::WhereBoundPredicate`
   --> src/tools/clippy/clippy_lints/src/lifetimes.rs:373:58
    |
373 |                 let allowed_lts = allowed_lts_from(&pred.bound_lifetimes);
    |                                                          ^^^^^^^^^^^^^^^

error[E0615]: attempted to take value of method `lifetimes` on type `&'tcx rustc::hir::Generics`
   --> src/tools/clippy/clippy_lints/src/lifetimes.rs:425:10
    |
425 |         .lifetimes
    |          ^^^^^^^^^
    |
    = help: maybe a `()` to call it is missing?

error[E0615]: attempted to take value of method `ty_params` on type `&rustc::hir::Generics`
    --> src/tools/clippy/clippy_lints/src/methods.rs:1852:18
     |
1852 |         generics.ty_params.iter().any(|param| {
     |                  ^^^^^^^^^
     |
     = help: maybe a `()` to call it is missing?

error[E0609]: no field `ty_params` on type `&syntax::ast::Generics`
   --> src/tools/clippy/clippy_lints/src/misc_early.rs:191:24
    |
191 |         for ty in &gen.ty_params {
    |                        ^^^^^^^^^

error[E0615]: attempted to take value of method `ty_params` on type `&rustc::hir::Generics`
    --> src/tools/clippy/clippy_lints/src/methods.rs:1852:18
     |
1852 |         generics.ty_params.iter().any(|param| {
     |                  ^^^^^^^^^
     |
     = help: maybe a `()` to call it is missing?

error[E0609]: no field `ty_params` on type `&syntax::ast::Generics`
   --> src/tools/clippy/clippy_lints/src/misc_early.rs:191:24
    |
191 |         for ty in &gen.ty_params {
    |                        ^^^^^^^^^

error[E0615]: attempted to take value of method `ty_params` on type `rustc::hir::Generics`
   --> src/tools/clippy/clippy_lints/src/new_without_default.rs:106:48
    |
106 |                         if !impl_item.generics.ty_params.is_empty() {
    |                                                ^^^^^^^^^
    |
    = help: maybe a `()` to call it is missing?

error[E0615]: attempted to take value of method `ty_params` on type `rustc::hir::Generics`
   --> src/tools/clippy/clippy_lints/src/new_without_default.rs:106:48
    |
106 |                         if !impl_item.generics.ty_params.is_empty() {
    |                                                ^^^^^^^^^
    |
    = help: maybe a `()` to call it is missing?

error[E0609]: no field `bound_lifetimes` on type `&rustc::hir::PolyTraitRef`
   --> src/tools/clippy/clippy_lints/src/types.rs:958:41
    |
958 |                     .any(|bound| !bound.bound_lifetimes.is_empty());
    |                                         ^^^^^^^^^^^^^^^

error[E0609]: no field `bound_lifetimes` on type `&rustc::hir::PolyTraitRef`
   --> src/tools/clippy/clippy_lints/src/types.rs:958:41
    |
958 |                     .any(|bound| !bound.bound_lifetimes.is_empty());
    |                                         ^^^^^^^^^^^^^^^

error[E0609]: no field `node` on type `&syntax::ptr::P<syntax::ast::UseTree>`
  --> src/tools/clippy/clippy_lints/src/unsafe_removed_from_name.rs:39:28
   |
39 |             match item_use.node {
   |                            ^^^^

error[E0609]: no field `node` on type `&syntax::ptr::P<syntax::ast::UseTree>`
  --> src/tools/clippy/clippy_lints/src/unsafe_removed_from_name.rs:39:28
   |
39 |             match item_use.node {
   |                            ^^^^

error: aborting due to 14 previous errors

error: Could not compile `clippy_lints`.
warning: build failed, waiting for other jobs to finish...
error: aborting due to 14 previous errors

error: Could not compile `clippy_lints`.

To learn more, run the command again with --verbose.


command did not execute successfully: "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "--target" "x86_64-unknown-linux-gnu" "-j" "4" "--release" "--manifest-path" "/src/rustc-1.24.1-src/src/tools/clippy/Cargo.toml"
expected success, got: exit code: 101


Building stage2 tool rustfmt (x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.1 secs
Building stage2 tool miri (x86_64-unknown-linux-gnu)
   Compiling miri v0.1.0 (file:///src/rustc-1.24.1-src/src/tools/miri)
error[E0464]: multiple matching crates for `log`
  --> src/tools/miri/miri/lib.rs:10:1
   |
10 | extern crate log;
   | ^^^^^^^^^^^^^^^^^
   |
   = note: candidates:
           crate `log`: /src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblog-693d476ed0b0eae3.rlib
           crate `log`: /src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblog-a075f299b7e5eb19.rlib

error[E0463]: can't find crate for `log`
  --> src/tools/miri/miri/lib.rs:10:1
   |
10 | extern crate log;
   | ^^^^^^^^^^^^^^^^^ can't find crate

error: aborting due to 2 previous errors

error: Could not compile `miri`.

To learn more, run the command again with --verbose.


command did not execute successfully: "/src/rustc-1.24.1-src/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "--target" "x86_64-unknown-linux-gnu" "-j" "4" "--release" "--manifest-path" "/src/rustc-1.24.1-src/src/tools/miri/Cargo.toml"
expected success, got: exit code: 101


Build completed successfully in 0:00:38

@jonas-schievink jonas-schievink added T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) and removed T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) A-build labels Apr 21, 2019
@Mark-Simulacrum
Copy link
Member

Closing -- if this is still reproducible off of Rust master then we can reopen but it looks like it probably wouldn't be...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

No branches or pull requests

4 participants