https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98531
--- Comment #18 from John David Anglin <danglin at gcc dot gnu.org> --- Executing on host: /home/dave/gnu/gcc/objdir/gcc/testsuite/g++/../../xg++ -B/home/dave/gnu/gcc/objdir/gcc/testsuite/g++/../../ /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/modules/xtreme-header-2_a.H -fdiagnostics-plain-output -nostdinc++ -I/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/include/hppa-linux-gnu -I/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/include -I/home/dave/gnu/gcc/gcc/libstdc++-v3/libsupc++ -I/home/dave/gnu/gcc/gcc/libstdc++-v3/include/backward -I/home/dave/gnu/gcc/gcc/libstdc++-v3/testsuite/util -fmessage-length=0 -std=c++17 -pedantic-errors -Wno-long-long -fmodule-header -S -o xtreme-header-2_a.s (timeout = 300) spawn -ignore SIGHUP /home/dave/gnu/gcc/objdir/gcc/testsuite/g++/../../xg++ -B/home/dave/gnu/gcc/objdir/gcc/testsuite/g++/../../ /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/modules/xtreme-header-2_a.H -fdiagnostics-plain-output -nostdinc++ -I/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/include/hppa-linux-gnu -I/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/include -I/home/dave/gnu/gcc/gcc/libstdc++-v3/libsupc++ -I/home/dave/gnu/gcc/gcc/libstdc++-v3/include/backward -I/home/dave/gnu/gcc/gcc/libstdc++-v3/testsuite/util -fmessage-length=0 -std=c++17 -pedantic-errors -Wno-long-long -fmodule-header -S -o xtreme-header-2_a.s In file included from /usr/include/oneapi/tbb/partitioner.h:47, from /usr/include/oneapi/tbb/parallel_for.h:27, from /usr/include/tbb/parallel_for.h:17, from /home/dave/gnu/gcc/gcc-trunk/libstdc++-v3/include/pstl/parallel_backend_tbb.h:20, from /home/dave/gnu/gcc/gcc-trunk/libstdc++-v3/include/pstl/parallel_backend.h:20, from /home/dave/gnu/gcc/gcc-trunk/libstdc++-v3/include/pstl/algorithm_impl.h:22, from /home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/include/pstl/glue_execution_defs.h:50, from /home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/include/execution:34, from /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/modules/xtreme-header-2.h:4, from /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/modules/xtreme-header-2_a.H:4: /usr/include/oneapi/tbb/task_group.h:465:11: error: 'template<class F> tbb::detail::d1::task* tbb::detail::d1::function_task<F>::execute(tbb::detail::d1::execution_data&)' references internal linkage entity 'template<class F> tbb::detail::d1::task* tbb::detail::d2::{anonymous}::task_ptr_or_nullptr(F&&)' /usr/include/oneapi/tbb/task_group.h:494:11: error: 'template<class F> tbb::detail::d1::task* tbb::detail::d1::function_stack_task<F>::execute(tbb::detail::d1::execution_data&)' references internal linkage entity 'template<class F> tbb::detail::d1::task* tbb::detail::d2::{anonymous}::task_ptr_or_nullptr(F&&)' /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/modules/xtreme-header-2_a.H: error: failed to write compiled module: Bad file data /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/modules/xtreme-header-2_a.H: note: compiled module file is 'gcm.cache/./home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/modules/xtreme-header-2_a.H.gcm' compiler exited with status 1 FAIL: g++.dg/modules/xtreme-header-2_a.H -std=c++17 (test for excess errors) Excess errors: /usr/include/oneapi/tbb/task_group.h:465:11: error: 'template<class F> tbb::detail::d1::task* tbb::detail::d1::function_task<F>::execute(tbb::detail::d1::execution_data&)' references internal linkage entity 'template<class F> tbb::detail::d1::task* tbb::detail::d2::{anonymous}::task_ptr_or_nullptr(F&&)' /usr/include/oneapi/tbb/task_group.h:494:11: error: 'template<class F> tbb::detail::d1::task* tbb::detail::d1::function_stack_task<F>::execute(tbb::detail::d1::execution_data&)' references internal linkage entity 'template<class F> tbb::detail::d1::task* tbb::detail::d2::{anonymous}::task_ptr_or_nullptr(F&&)' /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/modules/xtreme-header-2_a.H: error: failed to write compiled module: Bad file data FAIL: g++.dg/modules/xtreme-header-2_a.H module-cmi (gcm.cache/$srcdir/g++.dg/modules/xtreme-header-2_a.H.gcm) Executing on host: /home/dave/gnu/gcc/objdir/gcc/testsuite/g++/../../xg++ -B/home/dave/gnu/gcc/objdir/gcc/testsuite/g++/../../ /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/modules/xtreme-header-2_b.C -fdiagnostics-plain-output -nostdinc++ -I/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/include/hppa-linux-gnu -I/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/include -I/home/dave/gnu/gcc/gcc/libstdc++-v3/libsupc++ -I/home/dave/gnu/gcc/gcc/libstdc++-v3/include/backward -I/home/dave/gnu/gcc/gcc/libstdc++-v3/testsuite/util -fmessage-length=0 -std=c++17 -pedantic-errors -Wno-long-long -fmodules-ts -fno-module-lazy -S -o xtreme-header-2_b.s (timeout = 300) spawn -ignore SIGHUP /home/dave/gnu/gcc/objdir/gcc/testsuite/g++/../../xg++ -B/home/dave/gnu/gcc/objdir/gcc/testsuite/g++/../../ /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/modules/xtreme-header-2_b.C -fdiagnostics-plain-output -nostdinc++ -I/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/include/hppa-linux-gnu -I/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/include -I/home/dave/gnu/gcc/gcc/libstdc++-v3/libsupc++ -I/home/dave/gnu/gcc/gcc/libstdc++-v3/include/backward -I/home/dave/gnu/gcc/gcc/libstdc++-v3/testsuite/util -fmessage-length=0 -std=c++17 -pedantic-errors -Wno-long-long -fmodules-ts -fno-module-lazy -S -o xtreme-header-2_b.s In module imported at /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/modules/xtreme-header-2_b.C:4:1: /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/modules/xtreme-header-2_a.H: error: failed to read compiled module: No such file or directory /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/modules/xtreme-header-2_a.H: note: compiled module file is 'gcm.cache/./home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/modules/xtreme-header-2_a.H.gcm' /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/modules/xtreme-header-2_a.H: note: imports must be built before being imported /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/modules/xtreme-header-2_a.H: fatal error: returning to the gate for a mechanical issue compilation terminated. compiler exited with status 1 FAIL: g++.dg/modules/xtreme-header-2_b.C -std=c++17 (test for excess errors) Excess errors: /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/modules/xtreme-header-2_a.H: error: failed to read compiled module: No such file or directory /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/modules/xtreme-header-2_a.H: fatal error: returning to the gate for a mechanical issue compilation terminated. Executing on host: /home/dave/gnu/gcc/objdir/gcc/testsuite/g++/../../xg++ -B/home/dave/gnu/gcc/objdir/gcc/testsuite/g++/../../ /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/modules/xtreme-header-2_c.C -fdiagnostics-plain-output -nostdinc++ -I/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/include/hppa-linux-gnu -I/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/include -I/home/dave/gnu/gcc/gcc/libstdc++-v3/libsupc++ -I/home/dave/gnu/gcc/gcc/libstdc++-v3/include/backward -I/home/dave/gnu/gcc/gcc/libstdc++-v3/testsuite/util -fmessage-length=0 -std=c++17 -pedantic-errors -Wno-long-long -fmodules-ts -fno-module-lazy -S -o xtreme-header-2_c.s (timeout = 300) spawn -ignore SIGHUP /home/dave/gnu/gcc/objdir/gcc/testsuite/g++/../../xg++ -B/home/dave/gnu/gcc/objdir/gcc/testsuite/g++/../../ /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/modules/xtreme-header-2_c.C -fdiagnostics-plain-output -nostdinc++ -I/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/include/hppa-linux-gnu -I/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/include -I/home/dave/gnu/gcc/gcc/libstdc++-v3/libsupc++ -I/home/dave/gnu/gcc/gcc/libstdc++-v3/include/backward -I/home/dave/gnu/gcc/gcc/libstdc++-v3/testsuite/util -fmessage-length=0 -std=c++17 -pedantic-errors -Wno-long-long -fmodules-ts -fno-module-lazy -S -o xtreme-header-2_c.s In module imported at /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/modules/xtreme-header-2_c.C:3:1: /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/modules/xtreme-header-2_a.H: error: failed to read compiled module: No such file or directory /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/modules/xtreme-header-2_a.H: note: compiled module file is 'gcm.cache/./home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/modules/xtreme-header-2_a.H.gcm' /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/modules/xtreme-header-2_a.H: note: imports must be built before being imported /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/modules/xtreme-header-2_a.H: fatal error: returning to the gate for a mechanical issue compilation terminated. compiler exited with status 1 FAIL: g++.dg/modules/xtreme-header-2_c.C -std=c++17 (test for excess errors) Excess errors: /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/modules/xtreme-header-2_a.H: error: failed to read compiled module: No such file or directory /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/modules/xtreme-header-2_a.H: fatal error: returning to the gate for a mechanical issue compilation terminated. [...]