[petsc-users] Petsc 3.3.p5 with HYPRE 2.9.0b
John Fettig
john.fettig at gmail.com
Fri Jan 11 09:20:53 CST 2013
On Fri, Jan 11, 2013 at 1:26 AM, Dominik Szczerba <dominik at itis.ethz.ch>wrote:
> > Dump of file libHYPRE.lib
> >
> > File Type: LIBRARY
> >
> > Summary
> >
> > A198 .bss
> > 18C .data
> > 11B28 .debug$S
> > 135E7 .drtve
> > CE64 .pdata
> > F829 .rdata
> > 2146A6 .text
> > 12720 .xdata
>
> Yes, this looks correctly as a native library. So how did you bring it
> to compile? Which version of MSVC are you using?
I'm using Visual Studio 2010, which contains Microsoft (R) C/C++ Optimizing
Compiler Version 16.00.40219.01 for x64. I had to make some modifications
to get the distributed tarball to produce a .lib instead of a .a, but I
believe otherwise I haven't made any changes. Here's what PETSc's
configure produces when it configures hypre:
./configure --prefix=/tmp/petsc-3.3-p3/arch-mswin-c-opt
--libdir=/tmp/petsc-3.3-p3/arch-mswin-c-opt/lib CC="win32fe cl" CFLAGS="
-MD -wd4996 -O2 -DWIN32" CXX="win32fe cl -MD -GR -EHsc -O2 -Zm200 -TP "
F77="win32fe ifort -MD -O3 -QxW -fpp "
--with-MPI-include="/usr/local/mpi-platform/include/64"
--with-MPI-lib-dirs="/usr/local/mpi-platform/lib"
--with-MPI-libs="pcmpi64.l" HYPRE_LIBSUFFIX=.lib RANLIB="/usr/bin/true"
AR="/tmp/petsc-3.3-p3/bin/win32fe/win32fe lib -a" --with-blas-libs=
--with-blas-lib-dir= --with-lapack-libs= --with-lapack-lib-dir=
--with-blas=yes --with-lapack=yes --with-fmangle-blas=caps-no-underscores
--with-fmangle-lapack=caps-no-underscores --without-babel --without-mli
--without-fei --without-superlu
Note that it is configuring --without-mli, which would explain why I don't
encounter the problem you experience below.
John
I get an error during
> compilation:
>
> cl -MD -nologo -DWIN32 -O2 -I/mpich2-1.3.2p1-win-x86-64/include
> -DHAVE_CONFIG_H
> -DMLI_SUPERLU -DMPICH_SKIP_MPICXX -I. -I../../.. -I./..
> -I./../../../utilities -
> I./../../../IJ_mv -I./../../../krylov -I./../../../multivector
> -I./../../../parc
> sr_mv -I./../../../parcsr_ls -I./../../../seq_mv
> -I./../../../distributed_matrix
> -I./../../../distributed_ls -I./../../../FEI_mv/fei-hypre
> -I./../../../FEI_mv/f
> emli -I./../../../FEI_mv/SuperLU -c mli_method.cxx; mv -f mli_method.obj
> mli_m
> ethod.o
> mli_method.cxx
> C:\Program Files (x86)\Microsoft Visual Studio
> 10.0\VC\INCLUDE\string.h(142) : e
> rror C2375: '_stricmp' : redefinition; different linkage
> C:\Program Files (x86)\Microsoft Visual Studio
> 10.0\VC\INCLUDE\string.h(
> 111) : see declaration of '_stricmp'
> mli_method.cxx(146) : warning C4551: function call missing argument list
> mli_method.cxx(146) : error C3861: '_stricmp': identifier not found
> mli_method.cxx(150) : warning C4551: function call missing argument list
> mli_method.cxx(150) : error C3861: '_stricmp': identifier not found
> mli_method.cxx(156) : warning C4551: function call missing argument list
> mli_method.cxx(156) : error C3861: '_stricmp': identifier not found
> mli_method.cxx(164) : warning C4551: function call missing argument list
> mli_method.cxx(164) : error C3861: '_stricmp': identifier not found
> mli_method.cxx(174) : warning C4551: function call missing argument list
> mli_method.cxx(174) : error C3861: '_stricmp': identifier not found
> mli_method.cxx(178) : warning C4551: function call missing argument list
> mli_method.cxx(178) : error C3861: '_stricmp': identifier not found
> mv: cannot stat `mli_method.obj': No such file or directory
> ../../../config/Makefile.config:54: recipe for target `mli_method.o' failed
> make[3]: *** [mli_method.o] Error 1
> make[3]: Leaving directory
> `/cygdrive/c/pack/hypre-2.8.0b/src/FEI_mv/femli/lib'
> Makefile:85: recipe for target `all' failed
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/cygdrive/c/pack/hypre-2.8.0b/src/FEI_mv/femli'
> Making fei-hypre ...
> make[2]: Entering directory
> `/cygdrive/c/pack/hypre-2.8.0b/src/FEI_mv/fei-hypre'
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130111/af74abae/attachment.html>
More information about the petsc-users
mailing list