← Back to team overview

dolfin team mailing list archive

Re: [HG DOLFIN] Add missing include in ALE.cpp.

 

Since I still had problems with gcc 4.3 and the swig wrapper, I downloaded and installed the newest swig from sourceforge. Now I get the following errors: mpic++ -o dolfin/swig/dolfin_wrap.os -c -Wall -pipe -ansi -DDEBUG -g -Werror -DNDEBUG -O2 -DHAS_MPI=1 -DMPICH_IGNORE_CXX_SEEK -DPACKAGE_VERSION=\"0.7.3\" -DHAS_PETSC=1 -DHAS_SLEPC=1 -DHAS_SCOTCH=1 -DHAS_UMFPACK=1 -DHAS_GTS=1 -DHAS_TRILINOS=1 -fno-strict-aliasing -fPIC -I. -I/usr/include/libxml2 -I/usr/lib/petsc/bmake/linux-gnu-c-opt -I/usr/lib/petsc/include -I/usr/lib/openmpi/include -I/usr/lib/openmpi/lib -Idolfin -I/usr/local -I/usr/local/include -I/usr/lib/petsc/bmake/linux-gnu-c-opt -I/usr/lib/petsc/include -I/usr/lib/openmpi/include -I/usr/lib/openmpi/lib -Idolfin -I/usr/include/suitesparse -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/local/include -I/usr/include/python2.5 -I/usr/include/python2.5 -I/usr/lib/python2.5/site-packages/numpy/core/include -I/usr/include/libxml2 -I/usr/lib/petsc/bmake/linux-gnu-c-opt -I/usr/lib/petsc/include -I/usr/lib/openmpi/include -I/usr/lib/openmpi/lib -Idolfin -I/usr/local -I/usr/local/include -I/usr/lib/petsc/bmake/linux-gnu-c-opt -I/usr/lib/petsc/include -I/usr/lib/openmpi/include -I/usr/lib/openmpi/lib -Idolfin -I/usr/include/suitesparse -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/local/include dolfin/swig/dolfin_wrap.cc
cc1plus: warnings being treated as errors
dolfin/swig/dolfin_wrap.cc: In function ‘PyObject* _wrap_new_SLEPcEigenvalueSolver(PyObject*, PyObject*)’: dolfin/swig/dolfin_wrap.cc:49388: error: ‘argv[0]’ may be used uninitialized in this function dolfin/swig/dolfin_wrap.cc: In function ‘PyObject* _wrap_new_TimeDependent(PyObject*, PyObject*)’: dolfin/swig/dolfin_wrap.cc:27560: error: ‘argv[0]’ may be used uninitialized in this function dolfin/swig/dolfin_wrap.cc: In function ‘PyObject* _wrap_ios_base_sync_with_stdio(PyObject*, PyObject*)’: dolfin/swig/dolfin_wrap.cc:16953: error: ‘argv[0]’ may be used uninitialized in this function dolfin/swig/dolfin_wrap.cc: In function ‘PyObject* _wrap_new_Vector(PyObject*, PyObject*)’: dolfin/swig/dolfin_wrap.cc:51759: error: ‘argv[0]’ may be used uninitialized in this function dolfin/swig/dolfin_wrap.cc: In function ‘PyObject* _wrap_new_Mesh(PyObject*, PyObject*)’: dolfin/swig/dolfin_wrap.cc:69695: error: ‘argv[0]’ may be used uninitialized in this function
scons: *** [dolfin/swig/dolfin_wrap.os] Error 1
scons: building terminated because of errors.

ilmar

kent-and@xxxxxxxxx wrote:
Ilmar, can you send snippets of the wrapper code, it is clearly not the
same as the wrapper code I have.

Kent



mpic++ -o dolfin/swig/dolfin_wrap.os -c -Wall -pipe -ansi -DDEBUG -g
-Werror -DNDEBUG -O2 -DHAS_MPI=1 -DMPICH_IGNORE_CXX_SEEK
-DPACKAGE_VERSION=\"0.7.3\" -DHAS_PETSC=1 -DHAS_SLEPC=1 -DHAS_SCOTCH=1
-DHAS_UMFPACK=1 -DHAS_GTS=1 -DHAS_TRILINOS=1 -fno-strict-aliasing -fPIC
-I. -I/usr/include/libxml2 -I/usr/lib/petsc/bmake/linux-gnu-c-opt
-I/usr/lib/petsc/include -I/usr/lib/openmpi/include
-I/usr/lib/openmpi/lib -Idolfin -I/usr/local -I/usr/local/include
-I/usr/lib/petsc/bmake/linux-gnu-c-opt -I/usr/lib/petsc/include
-I/usr/lib/openmpi/include -I/usr/lib/openmpi/lib -Idolfin
-I/usr/include/suitesparse -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/local/include
-I/usr/include/python2.5 -I/usr/include/python2.5
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/include/libxml2 -I/usr/lib/petsc/bmake/linux-gnu-c-opt
-I/usr/lib/petsc/include -I/usr/lib/openmpi/include
-I/usr/lib/openmpi/lib -Idolfin -I/usr/local -I/usr/local/include
-I/usr/lib/petsc/bmake/linux-gnu-c-opt -I/usr/lib/petsc/include
-I/usr/lib/openmpi/include -I/usr/lib/openmpi/lib -Idolfin
-I/usr/include/suitesparse -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/local/include
dolfin/swig/dolfin_wrap.cc
cc1plus: warnings being treated as errors
dolfin/swig/dolfin_wrap.cc: In constructor
‘swig::PyObject_ptr::PyObject_ptr(PyObject*, bool)’:
dolfin/swig/dolfin_wrap.cc:3265: error: suggest explicit braces to avoid
ambiguous ‘else’
dolfin/swig/dolfin_wrap.cc: In destructor
‘swig::PySequence_Cont<T>::~PySequence_Cont()’:
dolfin/swig/dolfin_wrap.cc:4704: error: suggest explicit braces to avoid
ambiguous ‘else’
scons: *** [dolfin/swig/dolfin_wrap.os] Error 1
scons: building terminated because of errors.

ilmar



_______________________________________________
DOLFIN-dev mailing list
DOLFIN-dev@xxxxxxxxxx
http://www.fenics.org/mailman/listinfo/dolfin-dev


References