paoloshasta / shasta

De novo assembly from Oxford Nanopore reads.
https://paoloshasta.github.io/shasta/
Other
66 stars 9 forks source link

Fix new missing headers with newer gcc 13.2.0. #20

Closed emollier closed 8 months ago

emollier commented 8 months ago

As seen in Debian bug #1059139, shasta started failing to build from source with gcc 13.2.0, which pushed further the non-transitive inclusion of various standard headers, making their explicit inclusion necessary in the end-developper's source code.

This fixes errors in src/CompactUndirectedGraph.hpp:

/<<PKGBUILDDIR>>/src/CompactUndirectedGraph.hpp:573:14: error: ‘reverse’ is not a member of ‘std’

in src/shortestPath.hpp:

/<<PKGBUILDDIR>>/src/shortestPath.hpp:131:18: error: ‘reverse’ is not a member of ‘std’

and in src/mode3-PathGraph.cpp:

/<<PKGBUILDDIR>>/src/mode3-PathGraph.cpp:677:28: error: ‘bitset’ in namespace ‘std’ does not name a template type
paoloshasta commented 8 months ago

Thank you! That will save me some pain when I switch compilers.