NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.11k stars 14.15k forks source link

Build failure: services.frigate #351760

Closed billksun closed 2 weeks ago

billksun commented 2 weeks ago

Steps To Reproduce

Steps to reproduce the behavior:

  1. services.frigate = true;

Build log

error: builder for '/nix/store/rizcrqqa159z3gcb6dblrnbyybzjyw25-nginx-1.26.2.drv' failed with exit code 2;
       last 10 log lines:
       > gcc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -DNDK_SET_VAR -DNDK_UPSTREAM_LIST  -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /nix/store/2ysp5ichpccf4lv1wp2qcwz0bmm840f1-rtmp -I /nix/store/w218m7m6bma3n6hnk15wxw5fd7sn9y7x-develkit/objs -I objs/addon/ndk -I /usr/include/libxml2 -I objs -I src/http -I src/http/modules -I src/http/v2 -I /nix/store/w218m7m6bma3n6hnk15wxw5fd7sn9y7x-develkit/src -I /nix/store/w218m7m6bma3n6hnk15wxw5fd7sn9y7x-develkit/src -I /nix/store/w218m7m6bma3n6hnk15wxw5fd7sn9y7x-develkit/objs -I objs/addon/ndk -I /usr/include/libxml2 -I src/stream \
       >   -o objs/addon/xjls3h70j5zj2pipyvlhl1zwd4c14wf8-vod/ngx_buffer_cache.o \
       >        /nix/store/xjls3h70j5zj2pipyvlhl1zwd4c14wf8-vod/ngx_buffer_cache.c
       > cc1: all warnings being treated as errors
       > make[1]: *** [objs/Makefile:2649: objs/addon/filters/audio_decoder.o] Error 1
       > make[1]: *** Waiting for unfinished jobs....
       > make[1]: *** [objs/Makefile:2656: objs/addon/filters/audio_encoder.o] Error 1
       > make[1]: *** [objs/Makefile:2670: objs/addon/thumb/thumb_grabber.o] Error 1
       > make[1]: Leaving directory '/build/nginx-1.26.2'
       > make: *** [Makefile:10: build] Error 2

Additional context

Most likely from an nginx module. And likely this one: https://github.com/NixOS/nixpkgs/blob/4734b2c5fe9aeb2eb09fa707614e8142b27d72a4/nixos/modules/services/video/frigate.nix#L172

Notify maintainers

@mweinelt

Metadata


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

mweinelt commented 2 weeks ago

Pinning it back to ffmpeg 6 makes it work, as you might have found out yourself in the upstream issue.