util-linux fails to build on the Hurd (some tests fail)

DoneSubmitted by Maxime Devos.
Details
2 participants
  • Ludovic Courtès
  • Maxime Devos
Owner
unassigned
Severity
normal
M
M
Maxime Devos wrote on 15 Apr 10:32 +0200
(address . bug-guix@gnu.org)
0b60c775c2ee94edc425099899c8a1fd0f797776.camel@telenet.be
On my x86_64-linux-gnu with a childhurd, util-linux fails to compile.
$ guix build util-linux --system=i586-gnu
Toggle quote (4 lines)> [exporting path ...]> offloading build of /gnu/store/nih[...]8fxg-util-linux-2.35.1.drv to 'localhost'> [log, attached in e-mail]
$ guix --version
Toggle quote (2 lines)> guix (GNU Guix) 3f3d66377c052d6121b46db53391614329fa4ffb
Some bits that seem relevant:
Toggle quote (14 lines)> fdisk: MBR - sort ... OK> fdisk: invalid input tests ... FAILED (fdisk/oddinput)> fdisk: sunlabel tests ... OK> [...]> hwclock: system to hw ... SKIPPED (no root permissions)> ipcs: headers ... FAILED (ipcs/headers)> ipcs: limits overflow ... SKIPPED (no root permissions)> [...]> : ends-with ... OK> : mountpoint ... FAILED (libmount/utils-mountpoint)> : mountpoint-subdir ... SKIPPED (no /proc)> [...]> 3 tests of 204 FAILED
To be investigated ...
Greeings,Maxime.
-----BEGIN PGP SIGNATURE-----
iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYHf6IhccbWF4aW1lZGV2b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7moUAP99h4COFFPMcGyh5CnKSq7h+ULeiYgRf1ISkZTBrKtPKwEAlPbq62vdY0I/Gdft4RM2hBRQIhEriLyB1xcSr+Ih8AU==82z9-----END PGP SIGNATURE-----

M
M
Maxime Devos wrote on 15 Apr 10:33 +0200
Re: bug#47791: Acknowledgement (util-linux fails to build on the Hurd (some tests fail))
(address . 47791@debbugs.gnu.org)
dae4946aabae9f1801b6bf07b38ca9dde003018f.camel@telenet.be
Forgot to attach the log.
-----BEGIN PGP SIGNATURE-----
iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYHf6axccbWF4aW1lZGV2b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7qE4AQCc1CMfVGwPDDMn1H/ypZ0FmqpbWYfIzqc41ENyPCqV4wD9HVlpEw0PlOgHBUl3eW+Br/4mqxfsa/O2ZfVD9sZ2pwQ==cpgF-----END PGP SIGNATURE-----

L
L
Ludovic Courtès wrote on 16 Apr 18:07 +0200
Re: bug#47791: util-linux fails to build on the Hurd (some tests fail)
(name . Maxime Devos)(address . maximedevos@telenet.be)(address . 47791@debbugs.gnu.org)
8735vq43hg.fsf@gnu.org
Hi,
Maxime Devos <maximedevos@telenet.be> skribis:
Toggle quote (26 lines)> On my x86_64-linux-gnu with a childhurd, util-linux fails to compile.>> $ guix build util-linux --system=i586-gnu>> [exporting path ...]>> offloading build of /gnu/store/nih[...]8fxg-util-linux-2.35.1.drv to 'localhost'>> [log, attached in e-mail]>> $ guix --version>> guix (GNU Guix) 3f3d66377c052d6121b46db53391614329fa4ffb>> Some bits that seem relevant:>>> fdisk: MBR - sort ... OK>> fdisk: invalid input tests ... FAILED (fdisk/oddinput)>> fdisk: sunlabel tests ... OK>> [...]>> hwclock: system to hw ... SKIPPED (no root permissions)>> ipcs: headers ... FAILED (ipcs/headers)>> ipcs: limits overflow ... SKIPPED (no root permissions)>> [...]>> : ends-with ... OK>> : mountpoint ... FAILED (libmount/utils-mountpoint)>> : mountpoint-subdir ... SKIPPED (no /proc)>> [...]>> 3 tests of 204 FAILED
Yes, this is a “known problem”:
https://issues.guix.gnu.org/43857
The problem is that the build environment on GNU/Hurd has yet to bespecified, which is what the patch above was partly trying to address(though I think we could do better than spawn one firmlink translatorper store item…).
The “Isolated build environments” section ofhttps://guix.gnu.org/en/blog/2020/childhurds-and-substitutes/discusses the broader issue.
If you’d like to get some Hurd hacking done, here’s a good opportunity.:-)
Ludo’.
M
M
Maxime Devos wrote on 16 Apr 20:55 +0200
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 47791@debbugs.gnu.org)
a0e94619700c1a9906fe13422b92fb0a4f95cb76.camel@telenet.be
On Fri, 2021-04-16 at 18:07 +0200, Ludovic Courtès wrote:
Toggle quote (8 lines)> Hi,> > Maxime Devos <maximedevos@telenet.be> skribis:> > > 3 tests of 204 FAILED> > Yes, this is a “known problem”:> > https://issues.guix.gnu.org/43857
I'll take a look.
Toggle quote (12 lines)> The problem is that the build environment on GNU/Hurd has yet to be> specified, which is what the patch above was partly trying to address> (though I think we could do better than spawn one firmlink translator> per store item…).> > The “Isolated build environments” section of> <https://guix.gnu.org/en/blog/2020/childhurds-and-substitutes/>> discusses the broader issue.> > If you’d like to get some Hurd hacking done, here’s a good opportunity.> :-)
Problem is, I was trying to create a VM with Hurd to my likingwith "guix system etcetera", to do some Hurd hacking.(GNOME Boxes only accepts ISO's, no qcow2's)But this command fails. Both when cross-compiling (meson doesn'tsupport cross-builds yet), and when compiling ‘natively’ usingthe childhurd --- apparently util-linux is in the dependency tree.
Maybe the tests should be disabled on the Hurd on now, in orderto be able to fix the underlying issues more easily?
Greetings,Maxime.
-----BEGIN PGP SIGNATURE-----
iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYHndrBccbWF4aW1lZGV2b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7iAUAQCPUUOprTiZ8Xn2tvNIDVVoY4Af5cv02MW7Mb+PtOHIfAD+O2eZaPCkgiqU2lePOHiQjIwIQT5be6waed2diAwPdQA==lqAW-----END PGP SIGNATURE-----

L
L
Ludovic Courtès wrote on 17 Apr 12:19 +0200
(name . Maxime Devos)(address . maximedevos@telenet.be)
874kg5z00a.fsf@gnu.org
Hi Maxime,
Maxime Devos <maximedevos@telenet.be> skribis:
Toggle quote (7 lines)> Problem is, I was trying to create a VM with Hurd to my liking> with "guix system etcetera", to do some Hurd hacking.> (GNOME Boxes only accepts ISO's, no qcow2's)> But this command fails. Both when cross-compiling (meson doesn't> support cross-builds yet), and when compiling ‘natively’ using> the childhurd --- apparently util-linux is in the dependency tree.
What OS config did you try to cross-build?
It’s possible to cross-build minimal GNU/Hurd images, such as the oneused in the childhurd test in (gnu tests virtualization), or like thegnu/system/examples/bare-hurd.tmpl example.
Cross-building GNU/Hurd images is probably the easiest way to getstarted with GNU/Hurd hacking at this point. I’m Cc’ing Janneke who hasmore experience and maybe tips and tricks to share. :-)
Toggle quote (3 lines)> Maybe the tests should be disabled on the Hurd on now, in order> to be able to fix the underlying issues more easily?
Yes, we could disable util-linux tests for i586-gnu with a FIXMEpointing to this discussion, to help further progress. I’ll do that ifthere are no objections.
Thanks,Ludo’.
M
M
Maxime Devos wrote on 17 Apr 13:32 +0200
(name . Ludovic Courtès)(address . ludo@gnu.org)
6054647ded857ebf59a22af2405c0a331f90867a.camel@telenet.be
Ludovic Courtès schreef op za 17-04-2021 om 12:19 [+0200]:
Toggle quote (2 lines)> What OS config did you try to cross-build?
The installer.-e '(@ (gnu system install) installation-os)
-----BEGIN PGP SIGNATURE-----
iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYHrHPhccbWF4aW1lZGV2b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7sa2AP9/EsQAl2ojf6K8q8jkaUCvVB1Rt3gH2G1nZiehd6FiRAD/bjGalzWut6FsmU9/OuaQ8JCpH2xAkGlcr40ds55o4AE==3bml-----END PGP SIGNATURE-----

L
L
Ludovic Courtès wrote on 17 Apr 16:38 +0200
(name . Maxime Devos)(address . maximedevos@telenet.be)
87o8edvuw8.fsf@gnu.org
Maxime Devos <maximedevos@telenet.be> skribis:
Toggle quote (6 lines)> Ludovic Courtès schreef op za 17-04-2021 om 12:19 [+0200]:>> What OS config did you try to cross-build?>> The installer.> -e '(@ (gnu system install) installation-os)
Yeah, that one probably has too much stuff; it has connman, whichprobably pulls in GLib and all.
Ludo’.
L
L
Ludovic Courtès wrote on 17 Apr 23:12 +0200
(name . Maxime Devos)(address . maximedevos@telenet.be)
87o8ecpqe6.fsf@gnu.org
Ludovic Courtès <ludo@gnu.org> skribis:
Toggle quote (4 lines)> Yes, we could disable util-linux tests for i586-gnu with a FIXME> pointing to this discussion, to help further progress. I’ll do that if> there are no objections.
Done in 84feaca4888c9916e1a97bb81e5d157673488b70.
I’m closing this bug, with the understanding that we need a proper fixfor the underlying issue.
Ludo’.
Closed
?