Closed cameron-jack closed 3 years ago
Which version are you using, and are you trying to install using the recommended procedure (note the --dependencies
option to install.py
).
Octopus version 0.7.0. Yes, I'm trying the recommended procedure. Yes, I'm using --dependencies.
I've also tried removing -Werror from src/CMakeLists.txt.
More specifically from generated/version.hpp:
What OS are you using? Also, can you run
./scripts/install.py --dependencies --clean --verbose > octopus_install_log.txt
and post octopus_install_log.txt
here?
Closing due to inactivity.
Hi. No matter which way (or on what machine) I attempt to install Octopus I'm getting the same errors at compile time in measure.cpp (from calling "scripts/install.py" in this case). I've been able to install and use Octopus once, a couple of months ago, on an Ubuntu machine. Since then I've been totally out of luck so I really hope you can help. Thanks in advance.
``[ 58%] Building CXX object src/CMakeFiles/octopus.dir/core/csr/measures/allele_frequency_bias.cpp.o /home/cameron/octopus/src/core/csr/measures/measure.cpp: In function 'auto octopus::csr::{anonymous}::mean(octopus::csr::Measure::Array<boost::variant<bool, int, long unsigned int, double> >&)': /home/cameron/octopus/src/core/csr/measures/measure.cpp:268:75: error: no matching function for call to 'apply_visitor(octopus::csr::{anonymous}::DivideVisitor, boost::variant<bool, int, long unsigned int, double>)' return boost::apply_visitor(DivideVisitor {values.size()}, sum(values)); ^ In file included from /usr/local/include/boost/variant/apply_visitor.hpp:16, from /usr/local/include/boost/variant/detail/hash_variant.hpp:23, from /usr/local/include/boost/variant/variant.hpp:34, from /usr/local/include/boost/variant.hpp:17, from /home/cameron/octopus/src/core/csr/measures/measure.hpp:13, from /home/cameron/octopus/src/core/csr/measures/measure.cpp:4: /usr/local/include/boost/variant/detail/apply_visitor_unary.hpp:68:1: note: candidate: 'typename Visitor::result_type boost::apply_visitor(Visitor&, Visitable&) [with Visitor = octopus::csr::{anonymous}::DivideVisitor; Visitable = boost::variant<bool, int, long unsigned int, double>; typename Visitor::result_type = boost::variant<bool, int, long unsigned int, double>]'
apply_visitor(Visitor& visitor, Visitable& visitable)
^
~~~~ /usr/local/include/boost/variant/detail/apply_visitor_unary.hpp:68:1: note: conversion of argument 2 would be ill-formed: /home/cameron/octopus/src/core/csr/measures/measure.cpp:268:67: error: cannot bind non-const lvalue reference of type 'boost::variant<bool, int, long unsigned int, double>&' to an rvalue of type 'boost::variant<bool, int, long unsigned int, double>' return boost::apply_visitor(DivideVisitor {values.size()}, sum(values));