mozilla / cubeb-rs

ISC License
61 stars 19 forks source link

when compiling firefox nightly: error[E0308]: mismatched types in ../third_party/rust/cubeb-backend/src/log.rs:71:22 #77

Closed stefson closed 1 year ago

stefson commented 1 year ago

I got this error when compiling firefox nightly:

16:04.32 error[E0308]: mismatched types
16:04.32   --> /var/tmp/portage/www-client/firefox-107.0/work/firefox-107.0/third_party/rust/cubeb-backend/src/log.rs:71:22
16:04.32    |
16:04.32 71 |         log_callback(buf.as_cstr().as_ptr());
16:04.32    |         ------------ ^^^^^^^^^^^^^^^^^^^^^^ expected `i8`, found `u8`
16:04.32    |         |
16:04.32    |         arguments to this function are incorrect
16:04.32    |
16:04.32    = note: expected raw pointer `*const i8`
16:04.32               found raw pointer `*const u8`
16:04.33 For more information about this error, try `rustc --explain E0308`.
16:04.34 error: could not compile `cubeb-backend` due to previous error
16:04.34 Caused by:
16:04.34   process didn't exit successfully: `CARGO=/usr/lib/rust/1.63.0/bin/cargo-1.63.0 CARGO_CRATE_NAME=cubeb_backend CARGO_MANIFEST_DIR=/var/tmp/portage/www-client/firefox-107.0/work/firefox-107.0/third_party/rust/cubeb-backend CARGO_PKG_AUTHORS='Dan Glastonbury <dglastonbury@mozilla.com>' CARGO_PKG_DESCRIPTION='Bindings to libcubeb internals to facilitate implementing cubeb backends in rust.

here is the full build log: build.log.gz

I will open a seperate bugzilla issue to track any progress, and link it back.

stefson commented 1 year ago

seems its aarch64 and armv7a affected so far: https://bugzilla.mozilla.org/show_bug.cgi?id=1793294

stefson commented 1 year ago

looks good to me on armv7a