Paddle-Lite icon indicating copy to clipboard operation
Paddle-Lite copied to clipboard

Compilation failed on latest archlinux

Open mio-19 opened this issue 2 years ago • 4 comments

Steps to reproduce

~/Paddle-Lite ((v2.10)) [2]> ./lite/tools/build_fpga.sh

Error message

/home/user/Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_file.cc:97:54:   required from here
/usr/include/c++/11.2.0/bits/stl_tree.h:770:15: error: static assertion failed: comparison object must be invocable as const
  770 |               is_invocable_v<const _Compare&, const _Key&, const _Key&>,
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11.2.0/bits/stl_tree.h:770:15: note: ‘std::is_invocable_v<const google::protobuf::compiler::java::{anonymous}::FieldDescriptorCompare&, const google::protobuf::FieldDescriptor* const&, const google::protobuf::FieldDescriptor* const&>’ evaluates to false

mio-19 avatar Mar 19 '22 05:03 mio-19

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网文档常见问题历史Issue来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the APIFAQ and Github Issue to get the answer.Have a nice day!

paddle-bot-old[bot] avatar Mar 19 '22 05:03 paddle-bot-old[bot]

这个错误看起来是第三方库下载不全一引入的,建议remove third-party,重新build试试

chenjiaoAngel avatar Mar 21 '22 02:03 chenjiaoAngel

也遇到了这个问题,有解决方案吗?编译前已经删除了third-party目录

mike-2020 avatar Jun 13 '22 00:06 mike-2020

不能使用太新的linux版本,ubuntu 18.04/gcc 7.5编译通过,使用ubuntu 22.04/gcc 11.2不行。

rise-worlds avatar Aug 29 '22 06:08 rise-worlds