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

Won't build #32

Closed
aggalex opened this issue Jul 10, 2020 · 2 comments
Closed

Won't build #32

aggalex opened this issue Jul 10, 2020 · 2 comments

Comments

@aggalex
Copy link

aggalex commented Jul 10, 2020

   Compiling llvm-alt v0.5.0
error[E0308]: mismatched types
   --> /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/llvm-alt-0.5.0/src/engine.rs:154:109
    |
154 |             let result = engine::LLVMCreateMCJITCompilerForModule(&mut ee, (&*module).into(), &mut options, size, &mut out);
    |                                                                                                             ^^^^ expected `u64`, found `usize`
    |
help: you can convert an `usize` to `u64` and panic if the converted value wouldn't fit
    |
154 |             let result = engine::LLVMCreateMCJITCompilerForModule(&mut ee, (&*module).into(), &mut options, size.try_into().unwrap(), &mut out);
    |                                                                                                             ^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.
error: could not compile `llvm-alt`.
@aggalex
Copy link
Author

aggalex commented Jul 11, 2020

Apparently the git repo works instead. Update crates.io please

@aggalex
Copy link
Author

aggalex commented Jul 11, 2020

This is the same with #18

@aggalex aggalex closed this as completed Jul 11, 2020
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

1 participant