make check failes with -g
export RUSTFLAGS=-g make check
Fails with a whole bunch of errors, e.g.,
(er, whoops, didn't mean to hit 'go' quite so prematurely)
error: compilation failed! command: x86_64-unknown-linux-gnu/stage2/bin/rustc /home/nick/rust/src/test/run-pass/simd-generics.rs -L x86_64-unknown-linux-gnu/test/run-pass --target=x86_64-unknown-linux-gnu -L x86_64-unknown-linux-gnu/test/run-pass/simd-generics.stage2-x86_64-unknown-linux-gnu.libaux -o x86_64-unknown-linux-gnu/test/run-pass/simd-generics.stage2-x86_64-unknown-linux-gnu -g --cfg rtopt --cfg debug -C prefer-dynamic -O -L x86_64-unknown-linux-gnu/rt
rustc: /home/nick/rust/src/llvm/include/llvm/Support/Casting.h:240: typename llvm::cast_retty<X, Y*>::ret_type llvm::cast(Y*) [with X = llvm::StructType; Y = llvm::Type; typename llvm::cast_retty<X, Y*>::ret_type = llvm::StructType*]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.See also #12191 for an error when I tried to do this previously.
Nick Cameron at 2014-02-17 01:09:25
I was just able to reproduce this. Seems to be related to simd types. I'll look into it some more...
Michael Woerister at 2014-02-19 10:30:54