nanoporetech / dorado

Oxford Nanopore's Basecaller
https://nanoporetech.com/
Other
446 stars 54 forks source link

cmake error #736

Closed t100114 closed 2 months ago

t100114 commented 2 months ago

Hello,

I am trying to install dorado v0.6.0 to a new Ubuntu 22.04 machine. I have already installed all Linux dependencies, and then am on the configuration step as mentioned in clone and build section 'cmake --build cmake-build --config Release -j', and I come across the following error.

[  0%] Built target dorado_compat
[  4%] Built target htslib_project
[  4%] Built target dorado_torch_lib
[  6%] Built target streamvbyte
[  7%] Built target edlib
[ 11%] Built target minizip
[ 20%] Built target minimap2
[ 24%] Built target spdlog
[ 26%] Built target vbz
[ 27%] Built target elzip
[ 28%] Built target vbz_hdf_plugin
[ 29%] Built target dorado_pch
[ 40%] Built target dorado_utils
[ 43%] Built target dorado_modbase
[ 48%] Built target dorado_basecall
Consolidate compiler generated dependencies of target dorado_lib
[ 53%] Built target dorado_models_lib
[ 53%] Built target dorado_tests_common
[ 53%] Building CXX object CMakeFiles/dorado_lib.dir/dorado/splitter/myers.cpp.o
/opt/dorado/dorado/splitter/myers.cpp: In function ‘std::vector<dorado::splitter::EdistResult> dorado::splitter::myers_align(std::string_view, std::string_view, std::size_t)’:
/opt/dorado/dorado/splitter/myers.cpp:117:32: error: ‘*(long unsigned int*)((char*)&current_range_end + offsetof(std::optional<long unsigned int>,std::optional<long unsigned int>::<unnamed>.std::_Optional_base<long unsigned int, true, true>::<unnamed>))’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
  117 |     std::optional<std::size_t> current_range_end;
      |                                ^~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
gmake[2]: *** [CMakeFiles/dorado_lib.dir/build.make:718: CMakeFiles/dorado_lib.dir/dorado/splitter/myers.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:466: CMakeFiles/dorado_lib.dir/all] Error 2
gmake: *** [Makefile:166: all] Error 2

Your help would be much appreciated.

HalfPhoton commented 2 months ago

This has been answered here: https://github.com/nanoporetech/dorado/issues/718

Kind regards, Rich

t100114 commented 2 months ago

Oh, so sorry. I didn't notice it. Thank you very much for your quick reply.

t100114 commented 2 months ago

I finished building with gcc-9. Many thanks.