set-paths phase throws match-error "match" "no matching pattern" while cross-compiling a kernel module

OpenSubmitted by Pavel Shlyak.
Details
One participant
  • Pavel Shlyak
Owner
unassigned
Severity
normal
P
P
Pavel Shlyak wrote on 27 Jun 20:05 +0200
(address . bug-guix@gnu.org)
7DAC1F06-8B35-4677-B072-9E65FEF8EC59@pantherx.org
I don’t know the reason it happens. Maybe it’s somehow related to file-append hack that is used to set driver location in the repo. The other problem can be about
inputs or native-inputs being empty. Anyway, package definition looks fine to me and I suppose there’s a problem with set-paths phase.
Package definition:
Package ltr30x-linux-module builds successfully here with aarch64 host and it fails if I cross-compile it with x86_64 host
Error log here:
P
P
Pavel Shlyak wrote on 27 Jun 20:10 +0200
Another reproducer
(address . 56263@debbugs.gnu.org)
417E9A2B-6A16-4602-8573-8D7A51CE2155@pantherx.org
Another reproducer:
guix build librem-ec-acpi-linux-module --target=aarch64-linux-gnu
Fails with the same error. It doesn’t require external packages like the previous reproducer.
?