PaddlePaddle / Paddle

PArallel Distributed Deep LEarning: Machine Learning Framework from Industrial Practice (『飞桨』核心框架,深度学习&机器学习高性能单机、分布式训练和跨平台部署)
http://www.paddlepaddle.org/
Apache License 2.0
22.23k stars 5.58k forks source link

make时提示wranprnnt的git操作错误 #64611

Open PureWaterCatt opened 5 months ago

PureWaterCatt commented 5 months ago

问题描述 Issue Description

按照官网文档进行操作,到make(第9步)报错: root@b6cb716474d7:/opt/environments/Paddle/build# make TARGET=ARMV8 -j$(nproc) [ 0%] copy_if_different /opt/environments/Paddle/build/paddle/fluid/operators/ops_signature/signatures.h [ 0%] copy_if_different /opt/environments/Paddle/build/paddle/phi/kernels/funcs/jit/kernels.h [ 0%] copy_if_different /opt/environments/Paddle/build/paddle/phi/kernels/declarations.h [ 0%] copy_if_different /opt/environments/Paddle/build/paddle/fluid/inference/api/paddle_inference_pass.h [ 1%] Performing patch step for 'extern_warprnnt' [ 1%] Built target extern_gflags [ 1%] copy_if_different /opt/environments/Paddle/build/paddle/fluid/pybind/pybind.h [ 1%] Built target extern_threadpool [ 1%] Built target extern_eigen3 [ 1%] Built target extern_zlib [ 1%] Built target extern_dlpack error: pathspec '.' did not match any file(s) known to git make[2]: [CMakeFiles/extern_warprnnt.dir/build.make:119: third_party/warprnnt/src/extern_warprnnt-stamp/extern_warprnnt-patch] Error 1 [ 2%] Built target extern_utf8proc [ 3%] Built target extern_lapack [ 3%] Built target extern_json [ 3%] Built target extern_openblas make[1]: [CMakeFiles/Makefile2:3612: CMakeFiles/extern_warprnnt.dir/all] Error 2 make[1]: Waiting for unfinished jobs.... [ 3%] Built target extern_warpctc [ 3%] Built target copy_signatures_command [ 3%] Built target copy_kernels_command [ 3%] Built target copy_pybind_command [ 3%] Built target extern_pocketfft [ 3%] Built target extern_pybind [ 3%] Built target extern_gloo [ 3%] Built target copy_declarations_command [ 3%] Built target copy_paddle_inference_pass_command [ 4%] Built target extern_cryptopp [ 4%] Built target eager_codegen make: [Makefile:136: all] Error 2

版本&环境信息 Version & Environment Information

CPU:Kunpeng-920


Paddle version: N/A Paddle With CUDA: N/A

OS: ubuntu 22.04 GCC version: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 Clang version: N/A CMake version: version 3.22.1 Libc version: glibc 2.35 Python version: 3.10.12

CUDA version: N/A cuDNN version: N/A Nvidia driver version: N/A Nvidia driver List: N/A


我在查看**make[2]: * [CMakeFiles/extern_warprnnt.dir/build.make:119: third_party/warprnnt/src/extern_warprnnt-stamp/extern_warprnnt-patch] Error 1的119行命令为:cd /opt/environments/Paddle/third_party/warprnnt && git checkout -- . && git checkout 7ea6bfe748779c245a0fcaa5dd9383826273eff2 && patch -Nd /opt/ environments/Paddle/third_party/warprnnt < /opt/environments/Paddle/patches/warprnnt/CMakeLists.txt.cuda.patch 在执行git checkout -- . 的时候出错,并且查看了一下这个库似乎并没有 7ea6bfe748779c245a0fcaa5dd9383826273eff2这个提交

ronny1996 commented 5 months ago

你好编译前执行下 git submodule sync --recursive 命令拉取第三方库

jaygleyang commented 4 months ago

@PureWaterCatt 你好,我也遇到了这个问题,请问解决了吗?我按照上面命令重新拉取还是没用,修改build.make文件去除git切换到7ea6bfe748779c245a0fcaa5dd9383826273eff2 分支之后又报了别的头文件缺失的错误。