Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Python3.6] Build error in eager_py_layer.cc #41134

Closed
pmajchrzak opened this issue Mar 30, 2022 · 3 comments
Closed

[Python3.6] Build error in eager_py_layer.cc #41134

pmajchrzak opened this issue Mar 30, 2022 · 3 comments
Assignees
Labels

Comments

@pmajchrzak
Copy link

Commit: 157c1a2 causes make error.
The error is located in the file: paddle_paddle/paddle/fluid/pybind/eager_py_layer.cc

Error message:

[ 58%] Building CXX object paddle/fluid/pybind/CMakeFiles/paddle_eager.dir/eager_py_layer.cc.o
/repos/paddle_paddle/paddle/fluid/pybind/eager_py_layer.cc:456:50: error: ISO C++ forbids converting a string constant to 'char*' [-Werror=write-strings]
     {nullptr, nullptr, nullptr, nullptr, nullptr}};
                                                  ^
/repos/paddle_paddle/paddle/fluid/pybind/eager_py_layer.cc:456:50: error: ISO C++ forbids converting a string constant to 'char*' [-Werror=write-strings]
/repos/paddle_paddle/paddle/fluid/pybind/eager_py_layer.cc:456:50: error: ISO C++ forbids converting a string constant to 'char*' [-Werror=write-strings]
/repos/paddle_paddle/paddle/fluid/pybind/eager_py_layer.cc:456:50: error: ISO C++ forbids converting a string constant to 'char*' [-Werror=write-strings]
cc1plus: all warnings being treated as errors
paddle/fluid/pybind/CMakeFiles/paddle_eager.dir/build.make:145: recipe for target 'paddle/fluid/pybind/CMakeFiles/paddle_eager.dir/eager_py_layer.cc.o' failed
make[2]: *** [paddle/fluid/pybind/CMakeFiles/paddle_eager.dir/eager_py_layer.cc.o] Error 1
CMakeFiles/Makefile2:473845: recipe for target 'paddle/fluid/pybind/CMakeFiles/paddle_eager.dir/all' failed
make[1]: *** [paddle/fluid/pybind/CMakeFiles/paddle_eager.dir/all] Error 2 

PaddlePaddle CMAKE parameters:

-DCMAKE_BUILD_TYPE=Release -DWITH_GPU=OFF -DWITH_MKLDNN=ON -DWITH_TESTING=ON -DWITH_PROFILER=OFF -DWITH_STYLE_CHECK=OFF -DON_INFER=ON -DWITH_INFERENCE_API_TEST=ON -DPY_VERSION=3.6

CC: @jczaja @wozna @lidanqing-intel

@paddle-bot-old
Copy link

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

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

@baoachun
Copy link
Contributor

Hi @wanghuancoder, Please deal with the compilation error, thank you!

pmajchrzak referenced this issue Mar 30, 2022
* Supported Complex2Real Conversion for Eager Dygraph

* Supported Complex2Real Conversion for Eager Dygraph

* Enabled complex type promotion test for matmul_v2

* pylayer, test=develop

* Fix CI issues

* Support initializing specific grad tensors to zero for selected operators

* finish forward, test=develop

* create grad node finish, test=develop

* Merged adj_edges_ with GradSlotMeta

* Fixed monir issue

* backward finish, start dbg, test=develop

* Adjusted num runs

* Recovered Eager performance tests configurations

* Recovered Eager performance tests configurations

* finish, test=develop

* polish, test=develop

* polish, test=develop

* refine, test=develop

* eager, test=develop

* Adjusted performance tests configurations

* Fixed Minor Issues with performance tests

* [Phi] Fix macro name typo

* support set_materialize_grads, test=develop

* suppotr mark_non_differentiable, test=develop

* support once_differentiable, test=develop

* refine, test=develop

* refine, test=develop

* Moved out Edge from GradSlotMeta

* Fixed issues from merge

* Fixed typo

* Addressed review comments

* Fixed merge issues

* Fixed minor issues

* Fixed minor issue

* refine, test=develop

* refine, test=develop

* refine, test=develop

* Fixed major issues and enabled auto_prune test cases

* Fixed issues from merge

* refine, test=develop

* refine, test=develop

* refine, test=develop

* refine, test=develop

* refine, test=develop

Co-authored-by: jim19930609 <jim19930609@gmail.com>
Co-authored-by: Aurelius84 <zhangliujie@baidu.com>
@lidanqing-intel lidanqing-intel changed the title Build error in eager_py_layer.cc [Python3.6] Build error in eager_py_layer.cc Apr 2, 2022
@lidanqing-intel
Copy link
Contributor

@wozna Hi, does your PR actually fixed this issue already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants