opensim-core
opensim-core copied to clipboard
error: static_assert failed due to requirement 'detail::count() == 0' "passing views as lvalues is disallowed"
Build fails:
--- OpenSim/Moco/CMakeFiles/osimMoco.dir/MocoGoal/MocoJointReactionGoal.cpp.o ---
In file included from /disk-samsung/freebsd-ports/science/opensim-core/work/opensim-core-4.3.1/OpenSim/Moco/MocoGoal/MocoJointReactionGoal.cpp:19:
In file included from /disk-samsung/freebsd-ports/science/opensim-core/work/opensim-core-4.3.1/OpenSim/Moco/MocoGoal/MocoJointReactionGoal.h:21:
In file included from /disk-samsung/freebsd-ports/science/opensim-core/work/opensim-core-4.3.1/OpenSim/Moco/MocoGoal/MocoGoal.h:23:
In file included from /disk-samsung/freebsd-ports/science/opensim-core/work/opensim-core-4.3.1/OpenSim/Common/Object.h:39:
In file included from /disk-samsung/freebsd-ports/science/opensim-core/work/opensim-core-4.3.1/OpenSim/Common/PropertySet.h:35:
In file included from /disk-samsung/freebsd-ports/science/opensim-core/work/opensim-core-4.3.1/OpenSim/Common/ArrayPtrs.h:33:
In file included from /disk-samsung/freebsd-ports/science/opensim-core/work/opensim-core-4.3.1/OpenSim/Common/Exception.h:33:
In file included from /usr/local/include/spdlog/common.h:45:
In file included from /usr/local/include/spdlog/fmt/fmt.h:27:
/usr/local/include/fmt/core.h:3058:5: error: static_assert failed due to requirement 'detail::count() == 0' "passing views as lvalues is disallowed"
static_assert(
^
/disk-samsung/freebsd-ports/science/opensim-core/work/opensim-core-4.3.1/OpenSim/Common/Logger.h:156:50: note: in instantiation of function template specialization 'fmt::basic_format_string<char, const fmt::join_view<std::__wrap_iter<std::string *>, std::__wrap_iter<std::string *>> &>::basic_format_string<fmt::basic_string_view<char>, 0>' requested here
getCoutLogger().log(spdlog::level::info, fmt, args...);
^
/disk-samsung/freebsd-ports/science/opensim-core/work/opensim-core-4.3.1/OpenSim/Common/Logger.h:233:13: note: in instantiation of function template specialization 'OpenSim::Logger::cout<fmt::join_view<std::__wrap_iter<std::string *>, std::__wrap_iter<std::string *>>>' requested here
Logger::cout(fmt, args...);
^
/disk-samsung/freebsd-ports/science/opensim-core/work/opensim-core-4.3.1/OpenSim/Moco/MocoGoal/MocoJointReactionGoal.cpp:165:5: note: in instantiation of function template specialization 'OpenSim::log_cout<fmt::join_view<std::__wrap_iter<std::string *>, std::__wrap_iter<std::string *>>>' requested here
log_cout(" reaction measures: {}", fmt::join(measures, ", "));
^
In file included from /disk-samsung/freebsd-ports/science/opensim-core/work/opensim-core-4.3.1/OpenSim/Moco/MocoGoal/MocoJointReactionGoal.cpp:19:
In file included from /disk-samsung/freebsd-ports/science/opensim-core/work/opensim-core-4.3.1/OpenSim/Moco/MocoGoal/MocoJointReactionGoal.h:21:
In file included from /disk-samsung/freebsd-ports/science/opensim-core/work/opensim-core-4.3.1/OpenSim/Moco/MocoGoal/MocoGoal.h:23:
In file included from /disk-samsung/freebsd-ports/science/opensim-core/work/opensim-core-4.3.1/OpenSim/Common/Object.h:39:
In file included from /disk-samsung/freebsd-ports/science/opensim-core/work/opensim-core-4.3.1/OpenSim/Common/PropertySet.h:35:
In file included from /disk-samsung/freebsd-ports/science/opensim-core/work/opensim-core-4.3.1/OpenSim/Common/ArrayPtrs.h:33:
In file included from /disk-samsung/freebsd-ports/science/opensim-core/work/opensim-core-4.3.1/OpenSim/Common/Exception.h:33:
In file included from /usr/local/include/spdlog/common.h:45:
In file included from /usr/local/include/spdlog/fmt/fmt.h:27:
/usr/local/include/fmt/core.h:3058:5: error: static_assert failed due to requirement 'detail::count() == 0' "passing views as lvalues is disallowed"
static_assert(
^
/disk-samsung/freebsd-ports/science/opensim-core/work/opensim-core-4.3.1/OpenSim/Common/Logger.h:156:50: note: in instantiation of function template specialization 'fmt::basic_format_string<char, const fmt::join_view<std::__wrap_iter<double *>, std::__wrap_iter<double *>> &>::basic_format_string<fmt::basic_string_view<char>, 0>' requested here
getCoutLogger().log(spdlog::level::info, fmt, args...);
^
/disk-samsung/freebsd-ports/science/opensim-core/work/opensim-core-4.3.1/OpenSim/Common/Logger.h:233:13: note: in instantiation of function template specialization 'OpenSim::Logger::cout<fmt::join_view<std::__wrap_iter<double *>, std::__wrap_iter<double *>>>' requested here
Logger::cout(fmt, args...);
^
/disk-samsung/freebsd-ports/science/opensim-core/work/opensim-core-4.3.1/OpenSim/Moco/MocoGoal/MocoJointReactionGoal.cpp:167:5: note: in instantiation of function template specialization 'OpenSim::log_cout<fmt::join_view<std::__wrap_iter<double *>, std::__wrap_iter<double *>>>' requested here
log_cout(" reaction weights: {}", fmt::join(m_measureWeights, ", "));
^
1 warning and 2 errors generated.
*** [OpenSim/Moco/CMakeFiles/osimMoco.dir/MocoGoal/MocoJointReactionGoal.cpp.o] Error code 1
make[4]: stopped in /disk-samsung/freebsd-ports/science/opensim-core/work/.build
--- OpenSim/Moco/CMakeFiles/osimMoco.dir/MocoGoal/MocoInitialActivationGoal.cpp.o ---
1 warning generated.
--- OpenSim/Moco/CMakeFiles/osimMoco.dir/MocoGoal/MocoOutputGoal.cpp.o ---
1 warning generated.
--- OpenSim/Moco/CMakeFiles/osimMoco.dir/MocoGoal/MocoAccelerationTrackingGoal.cpp.o ---
1 warning generated.
--- OpenSim/Moco/CMakeFiles/osimMoco.dir/MocoGoal/MocoAngularVelocityTrackingGoal.cpp.o ---
1 warning generated.
--- OpenSim/Moco/CMakeFiles/osimMoco.dir/MocoGoal/MocoTranslationTrackingGoal.cpp.o ---
1 warning generated.
1 error
Version: 4.3.1 clang-12 OS: FreeBSD 13