Closed bartlettroscoe closed 1 year ago
FYI: The ubuntu-latest, 3.25.1, makefiles, 3.8, gcc-12, g++-12, gfortran-12
build showed two failing tests:
We are seeing segmentation faults when running coverage:
Running coverage for package 'WrapExternal' ...
Performing coverage
Processing coverage (each . represents one file):
.Segmentation fault
Problem running coverage on file: /home/runner/work/TriBITS/tribits-build/BUILD/test/ctest_driver/TribitsExampleProject/TriBITS_CTestDriver_PBP_ST_ALL_COVERAGE/BUILD/packages/wrap_external/CMakeFiles/WrapExternal_run_external_func.dir/run_external_func.cpp.gcda
Command produced error: /home/runner/work/TriBITS/tribits-build/BUILD/test/ctest_driver/TribitsExampleProject/TriBITS_CTestDriver_PBP_ST_ALL_COVERAGE/BUILD/packages/wrap_external/CMakeFiles/WrapExternal_run_external_func.dir/run_external_func.cpp.gcno:version 'B21*', prefer 'B13*'
Segmentation fault
Cannot find any coverage files. Ignoring Coverage request.
....
TEST_1: Time: 0m16.844s
TEST_1: Return code = 255
TEST_1: Pass criteria = Match all REGEX {CTEST_DO_COVERAGE_TESTING='TRUE'} [PASSED]
TEST_1: Pass criteria = Match all REGEX {Loop through TribitsExProj packages to configure, build, and test} [PASSED]
TEST_1: Pass criteria = Match all REGEX {Final set of packages to be explicitly processed by CTest/CDash: SimpleCxx MixedLang WithSubpackages WrapExternal 4} [PASSED]
TEST_1: Pass criteria = Match all REGEX {Running coverage for package 'SimpleCxx'} [PASSED]
TEST_1: Pass criteria = Match all REGEX {Running coverage for package 'MixedLang'} [PASSED]
TEST_1: Pass criteria = Match all REGEX {Running coverage for package 'WithSubpackages'} [PASSED]
TEST_1: Pass criteria = Match all REGEX {Running coverage for package 'WrapExternal'} [PASSED]
TEST_1: Pass criteria = Match all REGEX {TRIBITS_CTEST_DRIVER: OVERALL: ALL PASSED} [PASSED]
TEST_1: Pass criteria = ALWAYS_FAIL_ON_NONZERO_RETURN [FAILED]
TEST_1: Result = FAILED
It is not clear if this is due to CMake 3.25.1 or due to gcc-12. I will need to adjust the builds so that we can vary these two things independently.
So, looking at the results here, it shows that these failures occur in both builds:
pr-544_tribits_cmake-3.23.1_makefiles_python-3.8_g++-12_noninja
pr-544_tribits_cmake-3.25.1_makefiles_python-3.8_g++-12
Therefore, the problem is gcc-12, not CMake 3.25.1.
I will update the builds to only use gcc-11 as the highest version.
Fixes #543