[petsc-users] Failing PETSc 3.19.2 compile using ICPC

Robert.Crockett at lamresearch.com Robert.Crockett at lamresearch.com
Wed Jul 19 15:31:31 CDT 2023


Hello,
I am attempting to build PETSc using the 2018.5.274 Intel compiler suite on CentOS7. I get the below error messages.
See the attached for more information.

  *   The file petscbuild.sh is the script used to configure and build
  *   The file configure.log is output by PETSc
  *   The file log.petscbuild is the output of the config & build script.

Can you please help find a work-around?
Best,
Robert

PS. Some related links I found in searching on this issue.
The first references a related compiler bug ticket opened with Intel, though I cannot tell if it was closed or if it applied to my compiler.
https://community.intel.com/t5/Intel-C-Compiler/Default-constructor-of-variant-is-deleted/m-p/1156212?profile.language=en
https://mediatum.ub.tum.de/doc/1555265/1555265.pdf

Robert Crockett
Plasma Simulation Engineer | OCTO - Computational Products
P: 617.648.8349  M: 415.205.4567

LAM RESEARCH
4650 Cushing Pkwy, Fremont CA 94538 USA
lamresearch.com<https://www.lamresearch.com/>
[cid:image001.png at 01D9BA5D.0F372F60]

-----------------------------------------
Using C compile: /usr/local/petsc/r/bin/mpicc -o .o -c -wd1572 -Wno-unknown-pragmas -O3 -mtune=generic
mpicc -show: icc -fPIC -wd1572 -O3 -mtune=generic -I/usr/local/petsc/r/include -L/usr/local/petsc/r/lib -Wl,-rpath -Wl,/usr/local/petsc/r/lib -Wl,--enable-new-dtags -lmpi
C compiler version: icc (ICC) 18.0.5 20180823
Using C++ compile: /usr/local/petsc/r/bin/mpicxx -o .o -c -wd1572 -O3 -mtune=generic  -std=c++14  -I/usr/local/share/petsc/src/include -I/usr/local/share/petsc/src/arch-linux-c-opt/include -I/usr/local/petsc/r/include
mpicxx -show: icpc -wd1572 -O3 -mtune=generic -std=c++14 -fPIC -I/usr/local/petsc/r/include -L/usr/local/petsc/r/lib -lmpicxx -Wl,-rpath -Wl,/usr/local/petsc/r/lib -Wl,--enable-new-dtags -lmpi
C++ compiler version: icpc (ICC) 18.0.5 20180823
Using Fortran compile: /usr/local/petsc/r/bin/mpif90 -o .o -c -Wall -ffree-line-length-none -ffree-line-length-0 -Wno-lto-type-mismatch -Wno-unused-dummy-argument -O3 -mtune=generic   -I/usr/local/share/petsc/src/include -I/usr/local/share/petsc/src/arch-linux-c-opt/include -I/usr/local/petsc/r/include
mpif90 -show: gfortran -fPIC -ffree-line-length-none -ffree-line-length-0 -Wno-lto-type-mismatch -O3 -mtune=generic -I/usr/local/petsc/r/include -I/usr/local/petsc/r/include -L/usr/local/petsc/r/lib -lmpifort -Wl,-rpath -Wl,/usr/local/petsc/r/lib -Wl,--enable-new-dtags -lmpi
Fortran compiler version: GNU Fortran (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)
-----------------------------------------
Using C/C++ linker: /usr/local/petsc/r/bin/mpicc
Using C/C++ flags: -wd1572 -Wno-unknown-pragmas -O3 -mtune=generic
Using Fortran linker: /usr/local/petsc/r/bin/mpif90
Using Fortran flags: -Wall -ffree-line-length-none -ffree-line-length-0 -Wno-lto-type-mismatch -Wno-unused-dummy-argument -O3 -mtune=generic
-----------------------------------------
Using system modules:
Using mpi.h: # 1 "/usr/local/petsc/r/include/mpi.h" 1
-----------------------------------------
Using libraries: -Wl,-rpath,/usr/local/share/petsc/src/arch-linux-c-opt/lib -L/usr/local/share/petsc/src/arch-linux-c-opt/lib -Wl,-rpath,/usr/local/petsc/r/lib -L/usr/local/petsc/r/lib -Wl,-rpath,/opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7 -L/opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7 -Wl,-rpath,/opt/rh/devtoolset-7/root/usr/lib64 -L/opt/rh/devtoolset-7/root/usr/lib64 -Wl,-rpath,/work/tools/intel/composer_xe_2018_4/compilers_and_libraries_2018.5.274/linux/ipp/lib/intel64 -L/work/tools/intel/composer_xe_2018_4/compilers_and_libraries_2018.5.274/linux/ipp/lib/intel64 -Wl,-rpath,/work/tools/intel/composer_xe_2018_4/compilers_and_libraries_2018.5.274/linux/compiler/lib/intel64_lin -L/work/tools/intel/composer_xe_2018_4/compilers_and_libraries_2018.5.274/linux/compiler/lib/intel64_lin -Wl,-rpath,/work/tools/intel/composer_xe_2018_4/compilers_and_libraries_2018.5.274/linux/mkl/lib/intel64_lin -L/work/tools/intel/composer_xe_2018_4/compilers_and_libraries_2018.5.274/linux/mkl/lib/intel64_lin -Wl,-rpath,/work/tools/intel/composer_xe_2018_4/compilers_and_libraries_2018.5.274/linux/tbb/lib/intel64/gcc4.7 -L/work/tools/intel/composer_xe_2018_4/compilers_and_libraries_2018.5.274/linux/tbb/lib/intel64/gcc4.7 -Wl,-rpath,/work/tools/intel/composer_xe_2018_4/compilers_and_libraries_2018.5.274/linux/daal/lib/intel64_lin -L/work/tools/intel/composer_xe_2018_4/compilers_and_libraries_2018.5.274/linux/daal/lib/intel64_lin -Wl,-rpath,/work/tools/intel/composer_xe_2018_4/compilers_and_libraries_2018.5.274/linux/tbb/lib/intel64_lin/gcc4.4 -L/work/tools/intel/composer_xe_2018_4/compilers_and_libraries_2018.5.274/linux/tbb/lib/intel64_lin/gcc4.4 -Wl,-rpath,/opt/rh/devtoolset-7/root/usr/lib -L/opt/rh/devtoolset-7/root/usr/lib -lpetsc -lspqr -lumfpack -lklu -lcholmod -lbtf -lccolamd -lcolamd -lcamd -lamd -lsuitesparseconfig -lscalapack -lsuperlu -lf2clapack -lf2cblas -lptesmumps -lptscotchparmetisv3 -lptscotch -lptscotcherr -lesmumps -lscotch -lscotcherr -lpthread -lmetis -ldl -lmpifort -lmpi -lgfortran -lm -lgfortran -lm -lgcc_s -lquadmath -ldl -lmpicxx -lmpi -limf -lsvml -lirng -lstdc++ -lm -lipgo -ldecimal -lcilkrts -lgcc_s -lirc -lirc_s -lrt -ldl -lmpicxx -lmpi -limf -lsvml -lirng -lstdc++ -lm -lipgo -ldecimal -lcilkrts -lgcc_s -lirc -lirc_s -ldl
------------------------------------------
Using mpiexec: /usr/local/petsc/r/bin/mpiexec
------------------------------------------
Using MAKE: /usr/bin/gmake
Default MAKEFLAGS: MAKE_NP:4 MAKE_LOAD:6.0 MAKEFLAGS: --no-print-directory -- PETSC_ARCH=arch-linux-c-opt PETSC_DIR=/usr/local/share/petsc/src
==========================================
/usr/bin/gmake --print-directory -f gmakefile -j4 -l6.0 V= libs
/opt/mambaforge/bin/python3 ./config/gmakegen.py --petsc-arch=arch-linux-c-opt
        CXX arch-linux-c-opt/obj/sys/objects/device/impls/host/hostcontext.o
        CXX arch-linux-c-opt/obj/sys/objects/device/impls/host/hostdevice.o
        CXX arch-linux-c-opt/obj/sys/objects/device/interface/dcontext.o
        CXX arch-linux-c-opt/obj/sys/objects/device/interface/device.o
        CXX arch-linux-c-opt/obj/sys/objects/device/interface/global_dcontext.o
        CXX arch-linux-c-opt/obj/sys/objects/device/interface/mark_dcontext.o
/usr/local/share/petsc/src/include/petsc/private/cpp/object_pool.hpp(930): error: the default constructor of "Petsc::util::compressed_pair<PetscDeviceContextConstructor, Petsc::memory::PoolAllocator>" cannot be referenced -- it is a deleted function
    util::compressed_pair<constructor_type, allocator_type> pair_{};
                                                                 ^
          detected during instantiation of class "Petsc::ObjectPool<T, Constructor> [with T=_p_PetscDeviceContext, Constructor=PetscDeviceContextConstructor]" at line 61 of "/usr/local/share/petsc/src/src/sys/objects/device/interface/dcontext.cxx"

        CXX arch-linux-c-opt/obj/sys/objects/device/interface/memory.o
compilation aborted for /usr/local/share/petsc/src/src/sys/objects/device/interface/dcontext.cxx (code 2)
gmake[3]: *** [arch-linux-c-opt/obj/sys/objects/device/interface/dcontext.o] Error 2
gmake[3]: *** Waiting for unfinished jobs....
/usr/local/share/petsc/src/include/petsc/private/cpp/object_pool.hpp(930): error: the default constructor of "Petsc::util::compressed_pair<PetscEventConstructor, Petsc::memory::PoolAllocator>" cannot be referenced -- it is a deleted function
    util::compressed_pair<constructor_type, allocator_type> pair_{};
                                                                 ^
          detected during instantiation of class "Petsc::ObjectPool<T, Constructor> [with T=_n_PetscEvent, Constructor=PetscEventConstructor]" at line 54 of "/usr/local/share/petsc/src/src/sys/objects/device/interface/mark_dcontext.cxx"

compilation aborted for /usr/local/share/petsc/src/src/sys/objects/device/interface/mark_dcontext.cxx (code 2)
gmake[3]: *** [arch-linux-c-opt/obj/sys/objects/device/interface/mark_dcontext.o] Error 2
gmake[2]: *** [libs] Error 2
**************************ERROR*************************************
  Error during compile, check arch-linux-c-opt/lib/petsc/conf/make.log
  Send it and arch-linux-c-opt/lib/petsc/conf/configure.log to petsc-maint at mcs.anl.gov<mailto:petsc-maint at mcs.anl.gov>
********************************************************************
make[1]: *** [all] Error 1
make: *** [all] Error 2
*** Using PETSC_DIR=/usr/local/share/petsc/src PETSC_ARCH=arch-linux-c-opt ***
*** Installing PETSc at prefix location: /usr/local/petsc/r  ***
====================================
Install complete.


LAM RESEARCH CONFIDENTIALITY NOTICE: This e-mail transmission, and any documents, files, or previous e-mail messages attached to it, (collectively, "E-mail Transmission") may be subject to one or more of the following based on the associated sensitivity level: E-mail Transmission (i) contains confidential information, (ii) is prohibited from distribution outside of Lam, and/or (iii) is intended solely for and restricted to the specified recipient(s). If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this message is STRICTLY PROHIBITED. If you have received this transmission in error, please immediately notify the sender and destroy the original transmission and its attachments without reading them or saving them to disk. Thank you.


Confidential - Limited Access and Use
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230719/19a39230/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 1167 bytes
Desc: image001.png
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230719/19a39230/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.log
Type: application/octet-stream
Size: 6711872 bytes
Desc: configure.log
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230719/19a39230/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log.petscbuild
Type: application/octet-stream
Size: 89084 bytes
Desc: log.petscbuild
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230719/19a39230/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: petscbuild.sh
Type: application/octet-stream
Size: 1148 bytes
Desc: petscbuild.sh
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230719/19a39230/attachment-0005.obj>


More information about the petsc-users mailing list