The problems I encountered on ICES: You can't mix stdio.h (which I think g++ uses internally) with MPICH2's C++ bindings, because for some reason the MPI-2 C++ binding reuses macro names from the C standard. We used to have a workaround for this in libMesh, but it caused its own problems, so since we only use the MPI C bindings anyway we now only link against MPICH with C++ bindings turned off.
Because ICES keeps f77 around linked to g77 from gcc 3.2, the libMesh configure script tries to link using library paths from the old version of gcc; this confuses the linker when called from g++: "warning: libstdc++.so.6, needed by /ices/roystgnr/software/libmesh/lib/x86_64-unknown-linux-gnu_dbg/libmesh.so, may conflict with libstdc++.so.5" Telling configure to use the newer gfortran instead fixed this. I'd say the f77/gfortran confusion counts as a bug in our configure scripts, but I'm not sure what we could do to fix it other than detect and error out when we saw such a version conflict. Hopefully we won't have too many people trying to install on systems where the default C compiler is GCC4 and the default Fortran compiler is GCC3. Here's what worked for me: ### wget http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/mpich2-1.0.6p1.tar.gz tar xvzf mpich2-1.0.6p1.tar.gz cd mpich2-1.0.6p1 ./configure --prefix=$HOME --disable-cxx --enable-sharedlibs=gcc make && make install export PATH=$PATH:$HOME/bin/ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/lib/ cd .. wget ftp://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-lite-2.3.3-p7.tar.gz tar xvzf petsc-lite-2.3.3-p7.tar.gz cd petsc-2.3.3-p7 ./config/configure.py --with-mpi-dir=$HOME --with-debugging=no --with-shared export PETSC_DIR=$PWD export PETSC_ARCH=linux-gnu-c-opt make all cd .. svn checkout https://libmesh.svn.sourceforge.net/svnroot/libmesh/trunk/libmesh cd libmesh ./configure --enable-everything --with-f77=gfortran make make run_examples ### That was just with gcc; let us know if you can't get libMesh to work with icc too. --- Roy ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
