|
From: John P. <jwp...@gm...> - 2011-05-31 19:22:55
|
On Tue, May 31, 2011 at 1:08 PM, Kyunghoon Lee <gt...@gm...> wrote: > Hello, > > I'm trying to install libmesh on a MacOS X 10.6.7, which has a gcc-4.2 compiler from Xcode 3.2.6. I had no trouble with compiling libmesh, but I got a seg fault error for the examples. > > First, I source-compiled petsc with the following configuration option: > > export PETSC_DIR=$PWD > ./config/configure.py --prefix=/usr/local/share/petsc/petsc-3.1-p8 --with-cc=gcc --with-cxx=g++ --with-fc=0 —download-c-blas-lapack=1 --download-mpich=1 > make > sudo make install PETSC_DIR=$PWD > make PETSC_DIR=/usr/local/share/petsc/petsc-3.1-p8 test > > and test results were good. After petsc, I source-compiled an svn version of libmesh with the following configuration option: > > export METHOD=dbg > ./configure PETSC_DIR=/usr/local/share/petsc/petsc-3.1-p8 --enable-petsc It's possible libmesh is using the wrong mpicc/mpicxx compilers when you use this configuration line. It will use the first one it finds in your path, *not* the one you downloaded with PETSc. So could you try: CXX=/path/to/petsc/mpich/bin/mpicxx CC=/path/to/petsc/mpich/bin/mpicc ./configure and see if you have any better luck with the executables? -- John |