Skip to content

Instantly share code, notes, and snippets.

@petrhosek
Created November 17, 2017 06:22
Show Gist options
  • Save petrhosek/bd0b63088c02baf898214ae2474ba171 to your computer and use it in GitHub Desktop.
Save petrhosek/bd0b63088c02baf898214ae2474ba171 to your computer and use it in GitHub Desktop.
Dist std stage2 (x86_64-unknown-linux-gnu -> x86_64-unknown-fuchsia)
Building stage2 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-fuchsia)
Compiling core v0.0.0 (file:///usr/local/google/home/phosek/fuchsia/infra/recipes/.recipe_deps/recipe_engine/workdir/rust/src/libcore)
Compiling cc v1.0.3
Compiling cfg-if v0.1.2
Compiling libc v0.2.33
Compiling unwind v0.0.0 (file:///usr/local/google/home/phosek/fuchsia/infra/recipes/.recipe_deps/recipe_engine/workdir/rust/src/libunwind)
Compiling filetime v0.1.14
Compiling build_helper v0.1.0 (file:///usr/local/google/home/phosek/fuchsia/infra/recipes/.recipe_deps/recipe_engine/workdir/rust/src/build_helper)
Compiling std v0.0.0 (file:///usr/local/google/home/phosek/fuchsia/infra/recipes/.recipe_deps/recipe_engine/workdir/rust/src/libstd)
Compiling alloc_jemalloc v0.0.0 (file:///usr/local/google/home/phosek/fuchsia/infra/recipes/.recipe_deps/recipe_engine/workdir/rust/src/liballoc_jemalloc)
Compiling compiler_builtins v0.0.0 (file:///usr/local/google/home/phosek/fuchsia/infra/recipes/.recipe_deps/recipe_engine/workdir/rust/src/rustc/compiler_builtins_shim)
Compiling libc v0.0.0 (file:///usr/local/google/home/phosek/fuchsia/infra/recipes/.recipe_deps/recipe_engine/workdir/rust/src/rustc/libc_shim)
Compiling std_unicode v0.0.0 (file:///usr/local/google/home/phosek/fuchsia/infra/recipes/.recipe_deps/recipe_engine/workdir/rust/src/libstd_unicode)
Compiling alloc v0.0.0 (file:///usr/local/google/home/phosek/fuchsia/infra/recipes/.recipe_deps/recipe_engine/workdir/rust/src/liballoc)
Compiling panic_abort v0.0.0 (file:///usr/local/google/home/phosek/fuchsia/infra/recipes/.recipe_deps/recipe_engine/workdir/rust/src/libpanic_abort)
Compiling alloc_system v0.0.0 (file:///usr/local/google/home/phosek/fuchsia/infra/recipes/.recipe_deps/recipe_engine/workdir/rust/src/liballoc_system)
Compiling panic_unwind v0.0.0 (file:///usr/local/google/home/phosek/fuchsia/infra/recipes/.recipe_deps/recipe_engine/workdir/rust/src/libpanic_unwind)
warning: redundant linker flag specified for library `zircon`
error: linking with `/usr/local/google/home/phosek/fuchsia/infra/recipes/.recipe_deps/recipe_engine/workdir/cipd/bin/clang` failed: exit code: 1
|
= note: "/usr/local/google/home/phosek/fuchsia/infra/recipes/.recipe_deps/recipe_engine/workdir/cipd/bin/clang" "-m64" "-L" "/tmp/rust37SjGR/build/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-fuchsia/lib" "/tmp/rust37SjGR/build/build/x86_64-unknown-linux-gnu/stage2-std/x86_64-unknown-fuchsia/release/deps/std-900492c518518de6.std0.rcgu.o" "-o" "/tmp/rust37SjGR/build/build/x86_64-unknown-linux-gnu/stag
e2-std/x86_64-unknown-fuchsia/release/deps/libstd-900492c518518de6.so" "/tmp/rust37SjGR/build/build/x86_64-unknown-linux-gnu/stage2-std/x86_64-unknown-fuchsia/release/deps/std-900492c518518de6.crate.metadata.rcgu.o" "/tmp/rust37SjGR/build/build/x86_64-unknown-linux-gnu/stage2-std/x86_64-unknown-fuchsia/release/deps/std-900492c518518de6.crate.allocator.rcgu.o" "-Wl,-O1" "-nodefaultlibs" "-L" "/tmp/rust37SjGR/build/build/x8
6_64-unknown-linux-gnu/stage2-std/x86_64-unknown-fuchsia/release/deps" "-L" "/tmp/rust37SjGR/build/build/x86_64-unknown-linux-gnu/stage2-std/release/deps" "-L" "/tmp/rust37SjGR/build/build/x86_64-unknown-linux-gnu/stage2-std/x86_64-unknown-fuchsia/release/build/compiler_builtins-99d026c58a4d1f20/out" "-L" "/tmp/rust37SjGR/build/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-fuchsia/lib" "-l" "zircon" "-l
" "backtrace" "-l" "fdio" "-l" "launchpad" "-Wl,-Bstatic" "-Wl,--whole-archive" "/tmp/rustc.PO3CfQwI9HTQ/liballoc_system-9ff2c67f40fe5858.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustc.PO3CfQwI9HTQ/libpanic_unwind-5bef2c52ac19d279.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustc.PO3CfQwI9HTQ/libunwind-3830ae5679a0b739.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustc.PO3CfQ
wI9HTQ/liblibc-e1c7eeeb00260d82.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustc.PO3CfQwI9HTQ/liballoc-bad119b0f880de53.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustc.PO3CfQwI9HTQ/libstd_unicode-c87147d9878a34a6.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustc.PO3CfQwI9HTQ/libcore-f61c023fb8fcfea8.rlib" "-Wl,--no-whole-archive" "/tmp/rustc.PO3CfQwI9HTQ/libcompiler_builtins
-3b206b25583c2149.rlib" "-Wl,-Bdynamic" "-l" "unwind" "-l" "c" "-l" "fdio" "-shared" "-Wl,-rpath,$ORIGIN/../lib"
= note: /usr/local/google/home/phosek/fuchsia/infra/recipes/.recipe_deps/recipe_engine/workdir/cipd/bin/ld.lld: error: unable to find library -lzircon
/usr/local/google/home/phosek/fuchsia/infra/recipes/.recipe_deps/recipe_engine/workdir/cipd/bin/ld.lld: error: unable to find library -lfdio
/usr/local/google/home/phosek/fuchsia/infra/recipes/.recipe_deps/recipe_engine/workdir/cipd/bin/ld.lld: error: unable to find library -llaunchpad
/usr/local/google/home/phosek/fuchsia/infra/recipes/.recipe_deps/recipe_engine/workdir/cipd/bin/ld.lld: error: unable to find library -lfdio
clang-6.0: error: linker command failed with exit code 1 (use -v to see invocation)
error: aborting due to previous error
error: Could not compile `std`.
Caused by:
process didn't exit successfully: `/tmp/rust37SjGR/build/build/bootstrap/debug/rustc --crate-name std /usr/local/google/home/phosek/fuchsia/infra/recipes/.recipe_deps/recipe_engine/workdir/rust/src/libstd/lib.rs --error-format json --crate-type dylib --crate-type rlib --emit=dep-info,link -C prefer-dynamic -C opt-level=2 --cfg feature="alloc_jemalloc" --cfg feature="backtrace" --cfg feature="jemalloc" --cfg feature="pan
ic-unwind" --cfg feature="panic_unwind" -C metadata=900492c518518de6 -C extra-filename=-900492c518518de6 --out-dir /tmp/rust37SjGR/build/build/x86_64-unknown-linux-gnu/stage2-std/x86_64-unknown-fuchsia/release/deps --target x86_64-unknown-fuchsia -L dependency=/tmp/rust37SjGR/build/build/x86_64-unknown-linux-gnu/stage2-std/x86_64-unknown-fuchsia/release/deps -L dependency=/tmp/rust37SjGR/build/build/x86_64-unknown-linux-g
nu/stage2-std/release/deps --extern unwind=/tmp/rust37SjGR/build/build/x86_64-unknown-linux-gnu/stage2-std/x86_64-unknown-fuchsia/release/deps/libunwind-3830ae5679a0b739.rlib --extern alloc_jemalloc=/tmp/rust37SjGR/build/build/x86_64-unknown-linux-gnu/stage2-std/x86_64-unknown-fuchsia/release/deps/liballoc_jemalloc-d968840184876236.rlib --extern compiler_builtins=/tmp/rust37SjGR/build/build/x86_64-unknown-linux-gnu/stage2
-std/x86_64-unknown-fuchsia/release/deps/libcompiler_builtins-3b206b25583c2149.rlib --extern alloc_system=/tmp/rust37SjGR/build/build/x86_64-unknown-linux-gnu/stage2-std/x86_64-unknown-fuchsia/release/deps/liballoc_system-9ff2c67f40fe5858.rlib --extern panic_unwind=/tmp/rust37SjGR/build/build/x86_64-unknown-linux-gnu/stage2-std/x86_64-unknown-fuchsia/release/deps/libpanic_unwind-5bef2c52ac19d279.rlib --extern std_unicode=
/tmp/rust37SjGR/build/build/x86_64-unknown-linux-gnu/stage2-std/x86_64-unknown-fuchsia/release/deps/libstd_unicode-c87147d9878a34a6.rlib --extern core=/tmp/rust37SjGR/build/build/x86_64-unknown-linux-gnu/stage2-std/x86_64-unknown-fuchsia/release/deps/libcore-f61c023fb8fcfea8.rlib --extern libc=/tmp/rust37SjGR/build/build/x86_64-unknown-linux-gnu/stage2-std/x86_64-unknown-fuchsia/release/deps/liblibc-e1c7eeeb00260d82.rlib
--extern alloc=/tmp/rust37SjGR/build/build/x86_64-unknown-linux-gnu/stage2-std/x86_64-unknown-fuchsia/release/deps/liballoc-bad119b0f880de53.rlib --extern panic_abort=/tmp/rust37SjGR/build/build/x86_64-unknown-linux-gnu/stage2-std/x86_64-unknown-fuchsia/release/deps/libpanic_abort-e9dd47ab30424812.rlib -l backtrace -l zircon -l fdio -l launchpad -L native=/tmp/rust37SjGR/build/build/x86_64-unknown-linux-gnu/stage2-std/x86
_64-unknown-fuchsia/release/build/compiler_builtins-99d026c58a4d1f20/out` (exit code: 101)
thread 'main' panicked at 'command did not execute successfully: "/tmp/rust37SjGR/build/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "--target" "x86_64-unknown-fuchsia" "-j" "56" "--release" "--features" "panic-unwind jemalloc backtrace" "--manifest-path" "/usr/local/google/home/phosek/fuchsia/infra/recipes/.recipe_deps/recipe_engine/workdir/rust/src/libstd/Cargo.toml" "--message-format" "json"
expected success, got: exit code: 101', /usr/local/google/home/phosek/fuchsia/infra/recipes/.recipe_deps/recipe_engine/workdir/rust/src/bootstrap/compile.rs:882:8
note: Run with `RUST_BACKTRACE=1` for a backtrace.
failed to run: /tmp/rust37SjGR/build/build/bootstrap/debug/bootstrap install --config /tmp/rust37SjGR/build/config.toml
Build completed unsuccessfully in 0:25:13
step returned non-zero exit code: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment