qq_38610908 2021-09-24 20:33 采纳率: 50%
浏览 311
已结题

安装fmt库时,make时报错

/code/fmt/build$ make
[  1%] Building CXX object CMakeFiles/fmt.dir/src/format.cc.o
In file included from /home/weimeng/code/fmt/include/fmt/format-inl.h:29:0,
                 from /home/weimeng/code/fmt/src/format.cc:8:
/home/weimeng/code/fmt/include/fmt/format.h: In instantiation of ‘constexpr Char fmt::v8::detail::sign(Sign) [with Char = char; Sign = unsigned char]’:
/home/weimeng/code/fmt/include/fmt/format.h:1674:41:   required from ‘fmt::v8::detail::write_nonfinite(OutputIt, bool, fmt::v8::basic_format_specs<Char>, const fmt::v8::detail::float_specs&)::<lambda(fmt::v8::detail::reserve_iterator<OutputIt>)> [with Char = char; OutputIt = fmt::v8::appender; fmt::v8::detail::reserve_iterator<OutputIt> = fmt::v8::appender]’
/home/weimeng/code/fmt/include/fmt/format.h:1675:27:   required from ‘struct fmt::v8::detail::write_nonfinite(OutputIt, bool, fmt::v8::basic_format_specs<Char>, const fmt::v8::detail::float_specs&) [with Char = char; OutputIt = fmt::v8::appender]::<lambda(fmt::v8::detail::reserve_iterator<fmt::v8::appender>)>’
/home/weimeng/code/fmt/include/fmt/format.h:1673:22:   required from ‘OutputIt fmt::v8::detail::write_nonfinite(OutputIt, bool, fmt::v8::basic_format_specs<Char>, const fmt::v8::detail::float_specs&) [with Char = char; OutputIt = fmt::v8::appender]’
/home/weimeng/code/fmt/include/fmt/format.h:2027:27:   required from ‘OutputIt fmt::v8::detail::write(OutputIt, T) [with Char = char; OutputIt = fmt::v8::appender; T = float; typename std::enable_if<fmt::v8::detail::is_fast_float<T>::value, int>::type <anonymous> = 0]’
/home/weimeng/code/fmt/include/fmt/format.h:2161:23:   required from ‘fmt::v8::detail::default_arg_formatter<Char>::iterator fmt::v8::detail::default_arg_formatter<Char>::operator()(T) [with T = float; Char = char; fmt::v8::detail::default_arg_formatter<Char>::iterator = fmt::v8::appender]’
/home/weimeng/code/fmt/include/fmt/core.h:1538:15:   required from ‘decltype (vis(0)) fmt::v8::visit_format_arg(Visitor&&, const fmt::v8::basic_format_arg<Context>&) [with Visitor = fmt::v8::detail::default_arg_formatter<char>; Context = fmt::v8::basic_format_context<fmt::v8::appender, char>; decltype (vis(0)) = fmt::v8::appender]’
/home/weimeng/code/fmt/include/fmt/format.h:2887:21:   required fromvoid fmt::v8::detail::vformat_to(fmt::v8::detail::buffer<T>&, fmt::v8::basic_string_view<Char>, fmt::v8::basic_format_args<fmt::v8::basic_format_context<typename std::conditional<std::is_same<typename fmt::v8::type_identity<T>::type, char>::value, fmt::v8::appender, std::back_insert_iterator<fmt::v8::detail::buffer<typename fmt::v8::type_identity<T>::type> > >::type, typename fmt::v8::type_identity<T>::type> >, fmt::v8::detail::locale_ref) [with Char = char; typename fmt::v8::type_identity<T>::type = char; typename std::conditional<std::is_same<typename fmt::v8::type_identity<T>::type, char>::value, fmt::v8::appender, std::back_insert_iterator<fmt::v8::detail::buffer<typename fmt::v8::type_identity<T>::type> > >::type = fmt::v8::appender]’
/home/weimeng/code/fmt/include/fmt/format-inl.h:2594:39:   required from here
/home/weimeng/code/fmt/include/fmt/format.h:913:3: error: static assertion failed: 
   static_assert(std::is_same<Sign, sign_t>::value, "");
   ^
/home/weimeng/code/fmt/include/fmt/format.h:1309:20: error: ‘OutputIt fmt::v8::detail::write_padded(OutputIt, const fmt::v8::basic_format_specs<Char>&, size_t, size_t, F&&) [with fmt::v8::align::type align = (fmt::v8::align::type)1u; OutputIt = fmt::v8::appender; Char = char; F = fmt::v8::detail::write_bytes(OutputIt, fmt::v8::string_view, const fmt::v8::basic_format_specs<Char>&) [with fmt::v8::align::type align = (fmt::v8::align::type)1u; Char = char; OutputIt = fmt::v8::appender; fmt::v8::string_view = fmt::v8::basic_string_view<char>]::<lambda(fmt::v8::detail::reserve_iterator<fmt::v8::appender>)>&; size_t = long unsigned int]’, declared using local type ‘fmt::v8::detail::write_bytes(OutputIt, fmt::v8::string_view, const fmt::v8::basic_format_specs<Char>&) [with fmt::v8::align::type align = (fmt::v8::align::type)1u; Char = char; OutputIt = fmt::v8::appender; fmt::v8::string_view = fmt::v8::basic_string_view<char>]::<lambda(fmt::v8::detail::reserve_iterator<fmt::v8::appender>)>’, is used but never defined [-fpermissive]
 FMT_CONSTEXPR auto write_padded(OutputIt out,
                    ^
/home/weimeng/code/fmt/include/fmt/format.h:1309:20: error: ‘OutputIt fmt::v8::detail::write_padded(OutputIt, const fmt::v8::basic_format_specs<Char>&, size_t, size_t, F&&) [with fmt::v8::align::type align = (fmt::v8::align::type)1u; OutputIt = fmt::v8::appender; Char = char; F = fmt::v8::detail::write_nonfinite(OutputIt, bool, fmt::v8::basic_format_specs<Char>, const fmt::v8::detail::float_specs&) [with Char = char; OutputIt = fmt::v8::appender]::<lambda(fmt::v8::detail::reserve_iterator<fmt::v8::appender>)>&; size_t = long unsigned int]’, declared using local type ‘fmt::v8::detail::write_nonfinite(OutputIt, bool, fmt::v8::basic_format_specs<Char>, const fmt::v8::detail::float_specs&) [with Char = char; OutputIt = fmt::v8::appender]::<lambda(fmt::v8::detail::reserve_iterator<fmt::v8::appender>)>’, is used but never defined [-fpermissive]
CMakeFiles/fmt.dir/build.make:62: recipe for target 'CMakeFiles/fmt.dir/src/format.cc.o' failed
make[2]: *** [CMakeFiles/fmt.dir/src/format.cc.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/fmt.dir/all' failed
make[1]: *** [CMakeFiles/fmt.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2


```c++


```

  • 写回答

2条回答 默认 最新

查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 10月3日
  • 已采纳回答 9月25日
  • 赞助了问题酬金 9月24日
  • 创建了问题 9月24日

悬赏问题

  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作