Launchpad has imported 4 comments from the remote bug at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101228.
If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. ------------------------------------------------------------------------ On 2021-06-27T01:13:14+00:00 Kip Warner wrote: I've managed to reproduce this issue on two different machines, one amd64 and the other ppc64le. Both were using g++-11 (Ubuntu 11.1.0-1ubuntu1~21.04) 11.1.0. Here is a minimal: #include <algorithm> #include <execution> using namespace std; int main() { vector<long int> Container(3'000'000); iota(begin(Container), end(Container), 1); sort(execution::par, begin(Container), end(Container)); return 0; } Compiling raises the following pragma in header generated warning: $ g++-11 test.cpp -o test -Wall -Werror -std=c++17 -ltbb && ./test In file included from /usr/include/c++/11/pstl/parallel_backend_tbb.h:26, from /usr/include/c++/11/pstl/parallel_backend.h:20, from /usr/include/c++/11/pstl/algorithm_impl.h:22, from /usr/include/c++/11/pstl/glue_execution_defs.h:50, from /usr/include/c++/11/execution:32, from test.cpp:4: /usr/include/tbb/task.h:21:139: note: ‘#pragma message: TBB Warning: tbb/task.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.’ 21 | ("TBB Warning: tbb/task.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.") | ^ Compiling again with #define TBB_SUPPRESS_DEPRECATED_MESSAGES 1 prepended to the beginning and the warning disappears. This appears to have crept in some how with the 11 series. The <execution> header is indirectly including some deprecated Intel header from the TBB library. Reply at: https://bugs.launchpad.net/ubuntu/+source/gcc-11/+bug/1933775/comments/0 ------------------------------------------------------------------------ On 2021-06-27T02:49:34+00:00 Kip Warner wrote: Suggestion: Maybe a unit test that includes all the standard STL headers, does nothing with them, and that's expected to emit no warnings would mitigate problems like this occurring in the future. Reply at: https://bugs.launchpad.net/ubuntu/+source/gcc-11/+bug/1933775/comments/1 ------------------------------------------------------------------------ On 2021-06-27T03:22:59+00:00 Pinskia wrote: tbb/task.h just got deprecated last year and after parallel_backend_tbb.h was added to GCC. https://github.com/oneapi-src/oneTBB/issues/243 It depends on the version of TBB that is installed really. Looks like Ubuntu 11.1.0 is using a much newer version. You really should file a bug with Ubuntu about this issue since you are getting both GCC and TBB from them. We won't fixing Ubuntu's compiler even with this bug filed by the way. Reply at: https://bugs.launchpad.net/ubuntu/+source/gcc-11/+bug/1933775/comments/2 ------------------------------------------------------------------------ On 2021-06-28T00:59:13+00:00 Kip Warner wrote: Thanks Andrew. I've opened an issue downstream: https://bugs.launchpad.net/gcc/+bug/1933775 Reply at: https://bugs.launchpad.net/ubuntu/+source/gcc-11/+bug/1933775/comments/4 ** Changed in: gcc Status: Unknown => Confirmed ** Changed in: gcc Importance: Unknown => Medium ** Bug watch added: github.com/oneapi-src/oneTBB/issues #243 https://github.com/oneapi-src/oneTBB/issues/243 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1933775 Title: libgcc-s1 and libstdc++6 depend on broken libtbb2 package To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/1933775/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs