[CIG-SHORT] pylith install error

Brad Aagaard baagaard at usgs.gov
Wed Sep 25 16:18:45 PDT 2013


Birendra,

SWIG creates a signature for each object that can depend on the SWIG 
version and which machine you are using.  As a result, you cannot mix 
different SWIG versions nor mix SWIG output from different machines. If 
you customize PyLith with your own modules, then you should be using the 
"development" version by checking the code out from the repository.

This is easiest via the --with-svn configure options for the installer. 
For version 1.9.0 use --with-svn=stable. The repository includes the 
SWIG .i files and the --with-svn option will trigger generation of the 
*wrap.cxx and *.py via SWIG for both spatialdata and PyLith so that 
everything is compatible.

Unfortunately, --with-svn also triggers use of the PETSc git repository 
which has removed Sieve (because PyLith 2.0 replaces Sieve with DMPlex). 
I will ask Matt if he can create a temporary PETSc branch that is frozen 
before Sieve was removed we can use with PyLith 1.9 until 2.0 is ready.

Regards,
Brad


On 09/25/2013 03:29 PM, Birendra jha wrote:
> Brad,
>
> I am getting following error during make. I have swig 2.0.11 in /usr/local/bin. *wrap.cxx and *.py files created by the installer were version 2.0.4. Since I modified a module and its module files are 2.0.11, I regenerated all of them using the new version. Except spatialdata-1.9.2/modulesrc/spatialdb.py and cxx files, because SimpleGridAscii.i and .hh files needed by spatialdb.i are missing from the installer (can I get these files?).
>
> /bin/bash ../../libtool --tag=CXX   --mode=compile mpicxx -DHAVE_CONFIG_H -I. -I../../../pylith-1.9.0/modulesrc/topology -I../.. -I../../../pylith-1.9.0/libsrc -g -I/home/bjha/pylith-1.9.0/lib/python2.7/site-packages/pythia-0.8.1.15-py2.7.egg -I/home/bjha/pylith-1.9.0/lib/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -I/home/bjha/pylith-1.9.0/include -I/home/bjha/pylith-1.9.0/include -I/home/bjha/pylith-1.9.0/include/sieve -I/home/bjha/pylith-1.9.0/include -I/usr/local/include  -DENABLE_HDF5 -DENABLE_CUBIT -I/home/bjha/pylith-1.9.0/include   -g -O2 -DMPICH_IGNORE_CXX_SEEK -MT topology_wrap.lo -MD -MP -MF .deps/topology_wrap.Tpo -c -o topology_wrap.lo ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx
> libtool: compile:  mpicxx -DHAVE_CONFIG_H -I. -I../../../pylith-1.9.0/modulesrc/topology -I../.. -I../../../pylith-1.9.0/libsrc -g -I/home/bjha/pylith-1.9.0/lib/python2.7/site-packages/pythia-0.8.1.15-py2.7.egg -I/home/bjha/pylith-1.9.0/lib/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -I/home/bjha/pylith-1.9.0/include -I/home/bjha/pylith-1.9.0/include -I/home/bjha/pylith-1.9.0/include/sieve -I/home/bjha/pylith-1.9.0/include -I/usr/local/include -DENABLE_HDF5 -DENABLE_CUBIT -I/home/bjha/pylith-1.9.0/include -g -O2 -DMPICH_IGNORE_CXX_SEEK -MT topology_wrap.lo -MD -MP -MF .deps/topology_wrap.Tpo -c ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx  -fPIC -DPIC -o .libs/topology_wrap.o
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx: In function 'char* pytype_string(PyObject*)':
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3170:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3171:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3172:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3173:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3174:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3175:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3176:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3177:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3178:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3179:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3180:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3181:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3183:10: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx: In function 'char* typecode_string(int)':
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3197:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3197:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3197:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3197:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3197:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3197:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3197:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3197:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3197:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3197:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3197:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3197:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3197:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3197:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3197:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3197:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3197:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3197:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3197:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3197:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3197:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3197:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3197:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3197:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:3197:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx: In function 'PyObject* _wrap_new_SubMesh__SWIG_1(PyObject*, PyObject*)':
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:4731:72: error: cannot convert 'pylith::topology::Field<pylith::topology::SubMesh>::Mesh* {aka pylith::topology::SubMesh*}' to 'pylith::topology::Mesh*' in assignment
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx:4737:74: error: cannot convert 'pylith::topology::Field<pylith::topology::SubMesh>::Mesh* {aka pylith::topology::SubMesh*}' to 'pylith::topology::Mesh*' in assignment
> ../../../pylith-1.9.0/modulesrc/topology/topology_wrap.cxx: In function 'PyObject* _wrap_SubMesh_createSubMesh(PyObject*, PyObject*)':
>
> Is it the swig version issue? Are 2.0.4 and 2.0.11 not compatible?
>
> Thanks and regards
> Birendra
> _______________________________________________
> CIG-SHORT mailing list
> CIG-SHORT at geodynamics.org
> http://geodynamics.org/cgi-bin/mailman/listinfo/cig-short
>



More information about the CIG-SHORT mailing list