[petsc-users] make check error using Intel MKL

dr hwang dr_hwang2022 at outlook.com
Thu Jul 4 20:47:55 CDT 2024


Dear support team,

       I want to install the petsc-3.18.5 in my ubuntu20.04 with compiler "Intel parallel studio 2019", but I met some error when I execute the "make check". Below is my steps and relevant errors.
       Firstly, in my ~/.bashrc, I have exported the PETSC_DIR=/home/hwang/archive/petsc-3.18.5 PETSC_ARCH=linux-gnu-intel and make it source.

(1)    tar zxvf petsc-3.18.5.tar.gz


(2)     ./configure PETSC_ARCH=linux-gnu-intel --prefix=/home/hwang/software/petsc-3.18.5 \

--with-cc=mpiicc --with-cxx=mpiicpc --with-fc=mpiifort --with-blaslapack-dir=${MKLROOT}/lib/intel64 --with-clean


(3)    make PETSC_DIR=/home/hwang/archive/petsc-3.18.5  PETSC_ARCH=linux-gnu-intel all


(4)    make PETSC_DIR=/home/hwang/archive/petsc-3.18.5  PETSC_ARCH=linux-gnu-intel install



(5)    make PETSC_DIR=/home/hwang/software/petsc-3.18.5 PETSC_ARCH="" check


the step (5) finally threw the error like below:
"ld: /home/hwang/software/petsc-3.19.6/lib/libpetsc.so: undefined reference to `__builtin_is_constant_evaluated'
make[4]: *** [/home/hwang/software/petsc-3.19.6/lib/petsc/conf/rules:216: ex5f] Error 1
Possible error running Fortran example src/snes/tutorials/ex5f with 1 MPI process
See https://urldefense.us/v3/__https://petsc.org/release/faq/__;!!G_uCfscf7eWS!e1r5fo8PjXZn3grY_2VPBAoWO1jMBoLHs10YTI0qJRklFHlZZ1YvQO9y6Yw67AhZvNXPNrThNcE0Ginj_m3Q5_NfcbF2EQ$ 
[proxy:0:0 at DESKTOP-AM9CLNS] HYD_spawn (../../../../../src/pm/i_hydra/libhydra/spawn/intel/hydra_spawn.c:117): execvp error on file ./ex5f (No such file or directory)


ld: /home/hwang/software/petsc-3.19.6/lib/libpetsc.so: undefined reference to `__builtin_is_constant_evaluated'
make[4]: *** [<builtin>: ex19] Error 1
Possible error running C/C++ src/snes/tutorials/ex19 with 1 MPI process
See https://urldefense.us/v3/__https://petsc.org/release/faq/__;!!G_uCfscf7eWS!e1r5fo8PjXZn3grY_2VPBAoWO1jMBoLHs10YTI0qJRklFHlZZ1YvQO9y6Yw67AhZvNXPNrThNcE0Ginj_m3Q5_NfcbF2EQ$ "


How can I solved it? Could you please help me.

Best regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240705/e9c58648/attachment-0001.html>


More information about the petsc-users mailing list