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

v0.1.6 fails to build on nightly #75

Closed
mhristache opened this issue May 26, 2016 · 7 comments
Closed

v0.1.6 fails to build on nightly #75

mhristache opened this issue May 26, 2016 · 7 comments

Comments

@mhristache
Copy link

/Users/mX/.cargo/registry/src/github.com-1ecc6299db9ec823/crossbeam-0.1.6/src/sync/seg_queue.rs:34:29: 34:43 error: transmute called with differently sized types: [usize; 32] (2048 bits) to [std::sync::atomic::AtomicBool; 32] (256 bits) [E0512]
/Users/mX/.cargo/registry/src/github.com-1ecc6299db9ec823/crossbeam-0.1.6/src/sync/seg_queue.rs:34             ready: unsafe { mem::transmute([0usize; SEG_SIZE]) },
                                                                                                                               ^~~~~~~~~~~~~~
/Users/mX/.cargo/registry/src/github.com-1ecc6299db9ec823/crossbeam-0.1.6/src/sync/seg_queue.rs:34:29: 34:43 help: run `rustc --explain E0512` to see a detailed explanation
error: aborting due to previous error
Build failed, waiting for other jobs to finish...
error: Could not compile `crossbeam`.
$ rustc --version
rustc 1.10.0-nightly (267cde259 2016-05-25)
@mhristache
Copy link
Author

I guess same as rust-lang/rust#33724, which is caused by rust-lang/rust#33579

@mhristache mhristache changed the title Fails to build on nightly v0.1.6 fails to build on nightly May 26, 2016
@mhristache
Copy link
Author

I know v0.1.6 is a quite an old version but it's used by simple_parallel

@antoyo
Copy link

antoyo commented Aug 10, 2016

Now, it does not even work on stable rust (1.10).

@ghost
Copy link

ghost commented Jul 6, 2017

Is this still a problem that needs to be fixed?

@mhristache
Copy link
Author

I removed my dependency on simple_parallel so I have no idea if this is still an issue.

@antoyo
Copy link

antoyo commented Jul 6, 2017

I still get this error when running the simple_parallel example:

error[E0512]: transmute called with differently sized types: [usize; 32] (2048 bits) to [std::sync::atomic::AtomicBool; 32] (256 bits)
  --> ~/.cargo/registry/src/github.com-1ecc6299db9ec823/crossbeam-0.1.6/src/sync/seg_queue.rs:34:29
   |
34 |             ready: unsafe { mem::transmute([0usize; SEG_SIZE]) },
   |                             ^^^^^^^^^^^^^^ transmuting between 2048 bits and 256 bits

error: aborting due to previous error(s)

@ghost
Copy link

ghost commented Jul 6, 2017

The problem can be fixed by bumping the crossbeam dependency to version 0.2.x. There was an effort to do that here, but it seems like simple_parallel is totally abandoned and won't be maintained anymore. It's superseded by rayon anyway, which should be better in every way.

Crossbeam is going through a revamp right now. Version 0.1.x is really old and shouldn't be used, so I don't see a good motivation to patch it. For that reason I'm closing this issue, but if you'd really like to have this fixed, do let me know. :)

@ghost ghost closed this as completed Jul 6, 2017
exrook pushed a commit to exrook/crossbeam that referenced this issue Oct 7, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants