Hi all,
I want to configure and compile libmesh on a virtual machine (VMWare Fusion6),
on which I installed Ubuntu 12.04 (underlying OS: Mac OS). I have installed and
tested MPICH, Petsc and Slepc already and that worked well. However during the
compilation of libmesh I get the following error:
CXX src/utils/libmesh_dbg_la-xdr_cxx.lo
src/utils/xdr_cxx.C: In member function 'void libMesh::Xdr::open(const
string&)':
src/utils/xdr_cxx.C:228:36: error: invalid use of incomplete type
'std::ifstream {aka struct std::basic_ifstream<char>}'
/usr/include/c++/4.6/iosfwd:113:11: error: declaration of 'std::ifstream {aka
struct std::basic_ifstream<char>}'
src/utils/xdr_cxx.C:230:18: error: no matching function for call to
'libMesh::AutoPtr<std::basic_istream<char> >::reset(std::ifstream*&)'
src/utils/xdr_cxx.C:230:18: note: candidate is:
./include/libmesh/auto_ptr.h:257:3: note: void
libMesh::AutoPtr<Tp>::reset(libMesh::AutoPtr<Tp>::element_type*) [with Tp =
std::basic_istream<char>, libMesh::AutoPtr<Tp>::element_type =
std::basic_istream<char>]
./include/libmesh/auto_ptr.h:257:3: note: no known conversion for argument 1
from 'std::ifstream* {aka std::basic_ifstream<char>*}' to
'libMesh::AutoPtr<std::basic_istream<char> >::element_type* {aka
std::basic_istream<char>*}'
src/utils/xdr_cxx.C:234:9: error: invalid use of incomplete type 'std::ifstream
{aka struct std::basic_ifstream<char>}'
/usr/include/c++/4.6/iosfwd:113:11: error: declaration of 'std::ifstream {aka
struct std::basic_ifstream<char>}'
src/utils/xdr_cxx.C:263:37: error: invalid use of incomplete type
'std::ofstream {aka struct std::basic_ofstream<char>}'
/usr/include/c++/4.6/iosfwd:116:11: error: declaration of 'std::ofstream {aka
struct std::basic_ofstream<char>}'
src/utils/xdr_cxx.C:265:20: error: no matching function for call to
'libMesh::AutoPtr<std::basic_ostream<char> >::reset(std::ofstream*&)'
src/utils/xdr_cxx.C:265:20: note: candidate is:
./include/libmesh/auto_ptr.h:257:3: note: void
libMesh::AutoPtr<Tp>::reset(libMesh::AutoPtr<Tp>::element_type*) [with Tp =
std::basic_ostream<char>, libMesh::AutoPtr<Tp>::element_type =
std::basic_ostream<char>]
./include/libmesh/auto_ptr.h:257:3: note: no known conversion for argument 1
from 'std::ofstream* {aka std::basic_ofstream<char>*}' to
'libMesh::AutoPtr<std::basic_ostream<char> >::element_type* {aka
std::basic_ostream<char>*}'
src/utils/xdr_cxx.C:275:10: error: invalid use of incomplete type
'std::ofstream {aka struct std::basic_ofstream<char>}'
/usr/include/c++/4.6/iosfwd:116:11: error: declaration of 'std::ofstream {aka
struct std::basic_ofstream<char>}'
I have configured petsc 3.4.1 with
./configure --with-mpi-dir=/home/kathrinsmetana/Implementation/mpich-install
--with-debugging=0 --with-shared-libraries=1 --with-dynamic-loading=1
--download-parmetis=1 --download-mumps=1 --download-scalapack=1
--download-f-blas-lapack=1 --download-umfpack=1 --download-metis
--with-scalar-type=complex --with-clanguage=cxx
PETSC_DIR=/home/kathrinsmetana/Implementation/petsc-3.4.1
and libmesh with
./configure --enable-eigen --enable-shared --enable-everything --enable-complex
--prefix=/home/kathrinsmetana/Implementation/libmesh-install/
--with-metis=PETSc
CXX=/home/kathrinsmetana/Implementation/mpich-install/bin/mpicxx
CC=/home/kathrinsmetana/Implementation/mpich-install/bin/mpicc
PETSC_DIR=/home/kathrinsmetana/Implementation/petsc-3.4.1
I am using the compiler gcc 4.6.
Any ideas?
Thanks,
Kathrin
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users