Skip to content

Can not build on Linux #2

Closed
Closed
@WildPenquin

Description

@WildPenquin

Hi,

I can not build mcp on Linux:

$ cargo build --release
warning: An explicit [[bin]] section is specified in Cargo.toml which currently
disables Cargo from automatically inferring other binary targets.
This inference behavior will change in the Rust 2018 edition and the following
files will be included as a binary target:

* /data/home/ville/usr/src/mcp/src/bin/tape.rs
* /data/home/ville/usr/src/mcp/src/bin/wav.rs
* /data/home/ville/usr/src/mcp/src/bin/args.rs
* /data/home/ville/usr/src/mcp/src/bin/file.rs

This is likely to break cargo build or cargo test as these files may not be
ready to be compiled as a binary target today. You can future-proof yourself
and disable this warning by adding `autobins = false` to your [package]
section. You may also move the files to a location where Cargo would not
automatically infer them to be a target, such as in subfolders.

For more information on this warning you can consult
https://github.com/rust-lang/cargo/issues/5330
    Updating crates.io index
  Downloaded byteorder v0.5.1
  Downloaded docopt v0.6.80
  Downloaded rustc-serialize v0.3.19
  Downloaded regex v0.1.67
  Downloaded memchr v0.1.11
  Downloaded utf8-ranges v0.1.3
  Downloaded strsim v0.3.0
  Downloaded aho-corasick v0.5.1
  Downloaded thread_local v0.2.5
  Downloaded thread-id v2.0.0
  Downloaded kernel32-sys v0.2.2
  Downloaded winapi-build v0.1.1
  Downloaded regex-syntax v0.3.1
  Downloaded libc v0.2.10
  Downloaded winapi v0.2.6
   Compiling winapi-build v0.1.1
   Compiling winapi v0.2.6
   Compiling libc v0.2.10
   Compiling utf8-ranges v0.1.3
   Compiling regex-syntax v0.3.1
   Compiling rustc-serialize v0.3.19
   Compiling strsim v0.3.0
   Compiling byteorder v0.5.1
error[E0642]: patterns aren't allowed in methods without bodies
   --> /home/ville/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.3.19/src/serialize.rs:147:45
    |
147 |                                             &f_name: &str,
    |                                             ^^^^^^^

   Compiling memchr v0.1.11
   Compiling kernel32-sys v0.2.2
   Compiling aho-corasick v0.5.1
   Compiling thread-id v2.0.0
   Compiling thread_local v0.2.5
error: aborting due to previous error

For more information about this error, try `rustc --explain E0642`.
error: Could not compile `rustc-serialize`.
warning: build failed, waiting for other jobs to finish...
error: build failed

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