Maybe we could do something like this:

--- a/libstdc++-v3/include/pstl/parallel_backend_tbb.h
+++ b/libstdc++-v3/include/pstl/parallel_backend_tbb.h
@@ -15,6 +15,11 @@
 
 #include "parallel_backend_utils.h"
 
+#ifndef TBB_SUPPRESS_DEPRECATED_MESSAGES
+# define TBB_SUPPRESS_DEPRECATED_MESSAGES 1
+# define _GLIBCXX_UNDEF_SUPPRESS
+#endif
+
 // Bring in minimal required subset of Intel TBB
 #include <tbb/blocked_range.h>
 #include <tbb/parallel_for.h>
@@ -25,6 +30,11 @@
 #include <tbb/tbb_allocator.h>
 #include <tbb/task.h>
 
+#ifdef _GLIBCXX_UNDEF_SUPPRESS
+# undef TBB_SUPPRESS_DEPRECATED_MESSAGES
+# undef _GLIBCXX_UNDEF_SUPPRESS
+#endif
+
 #if TBB_INTERFACE_VERSION < 10000
 #    error Intel(R) Threading Building Blocks 2018 is required; older versions 
are not supported.
 #endif

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to tbb in Ubuntu.
https://bugs.launchpad.net/bugs/1933775

Title:
  libgcc-s1 and libstdc++6 depend on broken libtbb2 package

Status in gcc:
  In Progress
Status in tbb package in Ubuntu:
  New

Bug description:
  The gcc-11 source package produces libgcc-s1 and (I think?)
  libstdc++6. Both of these binary packages on Hirsute depend on libtbb2
  version 2020.3-1. The latter contains deprecated APIs that create
  #pragma generated warnings whenever <execution> is included.

  See upstream for discussion:

  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101228

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1933775/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to