NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.37k stars 14.33k forks source link

Build failure: coreutils (riscv64-linux) #294775

Open Kreyren opened 8 months ago

Kreyren commented 8 months ago
ERROR: tests/cp/proc-short-read
===============================

cp: skipping file '/proc/cpuinfo', as it was replaced while being copied
sed: can't read 1: No such file or directory
proc-short-read.sh: set-up failure: 
ERROR tests/cp/proc-short-read.sh (exit status: 99)

Steps To Reproduce

$ nix build 'github:kreyren/nixos-config/b7a1842515f4496a696a683b0e1d424ca3ed7114#nixosConfigurations.installer.config.formats.install-iso'

or build coreutils from x86_64-linux via binfmt for riscv64-linux

Build log

https://gist.githubusercontent.com/Kreyren/fefdd3d9ee92d87d630d337a88da2cc4/raw/77860aaa08aef763746e5e71a4a82bba004ad107/gistfile1.txt

Additional context

Happened when i was trying to build an UEFI installer for riscv64-linux to get nixos on licheepi4a

# https://github.com/Kreyren/nixos-config/blob/b7a1842515f4496a696a683b0e1d424ca3ed7114/tools/installer/minimal/default.nix
{ self, inputs, config, ... }:

{
    flake.nixosConfigurations."installer" = inputs.nixpkgs.lib.nixosSystem {
            system = "riscv64-linux";
            pkgs = import inputs.nixpkgs {
                system = "riscv64-linux";
                config.allowUnfree = true;
            };

            modules = [
                # ./configuration.nix

                self.inputs.nixos-generators.nixosModules.all-formats
            ];

            # FIXME-QA(Krey): This needs better management
            specialArgs = {
                unstable = import inputs.nixpkgs-unstable {
                    system = "riscv64-linux";
                    config.allowUnfree = true;
                };
                # For cross-compilation of e.g. linux kernel as we don't have powerful enough aarch64-linux machine for it
                # crossPkgs = import inputs.nixpkgs {
                #   # buildPlatform = "x86_64-linux";
                #   # hostPlatform = "aarch64-linux";
                #   system = "x86_64-linux";
                #   crossSystem = "aarch64-linux";
                #   config.allowUnfree = true;
                # };
            };
        };
}

Notify maintainers

CC @dasJ

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
this path will be fetched (0.00 MiB download, 0.00 MiB unpacked):
  /nix/store/8ckiaa7f3lzzb6mqvr32kavbmwf8s8fg-nix-info
copying path '/nix/store/8ckiaa7f3lzzb6mqvr32kavbmwf8s8fg-nix-info' from 'https://cache.nixos.org'...
 - system: `"x86_64-linux"`
 - host os: `Linux 6.7.5-xanmod1, NixOS, 23.11 (Tapir), 23.11.20240220.526d051`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - channels(root): `"nixos-23.05"`
 - channels(raptor): `"home-manager-23.05.tar.gz, nixpkgs-23.05, nixpkgs-unstable-23.05"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Add a :+1: reaction to issues you find important.

Givlucas commented 2 months ago

Was there any progress on finding a cause for this issue?