[petsc-dev] error building with petsc-dev

Mark F. Adams mark.adams at columbia.edu
Mon Apr 30 13:03:55 CDT 2012


I've built petsc-dev but when I try to make an example I get this:

make ex54
/Users/markadams/Codes/petsc-dev/arch-macosx-gnu-O/bin/mpicc -o ex54.o -c -malign-double -g3 -fno-inline -O0 -I/Users/markadams/Codes/petsc-dev/include -I/Users/markadams/Codes/petsc-dev/arch-macosx-gnu-O/include -D__INSDIR__=src/ksp/ksp/examples/tutorials/ ex54.c
/Users/markadams/Codes/petsc-dev/arch-macosx-gnu-O/bin/mpicc -Wl,-multiply_defined,suppress -Wl,-multiply_defined -Wl,suppress -Wl,-commons,use_dylibs -Wl,-search_paths_first -Wl,-multiply_defined,suppress -Wl,-multiply_defined -Wl,suppress -Wl,-commons,use_dylibs -Wl,-search_paths_first -malign-double -g3 -fno-inline -O0  -o ex54 ex54.o -L/Users/markadams/Codes/petsc-dev/arch-macosx-gnu-O/lib  -lpetsc -ltriangle -lparmetis -lmetis -lHYPRE -lmpichcxx -lstdc++ -lpthread -lflapack -lfblas -lhdf5_fortran -lhdf5 -lhdf5hl_fortran -lhdf5_hl -lz -L/sw/lib/gcc4.6/lib/gcc/i386-apple-darwin10.8.0/4.6.2 -L/sw/lib/gcc4.6/lib -lpmpich -lmpich -lopa -lmpl -lSystem -lgcc_ext.10.5 -ldl -lmpichf90 -lpthread -lgfortran -lgfortran -lquadmath -lm -lm -lmpichcxx -lstdc++ -lpmpich -lmpich -lopa -lmpl -lSystem -lgcc_ext.10.5 -ldl 
Undefined symbols:
  "_PetscTypeCompare", referenced from:
      _PCSetUp_GAMG in libpetsc.a(gamg.c.o)
      _PCSetUp_GAMG in libpetsc.a(gamg.c.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status

Any ideas?

Mark


More information about the petsc-dev mailing list