[petsc-users] petsc make test error

Barry Smith bsmith at mcs.anl.gov
Thu Oct 4 16:02:47 CDT 2012


  Send make.log to petsc-maint at mcs.anl.gov


On Oct 4, 2012, at 3:29 PM, Mark Porter <porterma at lanl.gov> wrote:

> I am having trouble with the make test once petsc configure and I have run make all.  The error is as follows:
> 
> Running test examples to verify correct installation
> Using PETSC_DIR=/home/porterma/Applications/petsc-dev and PETSC_ARCH=linux-gnu-c-debug
> C/C++ example src/snes/examples/tutorials/ex19 run successfully with 1 MPI process
> C/C++ example src/snes/examples/tutorials/ex19 run successfully with 2 MPI processes
> --------------Error detected during compile or link!-----------------------
> See http://www.mcs.anl.gov/petsc/documentation/faq.html
> /home/porterma/Applications/petsc-dev/src/snes/examples/tutorials ex5f
> ---------------------------------------------------------------------------
> /home/porterma/Applications/petsc-dev/linux-gnu-c-debug/bin/mpif90 -c  -Wall -Wno-unused-variable -g  -I/home/porterma/Applications/petsc-dev/include -I/home/porterma/Applications/petsc-dev/linux-gnu-c-debug/include    -o ex5f.o ex5f.F
> Warning: Nonconforming tab character in column 1 of line 3099
> Warning: Nonconforming tab character in column 1 of line 5574
> Warning: Nonconforming tab character in column 1 of line 7846
> Warning: Nonconforming tab character in column 1 of line 10114
> Warning: Nonconforming tab character in column 1 of line 12423
> /home/porterma/Applications/petsc-dev/linux-gnu-c-debug/bin/mpif90 -Wall -Wno-unused-variable -g  -o ex5f ex5f.o -L/home/porterma/Applications/petsc-dev/linux-gnu-c-debug/lib  -lpetsc -lpthread -Wl,-rpath,/home/porterma/Applications/petsc-dev/linux-gnu-c-debug/lib -lflapack -lfblas -lhdf5_fortran -lhdf5 -lhdf5hl_fortran -lhdf5_hl -lz -L/usr/lib/gcc/x86_64-redhat-linux6E/4.4.6 -lmpi_f90 -lmpi_f77 -lgfortran -lm -lm -lm -lm -lm -lm -lm -lm -lmpi_cxx -lstdc++ -lmpi_cxx -lstdc++ -ldl -lmpi -lrt -lnsl -lutil -lgcc_s -lpthread -ldl 
> ex5f.o: In function `MAIN__':
> /home/porterma/Applications/petsc-dev/src/snes/examples/tutorials/ex5f.F:94: undefined reference to `snescreate_'
> /home/porterma/Applications/petsc-dev/src/snes/examples/tutorials/ex5f.F:112: undefined reference to `dmcreateglobalvector_'
> /home/porterma/Applications/petsc-dev/src/snes/examples/tutorials/ex5f.F:113: undefined reference to `vecduplicate_'
> /home/porterma/Applications/petsc-dev/src/snes/examples/tutorials/ex5f.F:124: undefined reference to `dmdagetcorners_'
> /home/porterma/Applications/petsc-dev/src/snes/examples/tutorials/ex5f.F:126: undefined reference to `dmdagetghostcorners_'
> /home/porterma/Applications/petsc-dev/src/snes/examples/tutorials/ex5f.F:145: undefined reference to `snessetdm_'
> /home/porterma/Applications/petsc-dev/src/snes/examples/tutorials/ex5f.F:153: undefined reference to `snessetfromoptions_'
> /home/porterma/Applications/petsc-dev/src/snes/examples/tutorials/ex5f.F:165: undefined reference to `snesgetiterationnumber_'
> /home/porterma/Applications/petsc-dev/src/snes/examples/tutorials/ex5f.F:177: undefined reference to `vecdestroy_'
> /home/porterma/Applications/petsc-dev/src/snes/examples/tutorials/ex5f.F:178: undefined reference to `vecdestroy_'
> /home/porterma/Applications/petsc-dev/src/snes/examples/tutorials/ex5f.F:179: undefined reference to `snesdestroy_'
> /home/porterma/Applications/petsc-dev/src/snes/examples/tutorials/ex5f.F:180: undefined reference to `dmdestroy_'
> ex5f.o: In function `forminitialguess_':
> /home/porterma/Applications/petsc-dev/src/snes/examples/tutorials/ex5f.F:226: undefined reference to `dmgetlocalvector_'
> /home/porterma/Applications/petsc-dev/src/snes/examples/tutorials/ex5f.F:239: undefined reference to `dmlocaltoglobalbegin_'
> /home/porterma/Applications/petsc-dev/src/snes/examples/tutorials/ex5f.F:240: undefined reference to `dmlocaltoglobalend_'
> /home/porterma/Applications/petsc-dev/src/snes/examples/tutorials/ex5f.F:241: undefined reference to `dmrestorelocalvector_'
> ex5f.o: In function `formjacobianlocal_':
> /home/porterma/Applications/petsc-dev/src/snes/examples/tutorials/ex5f.F:462: undefined reference to `matsetvalueslocal_'
> /home/porterma/Applications/petsc-dev/src/snes/examples/tutorials/ex5f.F:477: undefined reference to `matsetvalueslocal_'
> /home/porterma/Applications/petsc-dev/src/snes/examples/tutorials/ex5f.F:481: undefined reference to `matassemblybegin_'
> /home/porterma/Applications/petsc-dev/src/snes/examples/tutorials/ex5f.F:482: undefined reference to `matassemblyend_'
> collect2: ld returned 1 exit status
> make[3]: [ex5f] Error 1 (ignored)
> /bin/rm -f ex5f.o
> Completed test examples
> 
> 
> Any suggestions would be helpful.
> 
> Thanks.
> porter
> 
> 
>  
> -- 
> Mark L. Porter, Ph.D.
> Earth & Environmental Sciences (EES-14)
> Los Alamos National Laboratory
> work: 505.606.1971
> cell: 541.517.2761
> 
> porterma at lanl.gov



More information about the petsc-users mailing list