On Thu, Sep 24, 2026 at 4:43 AM Julien BRUCHON <[email protected]> wrote:
> Thank you for your answer.
>
> While debugging, we tried a few things, such as:
>
> *message(STATUS "DEBUG1")*
>
> *check_c_source_runs("${source}" ${testname})*
>
> *message(STATUS "DEBUG2")*
>
> This was to identify where the problem occurs. The second message is never
> printed, so it seems that the issue occurs during the check_c_source_runs
> call.
>
> I have also attached the log file. If you have any idea what could be
> causing this issue, we would really appreciate your help.
>
MPI is not in the include path being used by CMake. I do not know where it
gets this include path. It should take the one that PETSc uses, but it does
not seem to do that.
Thanks,
Matt
> Thanks,
>
> Julien
>
>
> Le 22/09/2026 à 18:04, Matthew Knepley a écrit :
>
> Do you know what that line does, or have a log that shows that it is
> doing? I do not know who maintains that CMake code, but it is not us.
>
> Thanks,
>
> Matt
>
> On Tue, Sep 22, 2026 at 10:29 AM Julien BRUCHON via petsc-users <
> [email protected]> wrote:
>
>> I’m having a problem with PETSc (obtained via GitLab): the installation
>> seems to go well, but when I run CMake on my code, it crashes in
>> FindPackageMultipass.cmake. The line highlighted in red below never
>> completes, with testname=MULTIPASS_TEST_4_petsc_works_all.Thank you for
>> your answer.
>>
>> While debugging, we tried a few things, such as:
>>
>> message(STATUS "DEBUG1")
>>
>> check_c_source_runs
>> ("${source}" ${testname})
>>
>> message(STATUS "DEBUG2")
>>
>> This was to identify where the problem occurs. The second message is
>> never printed, so it seems that the issue occurs during the
>> check_c_source_runs call.
>>
>> I have also attached the log file. If you have any idea what could be
>> causing this issue, we would really appreciate your help.
>>
>> Do you have any idea what is wrong?
>>
>> Thank you
>>
>> Julien
>>
>>
>> *macro (MULTIPASS_SOURCE_RUNS i*
>>
>> *ncludes libraries source runs language)*
>>
>> * include (Check${language}SourceRuns)*
>>
>> * # This is a ridiculous hack. CHECK_${language}_SOURCE_* thinks that if
>> the*
>>
>> * # *name* of the return variable doesn't change, then the test does*
>>
>> * # not need to be re-run. We keep an internal count which we*
>>
>> * # increment to guarantee that every test name is unique. If we've*
>>
>> * # gotten here, then the configuration has changed enough that the*
>>
>> * # test *needs* to be rerun.*
>>
>> * if (NOT MULTIPASS_TEST_COUNT)*
>>
>> * set (MULTIPASS_TEST_COUNT 00)*
>>
>> * endif (NOT MULTIPASS_TEST_COUNT)*
>>
>> * math (EXPR _tmp "${MULTIPASS_TEST_COUNT} + 1") # Why can't I add to a
>> cache variable?*
>>
>> * set (MULTIPASS_TEST_COUNT ${_tmp} CACHE INTERNAL "Unique test ID")*
>>
>> * set (testname MULTIPASS_TEST_${MULTIPASS_TEST_COUNT}_${runs})*
>>
>> * set (CMAKE_REQUIRED_INCLUDES ${includes})*
>>
>> * set (CMAKE_REQUIRED_LIBRARIES ${libraries})*
>>
>> * if(${language} STREQUAL "C")*
>>
>> *check_c_source_runs ("${source}" ${testname}) #
>> *testname=MULTIPASS_TEST_4_petsc_works_all
>>
>>
>> * elseif(${language} STREQUAL "CXX")*
>>
>> * check_cxx_source_runs ("${source}" ${testname})*
>>
>> * endif()*
>>
>> * set (${runs} "${${testname}}")*
>>
>> *endmacro (MULTIPASS_SOURCE_RUNS)*
>>
>>
>>
>>
>
> --
> What most experimenters take for granted before they begin their
> experiments is infinitely more interesting than any results to which their
> experiments lead.
> -- Norbert Wiener
>
> https://urldefense.us/v3/__https://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!Z_rXxmdHDbrmZZ2QhWXVpJ76EL5KFeaE8OgLA35hYivoxKetrESTAKxpxcyaZuADmhjANqg3dyYWvRjsjSDc$
>
> <https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!Z_rXxmdHDbrmZZ2QhWXVpJ76EL5KFeaE8OgLA35hYivoxKetrESTAKxpxcyaZuADmhjANqg3dyYWvXAuZzPN$
> >
>
>
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
https://urldefense.us/v3/__https://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!Z_rXxmdHDbrmZZ2QhWXVpJ76EL5KFeaE8OgLA35hYivoxKetrESTAKxpxcyaZuADmhjANqg3dyYWvRjsjSDc$
<https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!Z_rXxmdHDbrmZZ2QhWXVpJ76EL5KFeaE8OgLA35hYivoxKetrESTAKxpxcyaZuADmhjANqg3dyYWvXAuZzPN$
>