Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems compiling on OpenSUSE 15.4 #299

Open
LadaF opened this issue Jan 31, 2024 · 7 comments
Open

Problems compiling on OpenSUSE 15.4 #299

LadaF opened this issue Jan 31, 2024 · 7 comments

Comments

@LadaF
Copy link

LadaF commented Jan 31, 2024

I cannot compile FreeFEM on OpenSUSE 15.4.

> git clone https://github.com/FreeFem/FreeFem-sources.git
> cd FreeFem-sources/

> autoreconf -i
configure.ac:1135: warning: file `etc/config/m4/acmpi.m4' included several times
configure.ac:1217: warning: file `etc/config/m4/acmpi.m4' included several times
configure.ac:1135: warning: file `etc/config/m4/acmpi.m4' included several times
configure.ac:1217: warning: file `etc/config/m4/acmpi.m4' included several times
configure.ac:1135: warning: file `etc/config/m4/acmpi.m4' included several times
configure.ac:1217: warning: file `etc/config/m4/acmpi.m4' included several times
configure.ac:1135: warning: file `etc/config/m4/acmpi.m4' included several times
configure.ac:1217: warning: file `etc/config/m4/acmpi.m4' included several times
configure.ac:1135: warning: file `etc/config/m4/acmpi.m4' included several times
configure.ac:1217: warning: file `etc/config/m4/acmpi.m4' included several times
configure.ac:1135: warning: file `etc/config/m4/acmpi.m4' included several times
configure.ac:1217: warning: file `etc/config/m4/acmpi.m4' included several times
configure.ac:198: installing './compile'
configure.ac:297: installing './config.guess'
configure.ac:297: installing './config.sub'
configure.ac:34: installing './install-sh'
configure.ac:34: installing './missing'
parallel-tests: installing './test-driver'
plugin/seq/Makefile.am: installing './depcomp'
> ./configure --enable-download --enable-optim --prefix=${HOME}/FreeFem-install
configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... ranlib
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for unzip... yes
checking for m4... yes
checking for bison... yes
checking for flex... yes
checking for cmake... yes
checking for patch... yes
checking for gfortran... gfortran
checking whether we are using the GNU Fortran compiler... yes
checking whether gfortran accepts -g... yes
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to get verbose linking output from gfortran... -v
checking for Fortran 77 libraries of gfortran...  -L/usr/lib64/gcc/x86_64-suse-linux/7 -L/usr/lib64/gcc/x86_64-suse-linux/7/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/lib -L/usr/lib64/gcc/x86_64-suse-linux/7/../../.. -lgfortran -lm -lquadmath
checking  Size of fortran 77 integer ...            4
checking for dummy main to link with Fortran 77 libraries... none
checking for Fortran 77 name-mangling scheme... lower case, underscore, no extra underscore
configure:     ++ add f77 :  -L/usr/lib64/gcc/x86_64-suse-linux/7 -L/usr/lib64/gcc/x86_64-suse-linux/7/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/lib -L/usr/lib64/gcc/x86_64-suse-linux/7/../../.. -lgfortran -lm -lquadmath ;  -DAdd_   in  plugin/seq/WHERE_LIBRARY-config "
configure:     ++ add fc :  -L/usr/lib64/gcc/x86_64-suse-linux/7 -L/usr/lib64/gcc/x86_64-suse-linux/7/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/lib -L/usr/lib64/gcc/x86_64-suse-linux/7/../../.. -lgfortran -lm -lquadmath ;  -DAdd_   in  plugin/seq/WHERE_LIBRARY-config "
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... none needed
checking whether yytext is a pointer... no
checking for bison... bison -y
checking for deflate in -lz... yes
checking for pthread_create in -lpthread... yes
checking for omp_get_wtime in -liomp5... no
checking for clock_gettime in -lrt... yes
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
configure:     ++ add pthread : -lpthread ;   in  plugin/seq/WHERE_LIBRARY-config "
checking wether we are on a MacIntosh... no
checking wether we are on  SunOS... no
checking wether we are on Microsoft Windows... no
checking prefix dir freefem++  ... /home/lada/FreeFem-install/lib/ff++/4.14
configure:     -----   CPU kind: x86_64 , intel/amd: yes 
checking whether to generate debugging information... no
checking whether the C compiler accepts -O3... yes
checking whether the C++ compiler accepts -O3... yes
checking whether the Fortran 77 compiler accepts -O3... yes
checking whether the C compiler accepts -mmmx... yes
checking whether the C++ compiler accepts -mmmx... yes
checking whether the Fortran 77 compiler accepts -mmmx... yes
checking whether the C compiler accepts -mavx... yes
checking whether the C++ compiler accepts -mavx... yes
checking whether the Fortran 77 compiler accepts -mavx... yes
checking whether the C compiler accepts -msse4.2... yes
checking whether the C++ compiler accepts -msse4.2... yes
checking whether the Fortran 77 compiler accepts -msse4.2... yes
checking whether the C compiler accepts -msse2... yes
checking whether the C++ compiler accepts -msse2... yes
checking whether the Fortran 77 compiler accepts -msse2... yes
checking whether the C compiler accepts -msse... yes
checking whether the C++ compiler accepts -msse... yes
checking whether the Fortran 77 compiler accepts -msse... yes
configure:      CXXFLAGS =   -g  -DNDEBUG -O3 -mmmx -mavx -msse4.2 -msse2 -msse  
checking whether the C++ compiler accepts -std=gnu++14... yes
configure:     ++ add cxx11 : -std=gnu++14 ;  -std=gnu++14 in  plugin/seq/WHERE_LIBRARY-config "
checking suffix to add to package name... none
checking OpenGL/gl.h usability... no
checking OpenGL/gl.h presence... no
checking for OpenGL/gl.h... no
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking GLUT/glut.h usability... no
checking GLUT/glut.h presence... no
checking for GLUT/glut.h... no
checking GL/glut.h usability... yes
checking GL/glut.h presence... yes
checking for GL/glut.h... yes
checking add suffix  ... yes
configure:  without petsc, slepc  ***** 
configure:  without petsc complex ***** 
checking for MPIRUN... checking for mpiexec... /usr/lib/hpc/gnu7/mpi/openmpi/2.1.6/bin/mpiexec
/usr/lib/hpc/gnu7/mpi/openmpi/2.1.6/bin/mpiexec
checking for MPIRUN option: ... --oversubscribe
checking for mpipath ... 
checking for mpic++... /usr/lib/hpc/gnu7/mpi/openmpi/2.1.6/bin/mpic++
checking for MPICXX... yes
checking MPI_DOUBLE_COMPLEX... yes
checking for mpif90... /usr/lib/hpc/gnu7/mpi/openmpi/2.1.6/bin/mpif90
ls: cannot access '/usr/lib64/libmpi.*': No such file or directory
checking for mpicc... /usr/lib/hpc/gnu7/mpi/openmpi/2.1.6/bin/mpicc
configure:     ++ add mpifc : -pthread -L/usr/lib64 -L/usr/lib/hpc/gnu7/mpi/openmpi/2.1.6/lib64 -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi  ;  -I/usr/lib/hpc/gnu7/mpi/openmpi/2.1.6/include  in  plugin/seq/WHERE_LIBRARY-config "
configure:     ++ add mpif77 : -pthread -L/usr/lib64 -L/usr/lib/hpc/gnu7/mpi/openmpi/2.1.6/lib64 -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi  ;  -I/usr/lib/hpc/gnu7/mpi/openmpi/2.1.6/include  in  plugin/seq/WHERE_LIBRARY-config "
configure:     ++ add mpi : -pthread -L/usr/lib64 -L/usr/lib/hpc/gnu7/mpi/openmpi/2.1.6/lib64 -lmpi  ;  -I/usr/lib/hpc/gnu7/mpi/openmpi/2.1.6/include  in  plugin/seq/WHERE_LIBRARY-config "
checking for wget... yes
checking for git... yes
checking for arit_zero in -lcadnafree... no
checking /home/lada/f/FreeFem-sources/3rdparty/cadna/cadnafree.h usability... no
checking /home/lada/f/FreeFem-sources/3rdparty/cadna/cadnafree.h presence... no
checking for /home/lada/f/FreeFem-sources/3rdparty/cadna/cadnafree.h... no
configure:  without cadna ***** 
checking for fftw_execute in -lfftw3... yes
checking fftw3.h usability... yes
checking fftw3.h presence... yes
checking for fftw3.h... yes
configure:     ++ add fftw3 : -lfftw3 ;   in  plugin/seq/WHERE_LIBRARY-config "
checking whether the C compiler accepts -mkl... no
checking for MKL...    root:  , arch:  ,  ...  
which: no libopenblas.dll in (/usr/lib/hpc/gnu7/mpi/openmpi/2.1.6/bin:/usr/lib/hpc/compiler/gnu/7/bin:/usr/local/bin:/home/lada/bin:/usr/lib64/mpi/gcc/openmpi2/bin:/home/lada/.local/bin:/usr/bin:/bin:/usr/lib/mit/sbin:/snap/bin)
checking for daxpy_ in -framework Accelerate... no
checking for daxpy_ in ... no
checking for daxpy_ in -lblas... yes
checking for blas_zdotu_sub in -lblas... no
checking cblas.h usability... no
checking cblas.h presence... no
checking for cblas.h... no
checking Accelerate/cblas.h usability... no
checking Accelerate/cblas.h presence... no
checking for Accelerate/cblas.h... no
checking atlas/cblas.h usability... no
checking atlas/cblas.h presence... no
checking for atlas/cblas.h... no
checking for cblas_zdotu_sub in -lcblas... no
configure:     ++ add blas : -lblas ;   in  plugin/seq/WHERE_LIBRARY-config "
checking for lapack in -lrt   -L/usr/lib64/gcc/x86_64-suse-linux/7 -L/usr/lib64/gcc/x86_64-suse-linux/7/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/lib -L/usr/lib64/gcc/x86_64-suse-linux/7/../../.. -lgfortran -lm -lquadmath, -lblas and -llapack ... yes
checking for dsaupd_ in -larpack... no
configure: using downloaded Arpack
configure:     ++ add lapack : -llapack ;   in  plugin/seq/WHERE_LIBRARY-config "
checking umfpack.h usability... no
checking umfpack.h presence... no
checking for umfpack.h... no
checking umfpack/umfpack.h usability... no
checking umfpack/umfpack.h presence... no
checking for umfpack/umfpack.h... no
checking ufsparse/umfpack.h usability... no
checking ufsparse/umfpack.h presence... no
checking for ufsparse/umfpack.h... no
checking suitesparse/umfpack.h usability... no
checking suitesparse/umfpack.h presence... no
checking for suitesparse/umfpack.h... no
checking UMFPACK/umfpack.h usability... no
checking UMFPACK/umfpack.h presence... no
checking for UMFPACK/umfpack.h... no
checking for amd_info in -lamd... no
configure: WARNING: Sorry, we could not find the UMFPACK lib or the UMFPACK headers
configure: using downloaded UMFPACK
configure:     ++ add amd : -L/home/lada/f/FreeFem-sources/3rdparty/lib -lumfpack -lcholmod -lcolamd -lamd -lsuitesparseconfig ;  -I/home/lada/f/FreeFem-sources/3rdparty/include in  plugin/seq/WHERE_LIBRARY-config "
configure:     ++ add umfpack : -L/home/lada/f/FreeFem-sources/3rdparty/lib -lumfpack -lcholmod -lcolamd -lamd -lsuitesparseconfig ;  -I/home/lada/f/FreeFem-sources/3rdparty/include in  plugin/seq/WHERE_LIBRARY-config "
checking for times... yes
checking for sysconf... yes
checking cstddef usability... yes
checking cstddef presence... yes
checking for cstddef... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking semaphore.h usability... yes
checking semaphore.h presence... yes
checking for semaphore.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking for unistd.h... (cached) yes
checking for sys/time.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for asinh... yes
checking for acosh... yes
checking for atanh... yes
checking for getenv... yes
checking for jn... yes
checking for erfc... yes
checking for tgamma... yes
checking for gettimeofday... yes
checking for mallinfo... yes
checking for mstats... no
checking for srandomdev... no
checking for second_... no
checking for libtool... yes
checking for dlfcn.h... yes
checking for sin in -lm... yes
checking for dlinfo in -ldl... yes
checking whether dlopen links ok... yes
checking whether the C++ compiler accepts -rdynamic... yes
checking whether the C++ compiler accepts -fPIC... yes
checking whether the C compiler accepts -fPIC... yes
checking whether the C compiler accepts -fPIC... yes
checking whether the Fortran compiler accepts -fPIC... yes
checking whether the Fortran compiler accepts -fPIC... yes
checking whether the Fortran compiler accepts -fPIC... yes
checking whether the Fortran compiler accepts -fPIC... yes
checking whether the Fortran 77 compiler accepts -fallow-argument-mismatch... no
checking whether the Fortran compiler accepts -fallow-argument-mismatch... no
checking whether the Fortran 77 compiler accepts -fallow-invalid-boz... no
checking whether the Fortran compiler accepts -fallow-invalid-boz... no
checking for gsl-config... no
checking for GSL - version >= 1.15... no
*** The gsl-config script installed by GSL could not be found
*** If GSL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GSL_CONFIG environment variable to the
*** full path to gsl-config.
checking check mumps... no
checking check mumps_seq... no
checking check libseq... no
checking check mumps_ptscotch... no
checking check mumps_scotch... no
checking check superlu... no
checking check blacs... no
checking check scalapack... no
checking check scotch... no
checking check ptscotch... no
checking check metis... no
checking check metis... no
checking check parmetis... no
checking check freeyams... no
checking check mmg3d... no
checking check mmg... no
checking check zlib... yes
checking check parmmg... no
checking check mshmet... no
checking check tetgen... no
checking check ipopt... no
checking check nlopt... no
checking kernel version... 5.14.21
checking libc version... libc-2.31
checking for a sed that does not truncate output... /usr/bin/sed
checking how to run the C preprocessor... gcc -E
checking for h5cc... /usr/bin/h5cc
checking for HDF5 type... serial
checking for HDF5 libraries... yes (version 1.10.8)
checking hdf5.h usability... yes
checking hdf5.h presence... yes
checking for hdf5.h... yes
checking for H5Fcreate in -lhdf5... yes
checking for H5PTcreate in -lhdf5_hl... yes
checking for matching HDF5 Fortran wrapper... /usr/bin/h5fc
checking H5Cpp.h usability... yes
checking H5Cpp.h presence... yes
checking for H5Cpp.h... yes
configure:     ++ add hdf5 :  -L/usr/lib64  -lhdf5_hl -lhdf5  -lhdf5_hl -lpthread -lz -ldl -lm ;  -I/usr/include in  plugin/seq/WHERE_LIBRARY-config "
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating 3rdparty/Makefile
config.status: creating 3rdparty/blas/Makefile
config.status: creating 3rdparty/arpack/Makefile
config.status: creating 3rdparty/umfpack/Makefile
config.status: creating 3rdparty/fftw/Makefile
config.status: creating src/Makefile
config.status: creating src/bamglib/Makefile
config.status: creating src/Graphics/Makefile
config.status: creating src/femlib/Makefile
config.status: creating src/Algo/Makefile
config.status: creating src/lglib/Makefile
config.status: creating src/ffgraphics/Makefile
config.status: creating src/ffgraphics/server/Makefile
config.status: creating src/ffgraphics/client/Makefile
config.status: creating src/fflib/Makefile
config.status: creating src/nw/Makefile
config.status: creating src/mpi/Makefile
config.status: creating src/bamg/Makefile
config.status: creating src/libMesh/Makefile
config.status: creating src/medit/Makefile
config.status: creating src/bin-win32/Makefile
config.status: creating plugin/Makefile
config.status: creating plugin/seq/Makefile
config.status: creating plugin/mpi/Makefile
config.status: creating examples/Makefile
config.status: creating examples/plugin/Makefile
config.status: creating examples/tutorial/Makefile
config.status: creating examples/misc/Makefile
config.status: creating examples/mpi/Makefile
config.status: creating examples/bem/Makefile
config.status: creating examples/hpddm/Makefile
config.status: creating examples/ffddm/Makefile
config.status: creating examples/eigen/Makefile
config.status: creating examples/examples/Makefile
config.status: creating examples/bug/Makefile
config.status: creating examples/3d/Makefile
config.status: creating examples/3dSurf/Makefile
config.status: creating examples/3dCurve/Makefile
config.status: creating config.h
config.status: executing depfiles commands
configure:   FreeFEM used download: yes 
configure:   --  Dynamic load facility: yes 
configure:   --  ARPACK (eigen value): yes 
configure:   --  UMFPACK (sparse solver): yes 
configure:   --  BLAS: yes 
configure:   --  with MPI:     yes
configure:     --  with PETSc: no / PETSc complex: no 
configure:     --  with SLEPc: no / SLEPc complex: no 
configure:     --  with hpddm: yes 
configure:     --  with htool: yes 
configure:     --  with bemtool: yes (need boost: yes and htool: yes) 
configure:   --  without libs:  
configure:   --  without plugins:  
configure:     progs: FreeFem++-nw bamg cvmsh2  FreeFem++-mpi ffmedit ffglut 
configure:       use of download tetgen  see 3rdparty/tetgen/tetgen1.5.1-beta/LICENSE 
configure:       use of download freeyams  see 3rdparty/yams/freeyams.2011.02.22 (suface mesh adaptation)  
configure:       use of download mmg3d (v4)   see 3rdparty/mmg3d/mmg3d4/LICENCE.txt  
configure:       use of download mmg  see 3rdparty/mmg/mmg-sources/LICENSE 
configure:       use of download parmmg  see 3rdparty/parmmg/parmmg-sources/LICENSE 
configure:       use of download parmetis
configure:       use of download superlu
configure:       try to download: bemtool hpddm yams superlu scotch nlopt mumps_seq mumps scalapack ipopt mshmet parmmg mmg mmg3d parmetis metis tetgen 
configure:       use of download boost        see 3rdparty/boost/LICENSE_1_0.txt  
configure:       Please run "3rdparty/getall" to download all necessary packages before running make
> ./3rdparty/getall -a
no error, but pkg/MUMPS_5.0.2.tar.gz downloaded from freefem.org
> cd 3rdparty/ff-petsc
> make petsc-slepc
../../config.status --file="Makefile.inc:Makefile-PETSc.inc"
config.status: creating Makefile.inc
mkdir -p /home/lada/FreeFem-install/ff-petsc/r
chown lada /home/lada/FreeFem-install/ff-petsc/r
mkdir -p /home/lada/FreeFem-install/ff-petsc/c
chown lada /home/lada/FreeFem-install/ff-petsc/c
no need of sudo
test -e "/home/lada/FreeFem-install/ff-petsc/r" -a -e "/home/lada/FreeFem-install/ff-petsc/c"
mkdir petsc-3.20.2 2>/dev/null
tar xzf ../pkg/petsc-3.20.2.tar.gz -C petsc-3.20.2 --strip-components 1
cd petsc-3.20.2 && patch -p1 < ../petsc-cmake-seq.patch && cd -
patching file config/BuildSystem/config/packages/SuperLU.py
patching file config/BuildSystem/config/packages/metis.py
patching file config/BuildSystem/config/packages/mmg.py
patching file src/mat/impls/aij/mpi/mumps/mumps.c
Hunk #1 succeeded at 2177 (offset 288 lines).
patching file config/BuildSystem/config/packages/PTScotch.py
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc
touch petsc-3.20.2/tag-tar
cd petsc-3.20.2 &&  ./configure --prefix=/home/lada/FreeFem-install/ff-petsc/r \
        --with-debugging=0 COPTFLAGS='-O3 -mtune=native' CXXOPTFLAGS='-O3 -mtune=native' FOPTFLAGS='-O3 -mtune=native' --with-ssl=0 --with-x=0 --with-fortran-bindings=0 --with-cudac=0 --with-tau-perfstubs=0 --download-slepc --download-hpddm --with-cc='/usr/lib/hpc/gnu7/mpi/openmpi/2.1.6/bin/mpicc' --with-cxx='/usr/lib/hpc/gnu7/mpi/openmpi/2.1.6/bin/mpic++' --with-fc='/usr/lib/hpc/gnu7/mpi/openmpi/2.1.6/bin/mpif90' --with-scalar-type=real --with-blaslapack-include='' --with-blaslapack-lib='-llapack -lblas' --download-metis --download-ptscotch --download-hypre --download-parmetis --download-superlu --download-suitesparse --download-tetgen --download-mmg --download-parmmg --download-slepc-configure-arguments="--download-arpack" --download-scalapack --download-mumps PETSC_ARCH=fr
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
The version of PETSc you are using is out-of-date, we recommend updating to the new release
 Available Version: 3.20.4   Installed Version: 3.20.2
https://petsc.org/release/download/
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
=============================================================================================
                         Configuring PETSc to compile on your system
=============================================================================================
=============================================================================================
                                     ***** WARNING *****
  Found environment variable: MPI_DIR=/usr/lib/hpc/gnu7/mpi/openmpi/2.1.6. Ignoring it! Use
  "./configure MPI_DIR=$MPI_DIR" if you really want to use this value
=============================================================================================
=============================================================================================
                                     ***** WARNING *****
  mpiexec may not work on your system due to network issues. Perhaps you have VPN running
  whose network settings may not work with mpiexec or your network is misconfigured
=============================================================================================
=============================================================================================
        Trying to download http://www.tetgen.org/1.5/src/tetgen1.6.0.tar.gz for TETGEN
=============================================================================================
=============================================================================================
                 Compiling & installing TetGen; this may take several minutes
=============================================================================================
=============================================================================================
            Trying to download https://bitbucket.org/petsc/pkg-metis.git for METIS
=============================================================================================
=============================================================================================
                 Configuring METIS with CMake; this may take several minutes
=============================================================================================
=============================================================================================
                Compiling and installing METIS; this may take several minutes
=============================================================================================
=============================================================================================
         Trying to download https://bitbucket.org/petsc/pkg-parmetis.git for PARMETIS
=============================================================================================
=============================================================================================
                Configuring PARMETIS with CMake; this may take several minutes
=============================================================================================
=============================================================================================
               Compiling and installing PARMETIS; this may take several minutes
=============================================================================================
=============================================================================================
          Trying to download https://gitlab.inria.fr/scotch/scotch.git for PTSCOTCH
=============================================================================================
=============================================================================================
                      Compiling PTScotch; this may take several minutes
=============================================================================================
=============================================================================================
                      Installing PTScotch; this may take several minutes
=============================================================================================
=============================================================================================
                Trying to download https://github.com/MmgTools/mmg.git for MMG
=============================================================================================
=============================================================================================
                  Configuring MMG with CMake; this may take several minutes
=============================================================================================
=============================================================================================
                 Compiling and installing MMG; this may take several minutes
=============================================================================================
=============================================================================================
             Trying to download https://github.com/MmgTools/ParMmg.git for PARMMG
=============================================================================================
=============================================================================================
                 Configuring PARMMG with CMake; this may take several minutes
=============================================================================================
=============================================================================================
                Compiling and installing PARMMG; this may take several minutes
=============================================================================================

*********************************************************************************************
           UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):
---------------------------------------------------------------------------------------------
                                Error running make on  PARMMG
*********************************************************************************************

make: *** [Makefile:215: petsc-3.20.2/tag-conf-real] Chyba 1

In configure.log we have

...

[100%] Linking C executable bin/parmmg_O3
/usr/bin/cmake -E cmake_link_script CMakeFiles/parmmg.dir/link.txt --verbose=1
/usr/lib/hpc/gnu7/mpi/openmpi/2.1.6/bin/mpicc -DUSE_METIS -DUSE_MPI -fPIC -Wno-lto-type-mismatch -O3 -mtune=native -DUSE_HDF5 -fPIC -Wno-lto-type-mismatch -O3 -mtune=native   -rdynamic CMakeFiles/parmmg.dir/src/parmmg.c.o -o bin/parmmg_O3  -Wl,-rpath,/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/petsc-build/lib:/home/lada/FreeFem-install/ff-petsc/r/lib:/usr/lib64/mpi/gcc/openmpi2/lib64: lib/libparmmg.so.1.4.0 /home/lada/FreeFem-install/ff-petsc/r/lib/libmetis.so /home/lada/FreeFem-install/ff-petsc/r/lib/libmmg.so /home/lada/FreeFem-install/ff-petsc/r/lib/libscotch.a /home/lada/FreeFem-install/ff-petsc/r/lib/libscotcherrexit.a -lz -lm -lrt /usr/lib64/mpi/gcc/openmpi2/lib64/libhdf5.so -lm 
gmake[3]: Leaving directory '/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/petsc-build'
gmake[2]: Leaving directory '/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/petsc-build'
gmake[1]: Leaving directory '/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/petsc-build'
stdout:
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/analys_pmmg.c: In function ‘PMMG_hashNorver_switch’:
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/analys_pmmg.c:392:2: warning: #warning this should also work on the border of a OPNBDY surface [-Wcpp]
 #warning this should also work on the border of a OPNBDY surface
  ^~~~~~~
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/analys_pmmg.c: In function ‘PMMG_hashNorver_normals’:
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/analys_pmmg.c:929:2: warning: #warning Luca: fix opnbdy treatment [-Wcpp]
 #warning Luca: fix opnbdy treatment
  ^~~~~~~
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/analys_pmmg.c:952:2: warning: #warning Luca: why not like in MMG5_boulec? [-Wcpp]
 #warning Luca: why not like in MMG5_boulec?
  ^~~~~~~
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/analys_pmmg.c:1061:2: warning: #warning skip opnbdy until ready, as wrong orientation can mess up normals [-Wcpp]
 #warning skip opnbdy until ready, as wrong orientation can mess up normals
  ^~~~~~~
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/analys_pmmg.c: In function ‘PMMG_update_analys’:
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/analys_pmmg.c:1573:2: warning: #warning Luca: add a function like MMG5_setEdgeNmTag(mesh,hash) [-Wcpp]
 #warning Luca: add a function like MMG5_setEdgeNmTag(mesh,hash)
  ^~~~~~~
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/analys_pmmg.c: In function ‘PMMG_setdhd’:
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/analys_pmmg.c:2310:2: warning: #warning Luca: should we exchange tags on the edge communicator to update MG_PARBDYBDY? [-Wcpp]
 #warning Luca: should we exchange tags on the edge communicator to update MG_PARBDYBDY?
  ^~~~~~~
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/analys_pmmg.c: In function ‘PMMG_analys’:
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/analys_pmmg.c:2828:2: warning: #warning Luca: check that parbdy are skipped [-Wcpp]
 #warning Luca: check that parbdy are skipped
  ^~~~~~~
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/grpsplit_pmmg.c: In function ‘PMMG_splitPart_grps’:
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/grpsplit_pmmg.c:1594:2: warning: #warning : fix this conditional jump [-Wcpp]
 #warning: fix this conditional jump
  ^~~~~~~
In file included from /home/lada/FreeFem-install/ff-petsc/r/include/mmg/common/chrono_private.h:28:0,
                 from /home/lada/FreeFem-install/ff-petsc/r/include/mmg/common/libmmgcommon_private.h:41,
                 from /home/lada/FreeFem-install/ff-petsc/r/include/mmg/mmg3d/libmmg3d_private.h:27,
                 from /home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/parmmg.h:53,
                 from /home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/distributegrps_pmmg.c:40:
In function ‘myrealloc’,
    inlined from ‘PMMG_transfer_grps_fromItoMe.isra.4’ at /home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/distributegrps_pmmg.c:1588:7,
    inlined from ‘PMMG_transfer_grps_fromItoJ’ at /home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/distributegrps_pmmg.c:1696:9:
/home/lada/FreeFem-install/ff-petsc/r/include/mmg/common/mmgcommon_private.h:267:7: warning: argument 2 range [18446743816011513864, 18446744073709551504] exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
   ptr = (char *)realloc(ptr_in_c, s+sizeof(size_t));
   ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/parmmg.h:38:0,
                 from /home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/distributegrps_pmmg.c:40:
/home/lada/FreeFem-install/ff-petsc/r/include/mmg/common/mmgcommon_private.h: In function ‘PMMG_transfer_grps_fromItoJ’:
/usr/include/stdlib.h:550:14: note: in a call to allocation function ‘realloc’ declared here
 extern void *realloc (void *__ptr, size_t __size)
              ^~~~~~~
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/interpmesh_pmmg.c: In function ‘PMMG_copySol_point’:
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/interpmesh_pmmg.c:319:2: warning: #warning Luca: when surface adapt will be ready, distinguish BDY from PARBDY [-Wcpp]
 #warning Luca: when surface adapt will be ready, distinguish BDY from PARBDY
  ^~~~~~~
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/interpmesh_pmmg.c: In function ‘PMMG_interpMetricsAndFields_mesh’:
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/interpmesh_pmmg.c:578:2: warning: #warning Luca: make this part consistent with metrics interpolation [-Wcpp]
 #warning Luca: make this part consistent with metrics interpolation
  ^~~~~~~
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/libparmmg.c: In function ‘PMMG_preprocessMesh_distributed’:
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/libparmmg.c:312:2: warning: #warning hmin/hmax computed on each proc while we want a global value from the global bounding box and/or the global metric field... [-Wcpp]
 #warning hmin/hmax computed on each proc while we want a global value from the global bounding box and/or the global metric field...
  ^~~~~~~
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/libparmmg.c:329:2: warning: #warning Luca: check this function [-Wcpp]
 #warning Luca: check this function
  ^~~~~~~
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/libparmmg1.c: In function ‘PMMG_parmmglib1’:
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/libparmmg1.c:668:2: warning: #warning Luca: until analysis is not ready [-Wcpp]
 #warning Luca: until analysis is not ready
  ^~~~~~~
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/locate_pmmg.c: In function ‘PMMG_locatePoint_foundConvex’:
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/locate_pmmg.c:539:2: warning: #warning Luca: check distance computation [-Wcpp]
 #warning Luca: check distance computation
  ^~~~~~~
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/mergemesh_pmmg.c: In function ‘PMMG_merge_parmesh’:
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/mergemesh_pmmg.c:1591:2: warning: #warning MEMORY: small inconsistency [-Wcpp]
 #warning MEMORY: small inconsistency
  ^~~~~~~
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/moveinterfaces_pmmg.c: In function ‘PMMG_check_reachability’:
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/moveinterfaces_pmmg.c:691:2: warning: #warning Luca: change this tag [-Wcpp]
 #warning Luca: change this tag
  ^~~~~~~
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/moveinterfaces_pmmg.c: In function ‘PMMG_part_moveInterfaces’:
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/moveinterfaces_pmmg.c:1393:2: warning: #warning Luca: change this tag [-Wcpp]
 #warning Luca: change this tag
  ^~~~~~~
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/tag_pmmg.c: In function ‘PMMG_parbdyTria’:
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/tag_pmmg.c:776:2: warning: #warning Luca: no opnbdy yet [-Wcpp]
 #warning Luca: no opnbdy yet
  ^~~~~~~
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /usr/lib/hpc/gnu7/mpi/openmpi/2.1.6/lib64/libmpi.so: undefined reference to `mca_common_sm_module_attach'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /usr/lib/hpc/gnu7/mpi/openmpi/2.1.6/lib64/libmpi.so: undefined reference to `mca_common_sm_module_create_and_attach'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /usr/lib/hpc/gnu7/mpi/openmpi/2.1.6/lib64/libmpi.so: undefined reference to `mca_common_sm_fini'
collect2: error: ld returned 1 exit status
gmake[3]: *** [CMakeFiles/parmmg.dir/build.make:107: bin/parmmg_O3] Error 1
gmake[2]: *** [CMakeFiles/Makefile2:170: CMakeFiles/parmmg.dir/all] Error 2
gmake[1]: *** [Makefile:139: all] Error 2
                  Error running make on  PARMMG: Could not execute "['/usr/bin/gmake -j7 -l12.0 ']":
gmake[1]: Entering directory '/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/petsc-build'
/usr/bin/cmake -S/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg -B/home/lada/f
 .... more output .....
 Leaving directory '/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/petsc-build'
gmake[1]: Leaving directory '/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/petsc-build'/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/analys_pmmg.c: In function ‘PMMG_hashNorver_switch’:
/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/fr/externalpackages/git.parmmg/src/analys_pmmg.c
 .... more error .....
ca_common_sm_fini'
collect2: error: ld returned 1 exit status
gmake[3]: *** [CMakeFiles/parmmg.dir/build.make:107: bin/parmmg_O3] Error 1
gmake[2]: *** [CMakeFiles/Makefile2:170: CMakeFiles/parmmg.dir/all] Error 2
gmake[1]: *** [Makefile:139: all] Error 2

**** Configure header /tmp/petsc-nibra1mt/confdefs.h ****
#if !defined(INCLUDED_UNKNOWN)
#define INCLUDED_UNKNOWN

#define PETSC_CLANGUAGE_C 1
#define PETSC_CXX_RESTRICT __restrict
#define PETSC_FORTRAN_CHARLEN_T int
#define PETSC_FORTRAN_TYPE_INITIALIZE  = -2
#define PETSC_HAVE_ACCESS 1
#define PETSC_HAVE_BZERO 1
#define PETSC_HAVE_C99_COMPLEX 1
#define PETSC_HAVE_CLOCK 1
#define PETSC_HAVE_CXX_ATOMIC 1
#define PETSC_HAVE_CXX_COMPLEX 1
#define PETSC_HAVE_CXX_COMPLEX_FIX 1
#define PETSC_HAVE_CXX_DIALECT_CXX11 1
#define PETSC_HAVE_CXX_DIALECT_CXX14 1
#define PETSC_HAVE_CXX_DIALECT_CXX17 1
#define PETSC_HAVE_DLADDR 1
#define PETSC_HAVE_DLCLOSE 1
#define PETSC_HAVE_DLERROR 1
#define PETSC_HAVE_DLFCN_H 1
#define PETSC_HAVE_DLOPEN 1
#define PETSC_HAVE_DLSYM 1
#define PETSC_HAVE_DRAND48 1
#define PETSC_HAVE_DYNAMIC_LIBRARIES 1
#define PETSC_HAVE_ERF 1
#define PETSC_HAVE_EXECUTABLE_EXPORT 1
#define PETSC_HAVE_F90_2PTR_ARG 1
#define PETSC_HAVE_FCNTL_H 1
#define PETSC_HAVE_FENV_H 1
#define PETSC_HAVE_FE_VALUES 1
#define PETSC_HAVE_FLOAT_H 1
#define PETSC_HAVE_FORK 1
#define PETSC_HAVE_FORTRAN_FLUSH 1
#define PETSC_HAVE_FORTRAN_FREE_LINE_LENGTH_NONE 1
#define PETSC_HAVE_FORTRAN_GET_COMMAND_ARGUMENT 1
#define PETSC_HAVE_FORTRAN_TYPE_STAR 1
#define PETSC_HAVE_FORTRAN_UNDERSCORE 1
#define PETSC_HAVE_GETCWD 1
#define PETSC_HAVE_GETDOMAINNAME 1
#define PETSC_HAVE_GETHOSTBYNAME 1
#define PETSC_HAVE_GETHOSTNAME 1
#define PETSC_HAVE_GETPAGESIZE 1
#define PETSC_HAVE_GETRUSAGE 1
#define PETSC_HAVE_IMMINTRIN_H 1
#define PETSC_HAVE_INTTYPES_H 1
#define PETSC_HAVE_ISINF 1
#define PETSC_HAVE_ISNAN 1
#define PETSC_HAVE_ISNORMAL 1
#define PETSC_HAVE_LGAMMA 1
#define PETSC_HAVE_LINUX 1
#define PETSC_HAVE_LOG2 1
#define PETSC_HAVE_LSEEK 1
#define PETSC_HAVE_MALLOC_H 1
#define PETSC_HAVE_MEMMOVE 1
#define PETSC_HAVE_MKSTEMP 1
#define PETSC_HAVE_MMAP 1
#define PETSC_HAVE_MPIEXEC_ENVIRONMENTAL_VARIABLE OMP
#define PETSC_HAVE_MPIIO 1
#define PETSC_HAVE_MPI_COMBINER_CONTIGUOUS 1
#define PETSC_HAVE_MPI_COMBINER_DUP 1
#define PETSC_HAVE_MPI_COMBINER_NAMED 1
#define PETSC_HAVE_MPI_F90MODULE 1
#define PETSC_HAVE_MPI_F90MODULE_VISIBILITY 1
#define PETSC_HAVE_MPI_FEATURE_DYNAMIC_WINDOW 1
#define PETSC_HAVE_MPI_GET_ACCUMULATE 1
#define PETSC_HAVE_MPI_GET_LIBRARY_VERSION 1
#define PETSC_HAVE_MPI_INIT_THREAD 1
#define PETSC_HAVE_MPI_INT64_T 1
#define PETSC_HAVE_MPI_LONG_DOUBLE 1
#define PETSC_HAVE_MPI_NEIGHBORHOOD_COLLECTIVES 1
#define PETSC_HAVE_MPI_NONBLOCKING_COLLECTIVES 1
#define PETSC_HAVE_MPI_ONE_SIDED 1
#define PETSC_HAVE_MPI_PROCESS_SHARED_MEMORY 1
#define PETSC_HAVE_MPI_REDUCE_LOCAL 1
#define PETSC_HAVE_MPI_REDUCE_SCATTER_BLOCK 1
#define PETSC_HAVE_MPI_RGET 1
#define PETSC_HAVE_MPI_WIN_CREATE 1
#define PETSC_HAVE_NANOSLEEP 1
#define PETSC_HAVE_NETDB_H 1
#define PETSC_HAVE_NETINET_IN_H 1
#define PETSC_HAVE_OMPI_MAJOR_VERSION 2
#define PETSC_HAVE_OMPI_MINOR_VERSION 1
#define PETSC_HAVE_OMPI_RELEASE_VERSION 6
#define PETSC_HAVE_POPEN 1
#define PETSC_HAVE_POSIX_MEMALIGN 1
#define PETSC_HAVE_PWD_H 1
#define PETSC_HAVE_RAND 1
#define PETSC_HAVE_READLINK 1
#define PETSC_HAVE_REALPATH 1
#define PETSC_HAVE_REAL___FLOAT128 1
#define PETSC_HAVE_RTLD_GLOBAL 1
#define PETSC_HAVE_RTLD_LAZY 1
#define PETSC_HAVE_RTLD_LOCAL 1
#define PETSC_HAVE_RTLD_NOW 1
#define PETSC_HAVE_SCOTCH_PARMETIS_V3_NODEND 1
#define PETSC_HAVE_SETJMP_H 1
#define PETSC_HAVE_SLEEP 1
#define PETSC_HAVE_SNPRINTF 1
#define PETSC_HAVE_SOCKET 1
#define PETSC_HAVE_STDATOMIC_H 1
#define PETSC_HAVE_STDINT_H 1
#define PETSC_HAVE_STRCASECMP 1
#define PETSC_HAVE_STRINGS_H 1
#define PETSC_HAVE_STRUCT_SIGACTION 1
#define PETSC_HAVE_SYS_PARAM_H 1
#define PETSC_HAVE_SYS_PROCFS_H 1
#define PETSC_HAVE_SYS_RESOURCE_H 1
#define PETSC_HAVE_SYS_SOCKET_H 1
#define PETSC_HAVE_SYS_TIMES_H 1
#define PETSC_HAVE_SYS_TIME_H 1
#define PETSC_HAVE_SYS_TYPES_H 1
#define PETSC_HAVE_SYS_UTSNAME_H 1
#define PETSC_HAVE_SYS_WAIT_H 1
#define PETSC_HAVE_TETGEN_TETLIBRARY_NEEDED 1
#define PETSC_HAVE_TGAMMA 1
#define PETSC_HAVE_TIME 1
#define PETSC_HAVE_TIME_H 1
#define PETSC_HAVE_UNAME 1
#define PETSC_HAVE_UNISTD_H 1
#define PETSC_HAVE_USLEEP 1
#define PETSC_HAVE_VA_COPY 1
#define PETSC_HAVE_VSNPRINTF 1
#define PETSC_IS_COLORING_MAX USHRT_MAX
#define PETSC_IS_COLORING_VALUE_TYPE short
#define PETSC_IS_COLORING_VALUE_TYPE_F integer2
#define PETSC_LEVEL1_DCACHE_LINESIZE 64
#define PETSC_MAX_PATH_LEN 4096
#define PETSC_MEMALIGN 16
#define PETSC_MPIU_IS_COLORING_VALUE_TYPE MPI_UNSIGNED_SHORT
#define PETSC_OMAKE "/usr/bin/gmake --no-print-directory"
#define PETSC_PYTHON_EXE "/usr/bin/python3"
#define PETSC_SIGNAL_CAST  
#define PETSC_SIZEOF_INT 4
#define PETSC_SIZEOF_LONG 8
#define PETSC_SIZEOF_LONG_LONG 8
#define PETSC_SIZEOF_SIZE_T 8
#define PETSC_SIZEOF_VOID_P 8
#define PETSC_USE_AVX512_KERNELS 1
#define PETSC_USE_BACKWARD_LOOP 1
#define PETSC_USE_CTABLE 1
#define PETSC_USE_DEBUGGER "gdb"
#define PETSC_USE_DMLANDAU_2D 1
#define PETSC_USE_INFO 1
#define PETSC_USE_LOG 1
#define PETSC_USE_MALLOC_COALESCED 1
#define PETSC_USE_PROC_FOR_SIZE 1
#define PETSC_USE_REAL_DOUBLE 1
#define PETSC_USE_SHARED_LIBRARIES 1
#define PETSC_USE_VISIBILITY_C 1
#define PETSC_USE_VISIBILITY_CXX 1
#define PETSC_USING_64BIT_PTR 1
#define PETSC_USING_F2003 1
#define PETSC_USING_F90FREEFORM 1
#define PETSC__BSD_SOURCE 1
#define PETSC__DEFAULT_SOURCE 1
#define PETSC__GNU_SOURCE 1
#endif
**** C specific Configure header /tmp/petsc-nibra1mt/conffix.h ****
#if !defined(INCLUDED_UNKNOWN)
#define INCLUDED_UNKNOWN

#if defined(__cplusplus)
extern "C" {
}
#else
#endif
#endif
*********************************************************************************************
           UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):
---------------------------------------------------------------------------------------------
                                Error running make on  PARMMG
*********************************************************************************************
  File "/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/config/configure.py", line 462, in petsc_configure
    framework.configure(out = sys.stdout)
  File "/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/config/BuildSystem/config/framework.py", line 1449, in configure
    self.processChildren()
  File "/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/config/BuildSystem/config/framework.py", line 1437, in processChildren
    self.serialEvaluation(self.childGraph)
  File "/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/config/BuildSystem/config/framework.py", line 1412, in serialEvaluation
    child.configure()
  File "/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/config/BuildSystem/config/package.py", line 1340, in configure
    self.executeTest(self.configureLibrary)
  File "/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/config/BuildSystem/config/base.py", line 138, in executeTest
    ret = test(*args,**kargs)
  File "/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/config/BuildSystem/config/package.py", line 1021, in configureLibrary
    for location, directory, lib, incl in self.generateGuesses():
  File "/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/config/BuildSystem/config/package.py", line 589, in generateGuesses
    d = self.checkDownload()
  File "/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/config/BuildSystem/config/package.py", line 723, in checkDownload
    return self.getInstallDir()
  File "/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/config/BuildSystem/config/package.py", line 529, in getInstallDir
    installDir = self.Install()
  File "/home/lada/f/FreeFem-sources/3rdparty/ff-petsc/petsc-3.20.2/config/BuildSystem/config/package.py", line 2057, in Install
    raise RuntimeError('Error running make on  '+self.PACKAGE)
================================================================================
Finishing configure run at Wed, 31 Jan 2024 16:55:29 +0100
================================================================================

I also tried without PETSC, the same, but new, git clone, autoreconf, configure and 3rdparty/getall -a and then directly

> make

...
lots of compilation without error
...
gcc -O -I. -g  -DNDEBUG -O3 -mmmx -mavx -msse4.2 -msse2 -msse -fPIC  -I/usr/lib/hpc/gnu7/mpi/openmpi/2.1.6/include  -DAdd_  -I. -c mpic.c -o mpic.o
mpic.c:16:1: error: unknown type name ‘LIBSEQ_INT’
 LIBSEQ_INT MPI_Init(LIBSEQ_INT *pargc, char ***pargv)
 ^~~~~~~~~~
mpic.c:16:21: error: unknown type name ‘LIBSEQ_INT’
 LIBSEQ_INT MPI_Init(LIBSEQ_INT *pargc, char ***pargv)
                     ^~~~~~~~~~
mpic.c:21:1: error: unknown type name ‘LIBSEQ_INT’
 LIBSEQ_INT MPI_Comm_rank( MPI_Comm comm, LIBSEQ_INT *rank)
 ^~~~~~~~~~
mpic.c:21:42: error: unknown type name ‘LIBSEQ_INT’
 LIBSEQ_INT MPI_Comm_rank( MPI_Comm comm, LIBSEQ_INT *rank)
                                          ^~~~~~~~~~
mpic.c:26:1: error: unknown type name ‘LIBSEQ_INT’
 LIBSEQ_INT MPI_Finalize(void)
 ^~~~~~~~~~
make[8]: *** [Makefile:19: mpic.o] Error 1
make[8]: Leaving directory '/home/lada/f/FreeFem-sources/3rdparty/mumps/MUMPS_5.0.2/libseq'
make[7]: *** [Makefile:59: libseqneeded] Error 2
make[7]: Leaving directory '/home/lada/f/FreeFem-sources/3rdparty/mumps/MUMPS_5.0.2'
make[6]: *** [Makefile:24: d] Error 2
make[6]: Leaving directory '/home/lada/f/FreeFem-sources/3rdparty/mumps/MUMPS_5.0.2'
make[5]: *** [Makefile:69: MUMPS_5.0.2/FAIT] Error 2
make[5]: Leaving directory '/home/lada/f/FreeFem-sources/3rdparty/mumps'
make[4]: *** [Makefile:1014: compile-dir] Error 2
make[4]: Leaving directory '/home/lada/f/FreeFem-sources/3rdparty'
make[3]: *** [Makefile:1023: tag-compile-pkg] Error 1
make[3]: Leaving directory '/home/lada/f/FreeFem-sources/3rdparty'
make[2]: *** [Makefile:616: all-recursive] Error 1
make[2]: Leaving directory '/home/lada/f/FreeFem-sources/3rdparty'
make[1]: *** [Makefile:808: all-recursive] Error 1
make[1]: Leaving directory '/home/lada/f/FreeFem-sources'
make: *** [Makefile:758: all] Error 2
@prj-
Copy link
Member

prj- commented Jan 31, 2024

/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /usr/lib/hpc/gnu7/mpi/openmpi/2.1.6/lib64/[libmpi.so](http://libmpi.so/): undefined reference to `mca_common_sm_module_attach'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /usr/lib/hpc/gnu7/mpi/openmpi/2.1.6/lib64/[libmpi.so](http://libmpi.so/): undefined reference to `mca_common_sm_module_create_and_attach'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /usr/lib/hpc/gnu7/mpi/openmpi/2.1.6/lib64/[libmpi.so](http://libmpi.so/): undefined reference to `mca_common_sm_fini'

Are you sure your OpenMPI installation is working properly? Also, you may want to update it, this version is about 6-year old.

@LadaF
Copy link
Author

LadaF commented Jan 31, 2024

Yes, I am. I have multiple versions of OpenMPI in different modules, but I have various libraries compiled for OpenMPI 2 and I would have to recompile everything when switching to a different version.

I also have different versions of GCC (7,8,9,10,11,12,13), but I didn't succeed in persuading the FreeFEM's configure to actually use them. The MPI modules are, however, compiled for GCC 7 only.

@prj-
Copy link
Member

prj- commented Jan 31, 2024

Well, it may be working for you, but it looks like ParMmg can't use it. You may want to remove --download-parmmg in 3rdparty/ff-petsc/Makefile, but I'm guessing you will face similar failures down the road.

@LadaF
Copy link
Author

LadaF commented Feb 1, 2024

OK, there were some issues with OpenMPI 2 and I actually realized my own software was actually compiled with OpenMPI 3, but after switching the modules the results are virtually the same. But the biggest issue here is with MUMPS, not with PARMMG. Or do I interpret the last output incorrectly? Here it is update, but it stayed the same, really:

gcc -O -I. -g  -DNDEBUG -O3 -mmmx -mavx -msse4.2 -msse2 -msse -fPIC  -I/usr/lib/hpc/gnu7/mpi/openmpi/3.1.6/include  -DAdd_  -I. -c mpic.c -o mpic.o
mpic.c:16:1: error: unknown type name ‘LIBSEQ_INT’
 LIBSEQ_INT MPI_Init(LIBSEQ_INT *pargc, char ***pargv)
 ^~~~~~~~~~
mpic.c:16:21: error: unknown type name ‘LIBSEQ_INT’
 LIBSEQ_INT MPI_Init(LIBSEQ_INT *pargc, char ***pargv)
                     ^~~~~~~~~~
mpic.c:21:1: error: unknown type name ‘LIBSEQ_INT’
 LIBSEQ_INT MPI_Comm_rank( MPI_Comm comm, LIBSEQ_INT *rank)
 ^~~~~~~~~~
mpic.c:21:42: error: unknown type name ‘LIBSEQ_INT’
 LIBSEQ_INT MPI_Comm_rank( MPI_Comm comm, LIBSEQ_INT *rank)
                                          ^~~~~~~~~~
mpic.c:26:1: error: unknown type name ‘LIBSEQ_INT’
 LIBSEQ_INT MPI_Finalize(void)
 ^~~~~~~~~~

@prj-
Copy link
Member

prj- commented Feb 1, 2024

If you got PETSc to compile and install fine, I would just re-configure with the flag --disable-mumps_seq.

@LadaF
Copy link
Author

LadaF commented Feb 1, 2024

Not sure if I got PETSc to compile. It is quite unfortunate I have to do it in the first place as Linux distributions do have PETSc and MUMPS available as pre-compiled packages including the -devel with development header files.

@prj-
Copy link
Member

prj- commented Feb 1, 2024

You can feed your own PETSc with --with-petsc and --with-petsc_complex, but the likelihood that it's missing one of the many packages FreeFEM (optionally) uses is high. Thus, you will end up having FreeFEM trying to compile the missing packages, and then you may run into errors as you are seeing with MUMPS_seq.
Alternatively, you can just use FreeFEM with no external packages, and then you won't have errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants