Skip to content

musl-libc: jobserver: expected raw pointer *mut c_void, found type u64 #58

@jsarenik

Description

@jsarenik

I found it while trying to cargo build --locked on c86a143 (just happens to be the current HEAD for me).

~/src/hal$ cargo build --locked
   Compiling bitcoin v0.32.5
   Compiling jobserver v0.1.11
error[E0308]: mismatched types
    --> /home/nsm/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/jobserver-0.1.11/src/lib.rs:644:40
     |
644  | ...         libc::pthread_kill(self.thread.as_pthread_t(), libc::SIGUS...
     |             ------------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `*mut c_void`, found `u64`
     |             |
     |             arguments to this function are incorrect
     |
     = note: expected raw pointer `*mut c_void`
                       found type `u64`
note: function defined here
    --> /home/nsm/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.92/src/unix/linux_like/linux/mod.rs:3545:12
     |
3545 |     pub fn pthread_kill(thread: ::pthread_t, sig: ::c_int) -> ::c_int;
     |            ^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0308`.
error: could not compile `jobserver` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...

Versions:

$ rustc --version
rustc 1.85.1 (4eb161250 2025-03-15) (Alpine Linux 1.85.1-r0)
$ cargo --version
cargo 1.85.1 (d73d2caf9 2024-12-31)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions