Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Fix wrong type on aarch64#234

Merged
tazz4843 merged 1 commit intotazz4843:masterfrom
ed10vi:arm-fix
Jul 17, 2025
Merged

Fix wrong type on aarch64#234
tazz4843 merged 1 commit intotazz4843:masterfrom
ed10vi:arm-fix

Conversation

@ed10vi
Copy link
Contributor

@ed10vi ed10vi commented Jul 4, 2025

Trying to build in a Raspberry Pi I get the following error:

error[E0308]: mismatched types
    --> /root/whisper-rs/src/vulkan.rs:33:69
     |
33   |                 ggml_backend_vk_get_device_description(id as c_int, tmp.as_mut_ptr(), tmp.len());
     |                 --------------------------------------              ^^^^^^^^^^^^^^^^ expected `*mut u8`, found `*mut i8`
     |                 |
     |                 arguments to this function are incorrect
     |
     = note: expected raw pointer `*mut u8`
                found raw pointer `*mut i8`
note: function defined here
    --> /root/whisper-tst/target/debug/build/whisper-rs-sys-fdc42e82b8d8a876/out/bindings.rs:5345:12
     |
5345 |     pub fn ggml_backend_vk_get_device_description(
     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
  --> /root/whisper-rs/src/vulkan.rs:39:42
   |
39 |                     name: CStr::from_ptr(tmp.as_ptr()).to_string_lossy().into_owned(),
   |                           -------------- ^^^^^^^^^^^^ expected `*const u8`, found `*const i8`
   |                           |
   |                           arguments to this function are incorrect
   |
   = note: expected raw pointer `*const u8`
              found raw pointer `*const i8`

See: remacs/remacs#1393

@tazz4843 tazz4843 merged commit a812820 into tazz4843:master Jul 17, 2025
13 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants