Skip to content

Build failure: ceph #493884

Closed
Closed

Description

@limwa

Nixpkgs version

  • Unstable (26.05)

Steps to reproduce

  1. nix build github:NixOS/nixpkgs#ceph

Can Hydra reproduce this build failure?

Yes, Hydra can reproduce this build failure.

Link to Hydra build job

No response

Relevant log output

error:
       … while evaluating an expression to select 'drvPath' on it
         at «internal»:1:552:
       … while evaluating strict
         at «internal»:1:552:
       (stack trace truncated; use '--show-trace' to show the full trace)

       error: sphinx-9.1.0 not supported for interpreter python3.11

       note: trace involved the following derivations:
       derivation 'ceph-19.2.3'
       derivation 'python3-3.11.14-env'
       derivation 'python3.11-typeguard-4.4.4'
       derivation 'python3.11-sphinx-hook'

Additional context

There is no linked Hydra job because this is an eval error. No job was started, but the eval error appears in the "Evaluation errors" tab.

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.12.69, NixOS, 26.05 (Yarara), 26.05.20260212.acdf92d
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Lix, like Nix) 2.94.0 System type: x86_64-linux Additional system types: aarch64-linux, i686-linux, riscv64-linux Features: gc, signed-caches System configuration file: /etc/nix/nix.conf User configuration files: /home/lima/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/lima/.local/share/flatpak/exports/etc/xdg/nix/nix.conf:/var/lib/flatpak/exports/etc/xdg/nix/nix.conf:/home/lima/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/lima/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/lima/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf:/nix/store/icpw4656cfp1ig9p7wlmx7ay80gzqd91-gnome-settings-daemon-49.1/etc/xdg/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/azm88nn29hmfnrrmh1rv0wp32a7kvwmd-lix-2.94.0/share
  • channels(root): "home-manager, nixos, nixos-hardware"
  • nixpkgs: /run/current-system/nixpkgs

Notify maintainers

@adevress @alexanderkjeldaas @johanot @krav @nh2 @benaryorg


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

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Activity

  1. added
    0.kind: build failure
    on Feb 25, 2026
  2. limwa commented on Feb 25, 2026

    @limwa
    ContributorAuthor

    Ceph 20 has had its initial release on 2025-11-18. Ceph 19's EOL is on 2026-09-19.
    There were some discussions on #455889 regarding moving to Ceph 20 to fix recurring build failures.

  3. benaryorg commented on Feb 27, 2026

    @benaryorg
    Contributor

    Been looking at this earlier today.
    I've gotten the majority of Ceph 20.2.0 to compile properly, however I'm currently running into a compilation error which I distinctly remember running into before in regards to s3select.
    For anyone interested in trying to get Ceph 20.2.0 in a state ready for shipping to unstable (if not for the sphinx issue, then at least for the future in general), here's some code.

    some code

    Current error I'm running into

    In file included from /tmp/tmp.CFmJBG/ceph-20.2.0/src/s3select/include/s3select_oper.h:17,
                     from /tmp/tmp.CFmJBG/ceph-20.2.0/src/s3select/include/s3select.h:14,
                     from /tmp/tmp.CFmJBG/ceph-20.2.0/src/rgw/rgw_s3select_private.h:39,
                     from /tmp/tmp.CFmJBG/ceph-20.2.0/src/rgw/rgw_s3select.cc:4:
    /tmp/tmp.CFmJBG/ceph-20.2.0/src/s3select/include/s3select_parquet_intrf.h: In member function 'virtual std::unique_ptr<parquet::PageReader> parquet::ceph::SerializedRowGroup::GetColumnPageReader(int)':
    /tmp/tmp.CFmJBG/ceph-20.2.0/src/s3select/include/s3select_parquet_intrf.h:1014:50: error: could not convert 'meta_decryptor' from 'std::shared_ptr<parquet::Decryptor>' to 'std::function<std::unique_ptr<parquet::Decryptor>()>'
     1014 |                         static_cast<int16_t>(i), meta_decryptor, data_decryptor);
          |                                                  ^~~~~~~~~~~~~~
          |                                                  |
          |                                                  std::shared_ptr<parquet::Decryptor>
    /tmp/tmp.CFmJBG/ceph-20.2.0/src/s3select/include/s3select_parquet_intrf.h:1032:48: error: could not convert 'meta_decryptor' from 'std::shared_ptr<parquet::Decryptor>' to 'std::function<std::unique_ptr<parquet::Decryptor>()>'
     1032 |                       static_cast<int16_t>(i), meta_decryptor, data_decryptor);
          |                                                ^~~~~~~~~~~~~~
          |                                                |
          |                                                std::shared_ptr<parquet::Decryptor>
    

    This seems to be related to conditional compilation for arrow-cpp ≥20.

    My current code:

    diff --git a/pkgs/by-name/ce/ceph/arrow-cpp-19.nix b/pkgs/by-name/ce/ceph/arrow-cpp-19.nix
    deleted file mode 100644
    index 549ca5e77f17..000000000000
    diff --git a/pkgs/by-name/ce/ceph/boost-1.85.patch b/pkgs/by-name/ce/ceph/boost-1.85.patch
    deleted file mode 100644
    index 575bc94acc5f..000000000000
    diff --git a/pkgs/by-name/ce/ceph/boost-1.86-PyModule.patch b/pkgs/by-name/ce/ceph/boost-1.86-PyModule.patch
    deleted file mode 100644
    index 631844081d4a..000000000000
    diff --git a/pkgs/by-name/ce/ceph/old-python-packages/cryptography-vectors.nix b/pkgs/by-name/ce/ceph/old-python-packages/cryptography-vectors.nix
    deleted file mode 100644
    index 74bc41127e8e..000000000000
    diff --git a/pkgs/by-name/ce/ceph/old-python-packages/cryptography.nix b/pkgs/by-name/ce/ceph/old-python-packages/cryptography.nix
    deleted file mode 100644
    index 5fdee3f12b7f..000000000000
    diff --git a/pkgs/by-name/ce/ceph/old-python-packages/python-cryptography-Cherry-pick-fix-for-CVE-2023-49083-on-cryptography-40.patch b/pkgs/by-name/ce/ceph/old-python-packages/python-cryptography-Cherry-pick-fix-for-CVE-2023-49083-on-cryptography-40.patch
    deleted file mode 100644
    index 7ca05cf7450f..000000000000
    diff --git a/pkgs/by-name/ce/ceph/old-python-packages/trustme.nix b/pkgs/by-name/ce/ceph/old-python-packages/trustme.nix
    deleted file mode 100644
    index bad001851c96..000000000000
    diff --git a/pkgs/by-name/ce/ceph/package.nix b/pkgs/by-name/ce/ceph/package.nix
    index 0309d5af5d95..8f28c4aa1dd8 100644
    --- a/pkgs/by-name/ce/ceph/package.nix
    +++ b/pkgs/by-name/ce/ceph/package.nix
    @@ -13,12 +13,7 @@
       automake,
       cmake,
       ensureNewerSourcesHook,
    -  # To see which `fmt` version Ceph upstream recommends, check its `src/fmt` submodule.
    -  #
    -  # Ceph does not currently build with `fmt_10`; see https://github.com/NixOS/nixpkgs/issues/281027#issuecomment-1899128557
    -  # If we want to switch for that before upstream fixes it, use this patch:
    -  # https://github.com/NixOS/nixpkgs/pull/281858#issuecomment-1899648638
    -  fmt_9,
    +  fmt,
       git,
       libtool,
       makeWrapper,
    @@ -32,21 +27,14 @@
     
       # Runtime dependencies
     
    -  # Remove once Ceph supports arrow-cpp >= 20, see:
    -  # * https://tracker.ceph.com/issues/71269
    -  # * https://github.com/NixOS/nixpkgs/issues/406306
    -  ceph-arrow-cpp ? callPackage ./arrow-cpp-19.nix { },
    +  arrow-cpp,
       babeltrace,
       # Note when trying to upgrade boost:
       # * When upgrading Ceph, it's recommended to check which boost version Ceph uses on Fedora,
       #   and default to that.
       # * The version that Ceph downloads if `-DWITH_SYSTEM_BOOST:BOOL=ON` is not given
       #   is declared in `cmake/modules/BuildBoost.cmake` line `set(boost_version ...)`.
    -  #
    -  # If you want to upgrade to boost >= 1.86, you need a Ceph version that
    -  # has this PR in:
    -  #     https://github.com/ceph/ceph/pull/61312
    -  boost183,
    +  boost187,
       bzip2,
       cryptsetup,
       cunit,
    @@ -73,7 +61,7 @@
       oath-toolkit,
       openldap,
       parted,
    -  python311, # to get an idea which Python versions are supported by Ceph, see upstream `do_cmake.sh` (see `PYBUILD=` variable)
    +  python312, # to get an idea which Python versions are supported by Ceph, see upstream `do_cmake.sh` (see `PYBUILD=` variable)
       rdkafka,
       rocksdb,
       snappy,
    @@ -231,100 +219,9 @@ let
         };
     
       # Watch out for python <> boost compatibility
    -  python = python311.override {
    -    self = python;
    -    packageOverrides =
    -      self: super:
    -      let
    -        bcryptOverrideVersion = "4.0.1";
    -      in
    -      {
    -        # Ceph does not support the following yet:
    -        # * `bcrypt` > 4.0
    -        # * `cryptography` > 40
    -        # See:
    -        # * https://github.com/NixOS/nixpkgs/pull/281858#issuecomment-1899358602
    -        # * Upstream issue: https://tracker.ceph.com/issues/63529
    -        #   > Python Sub-Interpreter Model Used by ceph-mgr Incompatible With Python Modules Based on PyO3
    -        # * Moved to issue: https://tracker.ceph.com/issues/64213
    -        #   > MGR modules incompatible with later PyO3 versions - PyO3 modules may only be initialized once per interpreter process
    -
    -        bcrypt = super.bcrypt.overridePythonAttrs (old: rec {
    -          pname = "bcrypt";
    -          version = bcryptOverrideVersion;
    -          src = fetchPypi {
    -            inherit pname version;
    -            hash = "sha256-J9N1kDrIJhz+QEf2cJ0W99GNObHskqr3KvmJVSplDr0=";
    -          };
    -          cargoRoot = "src/_bcrypt";
    -          cargoDeps = rustPlatform.fetchCargoVendor {
    -            inherit
    -              pname
    -              version
    -              src
    -              cargoRoot
    -              ;
    -            hash = "sha256-8PyCgh/rUO8uynzGdgylAsb5k55dP9fCnf40UOTCR/M=";
    -          };
    -        });
    -
    -        # We pin the older `cryptography` 40 here;
    -        # this also forces us to pin other packages, see below
    -        cryptography = self.callPackage ./old-python-packages/cryptography.nix { };
    -
    -        # This is the most recent version of `pyopenssl` that's still compatible with `cryptography` 40.
    -        # See https://github.com/NixOS/nixpkgs/pull/281858#issuecomment-1899358602
    -        # and https://github.com/pyca/pyopenssl/blob/d9752e44127ba36041b045417af8a0bf16ec4f1e/CHANGELOG.rst#2320-2023-05-30
    -        pyopenssl = super.pyopenssl.overridePythonAttrs (old: rec {
    -          version = "23.1.1";
    -          src = fetchPypi {
    -            pname = "pyOpenSSL";
    -            inherit version;
    -            hash = "sha256-hBSYub7GFiOxtsR+u8AjZ8B9YODhlfGXkIF/EMyNsLc=";
    -          };
    -          disabledTests = old.disabledTests or [ ] ++ [
    -            "test_export_md5_digest"
    -          ];
    -          disabledTestPaths = old.disabledTestPaths or [ ] ++ [
    -            "tests/test_ssl.py"
    -          ];
    -          propagatedBuildInputs = old.propagatedBuildInputs or [ ] ++ [
    -            self.flaky
    -          ];
    -          # hack: avoid building docs due to incompatibility with current sphinx
    -          nativeBuildInputs = [ openssl ]; # old.nativeBuildInputs but without sphinx*
    -          outputs = lib.filter (o: o != "doc") old.outputs;
    -        });
    -
    -        # This is the most recent version of `trustme` that's still compatible with `cryptography` 40.
    -        # See https://github.com/NixOS/nixpkgs/issues/359723
    -        # and https://github.com/python-trio/trustme/commit/586f7759d5c27beb44da60615a71848eb2a5a490
    -        trustme = self.callPackage ./old-python-packages/trustme.nix { };
    -
    -        fastapi = super.fastapi.overridePythonAttrs (old: {
    -          # Flaky test:
    -          #     ResourceWarning: Unclosed <MemoryObjectSendStream>
    -          # Unclear whether it's flaky in general or only in this overridden package set.
    -          doCheck = false;
    -        });
    -
    -        # Ceph does not support `kubernetes` >= 19, see:
    -        #     https://github.com/NixOS/nixpkgs/pull/281858#issuecomment-1900324090
    -        kubernetes = super.kubernetes.overridePythonAttrs (old: rec {
    -          version = "18.20.0";
    -          src = fetchFromGitHub {
    -            owner = "kubernetes-client";
    -            repo = "python";
    -            rev = "v${version}";
    -            sha256 = "1sawp62j7h0yksmg9jlv4ik9b9i1a1w9syywc9mv8x89wibf5ql1";
    -            fetchSubmodules = true;
    -          };
    -        });
    -
    -      };
    -  };
    +  python = python312;
     
    -  boost' = boost183.override {
    +  boost' = boost187.override {
         enablePython = true;
         inherit python;
       };
    @@ -374,62 +271,23 @@ let
       );
       inherit (ceph-python-env.python) sitePackages;
     
    -  version = "19.2.3";
    +  version = "20.2.0";
       src = fetchurl {
         url = "https://download.ceph.com/tarballs/ceph-${version}.tar.gz";
    -    hash = "sha256-zlgp28C81SZbaFJ4yvQk4ZgYz4K/aZqtcISTO8LscSU=";
    +    hash = "sha256-jeBk1pgx7zJzOVOfIzx47IJ/o1HEDO2amRbwtBdMZoU=";
       };
     in
     stdenv.mkDerivation {
       pname = "ceph";
       inherit src version;
     
    -  patches = [
    -    ./boost-1.85.patch
    -
    -    (fetchpatch2 {
    -      name = "ceph-boost-1.86-uuid.patch";
    -      url = "https://github.com/ceph/ceph/commit/01306208eac492ee0e67bff143fc32d0551a2a6f.patch?full_index=1";
    -      hash = "sha256-OnDrr72inzGXXYxPFQevsRZImSvI0uuqFHqtFU2dPQE=";
    -    })
    -
    -    # See:
    -    # * <https://github.com/boostorg/python/issues/394>
    -    # * <https://aur.archlinux.org/cgit/aur.git/commit/?h=ceph&id=8c5cc7d8deec002f7596b6d0860859a0a718f12b>
    -    # * <https://github.com/ceph/ceph/pull/60999>
    -    ./boost-1.86-PyModule.patch
    -
    -    (fetchpatch2 {
    -      name = "ceph-cmake-4.patch";
    -      url = "https://gitlab.alpinelinux.org/ashpool/aports/-/raw/d22b70eafe33c3daabe4eea6913c5be87d9463ad/community/ceph19/cpp_redis.patch";
    -      hash = "sha256-wxPIsYt25CjXhJ6kmr/MXwFD58Sl4y4W+r9jAMND+uw=";
    -    })
    -
    -    # See:
    -    # * <https://github.com/ceph/ceph/pull/55560>
    -    # * <https://github.com/ceph/ceph/pull/60575>
    -    (fetchpatch2 {
    -      name = "ceph-systemd-sans-cluster-name.patch";
    -      url = "https://github.com/ceph/ceph/commit/5659920c7c128cb8d9552580dbe23dd167a56c31.patch?full_index=1";
    -      hash = "sha256-Uch8ZghyTowUvSq0p/RxiVpdG1Yqlww9inpVksO6zyk=";
    -    })
    -    (fetchpatch2 {
    -      name = "ceph-systemd-prefix.patch";
    -      url = "https://github.com/ceph/ceph/commit/9b38df488d7101b02afa834ea518fd52076d582a.patch?full_index=1";
    -      hash = "sha256-VcbJhCGTUdNISBd6P96Mm5M3fFVmZ8r7pMl+srQmnIQ=";
    -    })
    -    (fetchpatch2 {
    -      name = "ceph-19.2.2-gcc15.patch";
    -      url = "https://github.com/ceph/ceph/commit/830925f0dd196f920893b1947ae74171a202e825.patch";
    -      hash = "sha256-bs+noyjiyAjwqfgSHDxdZJnZ/kptOOcz75KMqAaROpg=";
    -    })
    -  ];
    +  patches = [ ];
     
       nativeBuildInputs = [
         autoconf # `autoreconf` is called, e.g. for `qatlib_ext`
         automake # `aclocal` is called, e.g. for `qatlib_ext`
         cmake
    -    fmt_9
    +    fmt
         git
         makeWrapper
         libtool # used e.g. for `qatlib_ext`
    @@ -448,7 +306,7 @@ stdenv.mkDerivation {
       buildInputs =
         cryptoLibsMap.${cryptoStr}
         ++ [
    -      ceph-arrow-cpp
    +      arrow-cpp
           babeltrace
           boost'
           bzip2
    @@ -651,7 +509,7 @@ stdenv.mkDerivation {
       passthru = {
         inherit version;
         inherit python; # to be able to test our overridden packages above individually with `nix-build -A`
    -    arrow-cpp = ceph-arrow-cpp;
    +    inherit arrow-cpp;
         tests = {
           inherit (nixosTests)
             ceph-multi-node

    Note that I've run into issues with the rocksdb version generally packaged by nixpkgs, as well as the newer versions of boost (and 187 is the new minimum requirement), YMMV.
    On the upside, all of the patches have become obsolete as far as I can tell (I only manually checked the systemd unit related ones).

    some more code

    Pulling in the following may do the trick, but I'll have to wait and see whether it compiles (Ceph isn't known for that I'm afraid):

    patches = [
      # required to be able to compile s3select against nixpkgs' arrow-cpp
      (fetchpatch {
        name = "ceph-s3select-arrow-cpp-20.patch";
        url = "https://github.com/ceph/s3select/pull/169.patch?full_index=1";
        extraPrefix = "src/s3select/";
        stripLen = 1;
        hash = "sha256-TYSiSodIy8L9wU4vUZ4G02dFahIC+63IU0VdNeEGjyU=";
      })
    ];

    You can find a version of Ceph with this building in my Hydra.

  4. benaryorg commented on Feb 27, 2026

    @benaryorg
    Contributor

    I've opened #494583 as a draft PR for a chunk of code which manages to build and pass basic tests, but definitely needs a few more eyes to gloss over the changes, and also ideally see a (test) cluster migrate from 19.2.3 to 20.2.0 for the server-side stuff.
    In terms of client code the tests should largely be enough given that krbd and cephfs live in the kernel, so the only untested parts here would be the mount helper and the fuse code.
    Feel free to test and comment.

  5. nixos-discourse commented on Mar 2, 2026

    @nixos-discourse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: build failure

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions