Elmer doesn't compile with gcc 4.5

Discussion about building and installing Elmer
Post Reply
hazelsct
Posts: 153
Joined: 05 Oct 2009, 17:02
Location: Boston, MA, USA
Contact:

Elmer doesn't compile with gcc 4.5

Post by hazelsct »

A new version of gcc can not compile all of Elmer, it fails with the following error:

Code: Select all

g++ -c -pipe -O2 -fPIC -w -D_REENTRANT -DEG_QWT -DEG_VTK -DEG_MATC -DEG_OCC -DEG_PYTHONQT -DPYTHONQT_EXPORTS -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/usr/include/python2.5 -Isrc -Itmp -o tmp/PythonQtImporter.o src/PythonQtImporter.cpp
src/PythonQtImporter.cpp: In function 'PyObject* PythonQtImporter_load_module(PyObject*, PyObject*)':
src/PythonQtImporter.cpp:236:28: error: cannot pass objects of non-trivially-copyable type 'class QString' through '...'
make[2]: *** [tmp/PythonQtImporter.o] Error 1
make[2]: Leaving directory `/build/user-elmerfem_5.5.0.svn.4298.dfsg-1-amd64-V3EAcA/elmerfem-5.5.0.svn.4298.dfsg/ElmerGUI/PythonQt'
I don't know enough C++ to know what this means, let alone how to fix it...
hazelsct
Posts: 153
Joined: 05 Oct 2009, 17:02
Location: Boston, MA, USA
Contact:

Re: Elmer doesn't compile with gcc 4.5

Post by hazelsct »

Hi, the attached fix just came in today, which I'll apply to SVN probably tomorrow.
Attachments
gcc4.5.patch
Stefano Rivera's patch to fix building with gcc 4.5
(682 Bytes) Downloaded 359 times
Post Reply