Skip to content

Build failure: ceph #542206

Closed
Closed

Description

@benaryorg

Nixpkgs version

  • Unstable (26.11)

Steps to reproduce

  1. nix build -f . ceph

Can Hydra reproduce this build failure?

Yes, Hydra can reproduce this build failure.

Link to Hydra build job

https://hydra.nixos.org/build/336717534

Relevant log output

In file included from /build/ceph-20.2.2.tar.gz-patched/src/s3select/include/encryption_internal.h:23,
                 from /build/ceph-20.2.2.tar.gz-patched/src/s3select/include/s3select_parquet_intrf.h:27,
                 from /build/ceph-20.2.2.tar.gz-patched/src/s3select/include/s3select_oper.h:17,
                 from /build/ceph-20.2.2.tar.gz-patched/src/s3select/include/s3select.h:14,
                 from /build/ceph-20.2.2.tar.gz-patched/src/rgw/rgw_s3select_private.h:39,
                 from /build/ceph-20.2.2.tar.gz-patched/src/rgw/rgw_s3select.cc:4:
/build/ceph-20.2.2.tar.gz-patched/src/s3select/include/encryption_internal_20.h:24:10: fatal error: arrow/util/span.h: No such file or directory
   24 | #include "arrow/util/span.h"
      |          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [src/rgw/CMakeFiles/rgw_common.dir/build.make:1315: src/rgw/CMakeFiles/rgw_common.dir/rgw_s3select.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....

Additional context

This is likely due to the arrow-cpp bump to 24.0.0 merged as part of #535855. Note here that I cannot for the life of me figure out which PR this originally came from.

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.18.34, NixOS, 26.11 (Zokor), 26.11
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Lix, like Nix) 2.96.0-dev-abfe9d0 System type: x86_64-linux Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux Features: gc, signed-caches System configuration file: /etc/nix/nix.conf User configuration files: /home/benaryorg/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/benaryorg/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/benaryorg/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/benaryorg/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/560cyf33wnq5n25d6mshicr3agzv1k9z-lix-2.96.0-dev-abfe9d0/share
  • nixpkgs: /nix/store/8j04sq7s87lgvczpdk030d2qhrpd9yd9-source

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 Jul 15, 2026
  2. benaryorg commented on Jul 15, 2026

    @benaryorg
    ContributorAuthor

    There is also #524340 which is very confusing since it seems to touch arrow-cpp, but talks mostly about R.

    Again, I have no idea where the arrow-cpp bump originally came from because GitHub is doing its very best to be unusable (IMHO). Unless it actually was just straight up pushed into staging without a PR, in which case GitHub can't do anything about that of course.

  3. benaryorg commented on Jul 15, 2026

    @benaryorg
    ContributorAuthor

    The underlying issue is that arrow-cpp removed its own span implementation in favour of stdlib which of course causes the Ceph code using at the very least the header for the spans to fail.
    I haven't found an upstream PR for fixing this at time of writing, and neither does the Ceph AUR.

    Personally I don't use any of the Arrow functionality (i.e. s3select) so I'm not really invested enough to go write code for this.
    I think @nh2 would agree that grabbing the 24.0.0 Arrow and vendoring it for Ceph would be the easiest solution with the least friction?

  4. benaryorg commented on Jul 15, 2026

    @benaryorg
    ContributorAuthor

    Quick fix (may or may not build successfully) overlay for anyone in need of a quick fix (i.e. samba4Full people):

    # horrible formatting is optional, the code will also work if you make it look okay
    final: prev:
    {
      ceph = (prev.ceph.overrideScope (_: prev:
      {
        # not sure if needed or effective
        arrow-cpp = null;
        ceph = prev.ceph.overrideAttrs ({ cmakeFlags ? [], ... }: { cmakeFlags = cmakeFlags ++
        [
          (final.lib.cmakeBool "WITH_RADOSGW_SELECT_PARQUET" false)
          (final.lib.cmakeBool "WITH_RADOSGW_ARROW_FLIGHT" false)
        ]; });
      })).ceph;
    }
  5. nh2 commented on Jul 15, 2026

    @nh2
    Contributor

    Personally I don't use any of the Arrow functionality (i.e. s3select) so I'm not really invested enough to go write code for this.

    Same for me.

    I think @nh2 would agree that grabbing the 24.0.0 Arrow and vendoring it for Ceph would be the easiest solution with the least friction?

    @benaryorg I agree.

  6. nh2 commented on Jul 15, 2026

    @nh2
    Contributor

    The PR that brought the arrow-cpp 23 -> 24 upgrade commit c07b089 is

  7. nh2 commented on Jul 15, 2026

    @nh2
    Contributor

    grabbing the 24.0.0 Arrow and vendoring it for Ceph

    I started a local build for this.

  8. nh2 commented on Jul 15, 2026

    @nh2
    Contributor
  9. linked a pull request that will close this issueceph: Override arrow-cpp 24 -> 23 to fix build #542348on Jul 15, 2026
  10. marius851000 commented on Jul 29, 2026

    @marius851000
    Contributor

    I have been having another build failure now:

    Executing pythonImportsCheckPhase
    Running phase: pythonMetadataCheckPhase
    Executing pythonMetadataCheckPhase
    Traceback (most recent call last):
      File "/nix/store/zm1bfv9agv7v007kn3cylf8hjd2wbkrb-python3-3.12.13/lib/python3.12/importlib/metadata/__init__.py", line 397, in from_name
        return next(cls.discover(name=name))
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    StopIteration
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/nix/store/zm1bfv9agv7v007kn3cylf8hjd2wbkrb-python3-3.12.13/lib/python3.12/importlib/metadata/__init__.py", line 889, in version
        return distribution(distribution_name).version
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/nix/store/zm1bfv9agv7v007kn3cylf8hjd2wbkrb-python3-3.12.13/lib/python3.12/importlib/metadata/__init__.py", line 862, in distribution
        return Distribution.from_name(distribution_name)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/nix/store/zm1bfv9agv7v007kn3cylf8hjd2wbkrb-python3-3.12.13/lib/python3.12/importlib/metadata/__init__.py", line 399, in from_name
        raise PackageNotFoundError(name)
    importlib.metadata.PackageNotFoundError: No package metadata was found for ceph-common
    error: Cannot build '/nix/store/lbz92sds057wl9as1ycp8lvbgc6vhmal-python3.12-ceph-common-20.2.2.drv'.
    

    (ceph-common being a dependancy on CEPH).

    See also #546708 and #545533 with the same suggested fix of changing the pname to the package name, but that is already the case here.

    The check has been introduced in 006c793 on the 2026-07-09, 20 days ago

    I don’t know if I should make a separate issue or keep it here (given it is obviously a separate issue). I’ve been using the overrideAttrs to fix the build failure until a fix is merged upstream.

    Ah! pname is supposed to be ceph (which is... confusing. Is using the pname for anything but as a key in the store a good idea?)

    And it complain the version metadata is invalid too.

  11. marius851000 commented on Jul 29, 2026

    @marius851000
    Contributor

    I am busy right now, but I would suggest that just disabling that check might the best thing to do, as it appear to be unused outside ceph itself.

  12. marius851000 commented on Jul 29, 2026

    @marius851000
    Contributor

    python313Packages.cython_0, another dependancy, fails for the same reason.

  13. marius851000 commented on Jul 29, 2026

    @marius851000
    Contributor

    Here is the PR that introduced the check: #532778

  14. marius851000 commented on Jul 29, 2026

    @marius851000
    Contributor

    AND there is a failed test:

    in python312Packages.scipy (but not python313Packages.scipy)

    FAILED lib/python3.12/site-packages/scipy/stats/tests/test_continuous.py::TestDistributions::test_support_moments_sample[Normal] - AssertionError:
    Not equal to tolerance rtol=1e-07, atol=2e-09
    
    Mismatched elements: 1 / 2 (50%)
    Mismatch at index:
     [1]: 0.0 (ACTUAL), 2.0102755453969153e-09 (DESIRED)
    Max absolute difference among violations: 2.01027555e-09
    Max relative difference among violations: 1.
     ACTUAL: array([0., 0.])
     DESIRED: array([0.000000e+00, 2.010276e-09])
    Falsifying example: test_support_moments_sample(
        self=<scipy.stats.tests.test_continuous.TestDistributions object at 0x7fffb7a30800>,
        family=scipy.stats._new_distributions.Normal,
        data=data(...),
        seed=271582488,
    )
    Draw 1: 0
    Draw 2: BroadcastableShapes(input_shapes=((2,), ()), result_shape=(2,))
    Draw 3: ()
    Draw 4: ()
    Draw 5: ()
    Explanation:
        These lines were always and only run by failing examples:
            /nix/store/k4mnva74d3kq0c56dwc8yi3m65ws9phq-python3.12-numpy-2.5.1/lib/python3.12/site-packages/numpy/_core/arrayprint.py:1021
            /nix/store/k4mnva74d3kq0c56dwc8yi3m65ws9phq-python3.12-numpy-2.5.1/lib/python3.12/site-packages/numpy/_core/arrayprint.py:1022
            /nix/store/k4mnva74d3kq0c56dwc8yi3m65ws9phq-python3.12-numpy-2.5.1/lib/python3.12/site-packages/numpy/_core/arrayprint.py:1027
            /nix/store/k4mnva74d3kq0c56dwc8yi3m65ws9phq-python3.12-numpy-2.5.1/lib/python3.12/site-packages/numpy/_core/arrayprint.py:1028
            /nix/store/k4mnva74d3kq0c56dwc8yi3m65ws9phq-python3.12-numpy-2.5.1/lib/python3.12/site-packages/numpy/_core/arrayprint.py:1033
            (and 12 more with settings.verbosity >= verbose)
    
    You can reproduce this example by temporarily adding @reproduce_failure('6.156.1', b'AXiccxEwYJVwZHBkcmRkdGRgALIYEIgBADT4Au8=') as a decorator on your test case
    

    Given the name of the tested function, looks like a potentially flaky test to. Re-running the test, it does seems to be deterministic.

  15. marius851000 commented on Jul 29, 2026

    @marius851000
    Contributor

    Created an issue about scipy: #547063

  16. Svenum commented on Aug 8, 2026

    @Svenum
    Member

    I have been having another build failure now:

    Executing pythonImportsCheckPhase
    Running phase: pythonMetadataCheckPhase
    Executing pythonMetadataCheckPhase
    Traceback (most recent call last):
      File "/nix/store/zm1bfv9agv7v007kn3cylf8hjd2wbkrb-python3-3.12.13/lib/python3.12/importlib/metadata/__init__.py", line 397, in from_name
        return next(cls.discover(name=name))
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    StopIteration
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/nix/store/zm1bfv9agv7v007kn3cylf8hjd2wbkrb-python3-3.12.13/lib/python3.12/importlib/metadata/__init__.py", line 889, in version
        return distribution(distribution_name).version
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/nix/store/zm1bfv9agv7v007kn3cylf8hjd2wbkrb-python3-3.12.13/lib/python3.12/importlib/metadata/__init__.py", line 862, in distribution
        return Distribution.from_name(distribution_name)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/nix/store/zm1bfv9agv7v007kn3cylf8hjd2wbkrb-python3-3.12.13/lib/python3.12/importlib/metadata/__init__.py", line 399, in from_name
        raise PackageNotFoundError(name)
    importlib.metadata.PackageNotFoundError: No package metadata was found for ceph-common
    error: Cannot build '/nix/store/lbz92sds057wl9as1ycp8lvbgc6vhmal-python3.12-ceph-common-20.2.2.drv'.
    

    (ceph-common being a dependancy on CEPH).

    See also #546708 and #545533 with the same suggested fix of changing the pname to the package name, but that is already the case here.

    The check has been introduced in 006c793 on the 2026-07-09, 20 days ago

    I don’t know if I should make a separate issue or keep it here (given it is obviously a separate issue). I’ve been using the overrideAttrs to fix the build failure until a fix is merged upstream.

    Ah! pname is supposed to be ceph (which is... confusing. Is using the pname for anything but as a key in the store a good idea?)

    And it complain the version metadata is invalid too.

    Any overlay or quickfix for this?

  17. linked a pull request that will close this issueceph: fix #548582on Aug 12, 2026
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