[Debian-med-packaging] Bug#701360: sofa-framework: ftbfs with GCC-4.8

Matthias Klose doko at debian.org
Sat Feb 23 11:22:04 UTC 2013


Package: src:sofa-framework
Version: 1.0~beta4-7
Severity: important
Tags: sid jessie
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-4.8

The package fails to build in a test rebuild on at least amd64 with
gcc-4.8/g++-4.8, but succeeds to build with gcc-4.7/g++-4.7. The
severity of this report may be raised before the jessie release.

  GNode.cpp:(.text+0x2bb4): undefined reference to `sofa::helper::Factory<std::string, sofa::core::objectmodel::BaseNode, sofa::simulation::tree::xml::Element<sofa::core::objectmodel::BaseNode>*>::getInstance()'

The full build log can be found at:
http://people.debian.org/~doko/logs-20130217/gcc48/sofa-framework_1.0~beta4-7_unstable_gcc48.log
The last lines of the build log are at the end of this report.

To build with GCC 4.8, either set CC=gcc-4.8 CXX=g++-4.8 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t experimental install g++ g++-4.7 g++-4.8 libc6-dev

The test rebuild was done with eglibc-2.17 and GCC-4.8, so some issues
might be caused by the updated glibc.

[...]
g++ -c -m64 -pipe -W -I/usr/include/libxml2 -O2 -O1 -D_REENTRANT -fPIC -DSOFA_QT4 -DSOFA_GUI_QTVIEWER -DSOFA_GUI_GLUT -DSOFA_HAVE_PNG -DSOFA_HAVE_GLEW -DSOFA_HAVE_BOOST -DSOFA_PML -DSOFA_SUPPORT_MOVING_FRAMES -DDUMP_VISITOR_INFO -DNDEBUG -DSOFA_XML_PARSER_TINYXML -DMINI_FLOWVR -DSOFA_BUILD_SIMULATION_COMMON -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I../../../../include -I../../../../framework -I../../../../modules -I/usr/include/qt4 -I/usr/include/qwt-qt4 -I/usr/include/libxml2 -I../../../../extlibs/PML -I../../../../extlibs/PML/PhysicalProperties -I../../../../extlibs/LML -I../../../../extlibs/miniFlowVR/include -o OBJ/release/XMLPrintVisitor.o XMLPrintVisitor.cpp
rm -f libsofasimulation.so.1.0.0 libsofasimulation.so libsofasimulation.so.1 libsofasimulation.so.1.0
g++ -m64 -Wl,-z,defs -Wl,-O1 -shared -Wl,-soname,libsofasimulation.so.1 -o libsofasimulation.so.1.0.0 OBJ/release/Node.o OBJ/release/AnimateBeginEvent.o OBJ/release/AnimateEndEvent.o OBJ/release/AnimateVisitor.o OBJ/release/BehaviorUpdatePositionVisitor.o OBJ/release/CactusStackStorage.o OBJ/release/CleanupVisitor.o OBJ/release/ConstraintVisitor.o OBJ/release/CollisionVisitor.o OBJ/release/DesactivatedNodeVisitor.o OBJ/release/ExportGnuplotVisitor.o OBJ/release/ExportOBJVisitor.o OBJ/release/InitVisitor.o OBJ/release/InstrumentVisitor.o OBJ/release/MasterSolverImpl.o OBJ/release/MechanicalComputeEnergyVisitor.o OBJ/release/MechanicalMatrixVisitor.o OBJ/release/MechanicalVPrintVisitor.o OBJ/release/MechanicalVisitor.o OBJ/release/PipelineImpl.o OBJ/release/PrintVisitor.o OBJ/release/PropagateEventVisitor.o OBJ/release/ResetVisitor.o OBJ/release/Simulation.o OBJ/release/SolveVisitor.o OBJ/release/SolverImpl.o OBJ/release/TopologyChangeVisitor.o OBJ/release/StateChangeVisitor.o OBJ/release/TransformationVisitor.o OBJ/release/UpdateContextVisitor.o OBJ/release/UpdateMappingEndEvent.o OBJ/release/UpdateMappingVisitor.o OBJ/release/VelocityThresholdVisitor.o OBJ/release/Visitor.o OBJ/release/VisitorScheduler.o OBJ/release/VisualVisitor.o OBJ/release/WriteStateVisitor.o OBJ/release/XMLPrintVisitor.o   -L../../../../lib/linux -L../../../../lib/linux/../Common -lsofahelper -lsofadefaulttype -lsofacore -L/usr/X11R6/lib -lglut -lGL -lGLU -lpthread -lX11 -lboost_thread-mt -ltinyxml -L/usr/lib -lxml2 -lpng -lz -lnewmat -lGLEW -lphysicalmodel -lload -lminiFlowVR -lpthread  
ln -s libsofasimulation.so.1.0.0 libsofasimulation.so
ln -s libsofasimulation.so.1.0.0 libsofasimulation.so.1
ln -s libsofasimulation.so.1.0.0 libsofasimulation.so.1.0
rm -f ../../../../lib/linux/libsofasimulation.so.1.0.0
rm -f ../../../../lib/linux/libsofasimulation.so
rm -f ../../../../lib/linux/libsofasimulation.so.1
rm -f ../../../../lib/linux/libsofasimulation.so.1.0
mv -f libsofasimulation.so.1.0.0 libsofasimulation.so libsofasimulation.so.1 libsofasimulation.so.1.0 ../../../../lib/linux/
make[6]: Leaving directory `/«PKGBUILDDIR»/modules/sofa/simulation/common'
cd tree/ && /usr/bin/qmake /«PKGBUILDDIR»/modules/sofa/simulation/tree/tree.pro -o Makefile
WARNING: /«PKGBUILDDIR»/sofa.cfg:25: Unable to find file for inclusion sofa-local.cfg
cd tree/ && make -f Makefile 
make[6]: Entering directory `/«PKGBUILDDIR»/modules/sofa/simulation/tree'
g++ -c -m64 -pipe -W -I/usr/include/libxml2 -O2 -O1 -D_REENTRANT -fPIC -DSOFA_QT4 -DSOFA_GUI_QTVIEWER -DSOFA_GUI_GLUT -DSOFA_HAVE_PNG -DSOFA_HAVE_GLEW -DSOFA_HAVE_BOOST -DSOFA_PML -DSOFA_SUPPORT_MOVING_FRAMES -DDUMP_VISITOR_INFO -DNDEBUG -DSOFA_XML_PARSER_TINYXML -DMINI_FLOWVR -DSOFA_BUILD_SIMULATION_TREE -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I../../../../include -I../../../../framework -I../../../../modules -I/usr/include/qt4 -I/usr/include/qwt-qt4 -I/usr/include/libxml2 -I../../../../extlibs/PML -I../../../../extlibs/PML/PhysicalProperties -I../../../../extlibs/LML -I../../../../extlibs/miniFlowVR/include -o OBJ/release/DeleteVisitor.o DeleteVisitor.cpp
g++ -c -m64 -pipe -W -I/usr/include/libxml2 -O2 -O1 -D_REENTRANT -fPIC -DSOFA_QT4 -DSOFA_GUI_QTVIEWER -DSOFA_GUI_GLUT -DSOFA_HAVE_PNG -DSOFA_HAVE_GLEW -DSOFA_HAVE_BOOST -DSOFA_PML -DSOFA_SUPPORT_MOVING_FRAMES -DDUMP_VISITOR_INFO -DNDEBUG -DSOFA_XML_PARSER_TINYXML -DMINI_FLOWVR -DSOFA_BUILD_SIMULATION_TREE -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I../../../../include -I../../../../framework -I../../../../modules -I/usr/include/qt4 -I/usr/include/qwt-qt4 -I/usr/include/libxml2 -I../../../../extlibs/PML -I../../../../extlibs/PML/PhysicalProperties -I../../../../extlibs/LML -I../../../../extlibs/miniFlowVR/include -o OBJ/release/ExportDotVisitor.o ExportDotVisitor.cpp
g++ -c -m64 -pipe -W -I/usr/include/libxml2 -O2 -O1 -D_REENTRANT -fPIC -DSOFA_QT4 -DSOFA_GUI_QTVIEWER -DSOFA_GUI_GLUT -DSOFA_HAVE_PNG -DSOFA_HAVE_GLEW -DSOFA_HAVE_BOOST -DSOFA_PML -DSOFA_SUPPORT_MOVING_FRAMES -DDUMP_VISITOR_INFO -DNDEBUG -DSOFA_XML_PARSER_TINYXML -DMINI_FLOWVR -DSOFA_BUILD_SIMULATION_TREE -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I../../../../include -I../../../../framework -I../../../../modules -I/usr/include/qt4 -I/usr/include/qwt-qt4 -I/usr/include/libxml2 -I../../../../extlibs/PML -I../../../../extlibs/PML/PhysicalProperties -I../../../../extlibs/LML -I../../../../extlibs/miniFlowVR/include -o OBJ/release/GNode.o GNode.cpp
g++ -c -m64 -pipe -W -I/usr/include/libxml2 -O2 -O1 -D_REENTRANT -fPIC -DSOFA_QT4 -DSOFA_GUI_QTVIEWER -DSOFA_GUI_GLUT -DSOFA_HAVE_PNG -DSOFA_HAVE_GLEW -DSOFA_HAVE_BOOST -DSOFA_PML -DSOFA_SUPPORT_MOVING_FRAMES -DDUMP_VISITOR_INFO -DNDEBUG -DSOFA_XML_PARSER_TINYXML -DMINI_FLOWVR -DSOFA_BUILD_SIMULATION_TREE -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I../../../../include -I../../../../framework -I../../../../modules -I/usr/include/qt4 -I/usr/include/qwt-qt4 -I/usr/include/libxml2 -I../../../../extlibs/PML -I../../../../extlibs/PML/PhysicalProperties -I../../../../extlibs/LML -I../../../../extlibs/miniFlowVR/include -o OBJ/release/GNodeVisitor.o GNodeVisitor.cpp
g++ -c -m64 -pipe -W -I/usr/include/libxml2 -O2 -O1 -D_REENTRANT -fPIC -DSOFA_QT4 -DSOFA_GUI_QTVIEWER -DSOFA_GUI_GLUT -DSOFA_HAVE_PNG -DSOFA_HAVE_GLEW -DSOFA_HAVE_BOOST -DSOFA_PML -DSOFA_SUPPORT_MOVING_FRAMES -DDUMP_VISITOR_INFO -DNDEBUG -DSOFA_XML_PARSER_TINYXML -DMINI_FLOWVR -DSOFA_BUILD_SIMULATION_TREE -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I../../../../include -I../../../../framework -I../../../../modules -I/usr/include/qt4 -I/usr/include/qwt-qt4 -I/usr/include/libxml2 -I../../../../extlibs/PML -I../../../../extlibs/PML/PhysicalProperties -I../../../../extlibs/LML -I../../../../extlibs/miniFlowVR/include -o OBJ/release/MutationListener.o MutationListener.cpp
g++ -c -m64 -pipe -W -I/usr/include/libxml2 -O2 -O1 -D_REENTRANT -fPIC -DSOFA_QT4 -DSOFA_GUI_QTVIEWER -DSOFA_GUI_GLUT -DSOFA_HAVE_PNG -DSOFA_HAVE_GLEW -DSOFA_HAVE_BOOST -DSOFA_PML -DSOFA_SUPPORT_MOVING_FRAMES -DDUMP_VISITOR_INFO -DNDEBUG -DSOFA_XML_PARSER_TINYXML -DMINI_FLOWVR -DSOFA_BUILD_SIMULATION_TREE -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I../../../../include -I../../../../framework -I../../../../modules -I/usr/include/qt4 -I/usr/include/qwt-qt4 -I/usr/include/libxml2 -I../../../../extlibs/PML -I../../../../extlibs/PML/PhysicalProperties -I../../../../extlibs/LML -I../../../../extlibs/miniFlowVR/include -o OBJ/release/ParallelVisitorScheduler.o ParallelVisitorScheduler.cpp
g++ -c -m64 -pipe -W -I/usr/include/libxml2 -O2 -O1 -D_REENTRANT -fPIC -DSOFA_QT4 -DSOFA_GUI_QTVIEWER -DSOFA_GUI_GLUT -DSOFA_HAVE_PNG -DSOFA_HAVE_GLEW -DSOFA_HAVE_BOOST -DSOFA_PML -DSOFA_SUPPORT_MOVING_FRAMES -DDUMP_VISITOR_INFO -DNDEBUG -DSOFA_XML_PARSER_TINYXML -DMINI_FLOWVR -DSOFA_BUILD_SIMULATION_TREE -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I../../../../include -I../../../../framework -I../../../../modules -I/usr/include/qt4 -I/usr/include/qwt-qt4 -I/usr/include/libxml2 -I../../../../extlibs/PML -I../../../../extlibs/PML/PhysicalProperties -I../../../../extlibs/LML -I../../../../extlibs/miniFlowVR/include -o OBJ/release/TreeSimulation.o TreeSimulation.cpp
g++ -c -m64 -pipe -W -I/usr/include/libxml2 -O2 -O1 -D_REENTRANT -fPIC -DSOFA_QT4 -DSOFA_GUI_QTVIEWER -DSOFA_GUI_GLUT -DSOFA_HAVE_PNG -DSOFA_HAVE_GLEW -DSOFA_HAVE_BOOST -DSOFA_PML -DSOFA_SUPPORT_MOVING_FRAMES -DDUMP_VISITOR_INFO -DNDEBUG -DSOFA_XML_PARSER_TINYXML -DMINI_FLOWVR -DSOFA_BUILD_SIMULATION_TREE -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I../../../../include -I../../../../framework -I../../../../modules -I/usr/include/qt4 -I/usr/include/qwt-qt4 -I/usr/include/libxml2 -I../../../../extlibs/PML -I../../../../extlibs/PML/PhysicalProperties -I../../../../extlibs/LML -I../../../../extlibs/miniFlowVR/include -o OBJ/release/BaseElement.o xml/BaseElement.cpp
g++ -c -m64 -pipe -W -I/usr/include/libxml2 -O2 -O1 -D_REENTRANT -fPIC -DSOFA_QT4 -DSOFA_GUI_QTVIEWER -DSOFA_GUI_GLUT -DSOFA_HAVE_PNG -DSOFA_HAVE_GLEW -DSOFA_HAVE_BOOST -DSOFA_PML -DSOFA_SUPPORT_MOVING_FRAMES -DDUMP_VISITOR_INFO -DNDEBUG -DSOFA_XML_PARSER_TINYXML -DMINI_FLOWVR -DSOFA_BUILD_SIMULATION_TREE -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I../../../../include -I../../../../framework -I../../../../modules -I/usr/include/qt4 -I/usr/include/qwt-qt4 -I/usr/include/libxml2 -I../../../../extlibs/PML -I../../../../extlibs/PML/PhysicalProperties -I../../../../extlibs/LML -I../../../../extlibs/miniFlowVR/include -o OBJ/release/initXml.o xml/initXml.cpp
g++ -c -m64 -pipe -W -I/usr/include/libxml2 -O2 -O1 -D_REENTRANT -fPIC -DSOFA_QT4 -DSOFA_GUI_QTVIEWER -DSOFA_GUI_GLUT -DSOFA_HAVE_PNG -DSOFA_HAVE_GLEW -DSOFA_HAVE_BOOST -DSOFA_PML -DSOFA_SUPPORT_MOVING_FRAMES -DDUMP_VISITOR_INFO -DNDEBUG -DSOFA_XML_PARSER_TINYXML -DMINI_FLOWVR -DSOFA_BUILD_SIMULATION_TREE -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I../../../../include -I../../../../framework -I../../../../modules -I/usr/include/qt4 -I/usr/include/qwt-qt4 -I/usr/include/libxml2 -I../../../../extlibs/PML -I../../../../extlibs/PML/PhysicalProperties -I../../../../extlibs/LML -I../../../../extlibs/miniFlowVR/include -o OBJ/release/NodeElement.o xml/NodeElement.cpp
g++ -c -m64 -pipe -W -I/usr/include/libxml2 -O2 -O1 -D_REENTRANT -fPIC -DSOFA_QT4 -DSOFA_GUI_QTVIEWER -DSOFA_GUI_GLUT -DSOFA_HAVE_PNG -DSOFA_HAVE_GLEW -DSOFA_HAVE_BOOST -DSOFA_PML -DSOFA_SUPPORT_MOVING_FRAMES -DDUMP_VISITOR_INFO -DNDEBUG -DSOFA_XML_PARSER_TINYXML -DMINI_FLOWVR -DSOFA_BUILD_SIMULATION_TREE -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I../../../../include -I../../../../framework -I../../../../modules -I/usr/include/qt4 -I/usr/include/qwt-qt4 -I/usr/include/libxml2 -I../../../../extlibs/PML -I../../../../extlibs/PML/PhysicalProperties -I../../../../extlibs/LML -I../../../../extlibs/miniFlowVR/include -o OBJ/release/ObjectElement.o xml/ObjectElement.cpp
g++ -c -m64 -pipe -W -I/usr/include/libxml2 -O2 -O1 -D_REENTRANT -fPIC -DSOFA_QT4 -DSOFA_GUI_QTVIEWER -DSOFA_GUI_GLUT -DSOFA_HAVE_PNG -DSOFA_HAVE_GLEW -DSOFA_HAVE_BOOST -DSOFA_PML -DSOFA_SUPPORT_MOVING_FRAMES -DDUMP_VISITOR_INFO -DNDEBUG -DSOFA_XML_PARSER_TINYXML -DMINI_FLOWVR -DSOFA_BUILD_SIMULATION_TREE -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I../../../../include -I../../../../framework -I../../../../modules -I/usr/include/qt4 -I/usr/include/qwt-qt4 -I/usr/include/libxml2 -I../../../../extlibs/PML -I../../../../extlibs/PML/PhysicalProperties -I../../../../extlibs/LML -I../../../../extlibs/miniFlowVR/include -o OBJ/release/AttributeElement.o xml/AttributeElement.cpp
g++ -c -m64 -pipe -W -I/usr/include/libxml2 -O2 -O1 -D_REENTRANT -fPIC -DSOFA_QT4 -DSOFA_GUI_QTVIEWER -DSOFA_GUI_GLUT -DSOFA_HAVE_PNG -DSOFA_HAVE_GLEW -DSOFA_HAVE_BOOST -DSOFA_PML -DSOFA_SUPPORT_MOVING_FRAMES -DDUMP_VISITOR_INFO -DNDEBUG -DSOFA_XML_PARSER_TINYXML -DMINI_FLOWVR -DSOFA_BUILD_SIMULATION_TREE -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I../../../../include -I../../../../framework -I../../../../modules -I/usr/include/qt4 -I/usr/include/qwt-qt4 -I/usr/include/libxml2 -I../../../../extlibs/PML -I../../../../extlibs/PML/PhysicalProperties -I../../../../extlibs/LML -I../../../../extlibs/miniFlowVR/include -o OBJ/release/DataElement.o xml/DataElement.cpp
g++ -c -m64 -pipe -W -I/usr/include/libxml2 -O2 -O1 -D_REENTRANT -fPIC -DSOFA_QT4 -DSOFA_GUI_QTVIEWER -DSOFA_GUI_GLUT -DSOFA_HAVE_PNG -DSOFA_HAVE_GLEW -DSOFA_HAVE_BOOST -DSOFA_PML -DSOFA_SUPPORT_MOVING_FRAMES -DDUMP_VISITOR_INFO -DNDEBUG -DSOFA_XML_PARSER_TINYXML -DMINI_FLOWVR -DSOFA_BUILD_SIMULATION_TREE -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I../../../../include -I../../../../framework -I../../../../modules -I/usr/include/qt4 -I/usr/include/qwt-qt4 -I/usr/include/libxml2 -I../../../../extlibs/PML -I../../../../extlibs/PML/PhysicalProperties -I../../../../extlibs/LML -I../../../../extlibs/miniFlowVR/include -o OBJ/release/XML.o xml/XML.cpp
rm -f libsofatree.so.1.0.0 libsofatree.so libsofatree.so.1 libsofatree.so.1.0
g++ -m64 -Wl,-z,defs -Wl,-O1 -shared -Wl,-soname,libsofatree.so.1 -o libsofatree.so.1.0.0 OBJ/release/DeleteVisitor.o OBJ/release/ExportDotVisitor.o OBJ/release/GNode.o OBJ/release/GNodeVisitor.o OBJ/release/MutationListener.o OBJ/release/ParallelVisitorScheduler.o OBJ/release/TreeSimulation.o OBJ/release/BaseElement.o OBJ/release/initXml.o OBJ/release/NodeElement.o OBJ/release/ObjectElement.o OBJ/release/AttributeElement.o OBJ/release/DataElement.o OBJ/release/XML.o   -L../../../../lib/linux -L../../../../lib/linux/../Common -lsofahelper -lsofadefaulttype -lsofacore -lsofasimulation -L/usr/X11R6/lib -lglut -lGL -lGLU -lpthread -lX11 -lboost_thread-mt -ltinyxml -L/usr/lib -lxml2 -lpng -lz -lnewmat -lGLEW -lphysicalmodel -lload -lminiFlowVR -lpthread  
OBJ/release/GNode.o: In function `_GLOBAL__sub_I_GNode.cpp':
GNode.cpp:(.text+0x2bb4): undefined reference to `sofa::helper::Factory<std::string, sofa::core::objectmodel::BaseNode, sofa::simulation::tree::xml::Element<sofa::core::objectmodel::BaseNode>*>::getInstance()'
collect2: error: ld returned 1 exit status
make[6]: *** [../../../../lib/linux/libsofatree.so.1.0.0] Error 1
make[6]: Leaving directory `/«PKGBUILDDIR»/modules/sofa/simulation/tree'
make[5]: *** [sub-tree-make_default-ordered] Error 2
make[4]: *** [sub-simulation-make_default-ordered] Error 2
make[3]: *** [sub-sofa-make_default-ordered] Error 2
make[5]: Leaving directory `/«PKGBUILDDIR»/modules/sofa/simulation'
make[4]: Leaving directory `/«PKGBUILDDIR»/modules/sofa'
make[3]: Leaving directory `/«PKGBUILDDIR»/modules'
make[2]: *** [sub-modules-make_default-ordered] Error 2
dh_auto_build: make -j1 returned exit code 2
make[2]: Leaving directory `/«PKGBUILDDIR»'
make[1]: *** [override_dh_auto_build] Error 25
make[1]: Leaving directory `/«PKGBUILDDIR»'
make: *** [build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2



More information about the Debian-med-packaging mailing list