-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Closed
Description
While building stage1/lib/libstd.so:
rustc: /home/marijn/prog/llvm/include/llvm/Support/Casting.h:194: typename llvm::cast_retty<To, From>::ret_type llvm::cast(const Y&) [with X = llvm::FrameIndexSDNode, Y = llvm::SDNode*, typename llvm::cast_retty<To, From>::ret_type = llvm::FrameIndexSDNode*]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
Stack dump:
0. Running pass 'Function Pass Manager' on module 'rust_out'.
1. Running pass 'X86 DAG->DAG Instruction Selection' on function '@_ZN3int6to_strE'
Aborted
make: *** [stage1/lib/libstd.so] Error 134
make: Target `all' not remade because of errors.
make: Leaving directory `/home/marijn/src/rust'
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
msullivan commentedon Aug 18, 2011
Bisecting.
msullivan commentedon Aug 18, 2011
117d21d is the commit that broke it.
pcwalton commentedon Aug 18, 2011
Taking this; I believe I have an LLVM fix for it.
pcwalton commentedon Aug 19, 2011
LLVM patch:
rustc: Only emit gc root intrinsic calls if the GC flag is on, to wor…
pcwalton commentedon Aug 21, 2011
Fix has been sent to espindola; leaving this open until it's upstreamed, but this isn't breaking the build any longer.
marijnh commentedon Aug 30, 2011
This seems to have landed (I removed the patch when updating LLVM this week, and I can still build without optimize)
Merge pull request rust-lang#836 from quantheory/move_601_to_text_dir
Auto merge of rust-lang#836 - Susurrus:memfd, r=alexcrichton
Move all cold code to the end of the function