Armlinux编译Paddle-Lite, build_python=ON到99%失败
Created by: peterlhj
树莓派4B,系统:Linux raspberrypi 4.19.57-v7l+ #1244 (closed) SMP Thu Jul 4 18:48:07 BST 2019 armv7l GNU/Linux cmake version 3.13.4 编译命令:./lite/tools/build.sh --arm_os=armlinux --arm_abi=armv7hf --arm_lang=gcc --build_python=ON tiny_publish
[ 99%] Linking CXX static library libpaddle_api_light.a [ 99%] Built target paddle_api_light Scanning dependencies of target lite_pybind Scanning dependencies of target bundle_light_api [ 99%] Bundling paddle_api_light_bundled [ 99%] Building CXX object lite/api/python/pybind/CMakeFiles/lite_pybind.dir/pybind.cc.o [ 99%] Built target bundle_light_api In file included from /home/pi/paddle/Paddle-Lite/lite/api/light_api.h:28, from /home/pi/paddle/Paddle-Lite/lite/api/python/pybind/pybind.cc:32: /home/pi/paddle/Paddle-Lite/lite/core/context.h: In member function ‘paddle::lite::ARMContext& paddle::lite::Context<(paddle::lite_api::TargetType)4>::operator=(const ARMContext&)’: /home/pi/paddle/Paddle-Lite/lite/core/context.h:121:49: warning: no return statement in function returning non-void [-Wreturn-type] ARMContext& operator=(const ARMContext& ctx) {} ^ /home/pi/paddle/Paddle-Lite/lite/api/python/pybind/pybind.cc: At global scope: /home/pi/paddle/Paddle-Lite/lite/api/python/pybind/pybind.cc:51:17: error: ‘paddle::lite_api::OptBase’ has not been declared using lite_api::OptBase; ^~~~~~~ make[3]: *** [lite/api/python/pybind/CMakeFiles/lite_pybind.dir/build.make:63:lite/api/python/pybind/CMakeFiles/lite_pybind.dir/pybind.cc.o] 错误 1 make[2]: *** [CMakeFiles/Makefile2:8971:lite/api/python/pybind/CMakeFiles/lite_pybind.dir/all] 错误 2 make[2]: *** 正在等待未完成的任务.... [ 99%] Built target paddle_light_api_shared make[1]: *** [CMakeFiles/Makefile2:165:lite/CMakeFiles/publish_inference.dir/rule] 错误 2 make: *** [Makefile:131:publish_inference] 错误 2 pi@raspberrypi:~/paddle/Paddle-Lite $