Details
-
Bug
-
Resolution: Done
-
P4: Low
-
6.3.1, 6.4.0 FF
-
None
-
-
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 |
414906,3 | Fix compilation of tst_bench_shared_ptr | dev | qt/qtbase | Status: ABANDONED | 0 | 0 |
416875,3 | tst_bench_shared_ptr: fix build with BOOST_NO_EXCEPTIONS | dev | qt/qtbase | Status: MERGED | +2 | 0 |
417888,2 | tst_bench_shared_ptr: fix build with BOOST_NO_EXCEPTIONS | 6.4 | qt/qtbase | Status: MERGED | +2 | 0 |
417889,3 | tst_bench_shared_ptr: fix build with BOOST_NO_EXCEPTIONS | 6.3 | qt/qtbase | Status: MERGED | +2 | 0 |