btrfs-progs fails to cross-compile

  • Done
  • quality assurance status badge
Details
3 participants
  • Maxime Devos
  • Tobias Geerinckx-Rice
  • Pavel Shlyak
Owner
unassigned
Submitted by
Pavel Shlyak
Severity
normal
P
P
Pavel Shlyak wrote on 21 May 2022 20:02
(address . bug-guix@gnu.org)
A24D7681-3497-4639-86C5-12F30F5345CE@pantherx.org
I can build it natively on aarch64 or x86_64. Only cross-compilation fails
To reproduce, run (on x86_64 host)
guix build btrfs-progs --target=aarch64-linux-gnu
Output:

configure: error: Package requirements (libudev) were not met:

No package 'libudev' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBUDEV_CFLAGS
and LIBUDEV_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
error: in phase 'configure': uncaught exception:
%exception #<&invoke-error program: "/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bin/bash" arguments: ("./configure" "CC_FOR_BUILD=gcc" "CONFIG_SHELL=/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bin/bash" "SHELL=/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bin/bash" "--prefix=/gnu/store/0sa8vdwlg49bdcshpnp8ry0mjszncn40-btrfs-progs-5.15.1" "--enable-fast-install" "--build=x86_64-unknown-linux-gnu" "--host=aarch64-linux-gnu") exit-status: 1 term-signal: #f stop-signal: #f>
phase `configure' failed after 1.1 seconds
command "/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bin/bash" "./configure" "CC_FOR_BUILD=gcc" "CONFIG_SHELL=/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bin/bash" "SHELL=/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bin/bash" "--prefix=/gnu/store/0sa8vdwlg49bdcshpnp8ry0mjszncn40-btrfs-progs-5.15.1" "--enable-fast-install" "--build=x86_64-unknown-linux-gnu" "--host=aarch64-linux-gnu" failed with status 1
M
M
Maxime Devos wrote on 21 May 2022 20:46
80af36427a9625a3453a6d043b2c6c8d45343719.camel@telenet.be
Pavel Shlyak schreef op za 21-05-2022 om 21:02 [+0300]:
Toggle quote (9 lines)
> I can build it natively on aarch64 or x86_64. Only cross-compilation fails
> To reproduce, run (on x86_64 host)
> guix build btrfs-progs --target=aarch64-linux-gnu
> Output:
>
> configure: error: Package requirements (libudev) were not met:
>
> No package 'libudev' found

Given that 'eudev' appears in the references, it looks like 'eudev'
needs to be moved from native-inputs to inputs (apparently it's not
only for tests!) in the package definition of btrfs-progs.

Greetings,
Maxime.
-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYokzixccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7lMBAQCQLcejpFcCET3ZOCGTviQWniKG
kqEH/hNR6RrotMS1awEAnz2Dh0bv5lKQ9P9LAHllNb6+rj98tJD1I3+IHbCFDwY=
=OhFq
-----END PGP SIGNATURE-----


T
T
Tobias Geerinckx-Rice wrote on 21 May 2022 20:44
(name . Pavel Shlyak)(address . p.shlyak@pantherx.org)
87h75ihgdp@nckx
Pavel,

Pavel Shlyak ???
Toggle quote (3 lines)
> Only cross-compilation fails
> guix build btrfs-progs --target=aarch64-linux-gnu

Thanks. This was due to

- a bogus eudev native-input that should have been regular,
- broken Python support somewhere upstream.

Handily, said Python support was never actually used by Guix, so
we can just ignore it and --disable-python.

Kind regards,

T G-R
-----BEGIN PGP SIGNATURE-----

iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYokz0w0cbWVAdG9iaWFz
LmdyAAoJEA2w/4hPVW15qd8A/0s3l44ckytvdNRTjMXTzWbkQAUt32hfH5F/0l/4
k4voAQCPb0VMbtUXYZn8uZ1xMIkDrLJYRkLAenFa7actas39AA==
=1REb
-----END PGP SIGNATURE-----

Closed
?