Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error with gcc-13.0.1/gcc-13.1.1 and bundled tbb #15724

Closed
tamiko opened this issue Jul 12, 2023 · 4 comments
Closed

Compilation error with gcc-13.0.1/gcc-13.1.1 and bundled tbb #15724

tamiko opened this issue Jul 12, 2023 · 4 comments

Comments

@tamiko
Copy link
Member

tamiko commented Jul 12, 2023

FAILED: bundled/tbb-2018_U2/src/CMakeFiles/bundled_tbb_release.dir/tbb/arena.cpp.o 
/usr/bin/c++ -DDO_ITT_NOTIFY -DNDEBUG -DUSE_PTHREAD -D__TBB_BUILD=1 -I/home/tamiko/workspace/dealii/build/bundled/tbb-2018_U2/src -I/home/tamiko/workspace/dealii/bundled/tbb-2018_U2/src -I/home/tamiko/workspace/dealii/bundled/tbb-2018_U2/src/../include -I/home/tamiko/workspace/dealii/bundled/tbb-2018_U2/src/rml/include -I/home/tamiko/workspace/dealii/build/include -I/home/tamiko/workspace/dealii/include -std=c++17 -fPIC -Wextra -Wmissing-braces -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wsuggest-override -Wswitch -Wsynth -Wwrite-strings -Wno-placement-new -Wno-deprecated-declarations -Wno-literal-suffix -Wno-psabi -Wno-class-memaccess -Wno-parentheses -Wno-unused-local-typedefs -Wno-implicit-fallthrough -Wno-stringop-overflow -Wno-deprecated-copy -fopenmp-simd -flifetime-dse=1 -O2 -funroll-loops -funroll-all-loops -fstrict-aliasing -MD -MT bundled/tbb-2018_U2/src/CMakeFiles/bundled_tbb_release.dir/tbb/arena.cpp.o -MF bundled/tbb-2018_U2/src/CMakeFiles/bundled_tbb_release.dir/tbb/arena.cpp.o.d -o bundled/tbb-2018_U2/src/CMakeFiles/bundled_tbb_release.dir/tbb/arena.cpp.o -c /home/tamiko/workspace/dealii/bundled/tbb-2018_U2/src/tbb/arena.cpp
In file included from /home/tamiko/workspace/dealii/bundled/tbb-2018_U2/src/tbb/scheduler_common.h:43,
                 from /home/tamiko/workspace/dealii/bundled/tbb-2018_U2/src/tbb/scheduler.h:24,
                 from /home/tamiko/workspace/dealii/bundled/tbb-2018_U2/src/tbb/arena.cpp:23:
/home/tamiko/workspace/dealii/bundled/tbb-2018_U2/src/../include/tbb/task.h:266:20: error: declaration of ‘tbb::task& tbb::internal::task_prefix::task()’ changes meaning of 
 task’ [-Wchanges-meaning]
  266 |         tbb::task& task() {return *reinterpret_cast<tbb::task*>(this+1);}
      |                    ^~~~
/home/tamiko/workspace/dealii/bundled/tbb-2018_U2/src/../include/tbb/task.h:225:9: note: used here to mean ‘class tbb::task’
  225 |         task* next_offloaded;
      |         ^~~~
/home/tamiko/workspace/dealii/bundled/tbb-2018_U2/src/../include/tbb/task.h:33:7: note: declared here
   33 | class task;
      |       ^~~~

As reported on the mailing list: https://groups.google.com/g/dealii/c/Rx4SfZwFnsQ
I can reproduce with gcc-13.1

And sure enough the regression tester is misconfigured: https://cdash.dealii.org/build/293 - the "minimal bundled" variant accidentally uses an external tbb. 😠 😡 😭

@tamiko
Copy link
Member Author

tamiko commented Jul 12, 2023

Barely a week and we need a point release. sigh

@bangerth
Copy link
Member

What is it that's actually happening? Is this build using a new compiler that doesn't like the old TBB?

@tamiko
Copy link
Member Author

tamiko commented Jul 12, 2023

@bangerth Yes, gcc-13 does not like the old tbb. For the release I consciously cycled through gcc-11, gcc-12 and gcc-13 for the "minimal bundled" configuration to test that we indeed compile with all compilers. But...

... I added ld.mold somewhere in between to all containers, and sure enough:

 * These packages depend on tbb:
sys-devel/mold-1.11.0 (>=dev-cpp/tbb-2021.7.0-r1)

blerg

I will force bundled dependencies in this regression tester variant now.

@tamiko tamiko changed the title [9.5.] compile error with gcc-13.0.1 and bundled tbb: [9.5.] compile error with gcc-13.0.1/gcc-13.1.1 and bundled tbb Jul 12, 2023
@tamiko tamiko changed the title [9.5.] compile error with gcc-13.0.1/gcc-13.1.1 and bundled tbb Compilation error with gcc-13.0.1/gcc-13.1.1 and bundled tbb Jul 12, 2023
@tamiko
Copy link
Member Author

tamiko commented Jul 12, 2023

Fixed by #15725

@tamiko tamiko closed this as completed Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants