<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div><br></div> Do you need C++, you can configure --with-cxx=0 if you do not need it.<div><br></div><div> You can also try the main branch of PETSc or slightly different versions of the compiler.</div><div><br></div><div> Barry</div><div><br><div><br><div><br><blockquote type="cite"><div>On Jul 19, 2023, at 4:31 PM, Robert Crockett via petsc-users <petsc-users@mcs.anl.gov> wrote:</div><br class="Apple-interchange-newline"><div><meta charset="UTF-8"><div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Hello,<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">I am attempting to build PETSc using the 2018.5.274 Intel compiler suite on CentOS7. I get the below error messages.<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">See the attached for more information.<span class="Apple-converted-space"> </span><o:p></o:p></div><ul type="disc" style="margin-bottom: 0in; margin-top: 0in;"><li class="MsoListParagraph" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">The file petscbuild.sh is the script used to configure and build<o:p></o:p></li><li class="MsoListParagraph" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">The file configure.log is output by PETSc<o:p></o:p></li><li class="MsoListParagraph" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">The file log.petscbuild is the output of the config & build script.<o:p></o:p></li></ul><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Can you please help find a work-around?<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Best,<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Robert<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">PS. Some related links I found in searching on this issue.<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">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.<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><a href="https://community.intel.com/t5/Intel-C-Compiler/Default-constructor-of-variant-is-deleted/m-p/1156212?profile.language=en" style="color: rgb(5, 99, 193); text-decoration: underline;">https://community.intel.com/t5/Intel-C-Compiler/Default-constructor-of-variant-is-deleted/m-p/1156212?profile.language=en</a><o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><a href="https://mediatum.ub.tum.de/doc/1555265/1555265.pdf" style="color: rgb(5, 99, 193); text-decoration: underline;">https://mediatum.ub.tum.de/doc/1555265/1555265.pdf</a><o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 16.866667px;"><span style="font-size: 12.5pt; line-height: 19.166666px; font-family: Georgia, serif;">Robert Crockett</span><span style="font-size: 16pt; line-height: 24.533335px; font-family: Georgia, serif;"><span class="Apple-converted-space"> </span><br></span><span style="font-size: 9pt; line-height: 13.8px; font-family: Georgia, serif;">Plasma Simulation Engineer | OCTO - Computational Products</span><span style="font-size: 16pt; line-height: 24.533335px; font-family: Georgia, serif;"><br></span><span style="font-size: 9pt; line-height: 13.8px; font-family: Arial, sans-serif;">P:<span class="Apple-converted-space"> </span></span><span style="font-size: 9pt; line-height: 13.8px; font-family: Arial, sans-serif; color: rgb(68, 68, 68);">617.648.8349</span><span style="font-size: 9pt; line-height: 13.8px; font-family: Arial, sans-serif;"> M: 415.205.4567</span><span style="font-size: 9pt; line-height: 13.8px; font-family: Arial, sans-serif;"><br><br></span><b><span style="font-size: 7pt; line-height: 10.733333px; font-family: Arial, sans-serif;">LAM RESEARCH<br></span></b><span style="font-size: 7pt; line-height: 10.733333px; font-family: Arial, sans-serif;">4650 Cushing Pkwy, Fremont CA 94538 USA<span class="Apple-converted-space"> </span><br></span><a href="https://www.lamresearch.com/" style="color: rgb(5, 99, 193); text-decoration: underline;"><span style="font-size: 7pt; line-height: 10.733333px; font-family: Arial, sans-serif;">lamresearch.com</span></a><o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 16.866667px;"><span style="font-size: 16pt; line-height: 24.533335px; font-family: Georgia, serif;"><span id="cid:image001.png@01D9BA5D.0F372F60"><image001.png></span></span><br><br><o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">-----------------------------------------<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Using C compile: /usr/local/petsc/r/bin/mpicc -o .o -c -wd1572 -Wno-unknown-pragmas -O3 -mtune=generic<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">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<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">C compiler version: icc (ICC) 18.0.5 20180823<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">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<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">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<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">C++ compiler version: icpc (ICC) 18.0.5 20180823<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">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<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">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<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Fortran compiler version: GNU Fortran (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">-----------------------------------------<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Using C/C++ linker: /usr/local/petsc/r/bin/mpicc<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Using C/C++ flags: -wd1572 -Wno-unknown-pragmas -O3 -mtune=generic<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Using Fortran linker: /usr/local/petsc/r/bin/mpif90<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Using Fortran flags: -Wall -ffree-line-length-none -ffree-line-length-0 -Wno-lto-type-mismatch -Wno-unused-dummy-argument -O3 -mtune=generic<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">-----------------------------------------<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Using system modules:<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Using mpi.h: # 1 "/usr/local/petsc/r/include/mpi.h" 1<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">-----------------------------------------<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">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<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">------------------------------------------<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Using mpiexec: /usr/local/petsc/r/bin/mpiexec<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">------------------------------------------<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Using MAKE: /usr/bin/gmake<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">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<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">==========================================<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">/usr/bin/gmake --print-directory -f gmakefile -j4 -l6.0 V= libs<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">/opt/mambaforge/bin/python3 ./config/gmakegen.py --petsc-arch=arch-linux-c-opt<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> CXX arch-linux-c-opt/obj/sys/objects/device/impls/host/hostcontext.o<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> CXX arch-linux-c-opt/obj/sys/objects/device/impls/host/hostdevice.o<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> CXX arch-linux-c-opt/obj/sys/objects/device/interface/dcontext.o<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> CXX arch-linux-c-opt/obj/sys/objects/device/interface/device.o<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> CXX arch-linux-c-opt/obj/sys/objects/device/interface/global_dcontext.o<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> CXX arch-linux-c-opt/obj/sys/objects/device/interface/mark_dcontext.o<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">/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<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> util::compressed_pair<constructor_type, allocator_type> pair_{};<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> ^<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> 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"<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> CXX arch-linux-c-opt/obj/sys/objects/device/interface/memory.o<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">compilation aborted for /usr/local/share/petsc/src/src/sys/objects/device/interface/dcontext.cxx (code 2)<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">gmake[3]: *** [arch-linux-c-opt/obj/sys/objects/device/interface/dcontext.o] Error 2<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">gmake[3]: *** Waiting for unfinished jobs....<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">/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<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> util::compressed_pair<constructor_type, allocator_type> pair_{};<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> ^<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> 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"<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">compilation aborted for /usr/local/share/petsc/src/src/sys/objects/device/interface/mark_dcontext.cxx (code 2)<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">gmake[3]: *** [arch-linux-c-opt/obj/sys/objects/device/interface/mark_dcontext.o] Error 2<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">gmake[2]: *** [libs] Error 2<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">**************************ERROR*************************************<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> Error during compile, check arch-linux-c-opt/lib/petsc/conf/make.log<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> Send it and arch-linux-c-opt/lib/petsc/conf/configure.log to<span class="Apple-converted-space"> </span><a href="mailto:petsc-maint@mcs.anl.gov" style="color: rgb(5, 99, 193); text-decoration: underline;">petsc-maint@mcs.anl.gov</a><o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">********************************************************************<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">make[1]: *** [all] Error 1<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">make: *** [all] Error 2<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">*** Using PETSC_DIR=/usr/local/share/petsc/src PETSC_ARCH=arch-linux-c-opt ***<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">*** Installing PETSc at prefix location: /usr/local/petsc/r ***<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">====================================<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 16.866667px;">Install complete.<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div></div><div style="caret-color: rgb(0, 0, 0); font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-size: 8pt; font-family: Arial;"><br>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.</div><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><p align="Left" style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: arial; font-size: 8pt; color: rgb(164, 174, 183); margin: 5pt;">Confidential – Limited Access and Use<br></p><span id="cid:4A7C9399-212D-4A2F-B314-6A871722A424"><configure.log></span><span id="cid:7529A958-5849-4B52-8A8A-4562C8CAAB15"><log.petscbuild></span><span id="cid:F73A05C2-8D96-43D5-8CF9-87390919ACC3"><petscbuild.sh></span></div></blockquote></div><br></div></div></body></html>