[petsc-dev] error building with petsc-dev
Dmitry Karpeev
karpeev at mcs.anl.gov
Mon Apr 30 13:07:51 CDT 2012
Mark,
PetscTypeCompare got renamed to PetscObjectTypeCompare in line with the
PETSc naming guidelines:
http://petsc.cs.iit.edu/petsc/petsc-dev/rev/3fc8f665421d
The gamg source was part of this update.
Any chance you introduced a new instance of PetscTypeCompare() after that
changeset?
If so, simply replace it with PetscObjectTypeCompare().
Dmitry.
On Mon, Apr 30, 2012 at 1:03 PM, Mark F. Adams <mark.adams at columbia.edu>wrote:
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120430/39a71110/attachment.html>
More information about the petsc-dev
mailing list