Skip to content

Some packages attempt to run make check while cross compiling #30437

@bgamari

Description

@bgamari

Issue description

Some derivations (e.g. xz) force doCheck = true, which naturally fails while cross-compiling. Presumably these should instead force doCheck = stdenv.hostPlatform == stdenv.buildPlatform? @Ericson2314, thoughts?

Steps to reproduce

$ cat test.nix
let
  crossSystem = {
    config = "arm-unknown-linux-gnueabihf";
    arch = "armv7";
    libc = "glibc";
    withTLS = true;
    openssl.system = "linux-generic32";
    platform = nixpkgsCross.pkgs.platforms.armv7l-hf-multiplatform // {
      baseKernelConfig = "xilinx_zynq_defconfig";
    };
  };

  nixpkgsCross = (import ./nixpkgs) { system = builtins.currentSystem; crossSystem = crossSystem; };
in nixpkgsCross.xz
$ nix-build test.nix

Technical details

  • System: Debian 9
  • Nix version: nix-env (Nix) 1.11.8
  • Nixpkgs version: 4d20f42
  • Sandboxing enabled: No

Metadata

Metadata

Assignees

No one assigned

    Labels

    6.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