The tests that come with PETSc (compiled in debug mode) run successfully. This is the output of make all test in the PETSc directory
Using configure Options: --with-shared-libraries=1 --with-x=0 --download-mpich --download-hypre=1 --download-blacs --download-scalapack --download-mumps --download-ptscotch --download-umfpack=yes
Using configuration flags:
#define INCLUDED_PETSCCONF_H
#define IS_COLORING_MAX 65535
#define STDC_HEADERS 1
#define MPIU_COLORING_VALUE MPI_UNSIGNED_SHORT
#define PETSC_UINTPTR_T uintptr_t
#define PETSC_HAVE_PTHREAD 1
#define PETSC_STATIC_INLINE static inline
#define PETSC_REPLACE_DIR_SEPARATOR '\\'
#define PETSC_RESTRICT __restrict__
#define PETSC_HAVE_SO_REUSEADDR 1
#define PETSC_HAVE_MPI 1
#define PETSC_PREFETCH_HINT_T2 _MM_HINT_T2
#define PETSC_PREFETCH_HINT_T0 _MM_HINT_T0
#define PETSC_PREFETCH_HINT_T1 _MM_HINT_T1
#define PETSC__GNU_SOURCE 1
#define PETSC_HAVE_FORTRAN 1
#define PETSC_HAVE_HYPRE 1
#define PETSC_LIB_DIR "/usr/local/src/petsc-3.3-p7/x86_64/lib"
#define PETSC_USE_SOCKET_VIEWER 1
#define PETSC__POSIX_C_SOURCE_200112L 1
#define PETSC_SLSUFFIX "so"
#define PETSC_FUNCTION_NAME_CXX __func__
#define PETSC_HAVE_UMFPACK 1
#define PETSC_HAVE_MUMPS 1
#define PETSC_HAVE_ATOLL 1
#define PETSC_HAVE_DOUBLE_ALIGN_MALLOC 1
#define PETSC_UNUSED __attribute((unused))
#define PETSC_FUNCTION_NAME_C __func__
#define PETSC_HAVE_VALGRIND 1
#define PETSC_USE_SINGLE_LIBRARY 1
#define PETSC_HAVE_BUILTIN_EXPECT 1
#define PETSC_HAVE_PTSCOTCH 1
#define PETSC_DIR_SEPARATOR '/'
#define PETSC_PATH_SEPARATOR ':'
#define PETSC__BSD_SOURCE 1
#define PETSC_HAVE_XMMINTRIN_H 1
#define PETSC_PREFETCH_HINT_NTA _MM_HINT_NTA
#define PETSC_Prefetch(a,b,c) _mm_prefetch((const char*)(a),(c))
#define PETSC_HAVE_BLASLAPACK 1
#define PETSC_HAVE_STRING_H 1
#define PETSC_HAVE_SYS_TYPES_H 1
#define PETSC_HAVE_ENDIAN_H 1
#define PETSC_HAVE_SYS_PROCFS_H 1
#define PETSC_HAVE_DLFCN_H 1
#define PETSC_HAVE_SCHED_H 1
#define PETSC_HAVE_STDINT_H 1
#define PETSC_HAVE_LINUX_KERNEL_H 1
#define PETSC_HAVE_TIME_H 1
#define PETSC_HAVE_MATH_H 1
#define PETSC_TIME_WITH_SYS_TIME 1
#define PETSC_HAVE_SYS_PARAM_H 1
#define PETSC_HAVE_SYS_SOCKET_H 1
#define PETSC_HAVE_UNISTD_H 1
#define PETSC_HAVE_STDLIB_H 1
#define PETSC_HAVE_SYS_WAIT_H 1
#define PETSC_HAVE_LIMITS_H 1
#define PETSC_HAVE_SYS_UTSNAME_H 1
#define PETSC_HAVE_NETINET_IN_H 1
#define PETSC_HAVE_FENV_H 1
#define PETSC_HAVE_PTHREAD_H 1
#define PETSC_HAVE_FLOAT_H 1
#define PETSC_HAVE_SEARCH_H 1
#define PETSC_HAVE_SYS_RESOURCE_H 1
#define PETSC_HAVE_SYS_TIMES_H 1
#define PETSC_HAVE_NETDB_H 1
#define PETSC_HAVE_MALLOC_H 1
#define PETSC_HAVE_PWD_H 1
#define PETSC_HAVE_FCNTL_H 1
#define PETSC_HAVE_STRINGS_H 1
#define PETSC_HAVE_MEMORY_H 1
#define PETSC_HAVE_SYS_SYSINFO_H 1
#define PETSC_HAVE_SYS_TIME_H 1
#define PETSC_USING_F90 1
#define PETSC_USING_F2003 1
#define PETSC_HAVE_RTLD_NOW 1
#define PETSC_HAVE_RTLD_LOCAL 1
#define PETSC_HAVE_RTLD_LAZY 1
#define PETSC_C_STATIC_INLINE static inline
#define PETSC_HAVE_FORTRAN_UNDERSCORE 1
#define PETSC_HAVE_CXX_NAMESPACE 1
#define PETSC_HAVE_RTLD_GLOBAL 1
#define PETSC_C_RESTRICT __restrict__
#define PETSC_CXX_RESTRICT __restrict__
#define PETSC_CXX_STATIC_INLINE static inline
#define PETSC_HAVE_LIBBLAS 1
#define PETSC_HAVE_LIBDL 1
#define PETSC_HAVE_LIBGFORTRAN 1
#define PETSC_HAVE_LIBSCALAPACK 1
#define PETSC_HAVE_LIBLAPACK 1
#define PETSC_HAVE_LIBPTSCOTCH 1
#define PETSC_HAVE_LIBM 1
#define PETSC_HAVE_LIBDMUMPS 1
#define PETSC_HAVE_LIBPTESMUMPS 1
#define PETSC_HAVE_LIBMUMPS_COMMON 1
#define PETSC_HAVE_LIBPTHREAD 1
#define PETSC_HAVE_LIBMPICHCXX 1
#define PETSC_HAVE_LIBBLACS 1
#define PETSC_HAVE_LIBZMUMPS 1
#define PETSC_HAVE_LIBSTDC__ 1
#define PETSC_HAVE_LIBHYPRE 1
#define PETSC_HAVE_LIBAMD 1
#define PETSC_HAVE_LIBSMUMPS 1
#define PETSC_HAVE_LIBRT 1
#define PETSC_HAVE_LIBPTSCOTCHERR 1
#define PETSC_HAVE_LIBMPICHF90 1
#define PETSC_HAVE_LIBCMUMPS 1
#define PETSC_HAVE_LIBUMFPACK 1
#define PETSC_HAVE_LIBPORD 1
#define PETSC_HAVE_ERF 1
#define PETSC_HAVE_LIBQUADMATH 1
#define PETSC_ARCH "x86_64"
#define PETSC_DIR "/usr/local/src/petsc-3.3-p7"
#define HAVE_GZIP 1
#define PETSC_CLANGUAGE_C 1
#define PETSC_USE_EXTERN_CXX
#define PETSC_USE_ERRORCHECKING 1
#define PETSC_MISSING_DREAL 1
#define PETSC_SIZEOF_MPI_COMM 4
#define PETSC_BITS_PER_BYTE 8
#define PETSC_SIZEOF_MPI_FINT 4
#define PETSC_SIZEOF_VOID_P 8
#define PETSC_RETSIGTYPE void
#define PETSC_HAVE_CXX_COMPLEX 1
#define PETSC_SIZEOF_LONG 8
#define PETSC_USE_FORTRANKIND 1
#define PETSC_SIZEOF_SIZE_T 8
#define PETSC_SIZEOF_CHAR 1
#define PETSC_SIZEOF_DOUBLE 8
#define PETSC_SIZEOF_FLOAT 4
#define PETSC_HAVE_C99_COMPLEX 1
#define PETSC_SIZEOF_INT 4
#define PETSC_SIZEOF_LONG_LONG 8
#define PETSC_SIZEOF_SHORT 2
#define PETSC_HAVE_STRCASECMP 1
#define PETSC_HAVE_POPEN 1
#define PETSC_HAVE_SIGSET 1
#define PETSC_HAVE_GETWD 1
#define PETSC_HAVE_VSNPRINTF 1
#define PETSC_HAVE_TIMES 1
#define PETSC_HAVE_DLSYM 1
#define PETSC_HAVE_SNPRINTF 1
#define PETSC_HAVE_GETPWUID 1
#define PETSC_HAVE_GETHOSTBYNAME 1
#define PETSC_HAVE_SLEEP 1
#define PETSC_HAVE_DLERROR 1
#define PETSC_HAVE_FORK 1
#define PETSC_HAVE_RAND 1
#define PETSC_HAVE_GETTIMEOFDAY 1
#define PETSC_HAVE_DLCLOSE 1
#define PETSC_HAVE_UNAME 1
#define PETSC_HAVE_GETHOSTNAME 1
#define PETSC_HAVE_MKSTEMP 1
#define PETSC_HAVE_SIGACTION 1
#define PETSC_HAVE_DRAND48 1
#define PETSC_HAVE_MEMALIGN 1
#define PETSC_HAVE_VA_COPY 1
#define PETSC_HAVE_CLOCK 1
#define PETSC_HAVE_ACCESS 1
#define PETSC_HAVE_SIGNAL 1
#define PETSC_HAVE_USLEEP 1
#define PETSC_HAVE_GETRUSAGE 1
#define PETSC_HAVE_VFPRINTF 1
#define PETSC_HAVE_NANOSLEEP 1
#define PETSC_HAVE_GETDOMAINNAME 1
#define PETSC_HAVE_TIME 1
#define PETSC_HAVE_LSEEK 1
#define PETSC_HAVE_SOCKET 1
#define PETSC_HAVE_SYSINFO 1
#define PETSC_HAVE_READLINK 1
#define PETSC_HAVE_REALPATH 1
#define PETSC_HAVE_DLOPEN 1
#define PETSC_HAVE_MEMMOVE 1
#define PETSC_HAVE__GFORTRAN_IARGC 1
#define PETSC_SIGNAL_CAST
#define PETSC_HAVE_GETCWD 1
#define PETSC_HAVE_VPRINTF 1
#define PETSC_HAVE_BZERO 1
#define PETSC_HAVE_GETPAGESIZE 1
#define PETSC_USE_PROC_FOR_SIZE 1
#define PETSC_USE_GDB_DEBUGGER 1
#define PETSC_USE_INFO 1
#define PETSC_PETSC_USE_BACKWARD_LOOP 1
#define PETSC_Alignx(a,b)
#define PETSC_USE_DEBUG 1
#define PETSC_USE_LOG 1
#define PETSC_IS_COLOR_VALUE_TYPE short
#define PETSC_USE_CTABLE 1
#define PETSC_USE_SCALAR_REAL 1
#define PETSC_HAVE_ISINF 1
#define PETSC_HAVE_ISNAN 1
#define PETSC_USE_REAL_DOUBLE 1
#define PETSC_HAVE_FORTRAN_GET_COMMAND_ARGUMENT 1
#define PETSC_HAVE_GFORTRAN_IARGC 1
#define PETSC_HAVE_DYNAMIC_LIBRARIES 1
#define PETSC_HAVE_SHARED_LIBRARIES 1
#define PETSC_USE_SHARED_LIBRARIES 1
#define PETSC_HAVE_MPI_COMM_C2F 1
#define PETSC_HAVE_MPI_INIT_THREAD 1
#define PETSC_HAVE_MPI_LONG_DOUBLE 1
#define PETSC_HAVE_MPI_COMM_F2C 1
#define PETSC_HAVE_MPI_FINT 1
#define PETSC_HAVE_MPI_F90MODULE 1
#define PETSC_HAVE_MPI_FINALIZED 1
#define PETSC_HAVE_MPI_COMM_SPAWN 1
#define PETSC_HAVE_MPI_WIN_CREATE 1
#define PETSC_HAVE_MPI_REPLACE 1
#define PETSC_HAVE_MPI_EXSCAN 1
#define PETSC_HAVE_MPIIO 1
#define PETSC_HAVE_MPI_C_DOUBLE_COMPLEX 1
#define PETSC_HAVE_MPI_ALLTOALLW 1
#define PETSC_HAVE_MPI_IN_PLACE 1
#define PETSC_MEMALIGN 16
#define PETSC_LEVEL1_DCACHE_LINESIZE 64
#define PETSC_LEVEL1_DCACHE_SIZE 32768
#define PETSC_LEVEL1_DCACHE_ASSOC 8
#define PETSC_BLASLAPACK_UNDERSCORE 1
#define PETSC_HAVE_SCHED_CPU_SET_T 1
#define PETSC_HAVE_PTHREAD_BARRIER_T 1
#define PETSC_HAVE_SYS_SYSCTL_H 1
-----------------------------------------
Using C/C++ include paths: -I/usr/local/src/petsc-3.3-p7/include -I/usr/local/src/petsc-3.3-p7/x86_64/include
Using C/C++ compiler: /usr/local/src/petsc-3.3-p7/x86_64/bin/mpicc -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g3 -fno-inline -O0
Using Fortran include/module paths: -I/usr/local/src/petsc-3.3-p7/include -I/usr/local/src/petsc-3.3-p7/x86_64/include
Using Fortran compiler: /usr/local/src/petsc-3.3-p7/x86_64/bin/mpif90 -fPIC -Wall -Wno-unused-variable -Wno-unused-dummy-argument -g
-----------------------------------------
Using C/C++ linker: /usr/local/src/petsc-3.3-p7/x86_64/bin/mpicc
Using C/C++ flags: -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g3 -fno-inline -O0
Using Fortran linker: /usr/local/src/petsc-3.3-p7/x86_64/bin/mpif90
Using Fortran flags: -fPIC -Wall -Wno-unused-variable -Wno-unused-dummy-argument -g
-----------------------------------------
Using libraries: -Wl,-rpath,/usr/local/src/petsc-3.3-p7/x86_64/lib -L/usr/local/src/petsc-3.3-p7/x86_64/lib -lpetsc -Wl,-rpath,/usr/local/src/petsc-3.3-p7/x86_64/lib -lcmumps -ldmumps -lsmumps -lzmumps -lmumps_common -lpord -lHYPRE -Wl,-rpath,/usr/lib/gcc/x86_64-linux-gnu/4.6 -L/usr/lib/gcc/x86_64-linux-gnu/4.6 -Wl,-rpath,/usr/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -Wl,-rpath,/lib/x86_64-linux-gnu -L/lib/x86_64-linux-gnu -lmpichcxx -lstdc++ -lptesmumps -lptscotch -lptscotcherr -lscalapack -lblacs -lpthread -lumfpack -lamd -llapack -lblas -lm -lmpichf90 -lgfortran -lm -lgfortran -lm -lquadmath -lm -lmpichcxx -lstdc++ -lrt -lm -ldl -lmpich -lopa -lmpl -lrt -lpthread -lgcc_s -ldl
------------------------------------------
Using mpiexec: /usr/local/src/petsc-3.3-p7/x86_64/bin/mpiexec
==========================================
Building PETSc using CMake with 5 build threads
==========================================
Re-run cmake file: Makefile older than: ../CMakeLists.txt
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/src/petsc-3.3-p7/x86_64
[100%] Built target petsc
=========================================
Now to check if the libraries are working do:
make PETSC_DIR=/usr/local/src/petsc-3.3-p7 PETSC_ARCH=x86_64 test
=========================================
Running test examples to verify correct installation
Using PETSC_DIR=/usr/local/src/petsc-3.3-p7 and PETSC_ARCH=x86_64
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
Fortran example src/snes/examples/tutorials/ex5f run successfully with 1 MPI process
Completed test examples