Open clarisDi opened 1 month ago
[99%] Linking CXX static library libpaddle_inference.a [100%] Built target paddle_inference_shared make[2]: 进入目录“/root/桌面/Paddle/build” Merge and generate static lib: libpaddle_inference.a 桌面Syntax error in archive script, line 1 桌面/usr/bin/ar: /root/: file format not recognized make[2]: [paddle/fluid/inference/CMakeFiles/paddle_inference.dir/build.make:784:paddle/fluid/inference/libpaddle_inference.a] 错误 1 make[2]: 正在删除文件“paddle/fluid/inference/libpaddle_inference.a” make[2]: 离开目录“/root/桌面/Paddle/build” Scanning dependencies of target check_symbol make[1]: [CMakeFiles/Makefile2:83288:paddle/fluid/inference/CMakeFiles/paddle_inference.dir/all] 错误 2 make[1]: 正在等待未完成的任务.... make[2]: 离开目录“/root/桌面/Paddle/build” make[2]: 进入目录“/root/桌面/Paddle/build” [100%] Generating .check_symbol make[2]: 离开目录“/root/桌面/Paddle/build” [100%] Built target check_symbol make[1]: 离开目录“/root/桌面/Paddle/build” make: *** [Makefile:130:all] 错误 2
=========================================== paddle/fluid/inference/CMakeFiles/paddle_inference.dir/build.make.784
781 cd /root/桌面/Paddle/build/paddle/fluid/inference && $(CMAKE_COMMAND) -P CMakeFiles/paddle_inference.dir/cmake_clean_target.cmake 782 cd /root/桌面/Paddle/build/paddle/fluid/inference && $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/paddle_inference.dir/link.txt --verbose=$(VERBOSE) 783 @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold "Merge and generate static lib: libpaddle_inference.a" 784 cd /root/桌面/Paddle/build/paddle/fluid/inference && /usr/bin/ar -M < /root/桌面/Paddle/build/paddle/fluid/inference/paddle_inference.mri 785 cd /root/桌面/Paddle/build/paddle/fluid/inference && /usr/bin/ranlib /root/桌面/Paddle/build/paddle/fluid/inference/libpaddle_inference.a
请帮忙,谢谢。
版本&环境信息 银河麒麟v10 aarch64版本 Paddle version: 2.5 Python version: 3.7.9 CMake version: version 3.16.5
VERBOSE=1 cmake --build . 会逐行暴露执行的命令。 一个个执行过去看看断在哪里?
尝试把paddle放在一个纯英文的路径下编译试试?
请提出你的问题 Please ask your question
[99%] Linking CXX static library libpaddle_inference.a [100%] Built target paddle_inference_shared make[2]: 进入目录“/root/桌面/Paddle/build” Merge and generate static lib: libpaddle_inference.a 桌面Syntax error in archive script, line 1 桌面/usr/bin/ar: /root/: file format not recognized make[2]: [paddle/fluid/inference/CMakeFiles/paddle_inference.dir/build.make:784:paddle/fluid/inference/libpaddle_inference.a] 错误 1 make[2]: 正在删除文件“paddle/fluid/inference/libpaddle_inference.a” make[2]: 离开目录“/root/桌面/Paddle/build” Scanning dependencies of target check_symbol make[1]: [CMakeFiles/Makefile2:83288:paddle/fluid/inference/CMakeFiles/paddle_inference.dir/all] 错误 2 make[1]: 正在等待未完成的任务.... make[2]: 离开目录“/root/桌面/Paddle/build” make[2]: 进入目录“/root/桌面/Paddle/build” [100%] Generating .check_symbol make[2]: 离开目录“/root/桌面/Paddle/build” [100%] Built target check_symbol make[1]: 离开目录“/root/桌面/Paddle/build” make: *** [Makefile:130:all] 错误 2
=========================================== paddle/fluid/inference/CMakeFiles/paddle_inference.dir/build.make.784
请帮忙,谢谢。
版本&环境信息 银河麒麟v10 aarch64版本 Paddle version: 2.5 Python version: 3.7.9 CMake version: version 3.16.5