Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

【Linux MacOS】多平台编译错误

Open QianQian-L opened this issue 4 years ago • 4 comments

  • 标题:多平台编译错误
  • 版本、环境信息:    1)PaddlePaddle版本:develop    2)CPU:APPLE M1,AMD r4800h,    3)GPU:无    4)系统环境:Mac OS 12,ubuntu 18.04、20.04,Python3.7、3.8、3.9

报错信息

In file included from /usr/include/c++/9/cassert:44,
                 from /home/qianqian/CLionProjects/Paddle/paddle/phi/core/utils/type_registry.h:17,
                 from /home/qianqian/CLionProjects/Paddle/paddle/phi/core/tensor_base.h:23,
                 from /home/qianqian/CLionProjects/Paddle/paddle/phi/core/meta_tensor.h:21,
                 from /home/qianqian/CLionProjects/Paddle/paddle/phi/core/infermeta_utils.h:26,
                 from /home/qianqian/CLionProjects/Paddle/paddle/phi/core/compat/op_utils.h:22,
                 from /home/qianqian/CLionProjects/Paddle/paddle/phi/core/compat/op_utils.cc:15:
/home/qianqian/CLionProjects/Paddle/paddle/phi/core/utils/type_registry.h: In instantiation of ‘phi::TypeInfo<BaseT> phi::TypeRegistry<BaseT>::RegisterType(const string&) [with BaseT = phi::TensorBase; std::string = std::__cxx11::basic_string<char>]’:
/home/qianqian/CLionProjects/Paddle/paddle/phi/core/utils/type_registry.h:72:62:   required from ‘phi::TypeInfo<BaseT> phi::RegisterStaticType(const string&) [with BaseT = phi::TensorBase; std::string = std::__cxx11::basic_string<char>]’
/home/qianqian/CLionProjects/Paddle/paddle/phi/core/utils/type_registry.h:82:30:   required from ‘const phi::TypeInfo<phi::TensorBase> phi::TypeInfo<phi::TensorBase>::kUnknownType’
/home/qianqian/CLionProjects/Paddle/paddle/phi/core/tensor_base.h:79:57:   required from here
/home/qianqian/CLionProjects/Paddle/paddle/phi/core/utils/type_registry.h:53:24: error: comparison of integer expressions of different signedness: ‘std::vector<std::__cxx11::basic_string<char> >::size_type’ {aka ‘long unsigned int’} and ‘signed char’ [-Werror=sign-compare]
   53 |   assert(names_.size() < std::numeric_limits<int8_t>::max());
      |          ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

以及

In file included from /home/qianqian/CLionProjects/Paddle/paddle/phi/core/compat/op_utils.cc:15:
/home/qianqian/CLionProjects/Paddle/paddle/phi/core/compat/op_utils.h: In lambda function:
/home/qianqian/CLionProjects/Paddle/paddle/phi/core/compat/op_utils.h:145:65: error: implicitly-declared ‘phi::KernelSignature::KernelSignature(const phi::KernelSignature&)’ is deprecated [-Werror=deprecated-copy]
  145 |         return DefaultKernelSignatureMap::Instance().Get(op_type);
      |                                                                 ^
In file included from /home/qianqian/CLionProjects/Paddle/paddle/phi/core/compat/op_utils.h:20,
                 from /home/qianqian/CLionProjects/Paddle/paddle/phi/core/compat/op_utils.cc:15:
/home/qianqian/CLionProjects/Paddle/paddle/phi/core/compat/arg_map_context.h:65:20: note: because ‘phi::KernelSignature’ has user-provided ‘phi::KernelSignature& phi::KernelSignature::operator=(const phi::KernelSignature&)’
   65 |   KernelSignature& operator=(const KernelSignature& other) {
      |                    ^~~~~~~~

QianQian-L avatar Mar 15 '22 09:03 QianQian-L

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

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 API,FAQ,Github Issue and AI community to get the answer.Have a nice day!

paddle-bot-old avatar Mar 15 '22 09:03 paddle-bot-old

您好,现在对M1上编译的支持可能还不完善,您可以直接使用官网发布的包直接安装PaddlePaddle,或者使用官网提供的docker 镜像,在docker容器内进行编译。

感谢关注~

LiuChiachi avatar Mar 15 '22 10:03 LiuChiachi

你好,现在Paddle已经有编译好的安装包了,请问你在什么任务场景下需要编译Paddle呀?比如是需要新增算子、还是需要修改飞桨源代码,或者有什么其他的用途呢?

yang131313 avatar May 11 '22 05:05 yang131313

Since you haven't replied for more than a year, we have closed this issue/pr. If the problem is not solved or there is a follow-up one, please reopen it at any time and we will continue to follow up. 由于您超过一年未回复,我们将关闭这个issue/pr。 若问题未解决或有后续问题,请随时重新打开,我们会继续跟进。

paddle-bot avatar May 16 '23 06:05 paddle-bot