<div>Matt already moved it to petsc-maint before. </div>
<div>can you help me to fix the build-up of PETSC and HYPRE? thanks in advance.</div>
<div> </div>
<div>David<br><br></div>
<div class="gmail_quote">On Wed, Mar 24, 2010 at 12:09 PM, Satish Balay <span dir="ltr"><<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">moving this discussion to petsc-maint. Not appropriate for petsc-dev<br><font color="#888888"><br>satish<br>
</font>
<div>
<div></div>
<div class="h5"><br>On Wed, 24 Mar 2010, David sheehan wrote:<br><br>> That was an old try.<br>><br>> My new try including all output information is the following. Everything is<br>> OK except for "make test"  has one error.<br>
> I checked the library of HYPRE. All HYPRE libs have been created, but they<br>> cannot be installed with PETSC libs.<br>> And I manually copy all HYPRE libs into the directory of the final-installed<br>> PETSC's libs, but "make test" still has<br>
> the same problem.<br>><br>> Please fix it, thanks.<br>><br>> David<br>> -----------------------------------------------the final installed<br>> libs-------------------------------------------------------------------------------------------------<br>
> [ petsc-2.3.3-p15]$ ls /home/David/petsc233-p15/lib/linux-gnu-c-debug/<br>> libpetsc.a         libpetscdm.a   libpetscmat.a   libpetscts.a<br>> libpetsccontrib.a  libpetscksp.a  libpetscsnes.a  libpetscvec.a<br>
> ------------------------------------------------PETSC<br>> libs---------------------------------------------------------------------------------------------------<br>> [ petsc-2.3.3-p15]$ ls lib/linux-gnu-c-debug/<br>
> libpetsc.a         libpetscdm.a   libpetscmat.a   libpetscts.a<br>> libpetsccontrib.a  libpetscksp.a  libpetscsnes.a  libpetscvec.a<br>><br>> --------------------------------------------------HYPRE<br>> libs-------------------------------------------------------------------------------------------------<br>
><br>><br>> [ petsc-2.3.3-p15]$ ls externalpackages/hypre-2.0.0/linux-gnu-c-debug/lib/<br>> libHYPRE.a                               libHYPRE_MatrixMatrix.a<br>> libHYPRE_sstruct_ls.a<br>> libHYPRE_DistributedMatrix.a             libHYPRE_multivector.a<br>
> libHYPRE_sstruct_mv.a<br>> libHYPRE_DistributedMatrixPilutSolver.a  libHYPRE_ParaSails.a<br>> libHYPRE_struct_ls.a<br>> libHYPRE_Euclid.a                        libHYPRE_parcsr_block_mv.a<br>> libHYPRE_struct_mv.a<br>
> libHYPRE_IJ_mv.a                         libHYPRE_parcsr_ls.a<br>> libHYPRE_utilities.a<br>> libHYPRE_krylov.a                        libHYPRE_parcsr_mv.a<br>> libHYPRE_LSI.a                           libHYPRE_seq_mv.a<br>
> ----------------------------------------configure------------------------------------------------------------------------------------------------------<br>> [ petsc-2.3.3-p15]$ export PETSC_DIR=$PWD<br>> [ petsc-2.3.3-p15]$  ./config/configure.py --prefix=/home/David/petsc233-p15<br>
> --with-cc=gcc --with-cxx=g++ --with-fc=ifort --with-mpi-dir=/opt/openmpi<br>> --with-hypre=1 --download-hypre=ifneeded<br>> =================================================================================<br>>              Configuring PETSc to compile on your system<br>
> =================================================================================<br>> TESTING: configureLibrary from<br>> PETSc.packages.hypre(python/PETSc/packages/hypre.py:120)<br>> using: --with-MPI-include="/opt/openmpi/include"<br>
> Compilers:<br>>   C Compiler:         gcc  -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing<br>> -g3<br>>   C++ Compiler:       g++  -Wall -Wwrite-strings -Wno-strict-aliasing -g<br>> -fPIC<br>>   Fortran Compiler:   ifort  -fPIC -g<br>
> Linkers:<br>>   Shared linker:   gcc  -shared  -fPIC -Wall -Wwrite-strings<br>> -Wno-strict-aliasing -g3<br>>   Dynamic linker:   gcc  -shared  -fPIC -Wall -Wwrite-strings<br>> -Wno-strict-aliasing -g3<br>
> PETSc:<br>>   **<br>>   ** Before running "make" your PETSC_ARCH must be specified with:<br>>   **  ** setenv PETSC_ARCH linux-gnu-c-debug (csh/tcsh)<br>>   **  ** PETSC_ARCH=linux-gnu-c-debug; export PETSC_ARCH (sh/bash)<br>
>   **<br>>   PETSC_DIR: /home/David/petsc/petsc-2.3.3-p15<br>>   **<br>>   ** Now build and test the libraries with "make all test"<br>>   **<br>>   Clanguage: C<br>>   PETSc shared libraries: disabled<br>
>   PETSc dynamic libraries: disabled<br>>   Scalar type:real<br>> MPI:<br>>   Includes: ['/opt/openmpi/include']<br>>   Library:  ['/opt/openmpi/lib/libmpi.a']<br>> X11:<br>>   Includes: ['-I/usr/X11R6/include']<br>
>   Library: ['-L/usr/X11R6/lib -lX11']<br>> BLAS/LAPACK: -llapack -lblas<br>> hypre:<br>>   Includes:<br>> ['/home/David/petsc/petsc-2.3.3-p15/externalpackages/hypre-2.0.0/linux-gnu-c-debug/include']<br>
>   Library:<br>> ['/home/David/petsc/petsc-2.3.3-p15/externalpackages/hypre-2.0.0/linux-gnu-c-debug/lib/libHYPRE.a',<br>> '-Wl,-rpath,/usr/lib/gcc/i386-redhat-linux/3.4.6',<br>> '-Wl,-rpath,/usr/lib/gcc/i386-redhat-linux/3.4.6/../../..', '-lstdc++']<br>
> ---------------------------------------------------make<br>> install---------------------------------------------------------------------------------<br>> Installing PETSc at /home/David/petsc233-p15<br>> Shared libraries disabled<br>
> sh/bash: PETSC_DIR=/home/David/petsc233-p15; export PETSC_DIR<br>> csh/tcsh: setenv PETSC_DIR /home/David/petsc233-p15<br>> Then do make test to verify correct install<br>> ---------------------------------------------------make<br>
> test-------------------------------------------------------------------------------------<br>> Running test examples to verify correct installation<br>> C/C++ example src/snes/examples/tutorials/ex19 run successfully with 1 MPI<br>
> process<br>> C/C++ example src/snes/examples/tutorials/ex19 run successfully with 2 MPI<br>> processes<br>> Possible error running Graphics examples src/snes/examples/tutorials/ex19 1<br>> MPI process<br>
> See <a href="http://www.mcs.anl.gov/petsc/petsc-as/documentation/troubleshooting.html" target="_blank">http://www.mcs.anl.gov/petsc/petsc-as/documentation/troubleshooting.html</a><br>> lid velocity = 0.0016, prandtl # = 1, grashof # = 1<br>
> [0]PETSC ERROR: --------------------- Error Message<br>> ------------------------------------<br>> [0]PETSC ERROR: Error in external library!<br>> [0]PETSC ERROR: Unable to open display on apmachine:0.0<br>> .  Make sure your COMPUTE NODES are authorized to connect<br>
>     to this X server and either your DISPLAY variable<br>>     is set or you use the -display name option<br>> !<br>> [0]PETSC ERROR:<br>> ------------------------------------------------------------------------<br>
> [0]PETSC ERROR: Petsc Release Version 2.3.3, Patch 15, Tue Sep 23 10:02:49<br>> CDT 2008 HG revision: 31306062cd1a6f6a2496fccb4878f485c9b91760<br>> [0]PETSC ERROR: See docs/changes/index.html for recent updates.<br>
> [0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.<br>> [0]PETSC ERROR: See docs/index.html for manual pages.<br>> [0]PETSC ERROR:<br>> ------------------------------------------------------------------------<br>
> [0]PETSC ERROR: ./ex19 on a linux-gnu named apmachine by David Wed Mar 24<br>> 11:41:48 2010<br>> [0]PETSC ERROR: Libraries linked from<br>> /home/David/petsc233-p15/lib/linux-gnu-c-debug<br>> [0]PETSC ERROR: Configure run at Wed Mar 24 11:21:40 2010<br>
> [0]PETSC ERROR: Configure options --prefix=/home/David/petsc233-p15<br>> --with-cc=gcc --with-cxx=g++ --with-fc=ifort --with-mpi-dir=/opt/openmpi<br>> --with-hypre=1 --download-hypre=ifneeded --with-shared=0<br>
> [0]PETSC ERROR:<br>> ------------------------------------------------------------------------<br>> [0]PETSC ERROR: PetscDrawXGetDisplaySize_Private() line 618 in<br>> src/sys/draw/impls/x/xops.c<br>> [0]PETSC ERROR: PETSc unable to use X windows<br>
> proceeding without graphics<br>> Number of Newton iterations = 2<br>> lid velocity = 0.0016, prandtl # = 1, grashof # = 1<br>> Number of Newton iterations = 2<br>> Fortran example src/snes/examples/tutorials/ex5f run successfully with 1 MPI<br>
> process<br>> Completed test examples<br>><br>> On Wed, Mar 24, 2010 at 9:35 AM, Satish Balay <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>> wrote:<br>><br>> > On Tue, 23 Mar 2010, David sheehan wrote:<br>
> ><br>> > > I try openmpi, there are the following error,<br>> > ><br>> > > ./configure --prefix=/home/David/petsc300p11_openmpi --with-cc=gcc<br>> > > --with-cxx=g++ --with-fc=ifort --download-openmpi=1 --download-hypre=1<br>
> > ><br>> > =================================================================================<br>> > >              Configuring PETSc to compile on your system<br>> > ><br>> > =================================================================================<br>
> > > TESTING: check from<br>> > > config.libraries(config/BuildSystem/config/libraries.py:126)<br>> > ><br>> > *********************************************************************************<br>
> > >          UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for<br>> > > details):<br>> > ><br>> > ---------------------------------------------------------------------------------------<br>
> > > Currently --download-openmpi option does not work with --prefix install.<br>> > > Suggest installing OpenMPI separately, and then configuring PETSc with<br>> > > --with-mpi-dir option.<br>
> > ><br>> > *********************************************************************************<br>> > ><br>> > > How to fix it? thanks.<br>> ><br>> > configure already gave the answer to your question<br>
> ><br>> > satish<br>> ><br>><br><br></div></div></blockquote></div><br>