lu-zero / rust

A safe, concurrent, practical language. - personal topic branches
https://www.rust-lang.org
Other
0 stars 0 forks source link

Make sure rust builds fine on the test machine. #1

Open lu-zero opened 7 years ago

lu-zero commented 7 years ago
lu-zero commented 7 years ago

current build roadblock:

error: Could not compile `serialize`.

Caused by:
  process didn't exit successfully: `/home/ubuntu/rust/rust/build/bootstrap/debug/rustc --crate-name serialize src/libserialize/lib.rs --error-format json --crate-type dylib --crate-type rlib --emit=dep-info,link -C prefer-dynamic -C debug-assertions=off -C overflow-checks=on -C metadata=b84006f7829f8f8a -C extra-filename=-b84006f7829f8f8a --out-dir /home/ubuntu/rust/rust/build/powerpc64le-unknown-linux-gnu/stage0-rustc/powerpc64le-unknown-linux-gnu/debug/deps --target powerpc64le-unknown-linux-gnu -L dependency=/home/ubuntu/rust/rust/build/powerpc64le-unknown-linux-gnu/stage0-rustc/powerpc64le-unknown-linux-gnu/debug/deps -L dependency=/home/ubuntu/rust/rust/build/powerpc64le-unknown-linux-gnu/stage0-rustc/debug/deps` (exit code: 101)
--- stderr
error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/home/ubuntu/rust/rust/build/powerpc64le-unknown-linux-gnu/stage0-sysroot/lib/rustlib/powerpc64le-unknown-linux-gnu/lib" "/home/ubuntu/rust/rust/build/powerpc64le-unknown-linux-gnu/stage0-rustc/powerpc64le-unknown-linux-gnu/debug/deps/serialize-b84006f7829f8f8a.0.o" "-o" "/home/ubuntu/rust/rust/build/powerpc64le-unknown-linux-gnu/stage0-rustc/powerpc64le-unknown-linux-gnu/debug/deps/libserialize-b84006f7829f8f8a.so" "/home/ubuntu/rust/rust/build/powerpc64le-unknown-linux-gnu/stage0-rustc/powerpc64le-unknown-linux-gnu/debug/deps/serialize-b84006f7829f8f8a.crate.metadata.o" "-nodefaultlibs" "-L" "/home/ubuntu/rust/rust/build/powerpc64le-unknown-linux-gnu/stage0-rustc/powerpc64le-unknown-linux-gnu/debug/deps" "-L" "/home/ubuntu/rust/rust/build/powerpc64le-unknown-linux-gnu/stage0-rustc/debug/deps" "-L" "/home/ubuntu/rust/rust/build/powerpc64le-unknown-linux-gnu/stage0-sysroot/lib/rustlib/powerpc64le-unknown-linux-gnu/lib" "-L" "/home/ubuntu/rust/rust/build/powerpc64le-unknown-linux-gnu/stage0-sysroot/lib/rustlib/powerpc64le-unknown-linux-gnu/lib" "-l" "std-df2d9b38f951c724" "-Wl,-Bstatic" "/tmp/rustc.JodDyHEq5cV1/libcompiler_builtins-7cc4c07026bf55e6.rlib" "-Wl,-Bdynamic" "-l" "dl" "-l" "rt" "-l" "pthread" "-l" "gcc_s" "-l" "c" "-l" "m" "-l" "rt" "-l" "pthread" "-l" "util" "-shared" "-Wl,-rpath,$ORIGIN/../lib"
  = note: /home/ubuntu/rust/rust/build/powerpc64le-unknown-linux-gnu/stage0-rustc/powerpc64le-unknown-linux-gnu/debug/deps/serialize-b84006f7829f8f8a.0.o: In function `alloc::btree::map::{{impl}}::next<alloc::string::String,serialize::json::Json>':
          /home/ubuntu/rust/rust/src/liballoc/btree/map.rs:1149: undefined reference to `core::panicking::panic_old'
          /home/ubuntu/rust/rust/build/powerpc64le-unknown-linux-gnu/stage0-rustc/powerpc64le-unknown-linux-gnu/debug/deps/serialize-b84006f7829f8f8a.0.o: In function `alloc::vec::{{impl}}::spec_extend<u8>':
          /home/ubuntu/rust/rust/src/liballoc/vec.rs:1887: undefined reference to `core::panicking::panic_old'
          /home/ubuntu/rust/rust/build/powerpc64le-unknown-linux-gnu/stage0-rustc/powerpc64le-unknown-linux-gnu/debug/deps/serialize-b84006f7829f8f8a.0.o: In function `alloc::btree::node::{{impl}}::push<alloc::string::String,serialize::json::Json>':
          /home/ubuntu/rust/rust/src/liballoc/btree/node.rs:573: undefined reference to `core::panicking::panic_old'
          /home/ubuntu/rust/rust/src/liballoc/btree/node.rs:595: undefined reference to `core::panicking::panic_old'
          /home/ubuntu/rust/rust/src/liballoc/btree/node.rs:603: undefined reference to `core::panicking::panic_old'
          /home/ubuntu/rust/rust/build/powerpc64le-unknown-linux-gnu/stage0-rustc/powerpc64le-unknown-linux-gnu/debug/deps/serialize-b84006f7829f8f8a.0.o:/home/ubuntu/rust/rust/src/liballoc/btree/node.rs:605: more undefined references to `core::panicking::panic_old' follow
          /home/ubuntu/rust/rust/build/powerpc64le-unknown-linux-gnu/stage0-rustc/powerpc64le-unknown-linux-gnu/debug/deps/serialize-b84006f7829f8f8a.0.o:(.data.DW.ref.rust_eh_personality[DW.ref.rust_eh_personality]+0x0): undefined reference to `rust_eh_personality'
          /tmp/rustc.JodDyHEq5cV1/libcompiler_builtins-7cc4c07026bf55e6.rlib(compiler_builtins-7cc4c07026bf55e6.0.o): In function `core::ops::arith::{{impl}}::add':
          /home/ubuntu/rust/rust/src/libcore/ops/arith.rs:112: undefined reference to `core::panicking::panic_old'
          /tmp/rustc.JodDyHEq5cV1/libcompiler_builtins-7cc4c07026bf55e6.rlib(compiler_builtins-7cc4c07026bf55e6.0.o): In function `core::ops::arith::{{impl}}::neg':
          /home/ubuntu/rust/rust/src/libcore/ops/arith.rs:611: undefined reference to `core::panicking::panic_old'
          /tmp/rustc.JodDyHEq5cV1/libcompiler_builtins-7cc4c07026bf55e6.rlib(compiler_builtins-7cc4c07026bf55e6.0.o): In function `core::ops::arith::{{impl}}::sub':
          /home/ubuntu/rust/rust/src/libcore/ops/arith.rs:186: undefined reference to `core::panicking::panic_old'
          /tmp/rustc.JodDyHEq5cV1/libcompiler_builtins-7cc4c07026bf55e6.rlib(compiler_builtins-7cc4c07026bf55e6.0.o): In function `core::ops::arith::{{impl}}::add':
          /home/ubuntu/rust/rust/src/libcore/ops/arith.rs:112: undefined reference to `core::panicking::panic_old'
          /tmp/rustc.JodDyHEq5cV1/libcompiler_builtins-7cc4c07026bf55e6.rlib(compiler_builtins-7cc4c07026bf55e6.0.o): In function `core::ops::arith::{{impl}}::neg':
          /home/ubuntu/rust/rust/src/libcore/ops/arith.rs:611: undefined reference to `core::panicking::panic_old'
          /tmp/rustc.JodDyHEq5cV1/libcompiler_builtins-7cc4c07026bf55e6.rlib(compiler_builtins-7cc4c07026bf55e6.0.o):/home/ubuntu/rust/rust/src/libcore/ops/arith.rs:186: more undefined references to `core::panicking::panic_old' follow
          collect2: error: ld returned 1 exit status
lu-zero commented 7 years ago

the configure script should not be invoked with the current rust. Everything seems going fine now.

lu-zero commented 7 years ago
Build completed successfully in 0:46:11
lu-zero commented 7 years ago

test failure:

failures:

---- [codegen] codegen/stack-probes.rs stdout ----

error: verification with 'FileCheck' failed
status: exit code: 1
command: /home/ubuntu/rust/rust/build/powerpc64le-unknown-linux-gnu/llvm/build/bin/FileCheck -input-file=/home/ubuntu/rust/rust/build/powerpc64le-unknown-linux-gnu/test/codegen/stack-probes.ll /home/ubuntu/rust/rust/src/test/codegen/stack-probes.rs
stdout:
------------------------------------------

------------------------------------------
stderr:
------------------------------------------
/home/ubuntu/rust/rust/src/test/codegen/stack-probes.rs:23:11: error: expected string not found in input
// CHECK: attributes #0 = { {{.*}}"probe-stack"="__rust_probestack"{{.*}} }
          ^
/home/ubuntu/rust/rust/build/powerpc64le-unknown-linux-gnu/test/codegen/stack-probes.ll:7:36: note: scanning from here
define void @foo() unnamed_addr #0 {
                                   ^
/home/ubuntu/rust/rust/build/powerpc64le-unknown-linux-gnu/test/codegen/stack-probes.ll:12:1: note: possible intended match here
attributes #0 = { uwtable }
^

------------------------------------------

thread '[codegen] codegen/stack-probes.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:2479:8
note: Run with `RUST_BACKTRACE=1` for a backtrace.

failures:
    [codegen] codegen/stack-probes.rs

test result: FAILED. 38 passed; 1 failed; 6 ignored; 0 measured; 0 filtered out
lu-zero commented 7 years ago

https://github.com/rust-lang/rust/issues/43309