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

Installation Error - unspecified #28

Open
RealLukeMartin opened this issue Sep 11, 2018 · 4 comments
Open

Installation Error - unspecified #28

RealLukeMartin opened this issue Sep 11, 2018 · 4 comments

Comments

@RealLukeMartin
Copy link

    Updating registry `https://github.com/rust-lang/crates.io-index`
 Downloading libc v0.2.4
 Downloading lazy_static v0.1.15
 Downloading sdl2 v0.6.1
 Downloading time v0.1.34
 Downloading bitflags v0.2.1
 Downloading rand v0.3.12
 Downloading num v0.1.29
 Downloading libc v0.1.12
 Downloading sdl2-sys v0.6.2
 Downloading advapi32-sys v0.1.2
 Downloading winapi v0.2.5
 Downloading winapi-build v0.1.1
 Downloading rustc-serialize v0.3.16
 Downloading kernel32-sys v0.2.1
   Compiling winapi-build v0.1.1
   Compiling winapi v0.2.5
   Compiling libc v0.2.4
   Compiling sdl2-sys v0.6.2
   Compiling rustc-serialize v0.3.16
   Compiling libc v0.1.12
   Compiling bitflags v0.2.1
   Compiling lazy_static v0.1.15
error[E0642]: patterns aren't allowed in methods without bodies
   --> /Users/me/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.3.16/src/serialize.rs:145:45
    |
145 |                                             &f_name: &str,
    |                                             ^^^^^^^

   Compiling advapi32-sys v0.1.2
   Compiling kernel32-sys v0.2.1
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


➜  sprocketnes git:(master) ✗ rustc --explain E0642
error: no extended information for E0642```
@RealLukeMartin
Copy link
Author

Ran with cargo build on the repo

@johannesleander
Copy link

I'm running into this same issue. Will investigate further.

@johannesleander
Copy link

The issue seem to be related to a deprecated dependency in package 'sdl2'. Changing line 11 in Cargo.tomlto sdl2 = "*" fixed this particular error, but introduced a new one where another dependency fails.

Building on OSX Mojave.

@RealLukeMartin
Copy link
Author

Also building on OSX Mojave

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