Building grub-image.png.drv fails with rsvg

  • Open
  • quality assurance status badge
Details
2 participants
  • Leo Famulari
  • Roman Scherer
Owner
unassigned
Submitted by
Roman Scherer
Severity
normal
R
R
Roman Scherer wrote 6 days ago
(address . bug-guix@gnu.org)
86bjwcs68x.fsf@burningswell.com
Hello Guix,

I can't reconfigure my (aarch64) system anymore. When building
/gnu/store/bpda8gfvxm6iv3mc6n8sf3ydxc5b6zi9-grub-image.png.drv I see the following backtrace:

```
building /gnu/store/bpda8gfvxm6iv3mc6n8sf3ydxc5b6zi9-grub-image.png.drv...
Backtrace:
2 (primitive-load "/gnu/store/3rcg4ann6607iqsh1aj84cqdnw8?")
In gnu/build/svg.scm:
53:6 1 (svg->png "/gnu/store/41841pid2mmsvar44vy9xafsrf3cyb9i?" ?)
In unknown file:
0 (rsvg-handle-render-cairo #<rsvg-handle fffff770ae60> #)

ERROR: In procedure rsvg-handle-render-cairo:
Wrong type (expecting finalized smob): #<cairo-context fffff770ad90>
builder for `/gnu/store/bpda8gfvxm6iv3mc6n8sf3ydxc5b6zi9-grub-image.png.drv' failed with exit code 1
build of /gnu/store/bpda8gfvxm6iv3mc6n8sf3ydxc5b6zi9-grub-image.png.drv failed
View build log at '/var/log/guix/drvs/bp/da8gfvxm6iv3mc6n8sf3ydxc5b6zi9-grub-image.png.drv.gz'.
applying 4 grafts for asahi-scripts-20240623 ...
cannot build derivation `/gnu/store/mnavmxm513zwy16m1lyz2yppdgjbam3l-grub.cfg.drv': 1 dependencies couldn't be built
guix system: error: build of `/gnu/store/mnavmxm513zwy16m1lyz2yppdgjbam3l-grub.cfg.drv' failed
```

Any ideas how to fix this?
-----BEGIN PGP SIGNATURE-----

iQFTBAEBCAA9FiEE0iajOdjfRIFd3gygPdpSUn0qwZkFAmeDkl4fHHJvbWFuLnNj
aGVyZXJAYnVybmluZ3N3ZWxsLmNvbQAKCRA92lJSfSrBmQgcB/474csTCqGn8JEQ
Q6AtPYYLZA6CbAAA8C6fm677GH6lSxflZKEqlLSeLb18vSUW8y+zb11aYMNLBFtn
BI5Uia60rsRk8GGs7LetsuewjYknrdZLnNYc4Ebq70WTDGvrZK8mlqvmrXVNkgAT
+GVJGVb/cJmYUHJZAkunzMMPuiCBRScvOUSwzDhZEQeY3tcfirkkz7irlzNIrwUi
FeSd3XEo1hQaLLSJQL72BYZSdCiDMvWf7c/6iJ2JvHeMxWJsfx4M2AoX9+w2hCog
hZcICibESOuu0ENAhHprgHayZGfkBQjM1CcpyNbbLqny5UMh54PhG8W1sRrLB2TT
AQEeruve
=426t
-----END PGP SIGNATURE-----

L
L
Leo Famulari wrote 5 days ago
(name . Roman Scherer)(address . roman.scherer@burningswell.com)(address . 75510@debbugs.gnu.org)
Z4QmT1tGJj5hhvPu@jasmine.lan
On Sun, Jan 12, 2025 at 10:58:54AM +0100, Roman Scherer wrote:
Toggle quote (4 lines)
>
> I can't reconfigure my (aarch64) system anymore. When building
> /gnu/store/bpda8gfvxm6iv3mc6n8sf3ydxc5b6zi9-grub-image.png.drv I see the following backtrace:

[...]

Toggle quote (2 lines)
> View build log at '/var/log/guix/drvs/bp/da8gfvxm6iv3mc6n8sf3ydxc5b6zi9-grub-image.png.drv.gz'.

Can you share this log?
R
R
Roman Scherer wrote 5 days ago
(name . Leo Famulari)(address . leo@famulari.name)(address . 75510@debbugs.gnu.org)
865xmj8ywa.fsf@burningswell.com
Leo Famulari <leo@famulari.name> writes:

Hi Leo,

the log only contains the backtrace from my previous mail, it is this:

-----------------------------------------------------------------------------
Backtrace:
2 (primitive-load "/gnu/store/3rcg4ann6607iqsh1aj84cqdnw8?")
In gnu/build/svg.scm:
53:6 1 (svg->png "/gnu/store/41841pid2mmsvar44vy9xafsrf3cyb9i?" ?)
In unknown file:
0 (rsvg-handle-render-cairo #<rsvg-handle fffff770ae60> #)

ERROR: In procedure rsvg-handle-render-cairo:
Wrong type (expecting finalized smob): #<cairo-context fffff770ad90>
-----------------------------------------------------------------------------

Roman

Toggle quote (10 lines)
> On Sun, Jan 12, 2025 at 10:58:54AM +0100, Roman Scherer wrote:
>>
>> I can't reconfigure my (aarch64) system anymore. When building
>> /gnu/store/bpda8gfvxm6iv3mc6n8sf3ydxc5b6zi9-grub-image.png.drv I see the following backtrace:
>
> [...]
>
>> View build log at '/var/log/guix/drvs/bp/da8gfvxm6iv3mc6n8sf3ydxc5b6zi9-grub-image.png.drv.gz'.
>
> Can you share this log?
-----BEGIN PGP SIGNATURE-----

iQFTBAEBCAA9FiEE0iajOdjfRIFd3gygPdpSUn0qwZkFAmeEPlUfHHJvbWFuLnNj
aGVyZXJAYnVybmluZ3N3ZWxsLmNvbQAKCRA92lJSfSrBmZJ8B/9Z1Ua5YeNsZmbe
k4UhvZ61iBiKQ2FQkDDd/PWMuJCPRjhclfxbm40gtpGgX1ozyLp4DhWBzaikV7Cu
jAacOPiv46aY+gQsUJoWBakpghLjxXp4aH2Bm6tX7wATXtqgZ7cw/zV2gYIrhftt
KBBCcV6PiezB0D1uenzvlmoxG5HLI36M9JngIVcXImjk9iUwTIDyVu18gbabsPbd
3wbP2yYSLsYjm1p3M7DEiFD2Y1m23xfPYC0QAWikog9MkZijpsCoE+Y2Frl6YubQ
UC9sdxcS7ZVihf8oWGRwVD0Id1jh/4SfLh5vk/U3zcjEizW1mtMvGqtZUJXUDjSp
6PXI5aeh
=Vzo1
-----END PGP SIGNATURE-----

L
L
Leo Famulari wrote 5 days ago
(name . Roman Scherer)(address . roman.scherer@burningswell.com)(address . 75510@debbugs.gnu.org)
Z4SGazuOKCWp6Z61@jasmine.lan
On Sun, Jan 12, 2025 at 03:30:07PM -0500, Leo Famulari wrote:
Toggle quote (11 lines)
> On Sun, Jan 12, 2025 at 10:58:54AM +0100, Roman Scherer wrote:
> >
> > I can't reconfigure my (aarch64) system anymore. When building
> > /gnu/store/bpda8gfvxm6iv3mc6n8sf3ydxc5b6zi9-grub-image.png.drv I see the following backtrace:
>
> [...]
>
> > View build log at '/var/log/guix/drvs/bp/da8gfvxm6iv3mc6n8sf3ydxc5b6zi9-grub-image.png.drv.gz'.
>
> Can you share this log?

Okay, thanks.

Also, from the environment where you try to reconfigure, can you also
share the results of `guix describe`?

What I mean by that is, for example, if you log in to the root account
to reconfigure, run `guix describe` from there.

Another example: if you do `sudo -i guix system reconfigure [...]`, run
`sudo -i guix describe`.

Does that make sense?
R
R
Roman Scherer wrote 5 days ago
(name . Leo Famulari)(address . leo@famulari.name)(address . 75510@debbugs.gnu.org)
86zfjv6prg.fsf@burningswell.com
Hi Leo,

here is the `guix desribe` run as my normal user account.

```
[roman@m1 guix-home]$ guix describe
Generation 305 Jan 12 2025 09:17:24 (current)
asahi 2a6f8b5
branch: main
commit: 2a6f8b59d97a3451639f128ff1c53d9009897e45
guix 5d6c876
branch: master
commit: 5d6c8767f67885bc9b2c8f18ab1f667d0065346b
nonguix 565d287
branch: master
commit: 565d287b7502ef9435b2fba38622d0a8f458677b
r0man-guix 9bb5571
branch: main
commit: 9bb55710a8dc61a23c6cc4e8d2bcdc9503008492
```

As this user I usually run the following command to reconfigure my
system.

```
sudo guix system reconfigure -L modules modules/r0man/guix/system/m1.scm
-v 5
```

I don't use the -i flag when reconfiguring. Is that problematic?

So here's the guix describe I usually get when I'm reconfiguring my
system:

[roman@m1 guix-home]$ sudo guix describe
asahi 2a6f8b5
branch: main
commit: 2a6f8b59d97a3451639f128ff1c53d9009897e45
guix 5d6c876
branch: master
commit: 5d6c8767f67885bc9b2c8f18ab1f667d0065346b
nonguix 565d287
branch: master
commit: 565d287b7502ef9435b2fba38622d0a8f458677b
r0man-guix 9bb5571
branch: main
commit: 9bb55710a8dc61a23c6cc4e8d2bcdc9503008492

And this is the "guix describe" with the -i flag:

[roman@m1 guix-home]$ sudo -i guix describe
guix 121e96d
branch: master
commit: 121e96dca273ab407df11725da0026ee34abdf79

Reconfiguring with the -i flag does not work, because I'm missing some
modules from the channels that aren't listed there.

I'm also linking my config, just in case:


Thanks for your help, Roman.

Leo Famulari <leo@famulari.name> writes:

Toggle quote (24 lines)
> On Sun, Jan 12, 2025 at 03:30:07PM -0500, Leo Famulari wrote:
>> On Sun, Jan 12, 2025 at 10:58:54AM +0100, Roman Scherer wrote:
>> >
>> > I can't reconfigure my (aarch64) system anymore. When building
>> > /gnu/store/bpda8gfvxm6iv3mc6n8sf3ydxc5b6zi9-grub-image.png.drv I see the following backtrace:
>>
>> [...]
>>
>> > View build log at '/var/log/guix/drvs/bp/da8gfvxm6iv3mc6n8sf3ydxc5b6zi9-grub-image.png.drv.gz'.
>>
>> Can you share this log?
>
> Okay, thanks.
>
> Also, from the environment where you try to reconfigure, can you also
> share the results of `guix describe`?
>
> What I mean by that is, for example, if you log in to the root account
> to reconfigure, run `guix describe` from there.
>
> Another example: if you do `sudo -i guix system reconfigure [...]`, run
> `sudo -i guix describe`.
>
> Does that make sense?
-----BEGIN PGP SIGNATURE-----

iQFTBAEBCAA9FiEE0iajOdjfRIFd3gygPdpSUn0qwZkFAmeE2RMfHHJvbWFuLnNj
aGVyZXJAYnVybmluZ3N3ZWxsLmNvbQAKCRA92lJSfSrBmQK/B/9/JcAVwlS5pxtR
si1OmkYPO7Ax8ywdaVFWnm6iKzNuVGrmA/89OzqDJOv7lJjyJYrz59TVQGrqPkhs
S4k2zks9iZVDic+Bif1votyB3olR7IiCxdXWQ0XS42si6ESxuNI1HalIGq3/imn7
PDzoVrD6UYtMprRmb+HfQM/dPNBxkHyNDR4dyLAbcIbLmytNVLPRLGodyJVPL7jW
1WPYyppPctSBSkiehTUB6yJhHVsDoeiPR87sH6Ft4tUb3pN2PqB5DhdTxd2cFmiJ
NmXgTwx5Hg+ClqR7TwbIFBASiOgp8uhIaKVUCpqGIByh6vzLAbP8lmpL+TzLbexK
tYILZXck
=U9Mp
-----END PGP SIGNATURE-----

R
R
Roman Scherer wrote 36 hours ago
(name . Leo Famulari)(address . leo@famulari.name)(address . 75510@debbugs.gnu.org)
86ed12vesy.fsf@burningswell.com
Roman Scherer <roman.scherer@burningswell.com> writes:

So, it looks like this issue might be related to:


I reconfigured my system now with --no-grafts, and this time it worked.

Toggle quote (101 lines)
> <#secure method=pgpmime mode=sign>
>
> Hi Leo,
>
> here is the `guix desribe` run as my normal user account.
>
> ```
> [roman@m1 guix-home]$ guix describe
> Generation 305 Jan 12 2025 09:17:24 (current)
> asahi 2a6f8b5
> repository URL: https://github.com/asahi-guix/channel
> branch: main
> commit: 2a6f8b59d97a3451639f128ff1c53d9009897e45
> guix 5d6c876
> repository URL: https://git.savannah.gnu.org/git/guix.git
> branch: master
> commit: 5d6c8767f67885bc9b2c8f18ab1f667d0065346b
> nonguix 565d287
> repository URL: https://gitlab.com/nonguix/nonguix
> branch: master
> commit: 565d287b7502ef9435b2fba38622d0a8f458677b
> r0man-guix 9bb5571
> repository URL: https://github.com/r0man/guix-channel
> branch: main
> commit: 9bb55710a8dc61a23c6cc4e8d2bcdc9503008492
> ```
>
> As this user I usually run the following command to reconfigure my
> system.
>
> ```
> sudo guix system reconfigure -L modules modules/r0man/guix/system/m1.scm
> -v 5
> ```
>
> I don't use the -i flag when reconfiguring. Is that problematic?
>
> So here's the guix describe I usually get when I'm reconfiguring my
> system:
>
> [roman@m1 guix-home]$ sudo guix describe
> asahi 2a6f8b5
> repository URL: https://github.com/asahi-guix/channel
> branch: main
> commit: 2a6f8b59d97a3451639f128ff1c53d9009897e45
> guix 5d6c876
> repository URL: https://git.savannah.gnu.org/git/guix.git
> branch: master
> commit: 5d6c8767f67885bc9b2c8f18ab1f667d0065346b
> nonguix 565d287
> repository URL: https://gitlab.com/nonguix/nonguix
> branch: master
> commit: 565d287b7502ef9435b2fba38622d0a8f458677b
> r0man-guix 9bb5571
> repository URL: https://github.com/r0man/guix-channel
> branch: main
> commit: 9bb55710a8dc61a23c6cc4e8d2bcdc9503008492
>
> And this is the "guix describe" with the -i flag:
>
> [roman@m1 guix-home]$ sudo -i guix describe
> guix 121e96d
> repository URL: https://git.savannah.gnu.org/git/guix.git
> branch: master
> commit: 121e96dca273ab407df11725da0026ee34abdf79
>
> Reconfiguring with the -i flag does not work, because I'm missing some
> modules from the channels that aren't listed there.
>
> I'm also linking my config, just in case:
>
> https://github.com/r0man/guix-home/blob/main/modules/r0man/guix/system/m1.scm
>
> Thanks for your help, Roman.
>
> Leo Famulari <leo@famulari.name> writes:
>
>> On Sun, Jan 12, 2025 at 03:30:07PM -0500, Leo Famulari wrote:
>>> On Sun, Jan 12, 2025 at 10:58:54AM +0100, Roman Scherer wrote:
>>> >
>>> > I can't reconfigure my (aarch64) system anymore. When building
>>> > /gnu/store/bpda8gfvxm6iv3mc6n8sf3ydxc5b6zi9-grub-image.png.drv I see the following backtrace:
>>>
>>> [...]
>>>
>>> > View build log at '/var/log/guix/drvs/bp/da8gfvxm6iv3mc6n8sf3ydxc5b6zi9-grub-image.png.drv.gz'.
>>>
>>> Can you share this log?
>>
>> Okay, thanks.
>>
>> Also, from the environment where you try to reconfigure, can you also
>> share the results of `guix describe`?
>>
>> What I mean by that is, for example, if you log in to the root account
>> to reconfigure, run `guix describe` from there.
>>
>> Another example: if you do `sudo -i guix system reconfigure [...]`, run
>> `sudo -i guix describe`.
>>
>> Does that make sense?
-----BEGIN PGP SIGNATURE-----

iQFTBAEBCAA9FiEE0iajOdjfRIFd3gygPdpSUn0qwZkFAmeJRE8fHHJvbWFuLnNj
aGVyZXJAYnVybmluZ3N3ZWxsLmNvbQAKCRA92lJSfSrBmV4SCAC1iVcDVzTk2ucw
d98W2IGg7l311dP5T/W4dRaxYaOtyXJU2XytJhpBu76VUbVnbQfyzduZJbcRt4Zu
/8mX7mQlhPSmD+J3IBKyA/fEBrbQMH2cmVOy46begc/PNH0u3dbgKIe0MsxkEPhe
eYerBCoq/zEJERoZkrNoK5GjJWVr2AeQPyThRs0b3vww2m3d8LviadiaZ9dRrcIV
0VRanDxeAWuorb8WQgFdxW9TtU0CYl6Ea+ju1jjZV9DipEKbFB8QKnj/c8MAXPXJ
L+5ZgtJ+vRkL4LUs7tHLwVg1eWKC9DkowTi/EcveHbPL/024NgNQEjdphVM3Vsry
l/SFiUqn
=BOLs
-----END PGP SIGNATURE-----

R
R
Roman Scherer wrote 15 hours ago
(name . Leo Famulari)(address . leo@famulari.name)(address . 75510@debbugs.gnu.org)
861px1jy3f.fsf@burningswell.com
Roman Scherer <roman.scherer@burningswell.com> writes:

Hmm, but it looks I'm now stuck using --no-grafts all the time. Any
ideas how to solve that?

Toggle quote (110 lines)
> Roman Scherer <roman.scherer@burningswell.com> writes:
>
> So, it looks like this issue might be related to:
>
> - https://issues.guix.gnu.org/47853
> - https://issues.guix.gnu.org/47115
>
> I reconfigured my system now with --no-grafts, and this time it worked.
>
>> <#secure method=pgpmime mode=sign>
>>
>> Hi Leo,
>>
>> here is the `guix desribe` run as my normal user account.
>>
>> ```
>> [roman@m1 guix-home]$ guix describe
>> Generation 305 Jan 12 2025 09:17:24 (current)
>> asahi 2a6f8b5
>> repository URL: https://github.com/asahi-guix/channel
>> branch: main
>> commit: 2a6f8b59d97a3451639f128ff1c53d9009897e45
>> guix 5d6c876
>> repository URL: https://git.savannah.gnu.org/git/guix.git
>> branch: master
>> commit: 5d6c8767f67885bc9b2c8f18ab1f667d0065346b
>> nonguix 565d287
>> repository URL: https://gitlab.com/nonguix/nonguix
>> branch: master
>> commit: 565d287b7502ef9435b2fba38622d0a8f458677b
>> r0man-guix 9bb5571
>> repository URL: https://github.com/r0man/guix-channel
>> branch: main
>> commit: 9bb55710a8dc61a23c6cc4e8d2bcdc9503008492
>> ```
>>
>> As this user I usually run the following command to reconfigure my
>> system.
>>
>> ```
>> sudo guix system reconfigure -L modules modules/r0man/guix/system/m1.scm
>> -v 5
>> ```
>>
>> I don't use the -i flag when reconfiguring. Is that problematic?
>>
>> So here's the guix describe I usually get when I'm reconfiguring my
>> system:
>>
>> [roman@m1 guix-home]$ sudo guix describe
>> asahi 2a6f8b5
>> repository URL: https://github.com/asahi-guix/channel
>> branch: main
>> commit: 2a6f8b59d97a3451639f128ff1c53d9009897e45
>> guix 5d6c876
>> repository URL: https://git.savannah.gnu.org/git/guix.git
>> branch: master
>> commit: 5d6c8767f67885bc9b2c8f18ab1f667d0065346b
>> nonguix 565d287
>> repository URL: https://gitlab.com/nonguix/nonguix
>> branch: master
>> commit: 565d287b7502ef9435b2fba38622d0a8f458677b
>> r0man-guix 9bb5571
>> repository URL: https://github.com/r0man/guix-channel
>> branch: main
>> commit: 9bb55710a8dc61a23c6cc4e8d2bcdc9503008492
>>
>> And this is the "guix describe" with the -i flag:
>>
>> [roman@m1 guix-home]$ sudo -i guix describe
>> guix 121e96d
>> repository URL: https://git.savannah.gnu.org/git/guix.git
>> branch: master
>> commit: 121e96dca273ab407df11725da0026ee34abdf79
>>
>> Reconfiguring with the -i flag does not work, because I'm missing some
>> modules from the channels that aren't listed there.
>>
>> I'm also linking my config, just in case:
>>
>> https://github.com/r0man/guix-home/blob/main/modules/r0man/guix/system/m1.scm
>>
>> Thanks for your help, Roman.
>>
>> Leo Famulari <leo@famulari.name> writes:
>>
>>> On Sun, Jan 12, 2025 at 03:30:07PM -0500, Leo Famulari wrote:
>>>> On Sun, Jan 12, 2025 at 10:58:54AM +0100, Roman Scherer wrote:
>>>> >
>>>> > I can't reconfigure my (aarch64) system anymore. When building
>>>> > /gnu/store/bpda8gfvxm6iv3mc6n8sf3ydxc5b6zi9-grub-image.png.drv I see the following backtrace:
>>>>
>>>> [...]
>>>>
>>>> > View build log at '/var/log/guix/drvs/bp/da8gfvxm6iv3mc6n8sf3ydxc5b6zi9-grub-image.png.drv.gz'.
>>>>
>>>> Can you share this log?
>>>
>>> Okay, thanks.
>>>
>>> Also, from the environment where you try to reconfigure, can you also
>>> share the results of `guix describe`?
>>>
>>> What I mean by that is, for example, if you log in to the root account
>>> to reconfigure, run `guix describe` from there.
>>>
>>> Another example: if you do `sudo -i guix system reconfigure [...]`, run
>>> `sudo -i guix describe`.
>>>
>>> Does that make sense?
-----BEGIN PGP SIGNATURE-----

iQFTBAEBCAA9FiEE0iajOdjfRIFd3gygPdpSUn0qwZkFAmeKbaQfHHJvbWFuLnNj
aGVyZXJAYnVybmluZ3N3ZWxsLmNvbQAKCRA92lJSfSrBmV5GB/49g8p+x6Zr9lXV
B45SgDgChG0lNBmdXAeydzeJ9KsMoJLTR0S9WUywm4bUS1j6w2l1ZEr8PVxYiaXA
d+FiHwsUo/+PAv6JasI9qlE8dEI8lq4qI4jAZhwLsFYQFpe7hAkQgmIWjUt0m8vo
IWfdm9DzTlLz6z+uZtw6sxVJNu7FhnVjJAPeZO1pgaQER/x4hRQuZsZbSs/pbV9Z
k/zJweioYwfTnWtX8XtdY2isx7ts76cVUrtWOnxGi9Dczw/PlAmZl8KuSEn3M5ne
vgld8UV4bUdd/OTR9FdyL1Qia+KcKzaFAJvEmZ3AoO9iKqm6BhalQHudFrix5amJ
ZKMhiMqP
=UM+B
-----END PGP SIGNATURE-----

L
L
Leo Famulari wrote 10 hours ago
(name . Roman Scherer)(address . roman.scherer@burningswell.com)(address . 75510@debbugs.gnu.org)
Z4qt2iNzoLLsmzB_@jasmine.lan
On Fri, Jan 17, 2025 at 03:48:04PM +0100, Roman Scherer wrote:
Toggle quote (5 lines)
> Roman Scherer <roman.scherer@burningswell.com> writes:
>
> Hmm, but it looks I'm now stuck using --no-grafts all the time. Any
> ideas how to solve that?

That's not great. I don't really understand this bug. Is it a problem in
Guile? That would seem hard to fix in the short term.

I wonder what is the current status of "ungrafting" efforts in Guix?
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 75510@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 75510
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch