rust-from-c-example icon indicating copy to clipboard operation
rust-from-c-example copied to clipboard

make test fails

Open andreypopp opened this issue 11 years ago • 2 comments

% make test
rustc -c mylib.rs
warning: missing crate link meta `name`, using `mylib` as default
warning: missing crate link meta `vers`, using `0.0` as default
gcc -o test test.c mylib.o
Undefined symbols for architecture x86_64:
  "___morestack", referenced from:
      _add in mylib.o
      add::__rust_abi in mylib.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile:7: recipe for target 'test' failed
make: *** [test] Error 1
% rust -v
rust 0.8
host: x86_64-apple-darwin

andreypopp avatar Dec 11 '13 21:12 andreypopp

Forgot to mention, I'm on Mac OS X 10.9.

andreypopp avatar Dec 11 '13 21:12 andreypopp

Submitted a pull request with a small fix based on the rust-core README.

shilgapira avatar Jan 06 '14 12:01 shilgapira