* bug#60786: cross-kernel-headers can produce broken packages
@ 2023-01-13 17:26 Maxim Cournoyer
2023-01-13 22:12 ` Maxim Cournoyer
0 siblings, 1 reply; 3+ messages in thread
From: Maxim Cournoyer @ 2023-01-13 17:26 UTC (permalink / raw)
To: 60786
Hello,
This issue was triggered by having make-uboot-package uses #:target [0],
but it already exists on current master. I've spent some time narrowing
down the issue, and it is caused by the package returned by
cross-kernel-headers in (gnu packages cross-base) being produced with a
bogus arguments field, or at least one that can't be access via the
package-arguments accessor:
--8<---------------cut here---------------start------------->8---
(use-modules (guix packages)
(gnu packages cross-base))
(define linux-libre-headers-cross-mips64el-linux-gnuabi64
(cross-kernel-headers "mips64el-linux-gnuabi64"))
(package-arguments linux-libre-headers-cross-mips64el-linux-gnuabi64)
ice-9/boot-9.scm:1685:16: In procedure raise-exception:
In procedure struct-vtable: Wrong type argument in position 1 (expecting struct): #f
Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue.
scheme@(guix-user) [1]> ,bt
In gnu/packages/cross-base.scm:
388:33 1 (loop (#:phases (modify-phases %standard-phases (delete (quote configure)) (# (…) …) …) …) …)
In ice-9/boot-9.scm:
1685:16 0 (raise-exception _ #:continuable? _)
--8<---------------cut here---------------end--------------->8---
[0] https://issues.guix.gnu.org/60224#30
--
Thanks,
Maxim
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#60786: cross-kernel-headers can produce broken packages
2023-01-13 17:26 bug#60786: cross-kernel-headers can produce broken packages Maxim Cournoyer
@ 2023-01-13 22:12 ` Maxim Cournoyer
2023-01-14 14:29 ` bug#60786: unsupported mips64el architecture can cause cryptic backtraces Ludovic Courtès
0 siblings, 1 reply; 3+ messages in thread
From: Maxim Cournoyer @ 2023-01-13 22:12 UTC (permalink / raw)
To: 60786
Hello,
Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:
> Hello,
>
> This issue was triggered by having make-uboot-package uses #:target [0],
> but it already exists on current master. I've spent some time narrowing
> down the issue, and it is caused by the package returned by
> cross-kernel-headers in (gnu packages cross-base) being produced with a
> bogus arguments field, or at least one that can't be access via the
> package-arguments accessor:
>
> (use-modules (guix packages)
> (gnu packages cross-base))
>
> (define linux-libre-headers-cross-mips64el-linux-gnuabi64
> (cross-kernel-headers "mips64el-linux-gnuabi64"))
>
> (package-arguments linux-libre-headers-cross-mips64el-linux-gnuabi64)
>
> ice-9/boot-9.scm:1685:16: In procedure raise-exception:
> In procedure struct-vtable: Wrong type argument in position 1 (expecting struct): #f
>
> Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue.
> scheme@(guix-user) [1]> ,bt
> In gnu/packages/cross-base.scm:
> 388:33 1 (loop (#:phases (modify-phases %standard-phases (delete (quote configure)) (# (…) …) …) …) …)
> In ice-9/boot-9.scm:
> 1685:16 0 (raise-exception _ #:continuable? _)
>
> [0] https://issues.guix.gnu.org/60224#30
OK, I think I've found the culprit:
--8<---------------cut here---------------start------------->8---
(setenv "ARCH" ,(platform-linux-architecture
(lookup-platform-by-target target)))
--8<---------------cut here---------------end--------------->8---
in the definition of cross-kernel-headers*, in (gnu packages
cross-base).
When the target is "mips64el-linux-gnuabi64", lookup-platform-by-target
returns #f, which platform-linux-architecture does not expect.
--
Thanks,
Maxim
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#60786: unsupported mips64el architecture can cause cryptic backtraces
2023-01-13 22:12 ` Maxim Cournoyer
@ 2023-01-14 14:29 ` Ludovic Courtès
0 siblings, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2023-01-14 14:29 UTC (permalink / raw)
To: Maxim Cournoyer; +Cc: 60786
Hi,
Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:
> Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:
[...]
>> This issue was triggered by having make-uboot-package uses #:target [0],
>> but it already exists on current master. I've spent some time narrowing
>> down the issue, and it is caused by the package returned by
>> cross-kernel-headers in (gnu packages cross-base) being produced with a
>> bogus arguments field, or at least one that can't be access via the
>> package-arguments accessor:
It’s not that the field cannot be accessed; the field is thunked, and
thus exceptions can be thrown when you access it, as you found out:
> OK, I think I've found the culprit:
>
> (setenv "ARCH" ,(platform-linux-architecture
> (lookup-platform-by-target target)))
Ludo’.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-01-14 14:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-13 17:26 bug#60786: cross-kernel-headers can produce broken packages Maxim Cournoyer
2023-01-13 22:12 ` Maxim Cournoyer
2023-01-14 14:29 ` bug#60786: unsupported mips64el architecture can cause cryptic backtraces Ludovic Courtès
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.