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.
>
> 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!doYh_srn7czLICnO_iOaulNeW3MbbhJl2x2LZCfWwhS1OxTiOXpl7Hsi16yVapha1XiMvvIIOT2l648DspQu$
  
<https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!doYh_srn7czLICnO_iOaulNeW3MbbhJl2x2LZCfWwhS1OxTiOXpl7Hsi16yVapha1XiMvvIIOT2l61AsAqcX$
 >

Reply via email to