Rust check fails


#1

So, this might be something that’s not interesting for you or it might be posted in the wrong place.

However, I compiled today sha 8eee0efd and a make check failed. Here’s the make check log:

cfg: version 1.7.0-dev (8eee0efd1 2015-12-10)
cfg: build triple x86_64-unknown-linux-gnu
cfg: host triples x86_64-unknown-linux-gnu
cfg: target triples x86_64-unknown-linux-gnu
cfg: disabling rustc optimization (CFG_DISABLE_OPTIMIZE)
cfg: enabling debug assertions (CFG_ENABLE_DEBUG_ASSERTIONS)
cfg: enabling debuginfo (CFG_ENABLE_DEBUGINFO)
cfg: host for x86_64-unknown-linux-gnu is x86_64
cfg: os for x86_64-unknown-linux-gnu is unknown-linux-gnu
cfg: disabling C++ optimization (CFG_DISABLE_OPTIMIZE_CXX)
cfg: good valgrind for x86_64-unknown-linux-gnu is 1
cfg: using CC=gcc (CFG_CC)
cfg: enabling valgrind run-pass tests (CFG_ENABLE_VALGRIND_RPASS)
cfg: valgrind-rpass command set to "/usr/bin/valgrind" --error-exitcode=100 --fair-sched=try --quiet --soname-synonyms=somalloc=NONE --suppressions=/home/pmatos/Projects/rust/src/etc/x86.supp  --tool=memcheck --leak-check=full
cfg: including test rules
cfg: lexer tooling not available, skipping lexer test...
rustdoc: doc/std/index.html
rustdoc: doc/alloc/index.html
rustdoc: doc/collections/index.html
rustdoc: doc/core/index.html
rustdoc: doc/libc/index.html
rustdoc: doc/rustc_unicode/index.html
rustc: x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/bin/compiletest
maketest: alloc-extern-crates
maketest: allow-non-lint-warnings-cmdline
maketest: allow-warnings-cmdline-stability
maketest: archive-duplicate-names
maketest: bare-outfile
maketest: c-dynamic-dylib
maketest: c-dynamic-rlib
maketest: c-link-to-rust-dylib
maketest: c-link-to-rust-staticlib
maketest: codegen-options-parsing
----- /home/pmatos/Projects/rust/src/test/run-make/codegen-options-parsing/ --------------------
------ stdout ---------------------------------------------
make[1]: Entering directory '/home/pmatos/Projects/rust/src/test/run-make/codegen-options-parsing'
#Option taking a number
LD_LIBRARY_PATH="/home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing:/home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/stage2/lib:" /home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/stage2/bin/rustc --out-dir /home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing -L /home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing -C codegen-units dummy.rs 2>&1 | \
    grep 'codegen option `codegen-units` requires a number'
error: codegen option `codegen-units` requires a number (C codegen-units=<value>)
LD_LIBRARY_PATH="/home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing:/home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/stage2/lib:" /home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/stage2/bin/rustc --out-dir /home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing -L /home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing -C codegen-units= dummy.rs 2>&1 | \
    grep 'incorrect value `` for codegen option `codegen-units` - a number was expected'
error: incorrect value `` for codegen option `codegen-units` - a number was expected
LD_LIBRARY_PATH="/home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing:/home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/stage2/lib:" /home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/stage2/bin/rustc --out-dir /home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing -L /home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing -C codegen-units=foo dummy.rs 2>&1 | \
    grep 'incorrect value `foo` for codegen option `codegen-units` - a number was expected'
error: incorrect value `foo` for codegen option `codegen-units` - a number was expected
LD_LIBRARY_PATH="/home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing:/home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/stage2/lib:" /home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/stage2/bin/rustc --out-dir /home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing -L /home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing -C codegen-units=1 dummy.rs
#Option taking a string
LD_LIBRARY_PATH="/home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing:/home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/stage2/lib:" /home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/stage2/bin/rustc --out-dir /home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing -L /home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing -C extra-filename dummy.rs 2>&1 | \
    grep 'codegen option `extra-filename` requires a string'
error: codegen option `extra-filename` requires a string (C extra-filename=<value>)
LD_LIBRARY_PATH="/home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing:/home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/stage2/lib:" /home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/stage2/bin/rustc --out-dir /home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing -L /home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing -C extra-filename= dummy.rs 2>&1
LD_LIBRARY_PATH="/home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing:/home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/stage2/lib:" /home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/stage2/bin/rustc --out-dir /home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing -L /home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing -C extra-filename=foo dummy.rs 2>&1
#Option taking no argument
LD_LIBRARY_PATH="/home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing:/home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/stage2/lib:" /home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/stage2/bin/rustc --out-dir /home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing -L /home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing -C lto= dummy.rs 2>&1 | \
    grep 'codegen option `lto` takes no value'
error: codegen option `lto` takes no value
LD_LIBRARY_PATH="/home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing:/home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/stage2/lib:" /home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/stage2/bin/rustc --out-dir /home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing -L /home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing -C lto=1 dummy.rs 2>&1 | \
    grep 'codegen option `lto` takes no value'
error: codegen option `lto` takes no value
LD_LIBRARY_PATH="/home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing:/home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/stage2/lib:" /home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/stage2/bin/rustc --out-dir /home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing -L /home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing -C lto=foo dummy.rs 2>&1 | \
    grep 'codegen option `lto` takes no value'
error: codegen option `lto` takes no value
LD_LIBRARY_PATH="/home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing:/home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/stage2/lib:" /home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/stage2/bin/rustc --out-dir /home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing -L /home/pmatos/Projects/rust/x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing -C lto dummy.rs
Makefile:4: recipe for target 'all' failed
make[1]: Leaving directory '/home/pmatos/Projects/rust/src/test/run-make/codegen-options-parsing'

------ stderr ---------------------------------------------
rustc: /home/pmatos/Projects/rust/src/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp:713: llvm::DIE* llvm::DwarfUnit::getOrCreateTypeDIE(const llvm::MDNode*): Assertion `Ty == resolve(Ty->getRef()) && "type was not uniqued, possible ODR violation."' failed.
make[1]: *** [all] Aborted (core dumped)

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

/home/pmatos/Projects/rust/mk/tests.mk:1087: recipe for target 'x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing-2-T-x86_64-unknown-linux-gnu-H-x86_64-unknown-linux-gnu.ok' failed
make: *** [x86_64-unknown-linux-gnu/test/run-make/codegen-options-parsing-2-T-x86_64-unknown-linux-gnu-H-x86_64-unknown-linux-gnu.ok] Error 2
make: *** Waiting for unfinished jobs....

I am interested in helping so if there’s anything more I can provide please let me know.


#2

What did you pass to ./configure? (You can find out by grep CFG_CONFIGURE_ARGS config.mk in the build directory.)


#3

CFG_CONFIGURE_ARGS := --prefix=/home/pmatos/local-install/rust-8eee0ef --enable-debug