John, Ben, thank you for the reponse. the actual error message is below.
-using libmesh svn rev 2959 -built a different mpi for each gcc version -i am building with export CC=gcc export CXX=g++ export FC=gfortran export F77=gfortran export F90=gfortran wget http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/mpich2-1.0.7.tar.gz configure mpich2 with $MPI_SOURCE/configure --prefix=$MPI_DIR --enable-sharedlibs=gcc --disable-cxx export CC=mpicc wget ftp://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-lite-2.3.3-p13.tar.gz configure petsc with config/configure.py --download-f-blas-lapack --with-mpi-dir=$MPI_DIR --with-clanguage=C++ --with-shared=1 --with-cxx=g++ --with-cc=mpicc --with-fc=gfortran --with-c-support svn checkout https://libmesh.svn.sourceforge.net/svnroot/libmesh/trunk/libmesh configure libmesh with ./configure --enable-everything --with-vtk-lib=/usr/lib64 ------------------------------------------------------------ /tmp/ccmjvPlS.o: In function `assemble(EquationSystems&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': /org/groups/oden/LIBRARIES/LIBMESH/libmesh_r2959-gcc_4.3.1-mpich2_1.0.7-dbg/src/apps/amr.cc:115: undefined reference to `print_trace(std::basic_ostream<char, std::char_traits<char> >&)' /tmp/ccmjvPlS.o: In function `DofObject::operator==(DofObject const&) const': /org/groups/oden/LIBRARIES/LIBMESH/libmesh_r2959-gcc_4.3.1-mpich2_1.0.7-dbg/include/base/dof_object.h:251: undefined reference to `print_trace(std::basic_ostream<char, std::char_traits<char> >&)' /tmp/ccmjvPlS.o: In function `DofObject::n_vars(unsigned int) const': /org/groups/oden/LIBRARIES/LIBMESH/libmesh_r2959-gcc_4.3.1-mpich2_1.0.7-dbg/include/base/dof_object.h:524: undefined reference to `print_trace(std::basic_ostream<char, std::char_traits<char> >&)' /org/groups/oden/LIBRARIES/LIBMESH/libmesh_r2959-gcc_4.3.1-mpich2_1.0.7-dbg/include/base/dof_object.h:525: undefined reference to `print_trace(std::basic_ostream<char, std::char_traits<char> >&)' /tmp/ccmjvPlS.o: In function `DofObject::clear_dofs()': /org/groups/oden/LIBRARIES/LIBMESH/libmesh_r2959-gcc_4.3.1-mpich2_1.0.7-dbg/include/base/dof_object.h:402: undefined reference to `print_trace(std::basic_ostream<char, std::char_traits<char> >&)' /tmp/ccmjvPlS.o:/org/groups/oden/LIBRARIES/LIBMESH/libmesh_r2959-gcc_4.3.1-mpich2_1.0.7-dbg/include/base/dof_object.h:406: more undefined references to `print_trace(std::basic_ostream<char, std::char_traits<char> >&)' follow collect2: ld returned 1 exit status make: *** [bin/amr] Error 1 On Fri, 8 Aug 2008, Kirk, Benjamin (JSC-EG) wrote: > I assume this is libMesh from SVN? > > I have been using 4.3.1 for a while, both on my Mac and under linux with no > issue. > I get the same > /* #undef HAVE_GCC_ABI_DEMANGLE */ > > you do. This is not a problem -- something has likely changed in how we > need to do backtraces, but the code is disabling the option when it cannot > figure out how to do it. > > what is the actual error you get when linking the code? Also, are you trying > to use the same mpi for both, or have you built a separate mpi for each gcc > version? > > -Ben > > > > -----Original Message----- > From: [EMAIL PROTECTED] on behalf of David Fuentes > Sent: Fri 8/8/2008 6:18 PM > To: [email protected] > Subject: [Libmesh-users] libmesh preprocessor variable HAVE_GCC_ABI_DEMANGLE > is undefined with gcc 4.3.1 > > Hi, > > I'm trying to build libmesh with gcc 4.3.1 > I am able to build it with gcc 4.1.2, but I need the 4.3.1 gfortran > compiler. > > > below is a diff between > > $(LIBMESH_DIR)/include/base/libmesh_config.h > > file when building libmesh with gcc 4.1.2 and gcc 4.3.1 > > with gcc 4.1.2 the preprocessor variable HAVE_GCC_ABI_DEMANGLE > is defined but it is undefined when building with gcc 4.3.1 > > I believe this is causing undefined references to "print_trace" > in $(LIBMESH_DIR)/src/base/print_trace.h > and I cannot link $(LIBMESH_DIR)/bin/amr > > > Has anyone been able to build libmesh w/ gcc 4.3.1? > > Thank you very much, > David Fuentes > > -------------------------------------------------------------- > > prophecy$ diff > libmesh_r2959-gcc_4.3.1-mpich2_1.0.7-dbg/include/base/libmesh_config.h > libmesh_r2959-gcc_4.1.2-mpich2_1.0.7-dbg/include/base/libmesh_config.h > 69c69 > < /* #undef HAVE_GCC_ABI_DEMANGLE */ > --- >> #define HAVE_GCC_ABI_DEMANGLE 1 > 207c207 > < #define LIBMESH_CONFIGURE_INFO "./configure run on Fri Aug 8 15:15:48 > CDT 2008" > --- >> #define LIBMESH_CONFIGURE_INFO "./configure run on Fri Aug 8 15:47:37 > CDT 2008" > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Libmesh-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/libmesh-users > > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
