NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.15k stars 14.18k forks source link

Build failure: neatvnc #353671

Closed Captniz closed 1 week ago

Captniz commented 1 week ago

Steps To Reproduce

Steps to reproduce the behavior:

Build log

Build:

building the system configuration...
error: builder for '/nix/store/mi73yqlb6nvqf0r8acsf8abi38s2gda6-neatvnc-0.8.1.drv' failed with exit code 1;
       last 25 log lines:
       >       |                                                          ^~
       > ../src/h264-encoder.c: In function 'h264_encoder_feed':
       > ../src/h264-encoder.c:621:13: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
       >   621 |         int rc = fb_queue_enqueue(&self->fb_queue, fb);
       >       |             ^~
       > [30/39] Compiling C object libneatvnc.so.0.0.0.p/src_http.c.o
       > [31/39] Compiling C object test/pixels.p/test-pixels.c.o
       > [32/39] Compiling C object libneatvnc.so.0.0.0.p/src_crypto-nettle.c.o
       > ../src/crypto-nettle.c: In function 'crypto_random':
       > ../src/crypto-nettle.c:115:9: warning: ignoring return value of 'getrandom' declared with attribute 'warn_unused_result' [-Wunused-result]
       >   115 |         getrandom(dst, len, 0);
       >       |         ^~~~~~~~~~~~~~~~~~~~~~
       > ../src/crypto-nettle.c: In function 'generate_random':
       > ../src/crypto-nettle.c:221:9: warning: ignoring return value of 'getrandom' declared with attribute 'warn_unused_result' [-Wunused-result]
       >   221 |         getrandom(buf, sizeof(buf), 0);
       >       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       > ../src/crypto-nettle.c: In function 'generate_random_for_rsa':
       > ../src/crypto-nettle.c:698:9: warning: ignoring return value of 'getrandom' declared with attribute 'warn_unused_result' [-Wunused-result]
       >   698 |         getrandom(dst, len, 0);
       >       |         ^~~~~~~~~~~~~~~~~~~~~~
       > [33/39] Compiling C object test/base64.p/test-base64.c.o
       > [34/39] Compiling C object test/base64.p/.._src_base64.c.o
       > [35/39] Compiling C object test/pixels.p/.._src_pixels.c.o
       > [36/39] Compiling C object libneatvnc.so.0.0.0.p/src_damage-refinery.c.o
       > ninja: build stopped: subcommand failed.
       For full logs, run 'nix log /nix/store/mi73yqlb6nvqf0r8acsf8abi38s2gda6-neatvnc-0.8.1.drv'.
error: 1 dependencies of derivation '/nix/store/zpv69nz8zlzsvk2k6xzv70ld99h7zpia-weston-14.0.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/27zxx8am8lq8kcws1d17cilw14x8gp5g-sddm.conf.drv' failed to build
error: 1 dependencies of derivation '/nix/store/b2bklaf1h68xcj8fsif863ai6mrs7f4f-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/65v9adbmg9n2pfaw5qz0ylfd04binvlr-nixos-system-nixos-24.11.20241102.7ffd9ae.drv' failed to build

Full log:

Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/anggrc8sibqnxm3igqq5972j3pbz5n5c-source
source root is source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
mesonConfigurePhase flags: --prefix=/nix/store/hvnmnyxzi44sa0zdfw75jrsl1g0zzjgp-neatvnc-0.8.1 --libdir=/nix/store/hvnmnyxzi44sa0zdfw75jrsl1g0zzjgp-neatvnc-0.8.1/lib --libexecdir=/nix/sto>
^[[1mThe Meson build system^[[0m
Version: 1.5.2
Source dir: ^[[1m/build/source^[[0m
Build dir: ^[[1m/build/source/build^[[0m
Build type: ^[[1mnative build^[[0m
Project name: ^[[1mneatvnc^[[0m
Project version: ^[[1m0.8.1^[[0m
C compiler for the host machine: ^[[1mgcc^[[0m (gcc 13.3.0 "gcc (GCC) 13.3.0")
C linker for the host machine: ^[[1mgcc^[[0m ld.bfd 2.43.1
Host machine cpu family: ^[[1mx86_64^[[0m
Host machine cpu: ^[[1mx86_64^[[0m
Program ^[[1mgit^[[0m found: ^[[1;31mNO^[[0m
Found pkg-config: ^[[1;32mYES^[[0m ^[[1m(/nix/store/946chn5ja4yrvnnc5izwv792cc57xpy8-pkg-config-wrapper-0.29.2/bin/pkg-config)^[[0m ^[[1;34m0.29.2^[[0m
Run-time dependency ^[[1mlibdrm^[[0m found: ^[[1;32mYES^[[0m ^[[36m2.4.123^[[0m
Library ^[[1mm^[[0m found: ^[[1;32mYES^[[0m
Run-time dependency ^[[1mpixman-1^[[0m found: ^[[1;32mYES^[[0m ^[[36m0.43.4^[[0m
Run-time dependency ^[[1mlibturbojpeg^[[0m found: ^[[1;32mYES^[[0m ^[[36m3.0.3^[[0m
Run-time dependency ^[[1mgnutls^[[0m found: ^[[1;32mYES^[[0m ^[[36m3.8.6^[[0m
Run-time dependency ^[[1mnettle^[[0m found: ^[[1;32mYES^[[0m ^[[36m3.10^[[0m
Run-time dependency ^[[1mhogweed^[[0m found: ^[[1;32mYES^[[0m ^[[36m3.10^[[0m
Run-time dependency ^[[1mgmp^[[0m found: ^[[1;32mYES^[[0m ^[[36m6.3.0^[[0m
Run-time dependency ^[[1mzlib^[[0m found: ^[[1;32mYES^[[0m ^[[36m1.3.1^[[0m
Run-time dependency ^[[1mgbm^[[0m found: ^[[1;32mYES^[[0m ^[[36m24.2.5^[[0m
Dependency ^[[1mlibdrm^[[0m found: ^[[1;32mYES^[[0m ^[[36m2.4.123^[[0m ^[[1;34m(cached)^[[0m
Run-time dependency ^[[1mlibavcodec^[[0m found: ^[[1;32mYES^[[0m ^[[36m61.19.100^[[0m
Run-time dependency ^[[1mlibavfilter^[[0m found: ^[[1;32mYES^[[0m ^[[36m10.4.100^[[0m
Run-time dependency ^[[1mlibavutil^[[0m found: ^[[1;32mYES^[[0m ^[[36m59.39.100^[[0m
Neither a subproject directory nor a aml.wrap file was found.
Subproject  ^[[1maml^[[0m is buildable: ^[[1;31mNO^[[0m (disabling)
Run-time dependency ^[[1maml^[[0m found: ^[[1;32mYES^[[0m ^[[36m0.3.0^[[0m
Configuring ^[[1mconfig.h^[[0m using configuration
Build targets in project: ^[[1m3^[[0m

neatvnc ^[[36m0.8.1^[[0m

  ^[[1mSubprojects^[[0m
    aml          : ^[[1;31mNO^[[0m
                   Neither a subproject directory nor a aml.wrap file was found.

  ^[[1mUser defined options^[[0m
    auto_features: enabled
    bindir       : /nix/store/hvnmnyxzi44sa0zdfw75jrsl1g0zzjgp-neatvnc-0.8.1/bin
    buildtype    : plain
    includedir   : /nix/store/hvnmnyxzi44sa0zdfw75jrsl1g0zzjgp-neatvnc-0.8.1/include
    infodir      : /nix/store/hvnmnyxzi44sa0zdfw75jrsl1g0zzjgp-neatvnc-0.8.1/share/info
    libdir       : /nix/store/hvnmnyxzi44sa0zdfw75jrsl1g0zzjgp-neatvnc-0.8.1/lib
    libexecdir   : /nix/store/hvnmnyxzi44sa0zdfw75jrsl1g0zzjgp-neatvnc-0.8.1/libexec
    localedir    : /nix/store/hvnmnyxzi44sa0zdfw75jrsl1g0zzjgp-neatvnc-0.8.1/share/locale
    mandir       : /nix/store/hvnmnyxzi44sa0zdfw75jrsl1g0zzjgp-neatvnc-0.8.1/share/man
    prefix       : /nix/store/hvnmnyxzi44sa0zdfw75jrsl1g0zzjgp-neatvnc-0.8.1
    sbindir      : /nix/store/hvnmnyxzi44sa0zdfw75jrsl1g0zzjgp-neatvnc-0.8.1/sbin
    wrap_mode    : nodownload
    tests        : true

Found ninja-1.12.1 at /nix/store/m5d2zsm9252fdr825lahyqxpn2av8136-ninja-1.12.1/bin/ninja
mesonConfigurePhase: enabled\ parallel\ building
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
build flags: -j8
[1/39] Compiling C object libneatvnc.so.0.0.0.p/src_vec.c.o
[2/39] Compiling C object libneatvnc.so.0.0.0.p/src_rcbuf.c.o
[3/39] Compiling C object libneatvnc.so.0.0.0.p/src_stream.c.o
[4/39] Compiling C object libneatvnc.so.0.0.0.p/src_fb_pool.c.o
[5/39] Compiling C object libneatvnc.so.0.0.0.p/src_raw-encoding.c.o
../src/raw-encoding.c: In function 'raw_encoder_do_work':
../src/raw-encoding.c:132:13: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
  132 |         int rc;
      |             ^~
[6/39] Compiling C object libneatvnc.so.0.0.0.p/src_stream-common.c.o
[7/39] Compiling C object libneatvnc.so.0.0.0.p/src_fb.c.o
[8/39] Compiling C object libneatvnc.so.0.0.0.p/src_desktop-layout.c.o
[9/39] Compiling C object libneatvnc.so.0.0.0.p/src_zrle.c.o
../src/zrle.c: In function 'zrle_encoder_do_work':
../src/zrle.c:338:13: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
  338 |         int rc;
      |             ^~
[10/39] Compiling C object libneatvnc.so.0.0.0.p/src_qnum-to-evdev.c.o
[11/39] Compiling C object libneatvnc.so.0.0.0.p/src_enc-util.c.o
[12/39] Compiling C object libneatvnc.so.0.0.0.p/src_pixels.c.o
[13/39] Compiling C object libneatvnc.so.0.0.0.p/src_display.c.o
[14/39] Compiling C object libneatvnc.so.0.0.0.p/src_resampler.c.o
[15/39] Compiling C object libneatvnc.so.0.0.0.p/src_transform-util.c.o
[16/39] Compiling C object libneatvnc.so.0.0.0.p/src_encoder.c.o
[17/39] Compiling C object libneatvnc.so.0.0.0.p/src_stream-tcp.c.o
[18/39] Compiling C object libneatvnc.so.0.0.0.p/src_tight.c.o
[19/39] Compiling C object libneatvnc.so.0.0.0.p/src_cursor.c.o
[20/39] Compiling C object libneatvnc.so.0.0.0.p/src_base64.c.o
[21/39] Compiling C object libneatvnc.so.0.0.0.p/src_stream-gnutls.c.o
[22/39] Compiling C object libneatvnc.so.0.0.0.p/src_stream-rsa-aes.c.o
[23/39] Compiling C object libneatvnc.so.0.0.0.p/src_logging.c.o
[24/39] Compiling C object libneatvnc.so.0.0.0.p/src_open-h264.c.o
[25/39] Compiling C object libneatvnc.so.0.0.0.p/src_ws-framing.c.o
[26/39] Compiling C object libneatvnc.so.0.0.0.p/src_ws-handshake.c.o
[27/39] Compiling C object libneatvnc.so.0.0.0.p/src_stream-ws.c.o
[28/39] Compiling C object libneatvnc.so.0.0.0.p/src_server.c.o
[29/39] Compiling C object libneatvnc.so.0.0.0.p/src_h264-encoder.c.o
FAILED: libneatvnc.so.0.0.0.p/src_h264-encoder.c.o
gcc -Ilibneatvnc.so.0.0.0.p -I. -I.. -I../include -I/nix/store/5si486bhpwp5zpvkbs1fwfzd3wzx2nf7-pixman-0.43.4/include/pixman-1 -I/nix/store/f40jcibj8c36xsjxqjsrajvxv452kqi1-aml-0.3.0/inc>
../src/h264-encoder.c: In function 'h264_encoder_create':
../src/h264-encoder.c:550:58: error: 'AVFilterLink' has no member named 'hw_frames_ctx'
  550 |                 av_buffer_ref(self->filter_out->inputs[0]->hw_frames_ctx);
      |                                                          ^~
../src/h264-encoder.c: In function 'h264_encoder_feed':
../src/h264-encoder.c:621:13: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
  621 |         int rc = fb_queue_enqueue(&self->fb_queue, fb);
      |             ^~
[30/39] Compiling C object libneatvnc.so.0.0.0.p/src_http.c.o
[31/39] Compiling C object test/pixels.p/test-pixels.c.o
[32/39] Compiling C object libneatvnc.so.0.0.0.p/src_crypto-nettle.c.o
../src/crypto-nettle.c: In function 'crypto_random':
../src/crypto-nettle.c:115:9: warning: ignoring return value of 'getrandom' declared with attribute 'warn_unused_result' [-Wunused-result]
  115 |         getrandom(dst, len, 0);
      |         ^~~~~~~~~~~~~~~~~~~~~~
../src/crypto-nettle.c: In function 'generate_random':
../src/crypto-nettle.c:221:9: warning: ignoring return value of 'getrandom' declared with attribute 'warn_unused_result' [-Wunused-result]
  221 |         getrandom(buf, sizeof(buf), 0);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/crypto-nettle.c: In function 'generate_random_for_rsa':
../src/crypto-nettle.c:698:9: warning: ignoring return value of 'getrandom' declared with attribute 'warn_unused_result' [-Wunused-result]
  698 |         getrandom(dst, len, 0);
      |         ^~~~~~~~~~~~~~~~~~~~~~
[33/39] Compiling C object test/base64.p/test-base64.c.o
[34/39] Compiling C object test/base64.p/.._src_base64.c.o
[35/39] Compiling C object test/pixels.p/.._src_pixels.c.o
[36/39] Compiling C object libneatvnc.so.0.0.0.p/src_damage-refinery.c.o
ninja: build stopped: subcommand failed.

Additional context

I'm using flakes to update the system

Flake.lock:

{
  "nodes": {
    "home-manager": {
      "inputs": {
        "nixpkgs": [
          "nixpkgs"
        ]
      },
      "locked": {
        "lastModified": 1730633670,
        "narHash": "sha256-ZFJqIXpvVKvzOVFKWNRDyIyAo+GYdmEPaYi1bZB6uf0=",
        "owner": "nix-community",
        "repo": "home-manager",
        "rev": "8f6ca7855d409aeebe2a582c6fd6b6a8d0bf5661",
        "type": "github"
      },
      "original": {
        "owner": "nix-community",
        "repo": "home-manager",
        "type": "github"
      }
    },
    "nixpkgs": {
      "locked": {
        "lastModified": 1730531603,
        "narHash": "sha256-Dqg6si5CqIzm87sp57j5nTaeBbWhHFaVyG7V6L8k3lY=",
        "owner": "NixOS",
        "repo": "nixpkgs",
        "rev": "7ffd9ae656aec493492b44d0ddfb28e79a1ea25d",
        "type": "github"
      },
      "original": {
        "owner": "NixOS",
        "ref": "nixos-unstable",
        "repo": "nixpkgs",
        "type": "github"
      }
    },
    "root": {
      "inputs": {
        "home-manager": "home-manager",
        "nixpkgs": "nixpkgs"
      }
    }
  },
  "root": "root",
  "version": 7
}

Flake.nix:

{
  description = "Flake of captniz (aka Simone), inspired by librephoenix";

  inputs = {
    nixpkgs.url= "github:NixOS/nixpkgs/nixos-unstable";
    home-manager.url = "github:nix-community/home-manager";
    home-manager.inputs.nixpkgs.follows = "nixpkgs";
  };

  outputs = { self, nixpkgs, home-manager, ... }@inputs:
    let

      #? Took this configuration from librephoenix
      #? Probably I will change it in the future.
      #? For now ill just use it as a base and modify it as I need;
      #? Not everything is needed, but I will keep it for now.

      # ----- SYSTEM SETTINGS ----- #
      systemSettings = rec {
        system = "x86_64-linux";      # system arch
        hostname = "nixos";           # hostname
        profile = "default";          # select a profile defined from my profiles directory
        timezone = "Europe/Rome";     # select timezone
        locale = "it_IT.UTF-8";       # select locale
        bootMode = "uefi";            # uefi or bios
        keyboard = "it";              # select keyboard layout
      };

      # ----- USER SETTINGS ----- #
      userSettings = rec {
        keyboard = systemSettings.keyboard;              # select keyboard layout
        username = "simo";            # username
        theme = "Gruvbox-Dark";       # selcted theme from my themes directory (./themes/)
        wm = "hyprland";              # Selected window manager or desktop environment; must select one in both ./user/wm/ and ./system/wm/
        # window manager type (hyprland or x11) translator
        wmType = if (wm == "hyprland") then "wayland" else "x11";
        browser = "firefox";          # Default browser; must select one from ./user/app/browser/
        term = "alacritty";           # Default terminal command;
        editor = "nvim";              # Default editor;
      };

      lib = nixpkgs.lib;
      pkgs = nixpkgs.legacyPackages.${systemSettings.system};

    in {
      nixosConfigurations = {
        nixos = lib.nixosSystem {
                system = systemSettings.system;
          modules = [ ./configuration.nix ];
          specialArgs = {
            inherit systemSettings;
            inherit userSettings;
          };
        };
      };

      homeConfigurations = {
        simo = home-manager.lib.homeManagerConfiguration {
          inherit pkgs;
          modules = [ ./home.nix ];
          extraSpecialArgs = {
            inherit userSettings;
          };
        };
      };
    };
}

Notify maintainers

@NickCao

Metadata

 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.57, NixOS, 24.11 (Vicuna), 24.11.20241018.4c2fcb0`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.9`
 - nixpkgs: `/nix/store/riqkpszjqk02bi1wppfg8ip5xvh102qd-source`

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

NickCao commented 1 week ago

Should be fixed by https://github.com/NixOS/nixpkgs/pull/353338

Captniz commented 1 week ago

Alright, i'll wait a day or two and then update to see if nix-packages recieved the fix .