[overture] Re: overture and petsc on mac

  • From: "Kyle K. Chand" <chand1@xxxxxxxx>
  • To: overture@xxxxxxxxxxxxx
  • Date: Thu, 7 May 2009 16:08:00 -0700

Hi Joel,

There seems to be a problem with the rpath configuration. Open $Overture/lib/Makefile and remove the $(OV_RPATH) stuff (both the Make variable and the subsequent path).

If you look at your  link line you will see stuff like:
/Users/joegi/cfd/overture/v23/petsc-2.3.2/lib/darwin -L/Users/joegi/ cfd/overture/v23/petsc-2.3.2/lib/darwin

The first path is preceeded by a rpath directive but on the Mac it should not be there. The -L version is the one
you want.

Regards,
Kyle

mailto: chand1@xxxxxxxx
phoneto: (925) 422 7740



On May 7, 2009, at 11:18 AM, Joel Guerrero wrote:


Hi,

I am trying to install overture with petsc on macos, so far overture and cg compilation goes fine, but I haven't been able to interface petsc with cgins. This is the error that I am getting when turning on petsc in cgins

/sw/bin/g++-4 -fpic -fno-common -I/usr/include/c++/4.0.0/backward -g -w -I./src -I/Users/joegi/cfd/overture/v23/cg.v23/common/src -I/ Users/joegi/cfd/overture/v23/cg.v23/common/shared -I/Users/joegi/cfd/ overture/v23/cg.v23/common/moving/src -I/Users/joegi/cfd/overture/ v23/cg.v23/common/chemistry -I/Users/joegi/cfd/overture/v23/cg.v23/ common/dataBase -I/Users/joegi/cfd/overture/v23/cg.v23/src -I/Users/ joegi/cfd/overture/v23/Overture.v23/include -I/Users/joegi/cfd/ overture/v23/A++P++-0.7.9d/A++/install/include -I/sw/include -I/ Users/joegi/cfd/overture/v23/petsc-2.3.2/include -I/Users/joegi/cfd/ overture/v23/petsc-2.3.2/bmake/darwin -DOVERTURE_USE_PETSC -I/Users/ joegi/cfd/overture/v23/petsc-2.3.2/include/mpiuni -I/usr/X11R6/ include -o bin/cgins ./obj/cginsMain.o ./obj/ buildEquationSolvers.o ./obj/PETScEquationSolver.o ./obj/ MultigridEquationSolver.o -L`pwd`/../ins/lib -lCgins -L`pwd`/../ common/lib -lCgCommon -L/Users/joegi/cfd/overture/v23/Overture.v23/lib -lOverture - lOverture_static -L/sw/lib -lhdf5 -ljpeg -lz /Users/joegi/cfd/ overture/v23/petsc-2.3.2/lib/darwin -L/Users/joegi/cfd/overture/v23/ petsc-2.3.2/lib/darwin -lpetscksp -lpetscdm -lpetscmat -lpetscvec - lpetsc -lmpiuni -L/Users/joegi/cfd/overture/v23/A++P++-0.7.9d/A++/ install/lib -lApp -lApp_static -llapack -lblas -Wl- framework,Accelerate -L/usr/X11R6/lib -lGL -lGLU -L/sw/lib -lXm - L/usr/X11R6/lib -lXpm -lXp -lXt -lXmu -lXi -lXext -lX11 -L/System/ Library/Perl/5.8.8/darwin-thread-multi-2level/CORE -lperl -ldl -lm - lutil -lc ld: in /Users/joegi/cfd/overture/v23/petsc-2.3.2/lib/darwin, can't map file, errno=22
collect2: ld returned 1 exit status
make: *** [bin/cgins] Error 1



at this point I ran out of ideas, any help will be appreciate .


Cheers,

Joel






Other related posts: