NetBSD port

Satish Balay balay at mcs.anl.gov
Wed Dec 16 21:59:50 CST 2009


On Thu, 17 Dec 2009, Kevin.Buckley at ecs.vuw.ac.nz wrote:

> $gmake ex19
> mpicc -o ex19.o -c -Wall -Wwrite-strings -Wno-strict-aliasing -g3
> -I/vol/grid/pkg/petsc-3.0.0-p7/include
> -I/vol/grid/pkg/petsc-3.0.0-p7/include -I/usr/pkg/include
> -D__SDIR__="src/snes/examples/tutorials/" ex19.c
> mpicc -Wall -Wwrite-strings -Wno-strict-aliasing -g3  -o ex19  ex19.o
> -Wl,-rpath,/vol/grid/pkg/petsc-3.0.0-p7/lib
> -L/vol/grid/pkg/petsc-3.0.0-p7/lib -lpetscsnes -lpetscksp -lpetscdm
> -lpetscmat -lpetscvec -lpetsc   -L/usr/pkg/lib -lX11 -llapack -lblas
> -L/usr/pkg/lib -lmpi -lopen-rte -lopen-pal -lutil -lpthread -lgcc_eh
> -Wl,-rpath,/usr/pkg/lib -lmpi_f77 -lf95 -lm -lm
> -L/usr/pkg/lib/gcc-lib/i386--netbsdelf/4.0.3 -L/lib -lm -lm -lmpi_cxx
> -lstdc++ -lgcc_s -lmpi_cxx -lstdc++ -lgcc_s -lmpi -lopen-rte -lopen-pal
> -lutil -lpthread -lgcc_eh
> /bin/rm -f ex19.o

One final thing.

Normally this should't make a difference - but if there is anything
related to petsc that might trigger wiered behavior with openmpi - in
this setting - this could be the one: Try compliling with minimal
compiler libs. i.e

gmake ex19 PCC_LNKER_LIBS=""

or

gmake ex19 PCC_LNKER_LIBS="-lf95"

or 

gmake ex19 PCC_LNKER_LIBS="-lf95 -lstdc++"

or

gmake ex19 PCC_LNKER_LIBS="-lf95 -lstdc++ -lgcc_s"

[the minimal set that works without link errors]

Satish




More information about the petsc-dev mailing list