Skip to content

perl534Packages.IOTty doesn't cross-compile #142122

@flokli

Description

@flokli

Describe the bug

nix-build -A pkgsCross.aarch64-multiplatform.perl534Packages.IOTty fails:

these derivations will be built:
  /nix/store/7wmnpdwycwc6al6c71i91k0fq1b8b19y-perl5.34.0-IO-Tty-aarch64-unknown-linux-gnu-1.15.drv
building '/nix/store/7wmnpdwycwc6al6c71i91k0fq1b8b19y-perl5.34.0-IO-Tty-aarch64-unknown-linux-gnu-1.15.drv'...
unpacking sources
unpacking source archive /nix/store/phiymjsipz66gkjibxmbrqzj7js4xinj-IO-Tty-1.15.tar.gz
source root is IO-Tty-1.15
setting SOURCE_DATE_EPOCH to timestamp 1604441416 of file IO-Tty-1.15/META.yml
patching sources
updateAutotoolsGnuConfigScriptsPhase
configuring
patching ./t/test.t...
patching ./t/pty_get_winsize.t...
Can't load module IO, dynamic loading not available in this perl.
  (You may need to build a new perl executable which either supports
  dynamic loading or has the IO module statically linked into it.)
 at /nix/store/98rdfdqc7kax6ipm1jrmyqiacc7264vp-perl-5.34.0-aarch64-unknown-linux-gnu/lib/perl5/5.34.0/aarch64-linux/IO/Handle.pm line 268.
Compilation failed in require at /nix/store/98rdfdqc7kax6ipm1jrmyqiacc7264vp-perl-5.34.0-aarch64-unknown-linux-gnu/lib/perl5/5.34.0/aarch64-linux/IO/Handle.pm line 268.
BEGIN failed--compilation aborted at /nix/store/98rdfdqc7kax6ipm1jrmyqiacc7264vp-perl-5.34.0-aarch64-unknown-linux-gnu/lib/perl5/5.34.0/aarch64-linux/IO/Handle.pm line 268.
Compilation failed in require at /nix/store/98rdfdqc7kax6ipm1jrmyqiacc7264vp-perl-5.34.0-aarch64-unknown-linux-gnu/lib/perl5/5.34.0/aarch64-linux/IO/Seekable.pm line 100.
BEGIN failed--compilation aborted at /nix/store/98rdfdqc7kax6ipm1jrmyqiacc7264vp-perl-5.34.0-aarch64-unknown-linux-gnu/lib/perl5/5.34.0/aarch64-linux/IO/Seekable.pm line 100.
Compilation failed in require at /nix/store/98rdfdqc7kax6ipm1jrmyqiacc7264vp-perl-5.34.0-aarch64-unknown-linux-gnu/lib/perl5/5.34.0/aarch64-linux/IO/File.pm line 132.
BEGIN failed--compilation aborted at /nix/store/98rdfdqc7kax6ipm1jrmyqiacc7264vp-perl-5.34.0-aarch64-unknown-linux-gnu/lib/perl5/5.34.0/aarch64-linux/IO/File.pm line 132.
Compilation failed in require at Makefile.PL line 10.
BEGIN failed--compilation aborted at Makefile.PL line 10.
builder for '/nix/store/7wmnpdwycwc6al6c71i91k0fq1b8b19y-perl5.34.0-IO-Tty-aarch64-unknown-linux-gnu-1.15.drv' failed with exit code 255
error: build of '/nix/store/7wmnpdwycwc6al6c71i91k0fq1b8b19y-perl5.34.0-IO-Tty-aarch64-unknown-linux-gnu-1.15.drv' failed

This seems to be part of the mosh buildInputs, breaking cross-compilation of NixOS closures.

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix-build -A pkgsCross.aarch64-multiplatform.perl534Packages.IOTty

cc @NixOS/mobile-nixos @NixOS/exotic-platform-maintainers

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: cross-compilationBuilding packages on a different platform than they will be used on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions