[petsc-users] Problem with MUMPS package when running ex1 from src/tao/constrained/tutorials

jgaray jgaray at cct.lsu.edu
Fri May 20 15:52:08 CDT 2022


Hello PETSc users,

I have been trying to run example ex1 from 
src/tao/constrained/tutorials, which requires the use of the MUMPS 
package. I have downloaded MUMPS and configured PETSc with it using

./configure --download-make --download-cmake --download-mumps 
--download-metis --download-parmetis --download-scalapack

then I have built the PETSc libraries and checked that they were working 
properly.

But when I run ex1 with more than one MPI rank, I get the following 
error

[0]PETSC ERROR: --------------------- Error Message 
--------------------------------------------------------------
[0]PETSC ERROR: No support for this operation for this object type
[0]PETSC ERROR: Requires an external package that supports parallel 
PCCHOLESKY, e.g., MUMPS.
[0]PETSC ERROR: See https://petsc.org/release/faq/ for trouble shooting.
[0]PETSC ERROR: Petsc Release Version 3.17.1, unknown
[0]PETSC ERROR: ./ex1 on a arch-linux-c-debug named smic104 by jgaray 
Fri May 20 14:51:05 2022
[0]PETSC ERROR: Configure options --download-make --download-cmake 
--download-mumps --download-metis --download-parmetis 
--download-scalapack
[0]PETSC ERROR: #1 main() at ex1.c:100
[0]PETSC ERROR: No PETSc Option Table entries
[0]PETSC ERROR: ----------------End of Error Message -------send entire 
error message to petsc-maint at mcs.anl.gov----------

Does anyone have an idea of why this is happening?


Also, I tried to download MUMPS together with PTScotch using

./configure --download-make --download-cmake --download-mumps 
--download-metis --download-parmetis --download-scalapack 
--download-ptscotch

and I got the following error

                          Configuring PETSc to compile on your system
=============================================================================================
============================================================================================= 
                                                                          
                                                                          
     Warning: Intel compiler being used with gcc 4.8.5 compatibility, 
failures may occur.                                                      
                                                                          
                            Recommend having a newer gcc version in your 
path.                                                                    
                                                                          
                                          
============================================================================================= 
                                                                          
                                                                        
============================================================================================= 
                                                                          
                                                                          
     Running arch-linux-c-debug/bin/bfort to generate fortran stubs       
                                                                          
                                                                          
                  
============================================================================================= 
                                                                          
                                                                        
============================================================================================= 
                                                                          
                                                                          
     Compiling PTScotch; this may take several minutes                    
                                                                          
                                                                          
                  
============================================================================================= 
                                                                          
                                                                          
                   
*******************************************************************************
          UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log 
for details):
-------------------------------------------------------------------------------
Error running make on PTScotch: Could not execute "['cd 
/home/jgaray/petsc/arch-linux-c-debug/externalpackages/git.ptscotch/src 
&& make clean ptesmumps esmumps']":
/usr/bin/mkdir -p ../bin
/usr/bin/mkdir -p ../include
/usr/bin/mkdir -p ../lib
(cd libscotch ;      make clean)
make[1]: Entering directory 
`/home/jgaray/petsc/arch-linux-c-debug/externalpackages/git.ptscotch/src/libscotch'
rm -f *~ *.o lib*.a parser_yy.c parser_ly.h parser_ll.c *scotch.h 
*scotchf.h y.output *dummysizes
make[1]: Leaving directory 
`/home/jgaray/petsc/arch-linux-c-debug/externalpackages/git.ptscotch/src/libscotch'
(cd scotch ;         make clean)
make[1]: Entering directory 
`/home/jgaray/petsc/arch-linux-c-debug/externalpackages/git.ptscotch/src/scotch'
rm -f *~ *.o acpl amk_ccc amk_fft2 amk_grf amk_hy amk_m2 amk_p2 atst 
gbase gcv gdump *ggath *gmap gmk_hy gmk_m2 gmk_m3 gmk_msh gmk_ub2 gmtst 
*gord gotst gout *gpart *gscat *gtst mcv mmk_m2 mmk_m3 mord mtst
make[1]: Leaving directory 
`/home/jgaray/petsc/arch-linux-c-debug/externalpackages/git.ptscotch/src/scotch'
(cd libscotchmetis ; make clean)
make[1]: Entering directory 
`/home/jgaray/petsc/arch-linux-c-debug/externalpackages/git.ptscotch/src/libscotchmetis'
rm -f *~ *.o lib*.a metis.h metisf.h parmetis.h
make[1]: Leaving directory 
`/home/jgaray/petsc/arch-linux-c-debug/externalpackages/git.ptscotch/src/libscotchmetis'
(cd check ;          make clean)
make[1]: Entering directory 
`/home/jgaray/petsc/arch-linux-c-debug/externalpackages/git.ptscotch/src/check'
rm -f *~ *.o
make[1]: Leaving directory 
`/home/jgaray/petsc/arch-linux-c-debug/externalpackages/git.ptscotch/src/check'
(cd esmumps ;        make clean)
make[1]: Entering directory 
`/home/jgaray/petsc/arch-linux-c-debug/externalpackages/git.ptscotch/src/esmumps'
rm -f *~ common.h *.o lib*.a main_esmumps
make[1]: Leaving directory 
`/home/jgaray/petsc/arch-linux-c-debug/externalpackages/git.ptscotch/src/esmumps'
(cd libscotch ;      make VERSION=6 RELEASE=1 PATCHLEVEL=2 scotch && 
make install)
make[1]: Entering directory 
`/home/jgaray/petsc/arch-linux-c-debug/externalpackages/git.ptscotch/src/libscotch'
make                     \
                 CC="mpicc"                    \
                 CCD="mpicc"                    \
                 scotch.h                    \
                 scotchf.h                    \
                 libscotch.a                    \
                 libscotcherr.a                \
                 libscotcherrexit.a
make[2]: Entering directory 
`/home/jgaray/petsc/arch-linux-c-debug/externalpackages/git.ptscotch/src/libscotch'
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX  
-c arch.c -o arch.o -DSCOTCH_VERSION_NUM=6 -DSCOTCH_RELEASE_NUM=1 
-DSCOTCH_PATCHLEVEL_NUM=2
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX 
-DSCOTCH_VERSION_NUM=6 -DSCOTCH_RELEASE_NUM=1 -DSCOTCH_PATCHLEVEL_NUM=2 
dummysizes.c -o dummysizes -lpthread -lrt
./dummysizes "-s" library.h scotch.h
./dummysizes "-s" library_f.h scotchf.h
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX  
-c arch_build.c -o arch_build.o -DSCOTCH_VERSION_NUM=6 
-DSCOTCH_RELEASE_NUM=1 -DSCOTCH_PATCHLEVEL_NUM=2
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX  
-c arch_build2.c -o arch_build2.o -DSCOTCH_VERSION_NUM=6 
-DSCOTCH_RELEASE_NUM=1 -DSCOTCH_PATCHLEVEL_NUM=2
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX  
-c arch_cmplt.c -o arch_cmplt.o -DSCOTCH_VERSION_NUM=6 
-DSCOTCH_RELEASE_NUM=1 -DSCOTCH_PATCHLEVEL_NUM=2
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX  
-c arch_cmpltw.c -o arch_cmpltw.o -DSCOTCH_VERSION_NUM=6 
-DSCOTCH_RELEASE_NUM=1 -DSCOTCH_PATCHLEVEL_NUM=2
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX  
-c arch_deco.c -o arch_deco.o -DSCOTCH_VERSION_NUM=6 
-DSCOTCH_RELEASE_NUM=1 -DSCOTCH_PATCHLEVEL_NUM=2
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX  
-c arch_deco2.c -o arch_deco2.o -DSCOTCH_VERSION_NUM=6 
-DSCOTCH_RELEASE_NUM=1 -DSCOTCH_PATCHLEVEL_NUM=2
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX  
-c arch_dist.c -o arch_dist.o -DSCOTCH_VERSION_NUM=6 
-DSCOTCH_RELEASE_NUM=1 -DSCOTCH_PATCHLEVEL_NUM=2
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX  
-c arch_hcub.c -o arch_hcub.o -DSCOTCH_VERSION_NUM=6 
-DSCOTCH_RELEASE_NUM=1 -DSCOTCH_PATCHLEVEL_NUM=2
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX  
-c arch_mesh.c -o arch_mesh.o -DSCOTCH_VERSION_NUM=6 
-DSCOTCH_RELEASE_NUM=1 -DSCOTCH_PATCHLEVEL_NUM=2
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX  
-c arch_sub.c -o arch_sub.o -DSCOTCH_VERSION_NUM=6 
-DSCOTCH_RELEASE_NUM=1 -DSCOTCH_PATCHLEVEL_NUM=2
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX  
-c arch_tleaf.c -o arch_tleaf.o -DSCOTCH_VERSION_NUM=6 
-DSCOTCH_RELEASE_NUM=1 -DSCOTCH_PATCHLEVEL_NUM=2
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX  
-c arch_torus.c -o arch_torus.o -DSCOTCH_VERSION_NUM=6 
-DSCOTCH_RELEASE_NUM=1 -DSCOTCH_PATCHLEVEL_NUM=2
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX  
-c arch_vcmplt.c -o arch_vcmplt.o -DSCOTCH_VERSION_NUM=6 
-DSCOTCH_RELEASE_NUM=1 -DSCOTCH_PATCHLEVEL_NUM=2
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX  
-c arch_vhcub.c -o arch_vhcub.o -DSCOTCH_VERSION_NUM=6 
-DSCOTCH_RELEASE_NUM=1 -DSCOTCH_PATCHLEVEL_NUM=2
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX  
-c bgraph.c -o bgraph.o -DSCOTCH_VERSION_NUM=6 -DSCOTCH_RELEASE_NUM=1 
-DSCOTCH_PATCHLEVEL_NUM=2
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX  
-c bgraph_bipart_bd.c -o bgraph_bipart_bd.o -DSCOTCH_VERSION_NUM=6 
-DSCOTCH_RELEASE_NUM=1 -DSCOTCH_PATCHLEVEL_NUM=2
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX  
-c bgraph_bipart_df.c -o bgraph_bipart_df.o -DSCOTCH_VERSION_NUM=6 
-DSCOTCH_RELEASE_NUM=1 -DSCOTCH_PATCHLEVEL_NUM=2
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX  
-c bgraph_bipart_ex.c -o bgraph_bipart_ex.o -DSCOTCH_VERSION_NUM=6 
-DSCOTCH_RELEASE_NUM=1 -DSCOTCH_PATCHLEVEL_NUM=2
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX  
-c bgraph_bipart_fm.c -o bgraph_bipart_fm.o -DSCOTCH_VERSION_NUM=6 
-DSCOTCH_RELEASE_NUM=1 -DSCOTCH_PATCHLEVEL_NUM=2
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX  
-c bgraph_bipart_gg.c -o bgraph_bipart_gg.o -DSCOTCH_VERSION_NUM=6 
-DSCOTCH_RELEASE_NUM=1 -DSCOTCH_PATCHLEVEL_NUM=2
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX  
-c bgraph_bipart_gp.c -o bgraph_bipart_gp.o -DSCOTCH_VERSION_NUM=6 
-DSCOTCH_RELEASE_NUM=1 -DSCOTCH_PATCHLEVEL_NUM=2
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX  
-c bgraph_bipart_ml.c -o bgraph_bipart_ml.o -DSCOTCH_VERSION_NUM=6 
-DSCOTCH_RELEASE_NUM=1 -DSCOTCH_PATCHLEVEL_NUM=2
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX  
-c bgraph_bipart_st.c -o bgraph_bipart_st.o -DSCOTCH_VERSION_NUM=6 
-DSCOTCH_RELEASE_NUM=1 -DSCOTCH_PATCHLEVEL_NUM=2
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX  
-c bgraph_bipart_zr.c -o bgraph_bipart_zr.o -DSCOTCH_VERSION_NUM=6 
-DSCOTCH_RELEASE_NUM=1 -DSCOTCH_PATCHLEVEL_NUM=2
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX  
-c bgraph_check.c -o bgraph_check.o -DSCOTCH_VERSION_NUM=6 
-DSCOTCH_RELEASE_NUM=1 -DSCOTCH_PATCHLEVEL_NUM=2
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX  
-c bgraph_store.c -o bgraph_store.o -DSCOTCH_VERSION_NUM=6 
-DSCOTCH_RELEASE_NUM=1 -DSCOTCH_PATCHLEVEL_NUM=2
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX  
-c common.c -DSCOTCH_COMMON_RENAME -o common.o
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX  
-c common_file.c -DSCOTCH_COMMON_RENAME -o common_file.o
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX  
-c common_file_compress.c -DSCOTCH_COMMON_RENAME -o 
common_file_compress.o
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX  
-c common_file_decompress.c -DSCOTCH_COMMON_RENAME -o 
common_file_decompress.o
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX  
-c common_integer.c -DSCOTCH_COMMON_RENAME -o common_integer.o
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX  
-c common_memory.c -DSCOTCH_COMMON_RENAME -o common_memory.o
mpicc -fPIC -wd1572 -g -O0 -std=c99  -DCOMMON_RANDOM_FIXED_SEED 
-DSCOTCH_RENAME -Drestrict="restrict" -DINTSIZE32 -DSCOTCH_METIS_PREFIX  
-c common_string.c -DSCOTCH_COMMON_RENAME -o common_string.o
make[2]: Leaving directory 
`/home/jgaray/petsc/arch-linux-c-debug/externalpackages/git.ptscotch/src/libscotch'
make[1]: Leaving directory 
`/home/jgaray/petsc/arch-linux-c-debug/externalpackages/git.ptscotch/src/libscotch'In 
file included from /usr/include/sys/wait.h(30),
                  from common.h(132),
                  from common_string.c(57):
/usr/include/signal.h(156): error: identifier "siginfo_t" is undefined
   extern void psiginfo (const siginfo_t *__pinfo, const char *__s);
                               ^

compilation aborted for common_string.c (code 2)
make[2]: *** [common_string.o] Error 2
make[1]: *** [scotch] Error 2
make: *** [libscotch] Error 2

Any ideas of how to resolve these issues will be much appreciated!

Best,

Jose


More information about the petsc-users mailing list