Skip to content

"extern location for serde_derive is of an unknown type" when cross compiling #37899

Closed
@plietar

Description

@plietar

Trying to cross compile serde's example from macOS to Linux

$ cargo build --features "unstable" --target arm-unknown-linux-gnueabihf
   Compiling serde-syntex-example v0.1.0 (file:///private/tmp/serde/examples/serde-syntex-example)
error: extern location for serde_derive is of an unknown type: /private/tmp/serde/examples/serde-syntex-example/target/debug/deps/libserde_derive-c68a89b9da8abb52.dylib
  |
  = help: file name should be lib*.rlib or lib*..so

error: aborting due to previous error

error: Could not compile `serde-syntex-example`.

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

Meta

rustc --version --verbose:

rustc 1.15.0-nightly (ac635aa95 2016-11-18)
binary: rustc
commit-hash: ac635aa95ba851898e125b047ad7b8d6a8fecf8e
commit-date: 2016-11-18
host: x86_64-apple-darwin
release: 1.15.0-nightly
LLVM version: 3.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions