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

error[E0512]: transmute called with differently sized types: *const libc::c_void (32 bits) to lisp::LispMisc (64 bits) #45

Closed
mkesper opened this issue Jan 13, 2017 · 3 comments

Comments

@mkesper
Copy link

mkesper commented Jan 13, 2017

michael@Three:~/src/remacs/rust_src$ cargo build
Compiling lazy_static v0.2.2
Compiling libc v0.2.17
Compiling remacs v0.1.0 (file:///home/michael/src/remacs/rust_src)
error[E0512]: transmute called with differently sized types: *const libc::c_void (32 bits) to lisp::LispMisc (64 bits)
--> src/lisp.rs:465:14
|
465 | unsafe { mem::transmute(XUNTAG(a, LispType::Lisp_Misc)) }
| ^^^^^^^^^^^^^^ transmuting between 32 bits and 64 bits

error[E0512]: transmute called with differently sized types: lisp::LispMisc (64 bits) to *const lisp::LispMiscAny (32 bits)
--> src/lisp.rs:471:14
|
471 | unsafe { mem::transmute(XMISC(a)) }
| ^^^^^^^^^^^^^^ transmuting between 64 bits and 32 bits

error[E0512]: transmute called with differently sized types: lisp::LispMisc (64 bits) to *const marker::LispMarker (32 bits)
--> src/lisp.rs:500:14
|
500 | unsafe { mem::transmute(XMISC(a)) }
| ^^^^^^^^^^^^^^ transmuting between 64 bits and 32 bits

error: aborting due to 3 previous errors

error: Could not compile remacs.

@mkesper
Copy link
Author

mkesper commented Jan 13, 2017

rustc 0.14, Linux Three 4.8.0-0.bpo.2-686-pae #1 SMP Debian 4.8.11-1~bpo8+1 (2016-12-14) i686 GNU/Linux

@jeandudey
Copy link
Contributor

#31 and #35 Solves this issue.

@Wilfred
Copy link
Collaborator

Wilfred commented Jan 14, 2017

Both of which have been merged, so this should be fixed! 🎉

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

3 participants