Skip to content
This repository was archived by the owner on Jul 13, 2019. It is now read-only.
This repository was archived by the owner on Jul 13, 2019. It is now read-only.

Crash trying to print value from external crate #51

@xasmx

Description

@xasmx

Trying to print a value for a type defined in an external crate is crashing rusti:

$ cargo run -- -L testi/target/debug/
Running target/debug/rusti -L testi/target/debug/
rusti=> extern crate testi;
rusti=> use testi::Foo;
rusti=> Foo
LLVM ERROR: Program used external function '__ZN21Foo...std..fmt..Debug3fmt20h8530f8b2d5755ad6iaaE' which could not be resolved!
An unknown error occurred

To learn more, run the command again with --verbose.
$

Environment:

  • OS X Yosemite 10.10.3
  • rustc 1.5.0-nightly (6e5a32547 2015-09-19)
  • cargo 0.6.0-nightly (de11b58 2015-09-16)
  • rusti commit 842564d

Both rusti and the testi crate compiled clean with this version.

External crate:
$ cat testi/Cargo.toml
[package]
name = "testi"
version = "0.0.1"


$ cat testi/src/lib.rs

[derive(Debug)]

pub struct Foo;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions