[petsc-users] jmp_buf error while linking petsc

Bikash Kanungo bikash at umich.edu
Tue Mar 21 19:51:14 CDT 2017


Hi Satish,

Thanks for the suggestions. I will change make makefiles and try to make it
work. However, I would like to state that the above problem appears only
while linking to petsc-3.7.5. My code compiles well with petsc-3.6.3. The
configuration options were same for both petsc-3.7.5 and petsc-3.6.3.

Thanks again,
Bikash



On Tue, Mar 21, 2017 at 7:11 PM, Satish Balay <balay at mcs.anl.gov> wrote:

> Should have said:
>
> make getccompiler getincludedirs getlinklibs
>
> Satish
>
> On Tue, 21 Mar 2017, Satish Balay wrote:
>
> > Ok - Then the issue might be with your makefile.  Perhaps its not a
> > petsc formatted makefile.
> >
> > In this case - run 'make getincludedirs getlibs' in PETSC_DIR - and
> > use the compilers, compile/link options listed there.
> >
> > Satish
> >
> > On Tue, 21 Mar 2017, Bikash Kanungo wrote:
> >
> > > Hi Satish,
> > >
> > > Yes, I ran 'make test' and it didn't throw any error. Here's my
> test.log:
> > >
> > > Running test examples to verify correct installation
> > > Using
> > > PETSC_DIR=/home/bikashk/softwares/femdft_softwares/
> petsc/opt_3.7.5_mvapich2_64bit_complex
> > > and PETSC_ARCH=
> > > C/C++ example src/snes/examples/tutorials/ex19 run successfully with
> 1 MPI
> > > process
> > > C/C++ example src/snes/examples/tutorials/ex19 run successfully with
> 2 MPI
> > > processes
> > > Fortran example src/snes/examples/tutorials/ex5f run successfully
> with 1
> > > MPI process
> > > Completed test examples
> > >
> > >
> > > Thanks,
> > > Bikash
> > >
> > > On Tue, Mar 21, 2017 at 6:51 PM, Satish Balay <balay at mcs.anl.gov>
> wrote:
> > >
> > > > Did you run 'make test' after insatalling PETSc? Were there errors
> with
> > > > this test?
> > > >
> > > > [you can send us corresponding test.log]
> > > >
> > > > Satish
> > > >
> > > > On Tue, 21 Mar 2017, Bikash Kanungo wrote:
> > > >
> > > > > 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/35ff2381/attachment.html>


More information about the petsc-users mailing list