GNU bug report logs - #56263
set-paths phase throws match-error "match" "no matching pattern" while cross-compiling a kernel module

Previous Next

Package: guix;

Reported by: Pavel Shlyak <p.shlyak <at> pantherx.org>

Date: Mon, 27 Jun 2022 18:06:01 UTC

Severity: normal

To reply to this bug, email your comments to 56263 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#56263; Package guix. (Mon, 27 Jun 2022 18:06:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Pavel Shlyak <p.shlyak <at> pantherx.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 27 Jun 2022 18:06:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Pavel Shlyak <p.shlyak <at> pantherx.org>
To: bug-guix <at> gnu.org
Subject: set-paths phase throws match-error "match" "no matching pattern"
 while cross-compiling a kernel module
Date: Mon, 27 Jun 2022 21:05:29 +0300
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:
https://git.pantherx.org/development/hardware/raspberry/-/blob/c9260f1720f63c409ef3ce88cefa677a21eb9e0b/reterminal.scm
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:
https://gist.github.com/shlyakpavel/b8b53e9bb4392cce1bba3c77c6d35d58



Information forwarded to bug-guix <at> gnu.org:
bug#56263; Package guix. (Mon, 27 Jun 2022 18:11:02 GMT) Full text and rfc822 format available.

Message #8 received at 56263 <at> debbugs.gnu.org (full text, mbox):

From: Pavel Shlyak <p.shlyak <at> pantherx.org>
To: 56263 <at> debbugs.gnu.org
Subject: Another reproducer
Date: Mon, 27 Jun 2022 21:10:30 +0300
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.



Information forwarded to bug-guix <at> gnu.org:
bug#56263; Package guix. (Wed, 10 Aug 2022 17:01:02 GMT) Full text and rfc822 format available.

Message #11 received at 56263 <at> debbugs.gnu.org (full text, mbox):

From: Pavel Shlyak <p.shlyak <at> pantherx.org>
To: 56263 <at> debbugs.gnu.org
Subject: set-paths phase throws match-error "match" "no matching pattern"
 while cross-compiling a kernel module
Date: Wed, 10 Aug 2022 20:00:00 +0300
I just checked, this one is still relevant as of b21d05d232ec0aba5abec20e83cc52c1d5163cc3



Information forwarded to bug-guix <at> gnu.org:
bug#56263; Package guix. (Wed, 10 Aug 2022 17:46:02 GMT) Full text and rfc822 format available.

Message #14 received at 56263 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: Pavel Shlyak <p.shlyak <at> pantherx.org>, 56263 <at> debbugs.gnu.org
Subject: Re: bug#56263: set-paths phase throws match-error "match" "no
 matching pattern" while cross-compiling a kernel module
Date: Wed, 10 Aug 2022 19:45:11 +0200
[Message part 1 (text/plain, inline)]
On 27-06-2022 20:05, Pavel Shlyak wrote:
> Error log here:
> https://gist.github.com/shlyakpavel/b8b53e9bb4392cce1bba3c77c6d35d58
>
I recommend a paste service such as paste.debian.net, it's doesn't have 
trackers or non-free javascript, and its implementation is apparently 
free software <https://paste.debian.net/paste.pl?show_template=about, 
unlike GitHub.

Greetings,
Maxime.

[OpenPGP_0x49E3EE22191725EE.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#56263; Package guix. (Wed, 10 Aug 2022 18:03:01 GMT) Full text and rfc822 format available.

Message #17 received at 56263 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: Pavel Shlyak <p.shlyak <at> pantherx.org>, 56263 <at> debbugs.gnu.org
Subject: Re: bug#56263: set-paths phase throws match-error "match" "no
 matching pattern" while cross-compiling a kernel module
Date: Wed, 10 Aug 2022 20:02:07 +0200
[Message part 1 (text/plain, inline)]
On 27-06-2022 20:05, Pavel Shlyak wrote:
> 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:
> https://git.pantherx.org/development/hardware/raspberry/-/blob/c9260f1720f63c409ef3ce88cefa677a21eb9e0b/reterminal.scm
> 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:
> https://gist.github.com/shlyakpavel/b8b53e9bb4392cce1bba3c77c6d35d58

linux-module-build-cross quotes stuff:

          (define %build-host-inputs
            '#+(input-tuples->gexp build-inputs))

but 'input-tuples->gexp' already returns something quoted, so its quoted 
twice.

Try removing the 'quote' (i.e., ').

No relation to file-append as far as I can tell.


In rpi-kernel.scm, you are copying stuff from linux.scm without 
preserving copyright lines or the license header and the GPL license 
text is also removed; please respect the GPL license.

In the README, you are writing GUIX, but the standard capitalisation is 
Guix (sometimes guix, but never GUIX outside things like environment 
variable names).

License headers are missing from teterminal.scm, I recommend being 
explicit (gpl3 is kind of implied, but do you mean gpl3-only or gpl3+?)

Greetings,
Maxime.

[OpenPGP_0x49E3EE22191725EE.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]

This bug report was last modified 1 year and 259 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.