arm-linux-gnueabihf-g++ GNU 4.8.2 编译不通过
Created by: MiracleCY
官方5.3.1版arm编译器可以编过,但是我的硬件环境是4.8.2版本且目前无法升级,请问以下报错如何解决,是否能用低版本编译器成功编译...
用我的编译器执行./lite/tools/build.sh --build_extra=OFF --arm_os=armlinux --arm_abi=armv7hf --arm_lang=gcc --build_extra=OFF tiny_publish 编译失败
-- Found Paddle host system: ubuntu, version: 16.04 -- Found Paddle host system's CPU: 2 cores -- cytest1 HOST_C_COMPILER: /usr/bin/gcc -- cytest2 HOST_CXX_COMPILER: /usr/bin/g++ -- Found host C compiler: /usr/bin/gcc -- Found host CXX compiler: /usr/bin/g++ -- Lite ARM Compile armlinux with armv7hf gcc -- The CXX compiler identification is GNU 4.8.2 -- The C compiler identification is GNU 4.8.2 -- Check for working CXX compiler: /home/cy/work_cy/qrlSDK/sdkinstall/gcc-linaro-arm-linux-gnueabihf-4.8-2013.08_linux/bin/arm-linux-gnueabihf-g++ -- Check for working CXX compiler: /home/cy/work_cy/qrlSDK/sdkinstall/gcc-linaro-arm-linux-gnueabihf-4.8-2013.08_linux/bin/arm-linux-gnueabihf-g++ -- works
----报错信息如下: [ 6%] Building CXX object lite/model_parser/naive_buffer/CMakeFiles/nb_op_desc.dir/op_desc.cc.o /home/cy/work_cy/Paddle-Lite/Paddle-Lite-2.6.1/lite/backends/arm/math/gemm_prepacked_int8.cc: In function ‘paddle::lite::arm::math::gemm_int8_kernel(signed char const*, signed char const*&, float const*, signed char*&, signed char*&, signed char*&, signed char*&, float const*, bool, int, int)void’: /home/cy/work_cy/Paddle-Lite/Paddle-Lite-2.6.1/lite/backends/arm/math/gemm_prepacked_int8.cc:1848:27: error: can’t find a register in class ‘LO_REGS’ while reloading ‘asm’ "memory"); ^ /home/cy/work_cy/Paddle-Lite/Paddle-Lite-2.6.1/lite/backends/arm/math/gemm_prepacked_int8.cc:1848:27: error: ‘asm’ operand has impossible constraints lite/api/CMakeFiles/paddle_light_api_shared.dir/build.make:158: recipe for target 'lite/api/CMakeFiles/paddle_light_api_shared.dir//backends/arm/math/gemm_prepacked_int8.cc.o' failed make[3]: *** [lite/api/CMakeFiles/paddle_light_api_shared.dir//backends/arm/math/gemm_prepacked_int8.cc.o] Error 1 CMakeFiles/Makefile2:8503: 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]: *** 正在等待未完成的任务....