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

mem::transmute: Compile error on 32bit linux #44

Open
bklooste opened this issue Mar 12, 2016 · 2 comments
Open

mem::transmute: Compile error on 32bit linux #44

bklooste opened this issue Mar 12, 2016 · 2 comments

Comments

@bklooste
Copy link

cargo build
Compiling collenchyma-nn v0.3.4 (file:///home/ben/src/leaf/collenchyma-nn)
src/frameworks/cuda/helper.rs:5:8: 5:59 error: transmute called with differently sized types: u64 (64 bits) to *const libc::c_void (32 bits) [E0512]
src/frameworks/cuda/helper.rs:5 Ok(::std::mem::transmute::<u64, *const ::libc::c_void>(

src/frameworks/cuda/helper.rs:16:8: 16:57 error: transmute called with differently sized types: u64 (6

Was wondering why it passed on travis but that uses rustc 1.6.0

32 bit linux. Looks like its because pointer size differences.

@hobofan
Copy link
Member

hobofan commented Mar 12, 2016

Not sure if I am getting it correctly: You are trying to compile on a 32bit Linux with Rust 1.7?

@bklooste
Copy link
Author

I first thought its an issue with rust 1.7 but its obvious its a 32 bit pointer (32 bit linux) being transmuted to a u64.

@hobofan hobofan changed the title mem::transmute: Compile error with rust 1.7 stable mem::transmute: Compile error on 32bit linux Mar 15, 2016
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