[petsc-users] jmp_buf error while linking petsc

Bikash Kanungo bikash at umich.edu
Tue Mar 21 17:23:19 CDT 2017


Hi,

I have recently installed petsc-3.7.5. However, while linking petsc with my
code, I get the following compilation error:

/home/bikashk/softwares/femdft_softwares/petsc/opt_3.7.5_mvapich2_64bit_complex/include/petscdraw.h(335):
error: identifier "jmp_buf" is undefined
  PETSC_EXTERN jmp_buf PetscXIOErrorHandlerJumpBuf;


I used the following configure options while compiling petsc:
./configure
--prefix=/home/bikashk/softwares/femdft_softwares/petsc/opt_3.7.5_mvapich2_64bit_complex
--with-debugging=no --with-scalar-type=complex CFLAGS="-O3 -xcore-avx2"
CXXFLAGS="-O3 -xcore-avx2" --with-mpi-dir=/opt/mvapich2/intel/ib/
-with-blas-lib="-Wl,--start-group
/opt/intel/composer_xe_2015.2.164/mkl/lib/intel64/libmkl_intel_lp64.a
/opt/intel/composer_xe_2015.2.164/mkl/lib/intel64/libmkl_sequential.a
/opt/intel/composer_xe_2015.2.164/mkl/lib/intel64/libmkl_core.a
-Wl,--end-group -lpthread -lm" --with-lapack-lib="-Wl,--start-group
/opt/intel/composer_xe_2015.2.164/mkl/lib/intel64/libmkl_intel_lp64.a
/opt/intel/composer_xe_2015.2.164/mkl/lib/intel64/libmkl_sequential.a
/opt/intel/composer_xe_2015.2.164/mkl/lib/intel64/libmkl_core.a
-Wl,--end-group -lpthread -lm" --with-cxx-dialect=C++11

I would really appreciate any help on how to fix it.

Thanks,
Bikash
-- 
Bikash S. Kanungo
PhD Student
Computational Materials Physics Group
Mechanical Engineering
University of Michigan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20170321/42236708/attachment.html>


More information about the petsc-users mailing list