PaddlePaddle / models

Officially maintained, supported by PaddlePaddle, including CV, NLP, Speech, Rec, TS, big models and so on.
Apache License 2.0
6.91k stars 2.91k forks source link

Make gru_compute.cc.o Error!!! #4977

Open Noboru-Chen opened 3 years ago

Noboru-Chen commented 3 years ago

What's wrong with this and how can I fix it?

HW: Jetson Nano Platform: Ubuntu 18.04 image from NVIDIA official site.

Based on Step 2-6 of the guideline I got below error again and again.

[ 41%] Building CXX object paddle/fluid/operators/math/CMakeFiles/gru_compute.dir/gru_compute.cc.o /home/.../paddle/paddle/fluid/operators/math/gru_compute.cc: In instantiation of ‘static void paddle::operators::math::GRUUnitFunctor<paddle::platform::CPUDeviceContext, T>::compute(const paddle::platform::CPUDeviceContext&, paddle::operators::math::GRUMetaValue, int, int, paddle::operators::math::detail::ActivationType, paddle::operators::math::detail::ActivationType, bool) [with T = float]’: /home/.../paddle/paddle/fluid/operators/math/gru_compute.cc:197:17: required from here /home/.../paddle/paddle/fluid/operators/math/gru_compute.cc:55:33: error: the compiler can assume that the address of ‘context’ will never be NULL [-Werror=address] detail::forward_final_output(detail::forward::gru_finalOutput(), value,

                                  frame_size, batch_size, active_node,
                              origin_mode, &context);
                              ~~~~~~~~~~~~~~~~~~~~~~

...... cc1plus: all warnings being treated as errors paddle/fluid/operators/math/CMakeFiles/gru_compute.dir/build.make:81: recipe for target 'paddle/fluid/operators/math/CMakeFiles/gru_compute.dir/gru_compute.cc.o' failed make[2]: [paddle/fluid/operators/math/CMakeFiles/gru_compute.dir/gru_compute.cc.o] Error 1 CMakeFiles/Makefile2:62115: recipe for target 'paddle/fluid/operators/math/CMakeFiles/gru_compute.dir/all' failed make[1]: [paddle/fluid/operators/math/CMakeFiles/gru_compute.dir/all] Error 2 Makefile:148: recipe for target 'all' failed make: *** [all] Error 2 ...@...-desktop:~/paddle/build$

MissPenguin commented 3 years ago

We need some time to repeat this bug and check out the problem, please wait and we will reply you as soon as possible.