oneTBB: tbb-2021.10.0-rc1 Fails to compile when -Wfatal-errors is set

s/build tbb
CLEAN      tbb
    *      Removing /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/build/tbb-2021.9.0 ...
    *      Removing /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/qa_checks/tbb-* ...
UNPACK      tbb
BUILD      tbb (target)
    TOOLCHAIN      cmake (auto-detect)
Executing (target): cmake -GNinja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_TOOLCHAIN_FILE=/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/etc/cmake-x86_64-libreelec-linux-gnu.conf -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/build/tbb-2021.10.0-rc1
-- The CXX compiler identification is GNU 13.1.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/bin/x86_64-libreelec-linux-gnu-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- IPO enabled
-- The C compiler identification is GNU 13.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/bin/x86_64-libreelec-linux-gnu-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- HWLOC target HWLOC::hwloc_1_11 doesn't exist. The tbbbind target cannot be created
-- HWLOC target HWLOC::hwloc_2 doesn't exist. The tbbbind_2_0 target cannot be created
-- HWLOC target HWLOC::hwloc_2_5 doesn't exist. The tbbbind_2_5 target cannot be created
-- Performing Test LINKER_HAS_NO_AS_NEEDED
-- Performing Test LINKER_HAS_NO_AS_NEEDED - Success
-- Configuring done (0.2s)
-- Generating done (0.1s)
-- Build files have been written to: /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/build/tbb-2021.10.0-rc1/.x86_64-libreelec-linux-gnu
Executing (target): ninja 
[63/323] Building CXX object test/CMakeFiles/test_task_group.dir/tbb/test_task_group.cpp.o
FAILED: test/CMakeFiles/test_task_group.dir/tbb/test_task_group.cpp.o 
/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/bin/x86_64-libreelec-linux-gnu-g++  -I/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/build/tbb-2021.10.0-rc1/test/.. -I/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/build/tbb-2021.10.0-rc1/test -I/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/build/tbb-2021.10.0-rc1/src/tbb/../../include -march=x86-64-v3 -Wall -pipe  -O2 -fomit-frame-pointer -DNDEBUG -std=c++11 -Wall -Wextra -Werror -Wfatal-errors -Wshadow -Wcast-qual -Woverloaded-virtual -Wnon-virtual-dtor -mrtm -mwaitpkg -fstack-clash-protection -fno-strict-overflow -fno-delete-null-pointer-checks -fwrapv -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=2 -MD -MT test/CMakeFiles/test_task_group.dir/tbb/test_task_group.cpp.o -MF test/CMakeFiles/test_task_group.dir/tbb/test_task_group.cpp.o.d -o test/CMakeFiles/test_task_group.dir/tbb/test_task_group.cpp.o -c /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/build/tbb-2021.10.0-rc1/test/tbb/test_task_group.cpp
In file included from ../test/common/test.h:32,
                 from ../test/tbb/test_task_group.cpp:17:
../test/common/doctest.h: In instantiation of 'doctest::detail::Expression_lhs<L>::operator doctest::detail::Result() [with L = const char (&)[58]]':
../test/tbb/test_task_group.cpp:103:17:   required from 'void SharedGroupBodyImpl<task_group_type>::Wait() [with task_group_type = tbb::detail::d1::task_group]'
../test/tbb/test_task_group.cpp:138:13:   required from 'void SharedGroupBodyImpl<task_group_type>::Run(uintptr_t) [with task_group_type = tbb::detail::d1::task_group; uintptr_t = long unsigned int]'
../test/tbb/test_task_group.cpp:188:43:   required from 'void SharedGroupBody<task_group_type>::operator()(uintptr_t) const [with task_group_type = tbb::detail::d1::task_group; uintptr_t = long unsigned int]'
../test/common/utils.h:75:17:   required from 'void utils::NativeParallelFor(Index, const Body&) [with Index = unsigned int; Body = SharedGroupBody<tbb::detail::d1::task_group>]'
../test/tbb/test_task_group.cpp:220:22:   required from 'void TestParallelSpawn() [with task_group_type = tbb::detail::d1::task_group]'
../test/tbb/test_task_group.cpp:247:47:   required from 'void TestThreadSafety() [with task_group_type = tbb::detail::d1::task_group]'
../test/tbb/test_task_group.cpp:770:42:   required from here
../test/common/doctest.h:1560:42: error: the compiler can assume that the address of 'doctest::detail::Expression_lhs<const char (&)[58]>::lhs' will never be NULL [-Werror=address]
 1560 |             bool res = static_cast<bool>(lhs);
      |                                          ^~~
compilation terminated due to -Wfatal-errors.
cc1plus: all warnings being treated as errors
[76/323] Building CXX object test/CMakeFiles/test_concurrent_unordered_set.dir/tbb/test_concurrent_unordered_set.cpp.o
FAILED: test/CMakeFiles/test_concurrent_unordered_set.dir/tbb/test_concurrent_unordered_set.cpp.o 
/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/bin/x86_64-libreelec-linux-gnu-g++  -I/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/build/tbb-2021.10.0-rc1/test/.. -I/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/build/tbb-2021.10.0-rc1/test -I/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/build/tbb-2021.10.0-rc1/src/tbb/../../include -march=x86-64-v3 -Wall -pipe  -O2 -fomit-frame-pointer -DNDEBUG -std=c++11 -Wall -Wextra -Werror -Wfatal-errors -Wshadow -Wcast-qual -Woverloaded-virtual -Wnon-virtual-dtor -mrtm -mwaitpkg -fstack-clash-protection -fno-strict-overflow -fno-delete-null-pointer-checks -fwrapv -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=2 -MD -MT test/CMakeFiles/test_concurrent_unordered_set.dir/tbb/test_concurrent_unordered_set.cpp.o -MF test/CMakeFiles/test_concurrent_unordered_set.dir/tbb/test_concurrent_unordered_set.cpp.o.d -o test/CMakeFiles/test_concurrent_unordered_set.dir/tbb/test_concurrent_unordered_set.cpp.o -c /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/build/tbb-2021.10.0-rc1/test/tbb/test_concurrent_unordered_set.cpp
In file included from ../test/common/concurrent_associative_common.h:22,
                 from ../test/common/concurrent_unordered_common.h:24,
                 from ../test/tbb/test_concurrent_unordered_set.cpp:23:
In destructor 'AllocatorAwareData<std::scoped_allocator_adaptor<std::allocator<int> > >::~AllocatorAwareData()',
    inlined from 'void std::__new_allocator<_Tp>::destroy(_Up*) [with _Up = AllocatorAwareData<std::scoped_allocator_adaptor<std::allocator<int> > >; _Tp = tbb::detail::d1::value_node<AllocatorAwareData<std::scoped_allocator_adaptor<std::allocator<int> > >, long unsigned int>]' at /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/x86_64-libreelec-linux-gnu/include/c++/13.1.0/bits/new_allocator.h:194:13,
    inlined from 'static void std::allocator_traits<std::allocator<_CharT> >::destroy(allocator_type&, _Up*) [with _Up = AllocatorAwareData<std::scoped_allocator_adaptor<std::allocator<int> > >; _Tp = tbb::detail::d1::value_node<AllocatorAwareData<std::scoped_allocator_adaptor<std::allocator<int> > >, long unsigned int>]' at /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/x86_64-libreelec-linux-gnu/include/c++/13.1.0/bits/alloc_traits.h:557:15,
    inlined from 'void std::scoped_allocator_adaptor<_OuterAlloc, _InnerAllocs>::destroy(_Tp*) [with _Tp = AllocatorAwareData<std::scoped_allocator_adaptor<std::allocator<int> > >; _OuterAlloc = std::allocator<tbb::detail::d1::value_node<AllocatorAwareData<std::scoped_allocator_adaptor<std::allocator<int> > >, long unsigned int> >; _InnerAllocs = {}]' at /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/x86_64-libreelec-linux-gnu/include/c++/13.1.0/scoped_allocator:452:22,
    inlined from 'static decltype (__a.destroy(__p)) std::allocator_traits< <template-parameter-1-1> >::_S_destroy(_Alloc2&, _Tp*, int) [with _Alloc2 = std::scoped_allocator_adaptor<std::allocator<tbb::detail::d1::value_node<AllocatorAwareData<std::scoped_allocator_adaptor<std::allocator<int> > >, long unsigned int> > >; _Tp = AllocatorAwareData<std::scoped_allocator_adaptor<std::allocator<int> > >; _Alloc = std::scoped_allocator_adaptor<std::allocator<tbb::detail::d1::value_node<AllocatorAwareData<std::scoped_allocator_adaptor<std::allocator<int> > >, long unsigned int> > >]' at /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/x86_64-libreelec-linux-gnu/include/c++/13.1.0/bits/alloc_traits.h:287:15,
    inlined from 'static void std::allocator_traits< <template-parameter-1-1> >::destroy(_Alloc&, _Tp*) [with _Tp = AllocatorAwareData<std::scoped_allocator_adaptor<std::allocator<int> > >; _Alloc = std::scoped_allocator_adaptor<std::allocator<tbb::detail::d1::value_node<AllocatorAwareData<std::scoped_allocator_adaptor<std::allocator<int> > >, long unsigned int> > >]' at /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/x86_64-libreelec-linux-gnu/include/c++/13.1.0/bits/alloc_traits.h:393:14,
    inlined from 'void tbb::detail::d1::concurrent_unordered_base<Traits>::destroy_node(node_ptr) [with Traits = tbb::detail::d1::concurrent_unordered_set_traits<AllocatorAwareData<std::scoped_allocator_adaptor<std::allocator<int> > >, std::hash<AllocatorAwareData<std::scoped_allocator_adaptor<std::allocator<int> > > >, std::equal_to<AllocatorAwareData<std::scoped_allocator_adaptor<std::allocator<int> > > >, std::scoped_allocator_adaptor<std::allocator<AllocatorAwareData<std::scoped_allocator_adaptor<std::allocator<int> > > > >, true>]' at ../include/tbb/../oneapi/tbb/detail/_concurrent_unordered_base.h:930:49,
    inlined from 'void tbb::detail::d1::concurrent_unordered_base<Traits>::destroy_node(node_ptr) [with Traits = tbb::detail::d1::concurrent_unordered_set_traits<AllocatorAwareData<std::scoped_allocator_adaptor<std::allocator<int> > >, std::hash<AllocatorAwareData<std::scoped_allocator_adaptor<std::allocator<int> > > >, std::equal_to<AllocatorAwareData<std::scoped_allocator_adaptor<std::allocator<int> > > >, std::scoped_allocator_adaptor<std::allocator<AllocatorAwareData<std::scoped_allocator_adaptor<std::allocator<int> > > > >, false>]' at ../include/tbb/../oneapi/tbb/detail/_concurrent_unordered_base.h:915:10,
    inlined from 'tbb::detail::d1::concurrent_unordered_base<Traits>::list_node_type* tbb::detail::d1::concurrent_unordered_base<Traits>::insert_dummy_node(node_ptr, sokey_type) [with Traits = tbb::detail::d1::concurrent_unordered_set_traits<AllocatorAwareData<std::scoped_allocator_adaptor<std::allocator<int> > >, std::hash<AllocatorAwareData<std::scoped_allocator_adaptor<std::allocator<int> > > >, std::equal_to<AllocatorAwareData<std::scoped_allocator_adaptor<std::allocator<int> > > >, std::scoped_allocator_adaptor<std::allocator<AllocatorAwareData<std::scoped_allocator_adaptor<std::allocator<int> > > > >, false>]' at ../include/tbb/../oneapi/tbb/detail/_concurrent_unordered_base.h:1064:29,
    inlined from 'void tbb::detail::d1::concurrent_unordered_base<Traits>::init_bucket(size_type) [with Traits = tbb::detail::d1::concurrent_unordered_set_traits<AllocatorAwareData<std::scoped_allocator_adaptor<std::allocator<int> > >, std::hash<AllocatorAwareData<std::scoped_allocator_adaptor<std::allocator<int> > > >, std::equal_to<AllocatorAwareData<std::scoped_allocator_adaptor<std::allocator<int> > > >, std::scoped_allocator_adaptor<std::allocator<AllocatorAwareData<std::scoped_allocator_adaptor<std::allocator<int> > > > >, false>]' at ../include/tbb/../oneapi/tbb/detail/_concurrent_unordered_base.h:1112:48:
../test/common/custom_allocators.h:438:7: error: array subscript 2 is outside array bounds of 'tbb::detail::d1::list_node<long unsigned int> [1]' [-Werror=array-bounds=]
  438 | class AllocatorAwareData {
      |       ^~~~~~~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
cc1plus: all warnings being treated as errors
[77/323] Building CXX object test/CMakeFiles/test_concurrent_unordered_map.dir/tbb/test_concurrent_unordered_map.cpp.o
FAILED: test/CMakeFiles/test_concurrent_unordered_map.dir/tbb/test_concurrent_unordered_map.cpp.o 
/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/bin/x86_64-libreelec-linux-gnu-g++  -I/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/build/tbb-2021.10.0-rc1/test/.. -I/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/build/tbb-2021.10.0-rc1/test -I/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/build/tbb-2021.10.0-rc1/src/tbb/../../include -march=x86-64-v3 -Wall -pipe  -O2 -fomit-frame-pointer -DNDEBUG -std=c++11 -Wall -Wextra -Werror -Wfatal-errors -Wshadow -Wcast-qual -Woverloaded-virtual -Wnon-virtual-dtor -mrtm -mwaitpkg -fstack-clash-protection -fno-strict-overflow -fno-delete-null-pointer-checks -fwrapv -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=2 -MD -MT test/CMakeFiles/test_concurrent_unordered_map.dir/tbb/test_concurrent_unordered_map.cpp.o -MF test/CMakeFiles/test_concurrent_unordered_map.dir/tbb/test_concurrent_unordered_map.cpp.o.d -o test/CMakeFiles/test_concurrent_unordered_map.dir/tbb/test_concurrent_unordered_map.cpp.o -c /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/build/tbb-2021.10.0-rc1/test/tbb/test_concurrent_unordered_map.cpp
In file included from /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/x86_64-libreelec-linux-gnu/include/c++/13.1.0/x86_64-libreelec-linux-gnu/bits/c++allocator.h:33,
                 from /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/x86_64-libreelec-linux-gnu/include/c++/13.1.0/bits/allocator.h:46,
                 from /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/x86_64-libreelec-linux-gnu/include/c++/13.1.0/string:43,
                 from /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/x86_64-libreelec-linux-gnu/include/c++/13.1.0/bits/locale_classes.h:40,
                 from /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/x86_64-libreelec-linux-gnu/include/c++/13.1.0/bits/ios_base.h:41,
                 from /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/x86_64-libreelec-linux-gnu/include/c++/13.1.0/streambuf:43,
                 from /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/x86_64-libreelec-linux-gnu/include/c++/13.1.0/bits/streambuf_iterator.h:35,
                 from /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/x86_64-libreelec-linux-gnu/include/c++/13.1.0/iterator:66,
                 from ../include/tbb/../oneapi/tbb/detail/_range_common.h:25,
                 from ../include/tbb/../oneapi/tbb/detail/_concurrent_unordered_base.h:24,
                 from ../include/tbb/../oneapi/tbb/concurrent_unordered_map.h:21,
                 from ../include/tbb/concurrent_unordered_map.h:17,
                 from ../test/tbb/test_concurrent_unordered_map.cpp:22:
In member function 'void std::__new_allocator<_Tp>::destroy(_Up*) [with _Up = std::pair<const int, int>; _Tp = tbb::detail::d1::value_node<std::pair<const int, int>, long unsigned int>]',
    inlined from 'static void std::allocator_traits<std::allocator<_CharT> >::destroy(allocator_type&, _Up*) [with _Up = std::pair<const int, int>; _Tp = tbb::detail::d1::value_node<std::pair<const int, int>, long unsigned int>]' at /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/x86_64-libreelec-linux-gnu/include/c++/13.1.0/bits/alloc_traits.h:557:15,
    inlined from 'void StaticSharedCountingAllocator<BaseAllocatorType>::destroy(U*) [with U = std::pair<const int, int>; BaseAllocatorType = std::allocator<tbb::detail::d1::value_node<std::pair<const int, int>, long unsigned int> >]' at ../test/common/custom_allocators.h:432:29,
    inlined from 'static decltype (__a.destroy(__p)) std::allocator_traits< <template-parameter-1-1> >::_S_destroy(_Alloc2&, _Tp*, int) [with _Alloc2 = StaticSharedCountingAllocator<std::allocator<tbb::detail::d1::value_node<std::pair<const int, int>, long unsigned int> > >; _Tp = std::pair<const int, int>; _Alloc = StaticSharedCountingAllocator<std::allocator<tbb::detail::d1::value_node<std::pair<const int, int>, long unsigned int> > >]' at /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/x86_64-libreelec-linux-gnu/include/c++/13.1.0/bits/alloc_traits.h:287:15,
    inlined from 'static void std::allocator_traits< <template-parameter-1-1> >::destroy(_Alloc&, _Tp*) [with _Tp = std::pair<const int, int>; _Alloc = StaticSharedCountingAllocator<std::allocator<tbb::detail::d1::value_node<std::pair<const int, int>, long unsigned int> > >]' at /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/x86_64-libreelec-linux-gnu/include/c++/13.1.0/bits/alloc_traits.h:393:14,
    inlined from 'void tbb::detail::d1::concurrent_unordered_base<Traits>::destroy_node(node_ptr) [with Traits = tbb::detail::d1::concurrent_unordered_map_traits<int, int, std::hash<int>, std::equal_to<int>, StaticSharedCountingAllocator<std::allocator<std::pair<const int, int> > >, false>]' at ../include/tbb/../oneapi/tbb/detail/_concurrent_unordered_base.h:930:49,
    inlined from 'void tbb::detail::d1::concurrent_unordered_base<Traits>::destroy_node(node_ptr) [with Traits = tbb::detail::d1::concurrent_unordered_map_traits<int, int, std::hash<int>, std::equal_to<int>, StaticSharedCountingAllocator<std::allocator<std::pair<const int, int> > >, false>]' at ../include/tbb/../oneapi/tbb/detail/_concurrent_unordered_base.h:915:10,
    inlined from 'tbb::detail::d1::concurrent_unordered_base<Traits>::list_node_type* tbb::detail::d1::concurrent_unordered_base<Traits>::insert_dummy_node(node_ptr, sokey_type) [with Traits = tbb::detail::d1::concurrent_unordered_map_traits<int, int, std::hash<int>, std::equal_to<int>, StaticSharedCountingAllocator<std::allocator<std::pair<const int, int> > >, false>]' at ../include/tbb/../oneapi/tbb/detail/_concurrent_unordered_base.h:1064:29,
    inlined from 'void tbb::detail::d1::concurrent_unordered_base<Traits>::init_bucket(size_type) [with Traits = tbb::detail::d1::concurrent_unordered_map_traits<int, int, std::hash<int>, std::equal_to<int>, StaticSharedCountingAllocator<std::allocator<std::pair<const int, int> > >, false>]' at ../include/tbb/../oneapi/tbb/detail/_concurrent_unordered_base.h:1112:48:
/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/x86_64-libreelec-linux-gnu/include/c++/13.1.0/bits/new_allocator.h:194:11: error: array subscript 2 is outside array bounds of 'StaticSharedCountingAllocator<std::allocator<tbb::detail::d1::list_node<long unsigned int> > >::value_type [1]' {aka 'tbb::detail::d1::list_node<long unsigned int> [1]'} [-Werror=array-bounds=]
  194 |         { __p->~_Up(); }
      |           ^~~
compilation terminated due to -Wfatal-errors.
cc1plus: all warnings being treated as errors
[78/323] Building CXX object test/CMakeFiles/test_eh_flow_graph.dir/tbb/test_eh_flow_graph.cpp.o
ninja: build stopped: subcommand failed.
FAILURE: s/build tbb during make_target (default)
*********** FAILED COMMAND ***********
ninja ${NINJA_OPTS} ${PKG_MAKE_OPTS_TARGET}
**************************************

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Reactions: 1
  • Comments: 16 (5 by maintainers)

Commits related to this issue

Most upvoted comments

When using 2021.10.0 with both https://github.com/oneapi-src/oneTBB/commit/1ddebef8ac703ded4d5330f9d2135dfadbc992be and https://github.com/oneapi-src/oneTBB/commit/e131071769ee3df51b56b053ba6bfa06ae9eff25 as well as using 2021.11-rc1 with just the latter I get a build that goes further along, but still fails:

[ 48%] Built target test_tagged_msg
[ 48%] Built target test_semaphore
[ 48%] Building CXX object test/CMakeFiles/conformance_task_arena.dir/conformance/conformance_task_arena.cpp.o
[ 48%] Building CXX object test/CMakeFiles/conformance_collaborative_call_once.dir/conformance/conformance_collaborative_call_once.cpp.o
[ 49%] Linking CXX executable ../gnu_12.2_cxx11_64_release/test_sequencer_node
In file included from /nix/store/jaac4nfl2h3654ibvmrkfpa4c4vr2f9p-gcc-12.2.0/include/c++/12.2.0/atomic:41,
                 from /build/source/test/common/doctest.h:3223,
                 from /build/source/test/common/test.h:32,
                 from /build/source/test/tbb/test_concurrent_monitor.cpp:26:
In member function 'void std::__atomic_base<_IntTp>::store(__int_type, std::memory_order) [with _ITp = bool]',
    inlined from 'void std::atomic<bool>::store(bool, std::memory_order)' at /nix/store/jaac4nfl2h3654ibvmrkfpa4c4vr2f9p-gcc-12.2.0/include/c++/12.2.0/atomic:104:20,
    inlined from 'void tbb::detail::r1::concurrent_monitor_base<Context>::abort_all_relaxed() [with Context = long unsigned int]' at /build/source/test/tbb/../../src/tbb/concurrent_monitor.h:440:53:
/nix/store/jaac4nfl2h3654ibvmrkfpa4c4vr2f9p-gcc-12.2.0/include/c++/12.2.0/bits/atomic_base.h:464:25: error: 'void __atomic_store_1(volatile void*, unsigned char, int)' writing 1 byte into a region of size 0 overflows the destination [8;;https://gcc.gnu.org/onlinedocs/gcc/Warni
ng-Options.html#index-Wstringop-overflow=-Werror=stringop-overflow=8;;]
  464 |         __atomic_store_n(&_M_i, __i, int(__m));
      |         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
[ 49%] Built target test_task_arena
[ 50%] Building CXX object test/CMakeFiles/conformance_concurrent_lru_cache.dir/conformance/conformance_concurrent_lru_cache.cpp.o
[ 50%] Built target test_sequencer_node
[ 51%] Building CXX object test/CMakeFiles/conformance_concurrent_unordered_map.dir/conformance/conformance_concurrent_unordered_map.cpp.o
In member function 'void std::__atomic_base<_IntTp>::store(__int_type, std::memory_order) [with _ITp = bool]',
    inlined from 'void std::atomic<bool>::store(bool, std::memory_order)' at /nix/store/jaac4nfl2h3654ibvmrkfpa4c4vr2f9p-gcc-12.2.0/include/c++/12.2.0/atomic:104:20,
    inlined from 'void tbb::detail::r1::concurrent_monitor_base<Context>::notify_all_relaxed() [with Context = long unsigned int]' at /build/source/test/tbb/../../src/tbb/concurrent_monitor.h:333:53,
    inlined from 'void tbb::detail::r1::concurrent_monitor_base<Context>::notify_all() [with Context = long unsigned int]' at /build/source/test/tbb/../../src/tbb/concurrent_monitor.h:315:27,
    inlined from 'void DOCTEST_ANON_FUNC_41()' at /build/source/test/tbb/test_concurrent_monitor.cpp:92:44:
/nix/store/jaac4nfl2h3654ibvmrkfpa4c4vr2f9p-gcc-12.2.0/include/c++/12.2.0/bits/atomic_base.h:464:25: error: 'void __atomic_store_1(volatile void*, unsigned char, int)' writing 1 byte into a region of size 0 overflows the destination [8;;https://gcc.gnu.org/onlinedocs/gcc/Warni
ng-Options.html#index-Wstringop-overflow=-Werror=stringop-overflow=8;;]
  464 |         __atomic_store_n(&_M_i, __i, int(__m));
      |         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
In member function 'void std::__atomic_base<_IntTp>::store(__int_type, std::memory_order) [with _ITp = bool]',
    inlined from 'void std::atomic<bool>::store(bool, std::memory_order)' at /nix/store/jaac4nfl2h3654ibvmrkfpa4c4vr2f9p-gcc-12.2.0/include/c++/12.2.0/atomic:104:20,
    inlined from 'void tbb::detail::r1::concurrent_monitor_base<Context>::abort_all_relaxed() [with Context = long unsigned int]' at /build/source/test/tbb/../../src/tbb/concurrent_monitor.h:440:53,
    inlined from 'void tbb::detail::r1::concurrent_monitor_base<Context>::abort_all() [with Context = long unsigned int]' at /build/source/test/tbb/../../src/tbb/concurrent_monitor.h:423:26,
    inlined from 'void tbb::detail::r1::concurrent_monitor_base<Context>::destroy() [with Context = long unsigned int]' at /build/source/test/tbb/../../src/tbb/concurrent_monitor.h:456:24,
    inlined from 'tbb::detail::r1::concurrent_monitor::~concurrent_monitor()' at /build/source/test/tbb/../../src/tbb/concurrent_monitor.h:487:16,
    inlined from 'void DOCTEST_ANON_FUNC_41()' at /build/source/test/tbb/test_concurrent_monitor.cpp:100:1:
/nix/store/jaac4nfl2h3654ibvmrkfpa4c4vr2f9p-gcc-12.2.0/include/c++/12.2.0/bits/atomic_base.h:464:25: error: 'void __atomic_store_1(volatile void*, unsigned char, int)' writing 1 byte into a region of size 0 overflows the destination [8;;https://gcc.gnu.org/onlinedocs/gcc/Warni
ng-Options.html#index-Wstringop-overflow=-Werror=stringop-overflow=8;;]
  464 |         __atomic_store_n(&_M_i, __i, int(__m));
      |         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~

I’ve now resorted to removing -Werror and -Wfatal-errors from the GNU.cmake file.

This should have been resolved with e131071. Can you confirm?