Index | Thread | Search

From:
Stuart Henderson <stu@spacehopper.org>
Subject:
pipewire/helvum build fails on i386
To:
Antoine Jacoutot <ajacoutot@bsdfrog.org>
Cc:
ports <ports@openbsd.org>
Date:
Tue, 9 Jan 2024 10:59:43 +0000

Download raw body.

Thread
helvum doesn't build on i386, error below, full log attached.

It did build in my 20231116 bulk (0.3.84), I think this was probably
introduced with the 0.3.85 update, but every bulk of mine since then
missed this due to the problem with the ld.lld !exists check - gcc
failing knocked out graphviz and so anything depending on doxygen).

error[E0308]: mismatched types
   --> /pobj/helvum-0.5.1/helvum-0.5.1/modcargo-crates/libspa-0.7.2/src/pod/parser.rs:180:75
    |
180 |             let res = spa_sys::spa_pod_parser_get_long(self.as_raw_ptr(), long.as_mut_ptr());
    |                       --------------------------------                    ^^^^^^^^^^^^^^^^^ expected `*mut i64`, found `*mut i32`
    |                       |
    |                       arguments to this function are incorrect
    |
    = note: expected raw pointer `*mut i64`
               found raw pointer `*mut i32`
note: function defined here
   --> /pobj/helvum-0.5.1/helvum-0.5.1/modcargo-crates/libspa-sys-0.7.2/src/pod/parser.rs:61:12
    |
61  |     pub fn spa_pod_parser_get_long(parser: *mut spa_pod_parser, value: *mut i64) -> c_int;
    |            ^^^^^^^^^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0308`.
The following warnings were emitted during compilation:

warning: libspa@0.7.2: clang-16: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument]

error: could not compile `libspa` (lib) due to previous error