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

Example command fails with Deserialize error #27

Open
jonco3 opened this issue Jun 16, 2018 · 3 comments
Open

Example command fails with Deserialize error #27

jonco3 opened this issue Jun 16, 2018 · 3 comments

Comments

@jonco3
Copy link

jonco3 commented Jun 16, 2018

I tried running the example command in the README, but I got this:

~/projects/holyjit$ RUSTC_WRAPPER=$(pwd)/rustc.sh cargo run --example brainfuck
Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
Running target/debug/examples/brainfuck
Did not found JIT Code in the context.
Start compiling ...
bincode::ErrorKind = IoError: failed to fill whole buffer
JIT Compiler Error: Deserialize

@nbp nbp added this to the v0.1.0: Cranelift + LIR milestone Aug 18, 2018
@cztomsik
Copy link

Same here, I did cargo build --all-targets and then

  holyjit$ RUSTC_WRAPPER=$(pwd)/rustc.sh cargo run --example brainfuck --verbose
       Fresh unicode-xid v0.0.4
       Fresh byteorder v1.2.7
       Fresh lazy_static v0.2.11
       Fresh stable_deref_trait v1.1.1
       Fresh quote v0.3.15
       Fresh bitflags v0.9.1
       Fresh synom v0.11.3
       Fresh owning_ref v0.3.3
       Fresh serde v1.0.81
       Fresh num-traits v0.2.6
       Fresh syn v0.11.11
       Fresh libc v0.2.44
       Fresh dynasm v0.1.3
       Fresh num-traits v0.1.43
       Fresh serde_derive_internals v0.15.1
       Fresh memmap v0.5.2
       Fresh bincode v0.8.0
       Fresh serde_derive v1.0.12
       Fresh dynasmrt v0.1.3
       Fresh holyjit_lib v0.0.0 (file:///Users/cztomsik/Desktop/playground/holyjit/lib)
       Fresh holyjit_plugin v0.0.0 (file:///Users/cztomsik/Desktop/playground/holyjit/plugin)
       Fresh holyjit_pkg v0.0.0 (file:///Users/cztomsik/Desktop/playground/holyjit)
    Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
     Running `target/debug/examples/brainfuck`
Did not found JIT Code in the context.
Start compiling ...
bincode::ErrorKind = IoError: failed to fill whole buffer
JIT Compiler Error: Deserialize

cargo 0.26.0-nightly (1d6dfea44 2018-01-26)
rustc 1.25.0-nightly (27a046e93 2018-02-18)
OSX El Capitan

@nbp
Copy link
Owner

nbp commented Dec 30, 2018

Can you try again after adding this line back https://github.com/nbp/holyjit/blob/master/rustc.sh#L16

If this works, can you provide the output of uname -s and uname -o, such that I can add a condition around this line, and get this issue fixed.

@cztomsik
Copy link

cztomsik commented Jan 6, 2019

hey, it didn't help (same result)

uname -a
Darwin users-MacBook-Air.local 15.6.0 Darwin Kernel Version 15.6.0: Thu Jun 21 20:07:40 PDT 2018; root:xnu-3248.73.11~1/RELEASE_X86_64 x86_64
uname -o
uname: illegal option -- o
usage: uname [-amnprsv]

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