Skip to content

Build failure: ceph  #369777

Closed
Closed

Description

@jfly

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix build .#ceph with the changes in this ceph: fix python build #369622

Build log

`nix build .#ceph`
$ nix build .#ceph
...
/build/ceph-19.2.0/src/osd/osd_types.h: In lambda function:
/build/ceph-19.2.0/src/common/dout.h:196:73: error: call to non-'constexpr' function 'virtual unsigned int DoutPrefixProvider::get_subsys() const'
  196 |     dout_impl(pdpp->get_cct(), ceph::dout::need_dynamic(pdpp->get_subsys()), v) \
      |                                                         ~~~~~~~~~~~~~~~~^~
/build/ceph-19.2.0/src/common/dout.h:167:58: note: in definition of macro 'dout_impl'
  167 |       return (cctX->_conf->subsys.template should_gather<sub, v>());    \
      |                                                          ^~~
/build/ceph-19.2.0/src/osd/osd_types.h:3704:3: note: in expansion of macro 'ldpp_dout'
 3704 |   ldpp_dout(dpp, 10) << "build_prior all_probe " << all_probe << dendl;
      |   ^~~~~~~~~
/build/ceph-19.2.0/src/common/dout.h:63:20: note: 'virtual unsigned int DoutPrefixProvider::get_subsys() const' declared here
   63 |   virtual unsigned get_subsys() const = 0;
      |                    ^~~~~~~~~~
...

Additional context

See #369622 (comment). @emilazy says this might be related to GCC 14: #369622 (comment).

Activity

  1. added
    0.kind: build failure
    on Dec 31, 2024
  2. added a commit that references this issue on Dec 31, 2024
  3. jfly commented on Dec 31, 2024

    @jfly
    ContributorAuthor

    I'm not a C++ expert. Pinging some maintainers of ceph, I'm sure they're better suited to investigating this: @adevress, @alexanderkjeldaas, @johanot, @krav, @nh2.

  4. emilazy commented on Jan 2, 2025

    @emilazy
    Member

    FWIW I don’t think it’s GCC 14, as GCC 13 also fails. 19.2.0 built before the latest staging-next. I’m kinda stumped as to what it could be as it doesn’t look like something involving a third‐party dependency. Bisecting it is hard.

  5. emilazy commented on Jan 2, 2025

    @emilazy
    Member

    Actually I think I was just overriding it wrong and it is GCC 14. Hopefully we can find a more elegant solution than simply rolling back the compiler.

  6. emilazy commented on Jan 2, 2025

    @emilazy
    Member

    Ah, and there are already distro patches out there to fix it. Okay, I’ll try and get this fixed tomorrow.

  7. added a commit that references this issue on Jan 2, 2025
    eef74a1
  8. gaelj commented on Jan 22, 2025

    @gaelj
    Member

    hi @emilazy @arachnist

    ceph build is broken again this morning on nixpkgs-unstable (I have it as a dependency of samba4full):

    error: builder for '/nix/store/lmnvsg49akzmvwj417zgm7gk5qnzs458-ceph-19.2.0.drv' failed with exit code 2;ild.Tasks.Git-1.1.0-beta-20206-02
           last 25 log lines:
           >                  from /build/ceph-19.2.0/src/common/debug.h:18,
           >                  from /build/ceph-19.2.0/src/tools/rbd_mirror/image_sync/SyncPointPruneRequest.cc:5:
           > /build/ceph-19.2.0/src/common/ceph_context.h: In member function 'void ceph::common::CephContext::set_mon_addrs(const std::vector<entity_addrvec_t>&)':
           > /build/ceph-19.2.0/src/common/ceph_context.h:285:26: warning: 'void std::atomic_store_explicit(shared_ptr<_Tp>*, shared_ptr<_Tp>, memory_order) [with _Tp = vector<entity_addrvec_t>]' is deprecated: use 'std::atomic<std::shared_ptr<T>>' instead [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations8;;]
           >   285 |     atomic_store_explicit(&_mon_addrs, std::move(ptr), std::memory_order_relaxed);
           >       |     ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           > In file included from /nix/store/gnf3mv68i5g6jmabnbbncsar3kbg13zd-gcc-14-20241116/include/c++/14-20241116/memory:81,
           >                  from /build/ceph-19.2.0/src/include/buffer.h:44,
           >                  from /build/ceph-19.2.0/src/cls/rbd/cls_rbd_types.h:8,
           >                  from /build/ceph-19.2.0/src/tools/rbd_mirror/image_sync/Types.h:7,
           >                  from /build/ceph-19.2.0/src/tools/rbd_mirror/image_sync/SyncPointPruneRequest.h:7,
           >                  from /build/ceph-19.2.0/src/tools/rbd_mirror/image_sync/SyncPointPruneRequest.cc:4:
           > /nix/store/gnf3mv68i5g6jmabnbbncsar3kbg13zd-gcc-14-20241116/include/c++/14-20241116/bits/shared_ptr_atomic.h:173:5: note: declared here
           >   173 |     atomic_store_explicit(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r,
           >       |     ^~~~~~~~~~~~~~~~~~~~~
           > /build/ceph-19.2.0/src/common/ceph_context.h: In member function 'std::shared_ptr<std::vector<entity_addrvec_t> > ceph::common::CephContext::get_mon_addrs() const':
           > /build/ceph-19.2.0/src/common/ceph_context.h:288:36: warning: 'std::shared_ptr<_Tp> std::atomic_load_explicit(const shared_ptr<_Tp>*, memory_order) [with _Tp = vector<entity_addrvec_t>]' is deprecated: use 'std::atomic<std::shared_ptr<T>>' instead [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations8;;]
           >   288 |     auto ptr = atomic_load_explicit(&_mon_addrs, std::memory_order_relaxed);
           >       |                ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           > /nix/store/gnf3mv68i5g6jmabnbbncsar3kbg13zd-gcc-14-20241116/include/c++/14-20241116/bits/shared_ptr_atomic.h:133:5: note: declared here
           >   133 |     atomic_load_explicit(const shared_ptr<_Tp>* __p, memory_order)
           >       |     ^~~~~~~~~~~~~~~~~~~~
           > [ 34%] Linking CXX static library ../../../lib/librbd_mirror_internal.a
           > [ 34%] Built target rbd_mirror_internal
           > make: *** [Makefile:146: all] Error 2
    
  9. Poisonsting commented on Jan 22, 2025

    @Poisonsting

    Can confirm that ceph fails to build to for me as well.

  10. jfly commented on Jan 23, 2025

    @jfly
    ContributorAuthor

    @gaelj, please file a new issue for this.

  11. added a commit that references this issue on Jan 25, 2025
  12. rsa4046 commented on Jan 25, 2025

    @rsa4046

    I'm having the same ceph build failure here in unstable,

    error: builder for '/nix/store/lmnvsg49akzmvwj417zgm7gk5qnzs458-ceph-19.2.0.drv' failed with exit code 2;
           last 25 log lines:
           > include/boost/asio/io_context.hpp:936:42: warning: '((const boost::asio::io_context::basic_executor_type<std::allocator<void>, 4>*)this)[5].boost::asio::io_context::basic_executor_type<std::allocator<void>, 4>::target_' may be used uninitialized [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmaybe-uninitialized-Wmaybe-uninitialized8;;]
           > In member function 'boost::asio::io_context* boost::asio::io_context::basic_executor_type<Allocator, Bits>::context_ptr() const [with Allocator = std::allocator<void>; long unsigned int Bits = 4]',
           >     inlined from 'boost::asio::io_context::basic_executor_type<Allocator, Bits>::~basic_executor_type() [with Allocator = std::allocator<void>; long unsigned int Bits = 4]' at include/boost/asio/io_context.hpp:523:22,
           >     inlined from 'boost::asio::executor_work_guard<Executor, typename std::enable_if<(! boost::asio::is_executor<T>::value), void>::type, typename std::enable_if<boost::asio::execution::is_executor<T>::value, void>::type>::~executor_work_guard() [with Executor = boost::asio::io_context::basic_executor_type<std::allocator<void>, 0>]' at include/boost/asio/executor_work_guard.hpp:202:70,
           >     inlined from 'std::pair<boost::asio::executor_work_guard<boost::asio::io_context::basic_executor_type<std::allocator<void>, 0>, void, void>, boost::asio::executor_work_guard<boost::asio::io_context::basic_executor_type<std::allocator<void>, 0>, void, void> >::~pair()' at /nix/store/gnf3mv68i5g6jmabnbbncsar3kbg13zd-gcc-14-20241116/include/c++/14-20241116/bits/stl_pair.h:284:12,
           >     inlined from 'virtual ceph::async::detail::CompletionImpl<boost::asio::io_context::basic_executor_type<std::allocator<void>, 0>, Objecter::CB_Linger_Map_Latest, void, boost::system::error_code, long unsigned int, long unsigned int>::~CompletionImpl()' at /build/ceph-19.2.0/src/common/async/completion.h:166:7,
           >     inlined from 'constexpr void std::destroy_at(_Tp*) [with _Tp = ceph::async::detail::CompletionImpl<boost::asio::io_context::basic_executor_type<allocator<void>, 0>, Objecter::CB_Linger_Map_Latest, void, boost::system::error_code, long unsigned int, long unsigned int>]' at /nix/store/gnf3mv68i5g6jmabnbbncsar3kbg13zd-gcc-14-20241116/include/c++/14-20241116/bits/stl_construct.h:88:18,
           >     inlined from 'static constexpr void std::allocator_traits<std::allocator<_Up> >::destroy(allocator_type&, _Up*) [with _Up = ceph::async::detail::CompletionImpl<boost::asio::io_context::basic_executor_type<std::allocator<void>, 0>, Objecter::CB_Linger_Map_Latest, void, boost::system::error_code, long unsigned int, long unsigned int>; _Tp = ceph::async::detail::CompletionImpl<boost::asio::io_context::basic_executor_type<std::allocator<void>, 0>, Objecter::CB_Linger_Map_Latest, void, boost::system::error_code, long unsigned int, long unsigned int>]' at /nix/store/gnf3mv68i5g6jmabnbbncsar3kbg13zd-gcc-14-20241116/include/c++/14-20241116/bits/alloc_traits.h:593:19,
           >     inlined from 'void ceph::async::detail::CompletionImpl<Executor1, Handler, T, Args>::destroy() [with Executor1 = boost::asio::io_context::basic_executor_type<std::allocator<void>, 0>; Handler = Objecter::CB_Linger_Map_Latest; T = void; Args = {boost::system::error_code, long unsigned int, long unsigned int}]' at /build/ceph-19.2.0/src/common/async/completion.h:225:27,
           >     inlined from 'static void ceph::async::detail::CompletionImpl<Executor1, Handler, T, Args>::operator delete(void*) [with Executor1 = boost::asio::io_context::basic_executor_type<std::allocator<void>, 0>; Handler = Objecter::CB_Linger_Map_Latest; T = void; Args = {boost::system::error_code, long unsigned int, long unsigned int}]' at /build/ceph-19.2.0/src/common/async/completion.h:248:45,
           >     inlined from 'virtual ceph::async::detail::CompletionImpl<boost::asio::io_context::basic_executor_type<std::allocator<void>, 0>, Objecter::CB_Linger_Map_Latest, void, boost::system::error_code, long unsigned int, long unsigned int>::~CompletionImpl()' at /build/ceph-19.2.0/src/common/async/completion.h:166:7:
           > include/boost/asio/io_context.hpp:936:42: warning: '((const boost::asio::io_context::basic_executor_type<std::allocator<void>, 4>*)this)[5].boost::asio::io_context::basic_executor_type<std::allocator<void>, 4>::target_' may be used uninitialized [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmaybe-uninitialized-Wmaybe-uninitialized8;;]
           > In member function 'boost::asio::io_context* boost::asio::io_context::basic_executor_type<Allocator, Bits>::context_ptr() const [with Allocator = std::allocator<void>; long unsigned int Bits = 4]',
           >     inlined from 'boost::asio::io_context::basic_executor_type<Allocator, Bits>::~basic_executor_type() [with Allocator = std::allocator<void>; long unsigned int Bits = 4]' at include/boost/asio/io_context.hpp:523:22,
           >     inlined from 'boost::asio::executor_work_guard<Executor, typename std::enable_if<(! boost::asio::is_executor<T>::value), void>::type, typename std::enable_if<boost::asio::execution::is_executor<T>::value, void>::type>::~executor_work_guard() [with Executor = boost::asio::io_context::basic_executor_type<std::allocator<void>, 0>]' at include/boost/asio/executor_work_guard.hpp:202:70,
           >     inlined from 'std::pair<boost::asio::executor_work_guard<boost::asio::io_context::basic_executor_type<std::allocator<void>, 0>, void, void>, boost::asio::executor_work_guard<boost::asio::io_context::basic_executor_type<std::allocator<void>, 0>, void, void> >::~pair()' at /nix/store/gnf3mv68i5g6jmabnbbncsar3kbg13zd-gcc-14-20241116/include/c++/14-20241116/bits/stl_pair.h:284:12,
           >     inlined from 'virtual ceph::async::detail::CompletionImpl<boost::asio::io_context::basic_executor_type<std::allocator<void>, 0>, Objecter::CB_Command_Map_Latest, void, boost::system::error_code, long unsigned int, long unsigned int>::~CompletionImpl()' at /build/ceph-19.2.0/src/common/async/completion.h:166:7,
           >     inlined from 'constexpr void std::destroy_at(_Tp*) [with _Tp = ceph::async::detail::CompletionImpl<boost::asio::io_context::basic_executor_type<allocator<void>, 0>, Objecter::CB_Command_Map_Latest, void, boost::system::error_code, long unsigned int, long unsigned int>]' at /nix/store/gnf3mv68i5g6jmabnbbncsar3kbg13zd-gcc-14-20241116/include/c++/14-20241116/bits/stl_construct.h:88:18,
           >     inlined from 'static constexpr void std::allocator_traits<std::allocator<_Up> >::destroy(allocator_type&, _Up*) [with _Up = ceph::async::detail::CompletionImpl<boost::asio::io_context::basic_executor_type<std::allocator<void>, 0>, Objecter::CB_Command_Map_Latest, void, boost::system::error_code, long unsigned int, long unsigned int>; _Tp = ceph::async::detail::CompletionImpl<boost::asio::io_context::basic_executor_type<std::allocator<void>, 0>, Objecter::CB_Command_Map_Latest, void, boost::system::error_code, long unsigned int, long unsigned int>]' at /nix/store/gnf3mv68i5g6jmabnbbncsar3kbg13zd-gcc-14-20241116/include/c++/14-20241116/bits/alloc_traits.h:593:19,
           >     inlined from 'void ceph::async::detail::CompletionImpl<Executor1, Handler, T, Args>::destroy() [with Executor1 = boost::asio::io_context::basic_executor_type<std::allocator<void>, 0>; Handler = Objecter::CB_Command_Map_Latest; T = void; Args = {boost::system::error_code, long unsigned int, long unsigned int}]' at /build/ceph-19.2.0/src/common/async/completion.h:225:27,
           >     inlined from 'static void ceph::async::detail::CompletionImpl<Executor1, Handler, T, Args>::operator delete(void*) [with Executor1 = boost::asio::io_context::basic_executor_type<std::allocator<void>, 0>; Handler = Objecter::CB_Command_Map_Latest; T = void; Args = {boost::system::error_code, long unsigned int, long unsigned int}]' at /build/ceph-19.2.0/src/common/async/completion.h:248:45,
           >     inlined from 'virtual ceph::async::detail::CompletionImpl<boost::asio::io_context::basic_executor_type<std::allocator<void>, 0>, Objecter::CB_Command_Map_Latest, void, boost::system::error_code, long unsigned int, long unsigned int>::~CompletionImpl()' at /build/ceph-19.2.0/src/common/async/completion.h:166:7:
           > include/boost/asio/io_context.hpp:936:42: warning: '((const boost::asio::io_context::basic_executor_type<std::allocator<void>, 4>*)this)[5].boost::asio::io_context::basic_executor_type<std::allocator<void>, 4>::target_' may be used uninitialized [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmaybe-uninitialized-Wmaybe-uninitialized8;;]
           > [ 35%] Built target common-objs
           > make: *** [Makefile:146: all] Error 2
           For full logs, run 'nix log /nix/store/lmnvsg49akzmvwj417zgm7gk5qnzs458-ceph-19.2.0.drv'.
    error: 1 dependencies of derivation '/nix/store/gv031aifdnzjy59lkm1c36bnw72s1zym-samba-4.20.4.drv' failed to build
    error: 1 dependencies of derivation '/nix/store/04hi4anj3bdgiwprib2nli02pvn1s9yf-system-path.drv' failed to build
    error: 1 dependencies of derivation '/nix/store/wjb9kpa13zlyfaqysx55zm90h2pqzb8i-nixos-system-biggieNixOS-25.05.20250123.0aa4755.drv' failed to build
    
    

    also as a samba dep. Just wondering if there is anything I should/can do, thanks.

  13. gaelj commented on Jan 25, 2025

    @gaelj
    Member

    The fix is in master branch, you can either wait a couples of days until it hits unstable, or not use Samba4Full package, or disable Ceph in samba4Full:

    services.samba = {
      enable = true;
      package = pkgs.samba4Full.override {
        enableCephFS = false;
      };
    };
  14. rsa4046 commented on Jan 25, 2025

    @rsa4046

    Thank you @gaelj, very much appreciate your help.

  15. added a commit that references this issue on Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

0.kind: build failure

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions