Why is my rust broken ? 26-02-2015 build


#1

I have upgraded to the 2015-02-26 build and my build seems to be borked:

➜  rusti git:(master) ✗ rustc --version
rustc 1.0.0-nightly (b47aebe3f 2015-02-26) (built 2015-02-26)
➜  rusti git:(master) ✗ cargo run
     Running `target/rusti`
rusti=> let xs: [i32; 5] = [1, 2, 3, 4, 5];
<anon>:13:5: 13:7 warning: unused variable: `xs`, #[warn(unused_variables)] on by default
<anon>:13 let xs: [i32; 5] = [1, 2, 3, 4, 5];
              ^~
LLVM ERROR: Program used external function '___morestack_addr' which could not be resolved!
An unknown error occurred

Is anyone else facing this ?


#2

I haven’t seen it personally. What platform are you on?


#3

__morestack_addr was added to LLVM recently to support the large code model. We may be missing some runtime support.


#4

I am on MacOS platform


#5

If that is the case, what needs to be installed on MacOS ?


#6

I’m not sure what ‘rusti’ is but I suspect it is jitting code that requires this symbol. If that’s the case then probably what needs to happen is somebody needs to write this function and add it to rust’s morestack.a library.