Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-104083

tst_bench_shared_ptr does not compile on Ubuntu 22.04

    XMLWordPrintable

Details

    • Linux/X11
    • 882fc48b9e (qt/qtbase/dev) 882fc48b9e (qt/tqtc-qtbase/dev) 453fbbc2e8 (qt/qtbase/6.4) 453fbbc2e8 (qt/tqtc-qtbase/6.4) b15ca268f6 (qt/qtbase/6.3) b15ca268f6 (qt/tqtc-qtbase/6.3)
    • Team B Foundation Sprint 59

    Description

      tst_bench_shared_ptr does not compile on Ubuntu 22.04. The error given is

      [19/176] Linking CXX executable tests/benchmarks/corelib/tools/qsharedpointer/tst_bench_shared_ptr
      FAILED: tests/benchmarks/corelib/tools/qsharedpointer/tst_bench_shared_ptr 
      : && /usr/bin/g++-11 -Wfatal-errors -g -Wl,--enable-new-dtags tests/benchmarks/corelib/tools/qsharedpointer/CMakeFiles/tst_bench_shared_ptr.dir/tst_bench_shared_ptr_autogen/mocs_compilation.cpp.o tests/benchmarks/corelib/tools/qsharedpointer/CMakeFiles/tst_bench_shared_ptr.dir/tst_bench_shared_ptr.cpp.o -o tests/benchmarks/corelib/tools/qsharedpointer/tst_bench_shared_ptr  -Wl,-rpath,/home/andreasbuhr/development/qtdev/qtbase/cmake-build-debug/lib  lib/libQt6Test.so.6.5.0  lib/libQt6Core.so.6.5.0 && :
      /usr/bin/ld: tests/benchmarks/corelib/tools/qsharedpointer/CMakeFiles/tst_bench_shared_ptr.dir/tst_bench_shared_ptr.cpp.o: in function `boost::detail::shared_count::shared_count<int*, boost::detail::sp_ms_deleter<int> >(int*, boost::detail::sp_inplace_tag<boost::detail::sp_ms_deleter<int> >)':
      /usr/include/boost/smart_ptr/detail/shared_count.hpp:234: undefined reference to `boost::throw_exception(std::exception const&)'
      /usr/bin/ld: tests/benchmarks/corelib/tools/qsharedpointer/CMakeFiles/tst_bench_shared_ptr.dir/tst_bench_shared_ptr.cpp.o: in function `boost::detail::shared_count::shared_count<QString*, boost::detail::sp_ms_deleter<QString> >(QString*, boost::detail::sp_inplace_tag<boost::detail::sp_ms_deleter<QString> >)':
      /usr/include/boost/smart_ptr/detail/shared_count.hpp:234: undefined reference to `boost::throw_exception(std::exception const&)'
      collect2: error: ld returned 1 exit status
      [44/176] Building CXX object tests/benchmarks/gui/animation/qanimation/CMakeFiles/tst_bench_qanimation.dir/main.cpp.o
      ninja: build stopped: subcommand failed.
      

      It seems boost shared_ptr is not header-only any more. So some adaptions in the build system would be necessary.

      Attachments

        For Gerrit Dashboard: QTBUG-104083
        # Subject Branch Project Status CR V

        Activity

          People

            mmutz Marc Mutz
            andreasbuhr Andreas Buhr
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes