Paddle make时提示wranprnnt的git操作错误

ivqmmu1c  于 5个月前  发布在  Git
关注(0)|答案(2)|浏览(106)

问题描述 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这个提交

mqkwyuun

mqkwyuun1#

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

s8vozzvw

s8vozzvw2#

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

相关问题