Skip to content

[profiling] ubuntu-latest for x86_64-unknown-linux-musl: cannot find function pthread_getname_np in crate libc #830

@BohuTANG

Description

@BohuTANG

(you don't have to strictly follow this form)

Describe the bug

error[E0425]: cannot find function `pthread_getname_np` in crate `libc`
Error:     --> /cargo/registry/src/github.com-1ecc6299db9ec823/pprof-0.4.3/src/profiler.rs:112:30
     |
112  |     let ret = unsafe { libc::pthread_getname_np(current_thread, name_ptr, MAX_THREAD_NAME) };
     |                              ^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `pthread_getattr_np`
     | 
    ::: /cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.95/src/unix/linux_like/mod.rs:1490:5
     |
1490 |     pub fn pthread_getattr_np(native: ::pthread_t, attr: *mut ::pthread_attr_t) -> ::c_int;
     |     --------------------------------------------------------------------------------------- similarly named function `pthread_getattr_np` defined here

error: aborting due to previous error
Error: aborting due to previous error
For more information about this error, try `rustc --explain E0425`.
error: could not compile `pprof`
Error: could not compile `pprof`

Reference:
tikv/pprof-rs#41

Metadata

Metadata

Assignees

Labels

C-bugCategory: something isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions