On Sat, 23 Oct 2021 at 22:07, Lucas Nussbaum <[email protected]> wrote:

> During a rebuild of all packages in sid, your package failed to build
> on amd64.
>
>
> Relevant part (hopefully):
> > /usr/bin/ld: bobuser.p/bobuser.c.o: in function `main':
> > ./b 52a78b9866/../test cases/failing build/2 hidden symbol/bobuser.c:4: 
> > undefined reference to `hidden_function'
> > collect2: error: ld returned 1 exit status

That is not the reason it failed. That is a test that verifies that
building a project with missing symbols fails and it is working as
expected.

The real reason is this one:

/usr/src/rustc-1.56.0//library/std/src/f64.rs:(.text._ZN3std3f6421_$LT$impl$u20$f64$GT$4lerp17h11b1be7b614aa463E+0x22):
undefined reference to `fma'
/usr/bin/ld: libstuff.a(std-80e93fdce0e07191.std.9561c7b1-cgu.6.rcgu.o):
in function `std::f32::<impl f32>::lerp':
/usr/src/rustc-1.56.0//library/std/src/f32.rs:(.text._ZN3std3f3221_$LT$impl$u20$f32$GT$4lerp17he122406d489ebe9dE+0x20):
undefined reference to `fmaf'

This is due to the fact that Rust changed something and now requires
-lm whereas earlier it did not. This has already been fixed in master
and will be in the next release that should hopefully come out
tomorrow.

Reply via email to