Description
@alexcrichton : Still getting the same error :
error[E0308]: mismatched types
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.12/src/symbolize/libbacktrace.rs:156:60
|
156 | STATE = bt::backtrace_create_state(ptr::null(), 0, error_cb,
| ^^^^^^^^ expected enum std::os::raw::c_void, found enum libc::c_void
|
= note: expected type extern "C" fn(*mut std::os::raw::c_void, *const i8, i32)
found type extern "C" fn(*mut libc::c_void, *const i8, i32) {symbolize::libbacktrace::error_cb}
error[E0308]: mismatched types
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.12/src/symbolize/libbacktrace.rs:172:36
|
172 | pcinfo_cb, error_cb,
| ^^^^^^^^^ expected enum std::os::raw::c_void, found enum libc::c_void
|
= note: expected type extern "C" fn(*mut std::os::raw::c_void, usize, *const i8, i32, *const i8) -> i32
found type extern "C" fn(*mut libc::c_void, usize, *const i8, i32, *const i8) -> i32 {symbolize::libbacktrace::pcinfo_cb}
error[E0308]: mismatched types
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.12/src/symbolize/libbacktrace.rs:172:47
|
172 | pcinfo_cb, error_cb,
| ^^^^^^^^ expected enum std::os::raw::c_void, found enum libc::c_void
|
= note: expected type extern "C" fn(*mut std::os::raw::c_void, *const i8, i32)
found type extern "C" fn(*mut libc::c_void, *const i8, i32) {symbolize::libbacktrace::error_cb}
error[E0308]: mismatched types
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.12/src/symbolize/libbacktrace.rs:176:31
|
176 | syminfo_cb, error_cb,
| ^^^^^^^^^^ expected enum std::os::raw::c_void, found enum libc::c_void
|
= note: expected type extern "C" fn(*mut std::os::raw::c_void, usize, *const i8, usize, usize)
found type extern "C" fn(*mut libc::c_void, usize, *const i8, usize, usize) {symbolize::libbacktrace::syminfo_cb}
error[E0308]: mismatched types
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.12/src/symbolize/libbacktrace.rs:176:43
|
176 | syminfo_cb, error_cb,
| ^^^^^^^^ expected enum std::os::raw::c_void, found enum libc::c_void
|
= note: expected type extern "C" fn(*mut std::os::raw::c_void, *const i8, i32)
found type extern "C" fn(*mut libc::c_void, *const i8, i32) {symbolize::libbacktrace::error_cb}
error: aborting due to 5 previous errors
For more information about this error, try rustc --explain E0308.
error: Could not compile backtrace.
Could you please help me to fix this.
Activity
alexcrichton commentedon Dec 12, 2018
@harishbm34 can you provide some more contextual information? For example what version of rustc? Cargo.lock contents? An example of how to reproduce?
flaviut commentedon Dec 12, 2018
I have the same issue:
alexcrichton commentedon Dec 12, 2018
@flaviut ah the rustc version there is 1.26 which would need an update, can you update the version of rustc?
flaviut commentedon Dec 12, 2018
Opps, I guess it's been a while since I've updated my system.
I successfully compiled with 1.30 & 1.31. The build failed with 1.29.0.
alexcrichton commentedon Dec 12, 2018
Ok thanks @flaviut! Supporting older rustc versions is currently up at #137
harishbm34 commentedon Dec 13, 2018
@alexcrichton :
I am building the docker image for macOS Mojave and using rustc 1.31.0 version.
To replicate the error : Just clone our blockchain from here
Then type : make docker
Note : Make sure that, docker is installed and running.
At the end of the compilation, we will get the above errors.
paul-tcell commentedon Dec 13, 2018
@harishbm34
your container uses alpine 3.8. alpine 3.8 uses an old version of rust. You have to use the alpine apk edge repos to get a newer version and I think that's still at 1.30.
alexcrichton commentedon Dec 13, 2018
Ah thanks for the investigation @paul-tcell!
harishbm34 commentedon Dec 15, 2018
@alexcrichton @paul-tcell : Thanks a lot for your help👍