redismodule-rs icon indicating copy to clipboard operation
redismodule-rs copied to clipboard

Unable to build on arm64

Open robd003 opened this issue 1 year ago • 0 comments

#14 285.6 error[E0308]: mismatched types
#14 285.6    --> /root/.cargo/git/checkouts/redismodule-rs-db21e74d646195ef/c70081b/src/redismodule.rs:114:57
#14 285.6     |
#14 285.6 114 |             raw::RedisModule_CreateString.unwrap()(ctx, s.as_ptr() as *const i8, s.len())
#14 285.6     |             --------------------------------------      ^^^^^^^^^^^^^^^^^^^^^^^ expected `u8`, found `i8`
#14 285.6     |             |
#14 285.6     |             arguments to this function are incorrect
#14 285.6     |
#14 285.6     = note: expected raw pointer `*const u8`
#14 285.6                found raw pointer `*const i8`
#14 285.6 
#14 285.7 For more information about this error, try `rustc --explain E0308`.
#14 285.7 error: could not compile `redis-module` due to previous error
#14 285.7 warning: build failed, waiting for other jobs to finish...
------
executor failed running [/bin/sh -c $HOME/.cargo/bin/cargo build --release]: exit code: 101

robd003 avatar Jan 12 '23 19:01 robd003