rrwick / Bandage

a Bioinformatics Application for Navigating De novo Assembly Graphs Easily
http://rrwick.github.io/Bandage/
GNU General Public License v3.0
586 stars 98 forks source link

compilation error: #41

Open geboro opened 7 years ago

geboro commented 7 years ago

Working under Ubuntu 16.04 and following the installation instructions for Ubuntu. The build crashers with a "collect2: error: ld returned 1 exit status" and undefined references. I understand this could be typos in the code. I also ran a "make clean" + "make" with the same result. Below is the last part of the screen output (just before failing):

g++ -Wl,-O1 -Wl,-rpath,/home/gbonilla/Software/BioTools/Anaconda/lib -o Bandage main.o settings.o globals.o graphlayoutworker.o debruijnnode.o debruijnedge.o graphicsitemnode.o graphicsitemedge.o mainwindow.o graphicsviewzoom.o settingsdialog.o mygraphicsview.o mygraphicsscene.o aboutdialog.o enteroneblastquerydialog.o blasthit.o blastqueries.o blastsearchdialog.o infotextwidget.o assemblygraph.o verticalscrollarea.o myprogressdialog.o nodewidthvisualaid.o verticallabel.o load.o image.o commoncommandlinefunctions.o mytablewidget.o buildblastdatabaseworker.o colourbutton.o blastquery.o runblastsearchworker.o blastsearch.o path.o pathspecifydialog.o graphlocation.o tablewidgetitemint.o tablewidgetitemdouble.o tablewidgetitemshown.o memory.o querypathspushbutton.o querypathsdialog.o blastquerypath.o blasthitfiltersdialog.o scinot.o changenodenamedialog.o querypathsequencecopybutton.o querypaths.o info.o reduce.o Graph.o GraphAttributes.o FMMMLayout.o geometry.o ClusterGraphAttributes.o FruchtermanReingold.o NMM.o GmlParser.o simple_graph_alg.o basic.o XmlParser.o String.o Hashing.o PoolMemoryAllocator.o GraphCopy.o CombinatorialEmbedding.o OgmlParser.o ClusterGraph.o Math.o EdgeAttributes.o NodeAttributes.o MAARPacking.o Multilevel.o numexcept.o Set.o Ogml.o DinoXmlParser.o DinoXmlScanner.o DinoTools.o DinoLineBuffer.o System.o QuadTreeNM.o QuadTreeNodeNM.o Constraint.o MultilevelGraph.o graphinfodialog.o tablewidgetitemname.o changenodedepthdialog.o qrc_images.o moc_graphlayoutworker.o moc_mainwindow.o moc_graphicsviewzoom.o moc_settingsdialog.o moc_mygraphicsview.o moc_mygraphicsscene.o moc_aboutdialog.o moc_enteroneblastquerydialog.o moc_blastquery.o moc_blastsearchdialog.o moc_infotextwidget.o moc_assemblygraph.o moc_verticalscrollarea.o moc_myprogressdialog.o moc_nodewidthvisualaid.o moc_verticallabel.o moc_mytablewidget.o moc_buildblastdatabaseworker.o moc_colourbutton.o moc_runblastsearchworker.o moc_pathspecifydialog.o moc_querypathspushbutton.o moc_querypathsdialog.o moc_blasthitfiltersdialog.o moc_changenodenamedialog.o moc_querypathsequencecopybutton.o moc_graphinfodialog.o moc_changenodedepthdialog.o -L/usr/lib -lQt5Svg -L/home/gbonilla/Software/BioTools/Anaconda/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread ClusterGraphAttributes.o: In functionvoid std::cxx11::basic_string<char, std::char_traits, std::allocator >::_M_construct<char>(char, char*, std::forward_iterator_tag) [clone .isra.87]': ClusterGraphAttributes.cpp:(.text+0x109): undefined reference to `std::cxx11::basic_string<char, std::char_traits, std::allocator >::_M_create(unsigned long&, unsigned long)' ClusterGraphAttributes.o: In function ogdf::ClusterGraphAttributes::writeOGML(std::ostream&)': ClusterGraphAttributes.cpp:(.text+0x7404): undefined reference toVTT for std::cxx11::basic_ostringstream<char, std::char_traits, std::allocator >' ClusterGraphAttributes.cpp:(.text+0x7429): undefined reference to `vtable for std::cxx11::basic_ostringstream<char, std::char_traits, std::allocator >' ClusterGraphAttributes.cpp:(.text+0x7481): undefined reference to vtable for std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >' ClusterGraphAttributes.cpp:(.text+0x74aa): undefined reference tovtable for std::cxx11::basic_stringbuf<char, std::char_traits, std::allocator >' ClusterGraphAttributes.cpp:(.text+0x7564): undefined reference to `vtable for std::cxx11::basic_ostringstream<char, std::char_traits, std::allocator >' ClusterGraphAttributes.cpp:(.text+0x75bc): undefined reference to vtable for std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >' ClusterGraphAttributes.cpp:(.text+0x75e5): undefined reference tovtable for std::cxx11::basic_stringbuf<char, std::char_traits, std::allocator >' ClusterGraphAttributes.cpp:(.text+0x82c3): undefined reference to `std::cxx11::basic_string<char, std::char_traits, std::allocator >::swap(std::cxx11::basic_string<char, std::char_traits, std::allocator >&)' ClusterGraphAttributes.cpp:(.text+0x840a): undefined reference to `vtable for std::cxx11::basic_ostringstream<char, std::char_traits, std::allocator >' ClusterGraphAttributes.cpp:(.text+0x8423): undefined reference to vtable for std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >' ClusterGraphAttributes.cpp:(.text+0x8435): undefined reference tovtable for std::cxx11::basic_stringbuf<char, std::char_traits, std::allocator >' ClusterGraphAttributes.cpp:(.text+0x847e): undefined reference to `VTT for std::cxx11::basic_ostringstream<char, std::char_traits, std::allocator >' ClusterGraphAttributes.cpp:(.text+0x84ba): undefined reference to vtable for std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >' ClusterGraphAttributes.cpp:(.text+0x84d3): undefined reference tovtable for std::cxx11::basic_ostringstream<char, std::char_traits, std::allocator >' ClusterGraphAttributes.cpp:(.text+0x84e5): undefined reference to `vtable for std::cxx11::basic_stringbuf<char, std::char_traits, std::allocator >' ClusterGraphAttributes.cpp:(.text+0x8936): undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::swap(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)' ClusterGraphAttributes.cpp:(.text+0x89a6): undefined reference tostd::cxx11::basic_string<char, std::char_traits, std::allocator >::_M_assign(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)' ClusterGraphAttributes.cpp:(.text+0x89d2): undefined reference to std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_ostringstream()' ClusterGraphAttributes.cpp:(.text+0x89da): undefined reference tostd::cxx11::basic_ostringstream<char, std::char_traits, std::allocator >::~basic_ostringstream()' ClusterGraphAttributes.o: In function `std::cxx11::basic_stringbuf<char, std::char_traits, std::allocator >::~basic_stringbuf()': ClusterGraphAttributes.cpp:(.text._ZNSt7cxx1115basic_stringbufIcSt11char_traitsIcESaIcEED2Ev[_ZNSt7cxx1115basic_stringbufIcSt11char_traitsIcESaIcEED5Ev]+0x3): undefined reference to vtable for std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >' ClusterGraphAttributes.o: In functionstd::cxx11::basic_stringbuf<char, std::char_traits, std::allocator >::~basic_stringbuf()': ClusterGraphAttributes.cpp:(.text._ZNSt7cxx1115basic_stringbufIcSt11char_traitsIcESaIcEED0Ev[_ZNSt7cxx1115basic_stringbufIcSt11char_traitsIcESaIcEED5Ev]+0x3): undefined reference to `vtable for std::cxx11::basic_stringbuf<char, std::char_traits, std::allocator >' NMM.o: In function ogdf::NMM::init_binko(int)': NMM.cpp:(.text+0x709d): undefined reference tocxa_throw_bad_array_new_length' NMM.o: In function ogdf::NMM::form_multipole_expansion_of_subtree(ogdf::NodeArray<ogdf::NodeAttributes>&, ogdf::QuadTreeNM&, ogdf::List<ogdf::QuadTreeNodeNM*>&)': NMM.cpp:(.text+0xb0e4): undefined reference to__cxa_throw_bad_array_new_length' NMM.cpp:(.text+0xb0fc): undefined reference to `cxa_throw_bad_array_new_length' simple_graph_alg.o: In function ogdf::topologicalNumbering(ogdf::Graph const&, ogdf::NodeArray<int>&)': simple_graph_alg.cpp:(.text+0x20da): undefined reference tocxa_throw_bad_array_new_length' simple_graph_alg.o: In function ogdf::strongComponents(ogdf::Graph const&, ogdf::NodeArray<int>&)': simple_graph_alg.cpp:(.text+0x3473): undefined reference to__cxa_throw_bad_array_new_length' simple_graph_alg.o:simple_graph_alg.cpp:(.text+0x3783): more undefined references to `cxa_throw_bad_array_new_length' follow collect2: error: ld returned 1 exit status Makefile:603: recipe for target 'Bandage' failed make: *** [Bandage] Error 1 `

apblair commented 7 years ago

I am having the same issue on my Ubuntu 16.04 vm. Have you been able to fix this?