arm-linux-gnueabihf-gcc交叉编译tiny_publish报错
Created by: MChinCY
Ubuntu 16.04 64位 按照官方方法编译报错
./lite/tools/build.sh
--arm_os=armlinux
--arm_abi=armv7hf
--arm_lang=gcc
tiny_publish
报错信息如下: [ 15%] Building CXX object lite/model_parser/naive_buffer/CMakeFiles/nb_op_desc.dir/op_desc.cc.o [ 15%] Building CXX object lite/api/CMakeFiles/paddle_light_api_shared.dir//backends/arm/math/lrn.cc.o /home/cy/work_cy/Paddle-Lite-develop/lite/backends/arm/math/layout.cc: In function ‘paddle::lite::arm::math::NCHW2NHWC(int, int, int, signed char const*, signed char*)void [clone ._omp_fn.1]’: /home/cy/work_cy/Paddle-Lite-develop/lite/backends/arm/math/layout.cc:377:63: error: can’t find a register in class ‘LO_REGS’ while reloading ‘asm’ : "cc", "memory", "q0", "q1", "q2", "q3"); ^ /home/cy/work_cy/Paddle-Lite-develop/lite/backends/arm/math/layout.cc:377:63: error: ‘asm’ operand has impossible constraints lite/api/CMakeFiles/paddle_light_api_shared.dir/build.make:734: recipe for target 'lite/api/CMakeFiles/paddle_light_api_shared.dir//backends/arm/math/layout.cc.o' failed make[3]: *** [lite/api/CMakeFiles/paddle_light_api_shared.dir/__/backends/arm/math/layout.cc.o] Error 1 make[3]: *** 正在等待未完成的任务.... Scanning dependencies of target nb_program_desc [ 16%] Building CXX object lite/model_parser/naive_buffer/CMakeFiles/nb_program_desc.dir/program_desc.cc.o Scanning dependencies of target nb_var_desc [ 16%] Building CXX object lite/model_parser/naive_buffer/CMakeFiles/nb_var_desc.dir/var_desc.cc.o CMakeFiles/Makefile2:7772: recipe for target 'lite/api/CMakeFiles/paddle_light_api_shared.dir/all' failed make[2]: *** [lite/api/CMakeFiles/paddle_light_api_shared.dir/all] Error 2 make[2]: *** 正在等待未完成的任务.... [ 16%] Linking CXX static library libnb_op_desc.a [ 16%] Built target nb_op_desc [ 16%] Linking CXX static library libnb_var_desc.a [ 16%] Built target nb_var_desc [ 16%] Linking CXX static library libnb_program_desc.a [ 16%] Built target nb_program_desc CMakeFiles/Makefile2:277: recipe for target 'lite/CMakeFiles/publish_inference.dir/rule' failed make[1]: *** [lite/CMakeFiles/publish_inference.dir/rule] Error 2 Makefile:131: recipe for target 'publish_inference' failed make: *** [publish_inference] Error 2