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

rayon doesn't build on Windows with some version. #3

Open
evandrocoan opened this issue Mar 18, 2017 · 1 comment
Open

rayon doesn't build on Windows with some version. #3

evandrocoan opened this issue Mar 18, 2017 · 1 comment

Comments

@evandrocoan
Copy link

evandrocoan commented Mar 18, 2017

error[E0277]: the trait bound Self: std::marker::Sized is not satisfied

I tried to build it running cargo build at rustc 1.16.0 (30cf806ef 2017-03-10), and got this:

Professional@Professional-pc$ cargo build
   Compiling glob v0.2.11
   Compiling winapi v0.2.6
   Compiling log v0.3.6
   Compiling lzw v0.10.0
   Compiling itertools v0.4.13
warning[E0122]: trait bounds are not (yet) enforced in type definitions
   --> C:\Users\Professional\.cargo\registry\src\github.com-1ecc6299db9ec823\itertools-0.4.13\src\lib.rs:117:1
    |
117 | pub type MapFn<I, B> where I: Iterator = iter::Map<I, fn(I::Item) -> B>;
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

   Compiling khronos_api v1.0.0
   Compiling interpolation v0.1.0
   Compiling read_color v0.1.0
   Compiling user32-sys v0.1.2
   Compiling shell32-sys v0.1.1
   Compiling kernel32-sys v0.2.2
   Compiling rustc-serialize v0.3.19
   Compiling gfx_core v0.3.1
   Compiling gl_generator v0.5.1
   Compiling gfx_gl v0.3.1
   Compiling glutin v0.5.1
   Compiling num-traits v0.1.32
   Compiling bincode v0.5.8
   Compiling num-complex v0.1.32
   Compiling num-integer v0.1.32
   Compiling num-iter v0.1.32
   Compiling bitflags v0.7.0
   Compiling color_quant v1.0.0
   Compiling num-bigint v0.1.32
   Compiling gif v0.8.0
   Compiling gfx v0.11.0
   Compiling gfx_device_gl v0.10.0
   Compiling num-rational v0.1.32
   Compiling num v0.1.32
   Compiling enum_primitive v0.1.0
   Compiling cgmath v0.9.1
   Compiling euclid v0.6.6
   Compiling dwmapi-sys v0.1.0
   Compiling rayon v0.3.1
error[E0277]: the trait bound `Self: std::marker::Sized` is not satisfied
  --> C:\Users\Professional\.cargo\registry\src\github.com-1ecc6299db9ec823\rayon-0.3.1\src\par_iter\internal.rs:25:5
   |
25 |     fn split_at(self, index: usize) -> (Self, Self);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Sized` is not implemented for `Self`
   |
   = help: consider adding a `where Self: std::marker::Sized` bound
   = note: tuple elements must have `Sized` type

error[E0277]: the trait bound `Self: std::marker::Sized` is not satisfied
  --> C:\Users\Professional\.cargo\registry\src\github.com-1ecc6299db9ec823\rayon-0.3.1\src\par_iter\internal.rs:42:5
   |
42 |     fn split_at(self, index: usize) -> (Self, Self, Self::Reducer);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Sized` is not implemented for `Self`
   |
   = help: consider adding a `where Self: std::marker::Sized` bound
   = note: tuple elements must have `Sized` type

error: aborting due to 2 previous errors

error: Could not compile `rayon`.
Build failed, waiting for other jobs to finish...
error: build failed
@trishume
Copy link
Owner

trishume commented Mar 18, 2017

Again, not a bug in this crate, and not one I can help you with.

This looks like it is probably due to you having a different version than that version of rayon requires, or it just doesn't build on Windows for some reason. I have no idea.

@trishume trishume changed the title error[E0277]: the trait bound Self: std::marker::Sized is not satisfied rayon doesn't build on Windows with some version. Mar 18, 2017
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