-
Notifications
You must be signed in to change notification settings - Fork 259
Closed
Labels
Description
While yakshaving towards building a new dependency of one of my projects (the proteaaudio Haskell library), I am stuck at this:
Somehow, kmod is an indirect dependency of what I need:
┃ │ ┌─ ⚠︎ kmod-x86_64-unknown-linux-musl-30 failed with exit code 2 after ⏱︎ 11s in buildP…
┃ │ ┌─ ⏳︎ systemd-minimal-x86_64-unknown-linux-musl-253.3
┃ │ ┌─ ⏳︎ dbus-x86_64-unknown-linux-musl-1.14.6
┃ ├─ ⏳︎ libpulseaudio-x86_64-unknown-linux-musl-16.1
┃ ⏳︎ proteaaudio-x86_64-unknown-linux-musl-0.9.4
On haskell.nix (revision 8cb7c5c), this shows the failures:
$ nix-build -A pkgs-unstable.pkgsCross.musl64.kmod --extra-substituters https://tttool.cachix.org/\ https://cache.iog.io --extra-trusted-public-keys tttool.cachix.org-1:e/5HpIa6ZqwatH07kmO7di1p9K+AMrgkNHl/OGUUMzU=\ hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
…
kmod> CCLD libkmod/libkmod-internal.la
kmod> CCLD tools/kmod
kmod> /nix/store/kbhvb5y763zm2xskz94j176qv2dvbv58-x86_64-unknown-linux-musl-binutils-2.40/bin/x86_64-unknown-linux-musl-ld: libkmod/.libs/libkmod-internal.a(libkmod-file.o): in function `xz_uncompress':
kmod> /build/source/libkmod/libkmod-file.c:253: undefined reference to `lzma_code'
kmod> /nix/store/kbhvb5y763zm2xskz94j176qv2dvbv58-x86_64-unknown-linux-musl-binutils-2.40/bin/x86_64-unknown-linux-musl-ld: libkmod/.libs/libkmod-internal.a(libkmod-file.o): in function `load_xz':
kmod> /build/source/libkmod/libkmod-file.c:290: undefined reference to `lzma_stream_decoder'
kmod> /nix/store/kbhvb5y763zm2xskz94j176qv2dvbv58-x86_64-unknown-linux-musl-binutils-2.40/bin/x86_64-unknown-linux-musl-ld: /build/source/libkmod/libkmod-file.c:299: undefined reference to `lzma_end'
kmod> collect2: error: ld returned 1 exit status
kmod> make[2]: *** [Makefile:1688: tools/kmod] Error 1
kmod> make[1]: *** [Makefile:2194: all-recursive] Error 1
kmod> make: *** [Makefile:1243: all] Error 2
But if I switch to nixpkgs at the currently pinned version corresponding to pkgs-unstable, namely f2f1ec390714d303cf84ba086e34e45b450dd8c4, then
$ nix-build -A pkgsCross.musl64.kmod --extra-substituters https://tttool.cachix.org/\ https://cache.iog.io --extra-trusted-public-keys tttool.cachix.org-1:e/5HpIa6ZqwatH07kmO7di1p9K+AMrgkNHl/OGUUMzU=\ hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
works just fine.
So it seems that some adjustment overlays/ breaks this build? Wasn’t able to find the culpit yet, though.