[petsc-users] Problem installing metis

Michele Rosso mrosso at uci.edu
Thu Sep 3 13:16:27 CDT 2015


Hi Satish,

I did as you suggested and I was able to install successfully.
I attached the configure script and log.

Thanks!
Michele

On Thu, 2015-09-03 at 13:08 -0500, Satish Balay wrote:

> Hm - this is weird.
> 
> >>>>>>>>>>>
> 
> TESTING: checkMath from config.libraries(config/BuildSystem/config/libraries.py:251)
>   Check for sin() in libm, the math library
> 
> Executing: mpicc  -o /tmp/petsc-AXFj8c/config.libraries/conftest    -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -O3 -ffast-math -march=native -mtune=native /tmp/petsc-AXFj8c/config.libraries/conftest.o   -L/usr/lib/x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.8 -L/usr/lib/x86_64-linux-gnu -L/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -ldl -lmpich -lopa -lmpl -lrt -lcr -lpthread -lgcc_s -ldl
>               Popping language C
>           Math functions are linked in by default
> 
> 
> Executing: mpicc  -o /tmp/petsc-AXFj8c/config.libraries/conftest    -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -O3 -ffast-math -march=native -mtune=native /tmp/petsc-AXFj8c/config.libraries/conftest.o  -Wl,-rpath,/opt/petsc/petscfork/gnu-opt-32idx/lib -L/opt/petsc/petscfork/gnu-opt-32idx/lib -lmetis -L/usr/lib/x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.8 -L/usr/lib/x86_64-linux-gnu -L/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -ldl -lmpich -lopa -lmpl -lrt -lcr -lpthread -lgcc_s -ldl
> Possible ERROR while running linker: exit code 256
> stderr:
> /opt/petsc/petscfork/gnu-opt-32idx/lib/libmetis.a(kmetis.c.o): In function `libmetis__InitKWayPartitioning':
> /opt/petsc/petscfork/gnu-opt-32idx/externalpackages/metis-5.1.0-p1/libmetis/kmetis.c:187: undefined reference to `__log_finite'
> /opt/petsc/petscfork/gnu-opt-32idx/externalpackages/metis-5.1.0-p1/libmetis/kmetis.c:187: undefined reference to `__pow_finite'
> /opt/petsc/petscfork/gnu-opt-32idx/lib/libmetis.a(util.c.o): In function `gk_flog2':
> /opt/petsc/petscfork/gnu-opt-32idx/externalpackages/metis-5.1.0-p1/GKlib/util.c:106: undefined reference to `__log_finite'
> <<<<<<<<<<
> 
> Can you rerun configure with the additional option "LIBS=-lm" - and see if it makes a difference?
> 
> Satish
> 
> 
> On Thu, 3 Sep 2015, Michele Rosso wrote:
> 
> > Hi,
> > 
> > I am trying to install METIS via the development version of petsc, but I
> > encountered the following error:
> > 
> >          UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log
> > for details):
> > -------------------------------------------------------------------------------
> > Downloaded metis could not be used. Please check install
> > in /opt/petsc/petscfork/gnu-opt-32idx
> > 
> > 
> > I attached the install script and the configure.log file.
> > Any idea?
> > 
> > Thanks,
> > Michele
> > 
> > 
> > 
> > 
> 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150903/bf31d4c0/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.log
Type: text/x-log
Size: 3065355 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150903/bf31d4c0/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gnu-opt-32idx.py
Type: text/x-python
Size: 945 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150903/bf31d4c0/attachment-0001.py>


More information about the petsc-users mailing list