Build fail on aarch64
Debian bookworm, RPi 4.
error[E0308]: mismatched types
--> babl/src/component.rs:8:58
|
8 | unsafe { Self::from_raw_full(ffi::babl_component(name.as_ptr() as *const i8)) }
| ------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `*const u8`, found `*const i8`
| |
| arguments to this function are incorrect
|
= note: expected raw pointer `*const u8`
found raw pointer `*const i8`
note: function defined here
--> /home/hub/source/gegl-rs/babl/sys/src/lib.rs:146:12
|
146 | pub fn babl_component(name: *const c_char) -> *const Babl;
| ^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> babl/src/format.rs:15:55
|
15 | unsafe { Self::from_raw_full(ffi::babl_format(encoding.as_ptr() as *const i8)) }
| ---------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `*const u8`, found `*const i8`
| |
| arguments to this function are incorrect
|
= note: expected raw pointer `*const u8`
found raw pointer `*const i8`
note: function defined here
--> /home/hub/source/gegl-rs/babl/sys/src/lib.rs:170:12
|
170 | pub fn babl_format(encoding: *const c_char) -> *const Babl;
| ^^^^^^^^^^^
error[E0308]: mismatched types
--> babl/src/format.rs:23:17
|
22 | Self::from_raw_full(ffi::babl_format_with_space(
| --------------------------- arguments to this function are incorrect
23 | encoding.as_ptr() as *const i8,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `*const u8`, found `*const i8`
|
= note: expected raw pointer `*const u8`
found raw pointer `*const i8`
note: function defined here
--> /home/hub/source/gegl-rs/babl/sys/src/lib.rs:171:12
|
171 | pub fn babl_format_with_space(encoding: *const c_char, space: *const Babl) -> *const Babl;
| ^^^^^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> babl/src/format.rs:32:42
|
32 | unsafe { ffi::babl_format_exists(format_name.as_ptr() as *const i8) == 1 }
| ----------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `*const u8`, found `*const i8`
| |
| arguments to this function are incorrect
|
= note: expected raw pointer `*const u8`
found raw pointer `*const i8`
note: function defined here
--> /home/hub/source/gegl-rs/babl/sys/src/lib.rs:172:12
|
172 | pub fn babl_format_exists(name: *const c_char) -> c_int;
| ^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> babl/src/model.rs:10:17
|
9 | Self::from_raw_full(ffi::babl_model_with_space(
| -------------------------- arguments to this function are incorrect
10 | name.as_ptr() as *const i8,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `*const u8`, found `*const i8`
|
= note: expected raw pointer `*const u8`
found raw pointer `*const i8`
note: function defined here
--> /home/hub/source/gegl-rs/babl/sys/src/lib.rs:152:12
|
152 | pub fn babl_model_with_space(name: *const c_char, space: *const Babl) -> *const Babl;
| ^^^^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> babl/src/model.rs:18:54
|
18 | unsafe { Self::from_raw_full(ffi::babl_model(name.as_ptr() as *const i8)) }
| --------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `*const u8`, found `*const i8`
| |
| arguments to this function are incorrect
|
= note: expected raw pointer `*const u8`
found raw pointer `*const i8`
note: function defined here
--> /home/hub/source/gegl-rs/babl/sys/src/lib.rs:151:12
|
151 | pub fn babl_model(name: *const c_char) -> *const Babl;
| ^^^^^^^^^^
error[E0308]: mismatched types
--> babl/src/model.rs:30:45
|
30 | unsafe { ffi::babl_model_is(self.0, name.as_ptr() as *const i8) == 1 }
| ------------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `*const u8`, found `*const i8`
| |
| arguments to this function are incorrect
|
= note: expected raw pointer `*const u8`
found raw pointer `*const i8`
note: function defined here
--> /home/hub/source/gegl-rs/babl/sys/src/lib.rs:154:12
|
154 | pub fn babl_model_is(babl: *const Babl, model_name: *const c_char) -> c_int;
| ^^^^^^^^^^^^^
error[E0308]: mismatched types
--> babl/src/space.rs:8:54
|
8 | unsafe { Self::from_raw_full(ffi::babl_space(name.as_ptr() as *const i8)) }
| --------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `*const u8`, found `*const i8`
| |
| arguments to this function are incorrect
|
= note: expected raw pointer `*const u8`
found raw pointer `*const i8`
note: function defined here
--> /home/hub/source/gegl-rs/babl/sys/src/lib.rs:184:12
|
184 | pub fn babl_space(name: *const c_char) -> *const Babl;
| ^^^^^^^^^^
error[E0308]: arguments to this function are incorrect
--> babl/src/space.rs:16:25
|
16 | let space = ffi::babl_space_from_icc(
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
note: expected `*const u8`, found `*const i8`
--> babl/src/space.rs:17:17
|
17 | icc_data.as_ptr() as *const i8,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: expected raw pointer `*const u8`
found raw pointer `*const i8`
note: expected `*mut *const u8`, found `*mut *const i8`
--> babl/src/space.rs:20:17
|
20 | error.as_ptr() as *mut *const i8,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: expected raw pointer `*mut *const u8`
found raw pointer `*mut *const i8`
note: function defined here
--> /home/hub/source/gegl-rs/babl/sys/src/lib.rs:185:12
|
185 | pub fn babl_space_from_icc(
| ^^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> babl/src/space.rs:49:17
|
48 | Self::from_raw_full(ffi::babl_space_from_chromaticities(
| ----------------------------------- arguments to this function are incorrect
49 | name.as_ptr() as *const i8,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `*const u8`, found `*const i8`
|
= note: expected raw pointer `*const u8`
found raw pointer `*const i8`
note: function defined here
--> /home/hub/source/gegl-rs/babl/sys/src/lib.rs:198:12
|
198 | pub fn babl_space_from_chromaticities(
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> babl/src/space.rs:88:17
|
87 | Self::from_raw_full(ffi::babl_space_from_rgbxyz_matrix(
| ---------------------------------- arguments to this function are incorrect
88 | name.as_ptr() as *const i8,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `*const u8`, found `*const i8`
|
= note: expected raw pointer `*const u8`
found raw pointer `*const i8`
note: function defined here
--> /home/hub/source/gegl-rs/babl/sys/src/lib.rs:236:12
|
236 | pub fn babl_space_from_rgbxyz_matrix(
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> babl/src/trc.rs:8:52
|
8 | unsafe { Self::from_raw_full(ffi::babl_trc(name.as_ptr() as *const i8)) }
| ------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `*const u8`, found `*const i8`
| |
| arguments to this function are incorrect
|
= note: expected raw pointer `*const u8`
found raw pointer `*const i8`
note: function defined here
--> /home/hub/source/gegl-rs/babl/sys/src/lib.rs:179:12
|
179 | pub fn babl_trc(name: *const c_char) -> *const Babl;
| ^^^^^^^^
error[E0308]: mismatched types
--> babl/src/types.rs:8:53
|
8 | unsafe { Self::from_raw_full(ffi::babl_type(data_type.as_ptr() as *const i8)) }
| -------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `*const u8`, found `*const i8`
| |
| arguments to this function are incorrect
|
= note: expected raw pointer `*const u8`
found raw pointer `*const i8`
note: function defined here
--> /home/hub/source/gegl-rs/babl/sys/src/lib.rs:77:12
|
77 | pub fn babl_type(name: *const c_char) -> *const Babl;
| ^^^^^^^^^
For more information about this error, try `rustc --explain E0308`.