Satish, Unfortunately, --with-cxx-dialect=11 did not fix the problem. Can you or others on the list tell me the effect on solving large sparse real symmetric and unsymmetric problems, if --with-cxx=0 and suitesparse is not downloaded? Thanks, Robert
Confidential – Limited Access and Use -----Original Message----- From: Satish Balay <ba...@mcs.anl.gov> Sent: Wednesday, July 19, 2023 5:07 PM To: Barry Smith <bsm...@petsc.dev> Cc: Crockett, Robert <robert.crock...@lamresearch.com>; petsc-users@mcs.anl.gov Subject: Re: [petsc-users] Failing PETSc 3.19.2 compile using ICPC you can try --with-cxx-dialect=11 and see if that works. with -with-cxx=0 - --download-suitesparse [and other pkgs that require cxx] won't work - and would need to be installed separately Jacob, One more use case for --with-cxx-bindings=0 Satish On Wed, 19 Jul 2023, Barry Smith wrote: > > Do you need C++, you can configure --with-cxx=0 if you do not need it. > > You can also try the main branch of PETSc or slightly different versions of > the compiler. > > Barry > > > > > On Jul 19, 2023, at 4:31 PM, Robert Crockett via petsc-users > > <petsc-users@mcs.anl.gov> wrote: > > > > 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://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fco > > mmunity.intel.com%2Ft5%2FIntel-C-Compiler%2FDefault-constructor-of-v > > ariant-is-deleted%2Fm-p%2F1156212%3Fprofile.language%3Den&data=05%7C > > 01%7CRobert.Crockett%40lamresearch.com%7C616797c1562a4487ab5008db889 > > c18bc%7C918079dbc9024e29b22c9764410d0375%7C0%7C0%7C63825397626768035 > > 8%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTi > > I6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=aLTeNz0m6xZ4df8AyndNe > > 38vqD16gbTfWuKHGw735%2BY%3D&reserved=0 > > https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fme > > diatum.ub.tum.de%2Fdoc%2F1555265%2F1555265.pdf&data=05%7C01%7CRobert > > .Crockett%40lamresearch.com%7C616797c1562a4487ab5008db889c18bc%7C918 > > 079dbc9024e29b22c9764410d0375%7C0%7C0%7C638253976267680358%7CUnknown > > %7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiL > > CJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=KfN8V%2BPnJs5kr5itDINRXfrFUOpRX3 > > Kok9OtAC4k1pg%3D&reserved=0 > > > > 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/> <image001.png> > > > > ----------------------------------------- > > 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_librar > > ies_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_librar > > ies_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_librar > > ies_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_librar > > ies_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_librar > > ies_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_librar > > ies_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_dco > > ntext.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-ma...@mcs.anl.gov <mailto:petsc-ma...@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 > > > > <configure.log><log.petscbuild><petscbuild.sh> > >