On Thu, Jul 5, 2012 at 1:42 PM, hbui <hgbk2008 at gmail.com> wrote: > Thanks for reply, the compiler command is: > g++ -I/opt/petsc/petsc-dev/include -I/opt/petsc/petsc-dev/include/mpiuni > -O3 -Wall -c -fmessage-length=0 -MMD -MP -MF"PETScSolver.d" > -MT"PETScSolver.d" -o "PETScSolver.o" "../PETScSolver.cpp" >
You are using the wrong compiler and including the mpiuni directory. Compilers: C Compiler: mpicc -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -O Fortran Compiler: mpif90 -fPIC -Wall -Wno-unused-variable -Wno-unused-dummy-argument -O Linkers: Shared linker: mpicc -shared -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -O Dynamic linker: mpicc -shared -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -O MPI: Includes: -I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi Use a PETSc makefile or get the compiler and include paths from PETSc. This mpicc appears to be a valid MPI-2 implementation so everything should work with it. > > I have used the latest BuildSystem (hg pull -u) before compiling. I > already sent the configure.log to petsc-maint at mcs.anl.gov > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120705/17099f0f/attachment.html>
