[petsc-users] compiling error after re-installation with --download_hypre

Roc Wang pengxwang at hotmail.com
Thu Sep 26 13:57:47 CDT 2013


It works. Thanks a lot.

Date: Thu, 26 Sep 2013 11:40:48 -0700
Subject: Re: [petsc-users] compiling error after re-installation with --download_hypre
From: knepley at gmail.com
To: pengxwang at hotmail.com
CC: petsc-users at mcs.anl.gov

On Thu, Sep 26, 2013 at 11:34 AM, Roc Wang <pengxwang at hotmail.com> wrote:




Hello,

   I re-installed the petsc with --download_hypre and --download_ml.  The two test examples ex19 and ex5f run successfully. 

   I added the libraries link in the makefile like:

 
 -Wl,-rpath,${PETSC_DIR}/${PETSC_ARCH}/lib -L${PETSC_DIR}/${PETSC_ARCH}/lib -lHYPRE -L/usr/lib/gcc/x86_64-redhat-linux/4.4.7 -lmpichcxx -lstdc++ \
    -Wl,-rpath,${PETSC_DIR}/${PETSC_ARCH}/lib -L${PETSC_DIR}/${PETSC_ARCH}/lib -lml -L/usr/lib/gcc/x86_64-redhat-linux/4.4.7 -lmpichcxx -lstdc++ \


  However, the compiling errors occurred:

 /home/pwang/soft/petsc-3.3-p6/arch-linux2-c-debug/lib/libmpich.a(init.o): In function `PMPI_Init':
/home/pwang/soft/petsc-3.3-p6/externalpackages/mpich2-1.4.1p1/src/mpi/init/init.c:106: undefined reference to `MPL_env2str'

/home/pwang/soft/petsc-3.3-p6/externalpackages/mpich2-1.4.1p1/src/mpi/init/init.c:132: undefined reference to `MPL_env2bool'
/home/pwang/soft/petsc-3.3-p6/arch-linux2-c-debug/lib/libmpich.a(initthread.o): In function `PMPI_Init_thread':

/home/pwang/soft/petsc-3.3-p6/externalpackages/mpich2-1.4.1p1/src/mpi/init/initthread.c:535: undefined reference to `MPL_env2bool'
/home/pwang/soft/petsc-3.3-p6/arch-linux2-c-debug/lib/libmpich.a(param_vals.o): In function `MPIR_Param_init_params':

/home/pwang/soft/petsc-3.3-p6/externalpackages/mpich2-1.4.1p1/src/util/param/param_vals.c:249: undefined reference to `MPL_env2int'
/home/pwang/soft/petsc-3.3-p6/externalpackages/mpich2-1.4.1p1/src/util/param/param_vals.c:251: undefined reference to `MPL_env2int'

/home/pwang/soft/petsc-3.3-p6/externalpackages/mpich2-1.4.1p1/src/util/param/param_vals.c:254: undefined reference to `MPL_env2int'
/home/pwang/soft/petsc-3.3-p6/externalpackages/mpich2-1.4.1p1/src/util/param/param_vals.c:256: undefined reference to `MPL_env2int'

/home/pwang/soft/petsc-3.3-p6/externalpackages/mpich2-1.4.1p1/src/util/param/param_vals.c:259: undefined reference to `MPL_env2int'
/home/pwang/soft/petsc-3.3-p6/arch-linux2-c-debug/lib/libmpich.a(param_vals.o):/home/pwang/soft/petsc-3.3-p6/externalpackages/mpich2-1.4.1p1/src/util/param/param_vals.c:261: more undefined references to `MPL_env2int' follow

...  ...

It seems there is some library link I missed in the makefile. What should I add? Why it didn't happen before I re-install? Thanks.
make getlinklibs

   Matt
-- 
What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.
-- Norbert Wiener
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130926/c9116a15/attachment.html>


More information about the petsc-users mailing list