Skip to content

Backtrace failed to compile on rust : 1.31.0 #141

Description

@harishbm34

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions