Open SMijin opened 3 years ago
Looks like it's the -warn all flag. Removing it solves the problem. I'll have a look at the intel website, but I'd definitely prefer being able to toggle warnings.
I have been out of town for several days. I will try to look at this issue more closely over the coming weekend. But I agree there is some fragility in the construction of the .inc
files that could possibly be improved. I usually have the luxury of just deleting my build tree and starting from scratch if I suspect a problem along these lines. Arises infrequently in practice, but may depend on other coding habits.
I've recently noticed that my tests are not running and tracked the issue down to an empty TestSuites.inc file. After stripping my test cmake file to
project(test_failing Fortran)
file(GLOB pf_files "*.pf")
add_pfunit_ctest (${PROJECT_NAME} TEST_SOURCES ${pf_files} LINK_LIBRARIES ${MPI_Fortran_LIBRARIES} )
I now have a test_faling.inc file produced automatically with the necessary add suite line. However, when trying to make the test I get the following error:
test_failing.inc(1): error #7977: The type of the function reference does not match the type of the function definition. [FAILING_SUITE] call suite%addTest(failing_suite())
I couldn't find anyone with a similar error, and have spent the better part of an afternoon looking at the generated files fruitlessly. Am I missing something obvious?
For completeness, here's my top level CMakeLists.txt (and the test file is absolutely minimal so I've not included it here):