Missing lib dependencies: libc.so.6 and libm.so.6

I am trying to update our fish package to version 4.0.2 but at the end of the successful build, the build system is called out missing lib deps. I can find no package that provides these.

Package fish is missing dependencies for the following libraries:
libc.so.6
libm.so.6

Any thoughts are welcomed.

Libc (and likely also libm) is the default C library, musl or glibc, from the compilation toolchain. No declared dependency should be needed, as it is automatical. Practically all packages need libc.

Sounds like local toolchain problem.

1 Like

I think you're right... version 4 requires rust host package. Could that be issue? Cargo is pulling down stuff that isn't present in the cross compile?

FYI - I rebuilt my toolchain and get the same error. I also tried building with the external toolchain and got the same error.

EDIT: here is the build log if it helps.

CMake Warning at cmake/FindRust.cmake:719 (message):
  CMake is in cross-compiling mode, but the cargo target-triple could not be
  inferred.Falling back to the default host target.  Please consider manually
  setting `Rust_CARGO_TARGET`.

Not a rust specialist, but cmake complaining that it can't figure out the cross-compile target and falls back to compiling for the x86 host instead, is an obvious problem. (Naturally the host doesn't have musl available, and even if it was, the compiled binaries would as naturally not run in the actual target arch system (router) as they would be x86 binaries.)