Repository navigation
Closed
Labels
0.kind: build failureA package fails to build
Description
Nixpkgs version
- Unstable (26.11)
Steps to reproduce
- Build shaka-packager from current nixpkgs unstable
- Observe compilation error
Can Hydra reproduce this build failure?
Yes, Hydra can reproduce this build failure.
Link to Hydra build job
Relevant log output
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/f1h7jhzy8aapk0z574l5mh66dd64k5k8-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" }
cmake flags: -GNinja -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LOCALEDIR=/nix/store/3virg9aprxb1f2gss8753pv6ciisqmy0-shaka-packager-3.9.3/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/3virg9aprxb1f2gss8753pv6ciisqmy0-shaka-packager-3.9.3/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/3virg9aprxb1f2gss8753pv6ciisqmy0-shaka-packager-3.9.3/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/3virg9aprxb1f2gss8753pv6ciisqmy0-shaka-packager-3.9.3/share/doc/shaka-packager -DCMAKE_INSTALL_INFODIR=/nix/store/3virg9aprxb1f2gss8753pv6ciisqmy0-shaka-packager-3.9.3/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/3virg9aprxb1f2gss8753pv6ciisqmy0-shaka-packager-3.9.3/share/man -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/3virg9aprxb1f2gss8753pv6ciisqmy0-shaka-packager-3.9.3/include -DCMAKE_INSTALL_SBINDIR=/nix/store/3virg9aprxb1f2gss8753pv6ciisqmy0-shaka-packager-3.9.3/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/3virg9aprxb1f2gss8753pv6ciisqmy0-shaka-packager-3.9.3/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/3virg9aprxb1f2gss8753pv6ciisqmy0-shaka-packager-3.9.3/lib -DCMAKE_STRIP=/nix/store/j1938gsbvbhkyz4kbmvjk56r479mkw3s-gcc-wrapper-16.2.0/bin/strip -DCMAKE_RANLIB=/nix/store/j1938gsbvbhkyz4kbmvjk56r479mkw3s-gcc-wrapper-16.2.0/bin/ranlib -DCMAKE_AR=/nix/store/j1938gsbvbhkyz4kbmvjk56r479mkw3s-gcc-wrapper-16.2.0/bin/ar -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_INSTALL_PREFIX=/nix/store/3virg9aprxb1f2gss8753pv6ciisqmy0-shaka-packager-3.9.3 -DPACKAGER_VERSION=v3.9.3-nixpkgs -DUSE_SYSTEM_DEPENDENCIES=ON -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON -DPROTOC_EXE=/nix/store/gw9ambrbxi2f04a72wn27rhr07chkzi8-protobuf-36.2/bin/protoc -DProtobuf_PROTOC_EXE=/nix/store/gw9ambrbxi2f04a72wn27rhr07chkzi8-protobuf-36.2/bin/protoc -DProtobuf_PROTOC_EXECUTABLE=/nix/store/gw9ambrbxi2f04a72wn27rhr07chkzi8-protobuf-36.2/bin/protoc
-- The C compiler identification is GNU 16.2.0
-- The CXX compiler identification is GNU 16.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /nix/store/j1938gsbvbhkyz4kbmvjk56r479mkw3s-gcc-wrapper-16.2.0/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /nix/store/j1938gsbvbhkyz4kbmvjk56r479mkw3s-gcc-wrapper-16.2.0/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Python3: /nix/store/42b9z2zcrra8b8zyaflpg2gmyyf5hihy-python3-3.14.7-env/bin/python3.14 (found version "3.14.7") found components: Interpreter
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found GTest: /nix/store/bxcddj1bbg7s3kqjr7gnc0wdd0xjvzy1-gtest-1.18.0-dev/lib/cmake/GTest/GTestConfig.cmake (found version "1.18.0")
-- Found CURL: /nix/store/36alc2mwna4nzf6djdj2hvh4w4r3cai5-curl-8.22.0/lib/libcurl.so (found version "8.22.0")
-- Found LibXml2: /nix/store/vfj3fn7rp56w7f3xy6vz5s41nziv4jgm-libxml2-2.15.4/lib/libxml2.so (found version "2.15.4")
-- Found ZLIB: /nix/store/wgw25d181h0qks7qsfp1bh7c5nd3f0s7-zlib-1.3.2/lib/libz.so (found version "1.3.2")
-- Found PNG: /nix/store/qc7wwg64ggan8nzgrlal5dy16gyx6c1l-libpng-apng-1.6.58/lib/libpng.so (found version "1.6.58")
-- Found nlohmann_json: /nix/store/0dz9bi5rv50d46w8xykwdxrj4ssy6pnp-nlohmann_json-3.12.0/share/cmake/nlohmann_json/nlohmann_jsonConfig.cmake (found version "3.12.0")
-- Configuring done (12.9s)
�[33mCMake Warning (author) at packager/CMakeLists.txt:182 (add_executable):
The feature 'WHOLE_ARCHIVE', specified as part of a generator-expression
'$<LINK_LIBRARY:WHOLE_ARCHIVE>', will not be applied to the SHARED_LIBRARY
'absl::log_flags'.
This warning is for project developers. Use -Wno-author to suppress it.
�[0m
�[33mCMake Warning (author) at packager/CMakeLists.txt:227 (add_executable):
The feature 'WHOLE_ARCHIVE', specified as part of a generator-expression
'$<LINK_LIBRARY:WHOLE_ARCHIVE>', will not be applied to the SHARED_LIBRARY
'absl::log_flags'.
This warning is for project developers. Use -Wno-author to suppress it.
�[0m
-- Generating done (0.9s)
�[33mCMake Warning (unused-cli):
Manually-specified variables were not used by the project:
BUILD_TESTING
CMAKE_EXPORT_NO_PACKAGE_REGISTRY
PROTOC_EXE
Protobuf_PROTOC_EXE
Protobuf_PROTOC_EXECUTABLE
�[0m
-- Build files have been written to: /build/source/build
cmake: enabled parallel building
cmake: enabled parallel installing
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
build flags: -j8 mpd_generator packager pssh_box_py
[1/270] Running protocol buffer compiler on widevine_pssh_data.proto
[2/270] Running protocol buffer compiler on widevine_common_encryption.proto
[3/270] Running protocol buffer compiler on media_info.proto
[4/270] Building CXX object packager/kv_pairs/CMakeFiles/kv_pairs.dir/kv_pairs.cc.o
[5/270] Building CXX object packager/version/CMakeFiles/version.dir/version.cc.o
[6/270] Building CXX object packager/file/CMakeFiles/file.dir/callback_file.cc.o
[7/270] Building CXX object packager/file/CMakeFiles/file.dir/file_util.cc.o
FAILED: [code=1] packager/file/CMakeFiles/file.dir/file_util.cc.o
/nix/store/j1938gsbvbhkyz4kbmvjk56r479mkw3s-gcc-wrapper-16.2.0/bin/g++ -I/build/source/packager/.. -I/build/source/packager/../include -O3 -DNDEBUG -std=gnu++20 -Wall -Wextra -Werror -Wno-unknown-warning-option -Wno-pre-c++17-compat -MD -MT packager/file/CMakeFiles/file.dir/file_util.cc.o -MF packager/file/CMakeFiles/file.dir/file_util.cc.o.d -o packager/file/CMakeFiles/file.dir/file_util.cc.o -c /build/source/packager/file/file_util.cc
/build/source/packager/file/file_util.cc: In function 'bool shaka::TempFilePath(const std::string&, std::string*)':
/build/source/packager/file/file_util.cc:54:44: error: 'std::filesystem::__cxx11::path std::filesystem::__cxx11::u8path(const _Source&) [with _Source = std::__cxx11::basic_string<char>; _Require = path; _CharT = char]' is deprecated: use 'path((const char8_t*)&*source)' instead [-Werror=deprecated-declarations]
54 | temp_dir_path = std::filesystem::u8path(temp_dir);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
In file included from /nix/store/5q6bdxkp7lc70gn9mnf4yiybrx8ry5xq-gcc-16.2.0/include/c++/16.2.0/filesystem:55,
from /build/source/packager/../packager/file/file_util.h:7,
from /build/source/packager/file/file_util.cc:7:
/nix/store/5q6bdxkp7lc70gn9mnf4yiybrx8ry5xq-gcc-16.2.0/include/c++/16.2.0/bits/fs_path.h:847:5: note: declared here
847 | u8path(const _Source& __source)
| ^~~~~~
At global scope:
cc1plus: note: unrecognized command-line option '-Wno-pre-c++17-compat' may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option '-Wno-unknown-warning-option' may have been intended to silence earlier diagnostics
cc1plus: all warnings being treated as errors
[8/270] Building CXX object packager/status/CMakeFiles/status.dir/status.cc.o
[9/270] Building CXX object packager/file/CMakeFiles/file.dir/io_cache.cc.o
[10/270] Building CXX object packager/file/CMakeFiles/file.dir/file.cc.o
FAILED: [code=1] packager/file/CMakeFiles/file.dir/file.cc.o
/nix/store/j1938gsbvbhkyz4kbmvjk56r479mkw3s-gcc-wrapper-16.2.0/bin/g++ -I/build/source/packager/.. -I/build/source/packager/../include -O3 -DNDEBUG -std=gnu++20 -Wall -Wextra -Werror -Wno-unknown-warning-option -Wno-pre-c++17-compat -MD -MT packager/file/CMakeFiles/file.dir/file.cc.o -MF packager/file/CMakeFiles/file.dir/file.cc.o.d -o packager/file/CMakeFiles/file.dir/file.cc.o -c /build/source/packager/file/file.cc
/build/source/packager/file/file.cc: In function 'bool shaka::{anonymous}::WriteLocalFileAtomically(const char*, const std::string&)':
/build/source/packager/file/file.cc:93:56: error: 'std::filesystem::__cxx11::path std::filesystem::__cxx11::u8path(const _Source&) [with _Source = const char*; _Require = path; _CharT = char]' is deprecated: use 'path((const char8_t*)&*source)' instead [-Werror=deprecated-declarations]
93 | std::filesystem::absolute(std::filesystem::u8path(file_name), ec);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from /nix/store/5q6bdxkp7lc70gn9mnf4yiybrx8ry5xq-gcc-16.2.0/include/c++/16.2.0/filesystem:55,
from /build/source/packager/file/file.cc:14:
/nix/store/5q6bdxkp7lc70gn9mnf4yiybrx8ry5xq-gcc-16.2.0/include/c++/16.2.0/bits/fs_path.h:847:5: note: declared here
847 | u8path(const _Source& __source)
| ^~~~~~
/build/source/packager/file/file.cc:107:48: error: 'std::filesystem::__cxx11::path std::filesystem::__cxx11::u8path(const _Source&) [with _Source = std::__cxx11::basic_string<char>; _Require = path; _CharT = char]' is deprecated: use 'path((const char8_t*)&*source)' instead [-Werror=deprecated-declarations]
107 | auto temp_file_path = std::filesystem::u8path(temp_file_name);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/nix/store/5q6bdxkp7lc70gn9mnf4yiybrx8ry5xq-gcc-16.2.0/include/c++/16.2.0/bits/fs_path.h:847:5: note: declared here
847 | u8path(const _Source& __source)
| ^~~~~~
/build/source/packager/file/file.cc: In static member function 'static bool shaka::File::IsLocalRegularFile(const char*)':
/build/source/packager/file/file.cc:436:48: error: 'std::filesystem::__cxx11::path std::filesystem::__cxx11::u8path(const _Source&) [with _Source = std::basic_string_view<char>; _Require = path; _CharT = char]' is deprecated: use 'path((const char8_t*)&*source)' instead [-Werror=deprecated-declarations]
436 | auto real_file_path = std::filesystem::u8path(real_file_name);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/nix/store/5q6bdxkp7lc70gn9mnf4yiybrx8ry5xq-gcc-16.2.0/include/c++/16.2.0/bits/fs_path.h:847:5: note: declared here
847 | u8path(const _Source& __source)
| ^~~~~~
At global scope:
cc1plus: note: unrecognized command-line option '-Wno-pre-c++17-compat' may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option '-Wno-unknown-warning-option' may have been intended to silence earlier diagnostics
cc1plus: all warnings being treated as errors
[11/270] Building CXX object packager/file/CMakeFiles/file.dir/local_file.cc.o
FAILED: [code=1] packager/file/CMakeFiles/file.dir/local_file.cc.o
/nix/store/j1938gsbvbhkyz4kbmvjk56r479mkw3s-gcc-wrapper-16.2.0/bin/g++ -I/build/source/packager/.. -I/build/source/packager/../include -O3 -DNDEBUG -std=gnu++20 -Wall -Wextra -Werror -Wno-unknown-warning-option -Wno-pre-c++17-compat -MD -MT packager/file/CMakeFiles/file.dir/local_file.cc.o -MF packager/file/CMakeFiles/file.dir/local_file.cc.o.d -o packager/file/CMakeFiles/file.dir/local_file.cc.o -c /build/source/packager/file/local_file.cc
/build/source/packager/file/local_file.cc: In member function 'virtual int64_t shaka::LocalFile::Size()':
/build/source/packager/file/local_file.cc:86:43: error: 'std::filesystem::__cxx11::path std::filesystem::__cxx11::u8path(const _Source&) [with _Source = std::__cxx11::basic_string<char>; _Require = path; _CharT = char]' is deprecated: use 'path((const char8_t*)&*source)' instead [-Werror=deprecated-declarations]
86 | auto file_path = std::filesystem::u8path(file_name());
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
In file included from /nix/store/5q6bdxkp7lc70gn9mnf4yiybrx8ry5xq-gcc-16.2.0/include/c++/16.2.0/filesystem:55,
from /build/source/packager/file/local_file.cc:23:
/nix/store/5q6bdxkp7lc70gn9mnf4yiybrx8ry5xq-gcc-16.2.0/include/c++/16.2.0/bits/fs_path.h:847:5: note: declared here
847 | u8path(const _Source& __source)
| ^~~~~~
/build/source/packager/file/local_file.cc: In member function 'virtual bool shaka::LocalFile::Open()':
/build/source/packager/file/local_file.cc:124:43: error: 'std::filesystem::__cxx11::path std::filesystem::__cxx11::u8path(const _Source&) [with _Source = std::__cxx11::basic_string<char>; _Require = path; _CharT = char]' is deprecated: use 'path((const char8_t*)&*source)' instead [-Werror=deprecated-declarations]
124 | auto file_path = std::filesystem::u8path(file_name());
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
/nix/store/5q6bdxkp7lc70gn9mnf4yiybrx8ry5xq-gcc-16.2.0/include/c++/16.2.0/bits/fs_path.h:847:5: note: declared here
847 | u8path(const _Source& __source)
| ^~~~~~
/build/source/packager/file/local_file.cc:143:52: error: invalid conversion from 'const char8_t*' to 'const char*' [-fpermissive]
143 | internal_file_ = fopen(file_path.u8string().c_str(), file_mode_.c_str());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~
| |
| const char8_t*
In file included from /nix/store/5q6bdxkp7lc70gn9mnf4yiybrx8ry5xq-gcc-16.2.0/include/c++/16.2.0/cstdio:47,
from /build/source/packager/../packager/file/local_file.h:11,
from /build/source/packager/file/local_file.cc:7:
/nix/store/m38wglsqnh1mrmj2cmqa3pjb6w4yjxdi-glibc-2.44-25-dev/include/stdio.h:271:44: note: initializing argument 1 of 'FILE* fopen(const char*, const char*)'
271 | extern FILE *fopen (const char *__restrict __filename,
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/build/source/packager/file/local_file.cc: In static member function 'static bool shaka::LocalFile::Delete(const char*)':
/build/source/packager/file/local_file.cc:148:43: error: 'std::filesystem::__cxx11::path std::filesystem::__cxx11::u8path(const _Source&) [with _Source = const char*; _Require = path; _CharT = char]' is deprecated: use 'path((const char8_t*)&*source)' instead [-Werror=deprecated-declarations]
148 | auto file_path = std::filesystem::u8path(file_name);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/nix/store/5q6bdxkp7lc70gn9mnf4yiybrx8ry5xq-gcc-16.2.0/include/c++/16.2.0/bits/fs_path.h:847:5: note: declared here
847 | u8path(const _Source& __source)
| ^~~~~~
At global scope:
cc1plus: note: unrecognized command-line option '-Wno-pre-c++17-compat' may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option '-Wno-unknown-warning-option' may have been intended to silence earlier diagnostics
cc1plus: all warnings being treated as errors
[12/270] Building CXX object packager/file/CMakeFiles/file.dir/http_file.cc.o
[13/270] Building CXX object packager/file/CMakeFiles/file.dir/thread_pool.cc.o
[14/270] Building CXX object packager/file/CMakeFiles/file.dir/memory_file.cc.o
ninja: build stopped: subcommand failed.Additional context
According to hydra-check, this was working 2026-09-14 but failed on the next build, 2026-09-29
System metadata
- system:
"x86_64-linux" - host os:
Linux 7.2.9, NixOS, 26.11 (Zokor), 26.11.20261005.494ce7f - multi-user?:
yes - sandbox:
yes - version:
nix-env (Nix) 2.34.8 - channels(root):
"nixos" - nixpkgs:
/nix/store/pgp7knjgswsdv1mzgdhx21v8zmdkbisy-source
Notify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
- I assert that this is a bug and not a support request.
- I assert that this is not a duplicate of an existing issue.
- I assert that I have read the NixOS Code of Conduct and agree to abide by it.
- I assert that I have read the automation/AI policy and that this issue report complies with it.
Is this issue important to you?
Add a 👍 reaction to issues you find important.
Reacted by Niklas Korz
Metadata
Metadata
Assignees
Labels
0.kind: build failureA package fails to build
Activity
TymanWasTaken commentedon Oct 7, 2026
Maybe related to #569302, which appears to have fixed a build error but was only tested on darwin. Darwin currently succeeds on latest unstable build, but not linux
niklaskorz commentedon Oct 8, 2026
The build error is unrelated to the mentioned PR but caused by the update to GCC 16 and the deprecation of
std::filesystem::u8pathin C++. The quickest solution is to disable the deprecation warning / not making it error (in the package definition, in nixpkgs, not locally in your system config :)niklaskorz commentedon Oct 9, 2026
As it turns out this is not the only incompatibility with C++20. However, simply forcing it to C++17 (which upstream targets) also breaks the build as nixpkgs abseil (in either version) is built for C++20. The best path forward is likely proposing a patch upstream to make shaka-packager C++20 compatible.