[petsc-users] make test error after petsc installation

Yi Mei njumeiyi at gmail.com
Sat Jun 25 09:07:37 CDT 2011


Hi,

I am new to petsc.

I downloaded the latest version of petsc, and followed the installation
guide, did the following:


cd petsc-3.1-p8/
PETSC_DIR=$PWD; export PETSC_DIR
./config/configure.py --with-cc=gcc --with-fc=gfortran
--download-f-blas-lapack=1 --download-mpich=1
make all
make test

Then I got the following error and warning message:

--------------Error detected during compile or link!-----------------------
See http://www.mcs.anl.gov/petsc/petsc-2/documentation/troubleshooting.html
/home/yimei/Linuxsoft/petsc/petsc-3.1-p8/linux-gnu-c-debug/bin/mpif90 -c
 -Wall -Wno-unused-variable -g
 -I/home/yimei/Linuxsoft/petsc/petsc-3.1-p8/linux-gnu-c-debug/include
-I/home/yimei/Linuxsoft/petsc/petsc-3.1-p8/include
-I/home/yimei/Linuxsoft/petsc/petsc-3.1-p8/linux-gnu-c-debug/include
-I/home/yimei/Linuxsoft/petsc/petsc-3.1-p8/linux-gnu-c-debug/include
-I/home/yimei/Linuxsoft/petsc/petsc-3.1-p8/linux-gnu-c-debug/include    -o
ex5f.o ex5f.F
ex5f.F:92.72:

      call PetscOptionsGetReal(PETSC_NULL_CHARACTER,'-par',lambda,
                                                                        1
Warning: Line truncated at (1)
ex5f.F:113.72:

      call DACreate2d(PETSC_COMM_WORLD,DA_NONPERIODIC,DA_STENCIL_STAR,
                                                                        1
Warning: Line truncated at (1)
ex5f.F:114.72:

     &     i4,i4,PETSC_DECIDE,PETSC_DECIDE,i1,i1,PETSC_NULL_INTEGER,
                                                                        1
Warning: Line truncated at (1)
ex5f.F:125.72:

      call DAGetInfo(da,PETSC_NULL_INTEGER,mx,my,PETSC_NULL_INTEGER,
                                                                        1
Warning: Line truncated at (1)
ex5f.F:126.72:

     &               PETSC_NULL_INTEGER,PETSC_NULL_INTEGER,
                                                                        1
Warning: Line truncated at (1)
ex5f.F:127.72:

     &               PETSC_NULL_INTEGER,PETSC_NULL_INTEGER,
                                                                        1
Warning: Line truncated at (1)
ex5f.F:128.72:

     &               PETSC_NULL_INTEGER,PETSC_NULL_INTEGER,
                                                                        1
Warning: Line truncated at (1)
ex5f.F:130.72:

      call DAGetCorners(da,xs,ys,PETSC_NULL_INTEGER,xm,ym,
                                                                        1
Warning: Line truncated at (1)
ex5f.F:132.72:

      call DAGetGhostCorners(da,gxs,gys,PETSC_NULL_INTEGER,gxm,gym,
                                                                        1
Warning: Line truncated at (1)
ex5f.F:188.72:

      call SNESSetJacobian(snes,A,J,SNESDAComputeJacobian,
                                                                        1
Warning: Line truncated at (1)
ex5f.F:344.72:

            if (i .eq. 1 .or. j .eq. 1
                                                                        1
Warning: Line truncated at (1)
ex5f.F:348.72:

              x(i,j) = temp1 *
                                                                        1
Warning: Line truncated at (1)
ex5f.F:412.72:

            if (i .eq. 1 .or. j .eq. 1
                                                                        1
Warning: Line truncated at (1)
ex5f.F:417.72:

               uxx = hydhx * (two*u
                                                                        1
Warning: Line truncated at (1)
ex5f.F:517.72:

            if (i .eq. 1 .or. j .eq. 1
                                                                        1
Warning: Line truncated at (1)
ex5f.F:522.72:

               call MatSetValuesLocal(jac,i1,row,i1,col,v,
                                                                        1
Warning: Line truncated at (1)
ex5f.F:528.72:

               v(3) = two*(hydhx + hxdhy)
                                                                        1
Warning: Line truncated at (1)
ex5f.F:537.72:

               call MatSetValuesLocal(jac,i1,row,i5,col,v,
                                                                        1
Warning: Line truncated at (1)
/home/yimei/Linuxsoft/petsc/petsc-3.1-p8/linux-gnu-c-debug/bin/mpif90 -Wall
-Wno-unused-variable -g  -o ex5f ex5f.o
-Wl,-rpath,/home/yimei/Linuxsoft/petsc/petsc-3.1-p8/linux-gnu-c-debug/lib
-L/home/yimei/Linuxsoft/petsc/petsc-3.1-p8/linux-gnu-c-debug/lib -lpetsc
 -lX11
-Wl,-rpath,/home/yimei/Linuxsoft/petsc/petsc-3.1-p8/linux-gnu-c-debug/lib
-L/home/yimei/Linuxsoft/petsc/petsc-3.1-p8/linux-gnu-c-debug/lib -lflapack
-lfblas -lnsl -lrt -lm
-L/home/yimei/Linuxsoft/petsc/petsc-3.1-p8/linux-gnu-c-debug/lib
-L/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2 -L/usr/lib/i386-linux-gnu
-ldl -lmpich -lpthread -lrt -lgcc_s -lmpichf90 -lgfortran -lm -lm -ldl
-lmpich -lpthread -lrt -lgcc_s -ldl
/bin/rm -f ex5f.o
Fortran example src/snes/examples/tutorials/ex5f run successfully with 1 MPI
process


Could you please help me figure out what I did wrong during the installation
of this package?

Thank you so much!

Best
Yi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110625/262caa8f/attachment-0001.htm>


More information about the petsc-users mailing list