PaddlePaddle / Paddle

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

升腾npu cmake报错 #54174

Closed Sweewangyu closed 4 months ago

Sweewangyu commented 1 year ago

我配置npu 第二步cmake的时候报了如下错误

(base) root@model9000-03:~/Paddle/build# cmake .. -DPY_VERSION=3.7 -DWITH_ASCEND=OFF -DWITH_ARM=ON -DWITH_ASCEND_CL=ON \

     -DWITH_ASCEND_INT64=ON -DWITH_DISTRIBUTE=ON -DWITH_TESTING=ON -DON_INFER=ON \
     -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON

CMake Deprecation Warning at CMakeLists.txt:25 (cmake_policy): The OLD behavior for policy CMP0026 will be removed from a future version of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD.

-- Found Paddle host system: ubuntu, version: 20.04.5 -- Found Paddle host system's CPU: 192 cores EXP_CUDA_MODULE_LOADING_LAZY only works with GPU -- CXX compiler: /usr/bin/c++, version: GNU 9.4.0 -- C compiler: /usr/bin/cc, version: GNU 9.4.0 -- AR tools: /usr/bin/ar fatal: not a git repository (or any of the parent directories): .git -- Do not have AVX2 intrinsics and disabled MKL-DNN. CMake Error at /usr/share/cmake-3.16/Modules/ExternalProject.cmake:2630 (message): No download info given for 'extern_zlib' and its source directory:

/root/Paddle/third_party/zlib

is not an existing non-empty directory. Please specify one of:

CMake Error at /usr/share/cmake-3.16/Modules/ExternalProject.cmake:2630 (message): No download info given for 'extern_gflags' and its source directory:

/root/Paddle/third_party/gflags

is not an existing non-empty directory. Please specify one of:

CMake Error at /usr/share/cmake-3.16/Modules/ExternalProject.cmake:2630 (message): No download info given for 'extern_glog' and its source directory:

/root/Paddle/third_party/glog

is not an existing non-empty directory. Please specify one of:

CMake Error at /usr/share/cmake-3.16/Modules/ExternalProject.cmake:2630 (message): No download info given for 'extern_eigen3' and its source directory:

/root/Paddle/third_party/eigen3

is not an existing non-empty directory. Please specify one of:

CMake Error at /usr/share/cmake-3.16/Modules/ExternalProject.cmake:2630 (message): No download info given for 'extern_threadpool' and its source directory:

/root/Paddle/third_party/threadpool

is not an existing non-empty directory. Please specify one of:

CMake Error at /usr/share/cmake-3.16/Modules/ExternalProject.cmake:2630 (message): No download info given for 'extern_dlpack' and its source directory:

/root/Paddle/third_party/dlpack

is not an existing non-empty directory. Please specify one of:

CMake Error at /usr/share/cmake-3.16/Modules/ExternalProject.cmake:2630 (message): No download info given for 'extern_xxhash' and its source directory:

/root/Paddle/third_party/xxhash

is not an existing non-empty directory. Please specify one of:

CMake Error at /usr/share/cmake-3.16/Modules/ExternalProject.cmake:2630 (message): No download info given for 'extern_warpctc' and its source directory:

/root/Paddle/third_party/warpctc

is not an existing non-empty directory. Please specify one of:

-- warp-ctc library: /root/Paddle/build/third_party/install/warpctc/lib/libwarpctc.so CMake Error at /usr/share/cmake-3.16/Modules/ExternalProject.cmake:2630 (message): No download info given for 'extern_warprnnt' and its source directory:

/root/Paddle/third_party/warprnnt

is not an existing non-empty directory. Please specify one of:

-- warp-rnnt library: /root/Paddle/build/third_party/install/warprnnt/lib/libwarprnnt.so CMake Error at /usr/share/cmake-3.16/Modules/ExternalProject.cmake:2630 (message): No download info given for 'extern_utf8proc' and its source directory:

/root/Paddle/third_party/utf8proc

is not an existing non-empty directory. Please specify one of:

-- Build OpenBLAS by External Project (include: /root/Paddle/build/third_party/install/openblas/include, library: /root/Paddle/build/third_party/install/openblas/lib/libopenblas.a) -- CBLAS_PROVIDER: EXTERN_OPENBLAS CMake Warning at /usr/share/cmake-3.16/Modules/FindProtobuf.cmake:499 (message): Protobuf compiler version doesn't match library version 3.13.0 Call Stack (most recent call first): cmake/external/protobuf.cmake:18 (find_package) cmake/third_party.cmake:301 (include) CMakeLists.txt:567 (include)

CMake Error at /usr/share/cmake-3.16/Modules/ExternalProject.cmake:2630 (message): No download info given for 'extern_protobuf' and its source directory:

/root/Paddle/third_party/protobuf

is not an existing non-empty directory. Please specify one of:

-- Protobuf protoc executable: /root/Paddle/build/third_party/install/protobuf/bin/protoc -- Protobuf-lite library: /root/Paddle/build/third_party/install/protobuf/lib/libprotobuf-lite.a -- Protobuf library: /root/Paddle/build/third_party/install/protobuf/lib/libprotobuf.a -- Protoc library: /root/Paddle/build/third_party/install/protobuf/lib/libprotoc.a -- Protobuf version: 21.12 -- Could NOT find PY_google.protobuf (missing: PY_GOOGLE.PROTOBUF) CMake Error at cmake/python_module.cmake:29 (message): python module google.protobuf is not found Call Stack (most recent call first): cmake/external/python.cmake:75 (find_python_module) cmake/third_party.cmake:307 (include) CMakeLists.txt:567 (include)

其他补充信息 Additional Supplementary Information

No response

Sweewangyu commented 1 year ago

好吧,重装错误解决了

Sweewangyu commented 1 year ago

make编译错误:(base) root@model9000-03:~/Paddle/build# make TARGET=ARMV8 -j$(nproc) [ 0%] Performing download step (download, verify and extract) for 'extern_xbyak ' [ 0%] Performing configure step for 'extern_protobuf' [ 0%] Performing download step (download, verify and extract) for 'extern_mklml ' [ 1%] Performing download step for 'extern_lite_download_nlp_quant_lstm_int8_da ta_txt_tar_gz' [ 1%] Performing download step (download, verify and extract) for 'extern_xxhas h' [ 1%] Performing download step (download, verify and extract) for 'extern_eigen 3' [ 1%] Performing download step for 'extern_lite_download_ocr_rec_img_txt_tar_gz ' [ 1%] Built target extern_gflags [ 1%] Performing download step for 'extern_lite_download_mobilenet_v1_int8per layer_tar_gz' [ 1%] Performing download step for 'extern_lite_download_yolov3_darknet53_tar_g z' [ 1%] Performing download step for 'extern_lite_download_vgg16_tar_gz' [ 1%] Performing download step for 'extern_lite_download_resnet50_int8_per_laye r_tar_gz' [ 1%] Performing download step for 'extern_lite_download_mobilenet_v3_smallx1 0_tar_gz' [ 1%] Performing download step for 'extern_lite_download_lac_data_txt_tar_gz' [ 1%] Performing download step for 'extern_lite_download_bert_base_chinese_data _tar_gz' [ 1%] Performing download step for 'extern_lite_download_transformer_nlp2data txt_tar_gz' [ 1%] Performing download step for 'extern_lite_download_VGG19_tar_gz' [ 1%] Performing download step for 'extern_lite_download_mobilenet_v3_largex1 0_tar_gz' [ 1%] Performing download step for 'extern_lite_download_bert_data_tar_gz' [ 1%] Performing download step for 'extern_lite_download_step_rnn_tar_gz' [ 1%] Performing download step for 'extern_lite_download_inception_v4_tar_gz' [ 1%] Performing download step for 'extern_lite_download_squeezenet_tar_gz' [ 1%] Built target custom_linker_map [ 1%] Performing download step for 'extern_lite_download_ILSVRC2012_500_tar_gz' [ 1%] Performing download step for 'extern_lite_download_GoogleNet_inference_ta r_gz' [ 1%] Performing download step for 'extern_lite_download_GoogLeNet_tar_gz' -- File already exists but no hash specified (use URL_HASH): file='/root/Paddle/third-party/xbyak/xbyak-5.99.zip' Old file will be removed and new file downloaded from URL. -- Downloading... dst='/root/Paddle/third-party/xbyak/xbyak-5.99.zip' timeout='none' -- Using src='http://paddle-inference-dist.bj.bcebos.com/PaddleLite_ThirdParty%2 Fxbyak-5.99.zip' [ 1%] Performing download step for 'extern_lite_download_bert_tar_gz' [ 1%] Performing download step for 'extern_lite_download_inception_v4_simple_ta r_gz' [ 2%] Performing download step for 'extern_lite_download_ssd_mobilenet_v1relu voc_int8_300_per_layer_tar_gz' [ 2%] Performing download step for 'extern_lite_download_ernie_tar_gz' [ 2%] Performing download step for 'extern_lite_download_mobilenet_v2_relutar gz' [ 2%] Performing download step for 'extern_lite_download_mobilenet_v1_int8per channel_tar_gz' [ 2%] Performing download step for 'extern_lite_download_lite_naive_model_tar_g z' [ 2%] Performing download step for 'extern_lite_download_ssd_mobilenet_v1relu voc_fp32_300_tar_gz' [ 2%] Performing download step for 'extern_lite_download_bert_base_chinesetar gz' [ 3%] Performing download step for 'extern_lite_download_flowers102_val_tar_gz' [ 3%] Performing download step for 'extern_lite_download_mobilenet_v1_tar_gz' [ 3%] Performing download step for 'extern_lite_download_resnet50_vd_tar_gz' [ 3%] Performing download step for 'extern_lite_download_resnet50_tar_gz' -- File already exists but no hash specified (use URL_HASH): file='/root/Paddle/build/third_party/mklml/src/extern_mklml/Glibc225_vsErf_mkl ml_lnx_2019.0.1.20181227.tgz' Old file will be removed and new file downloaded from URL. -- Downloading... dst='/root/Paddle/build/third_party/mklml/src/extern_mklml/Glibc225_vsErf_mkl ml_lnx_2019.0.1.20181227.tgz' timeout='none' -- Using src='http://paddlepaddledeps.bj.bcebos.com/Glibc225_vsErf_mklml_lnx_201 9.0.1.20181227.tgz' -- File already exists but no hash specified (use URL_HASH): file='/root/Paddle/third-party/eigen3/eigen-git-mirror-master-9ab917e9db99f590 7d086aa73d5f9103.zip' Old file will be removed and new file downloaded from URL. -- Downloading... dst='/root/Paddle/third-party/eigen3/eigen-git-mirror-master-9ab917e9db99f590 7d086aa73d5f9103.zip' timeout='none' -- Using src='http://paddlelite-data.bj.bcebos.com/third_party_libs/eigen-git-mi rror-master-9ab917e9db99f5907d086aa73d5f9103-gcc12.zip' -- File already exists but no hash specified (use URL_HASH): file='/root/Paddle/third-party/xxhash/xxHash-0.6.5.zip' Old file will be removed and new file downloaded from URL. -- Downloading... dst='/root/Paddle/third-party/xxhash/xxHash-0.6.5.zip' timeout='none' -- Using src='http://paddle-inference-dist.bj.bcebos.com/PaddleLite_ThirdParty%2 FxxHash-0.6.5.zip' [ 3%] Performing download step for 'extern_lite_download_roadsign_data_128tar gz' CMake Error at /root/Paddle/third-party/protobuf-host/src/extern_protobuf-stamp/ extern_protobuf-configure-Release.cmake:49 (message): Command failed: 1

'/usr/bin/cmake' '/root/Paddle/third-party/protobuf-host/cmake' '-DCMAKE_C_CO MPILER=/usr/bin/cc' '-DCMAKE_CXX_COMPILER=/usr/bin/c++' '-Dprotobuf_WITH_ZLIB=OF F' '-DZLIB_ROOT:FILEPATH=' '-Dprotobuf_BUILD_TESTS=OFF' '-DCMAKE_SKIP_RPATH=ON' '-DCMAKE_POSITION_INDEPENDENT_CODE=ON' '-DCMAKE_BUILD_TYPE=' '-DCMAKE_INSTALL_PR EFIX=/root/Paddle/build/third_party/install/protobuf' '-DCMAKE_INSTALL_LIBDIR=li b' '-DBUILD_SHARED_LIBS=OFF'

See also

/root/Paddle/third-party/protobuf-host/src/extern_protobuf-stamp/extern_prot                                                                     obuf-configure-*.log

make[2]: [CMakeFiles/extern_protobuf.dir/build.make:107: ../third-party/prot obuf-host/src/extern_protobuf-stamp/extern_protobuf-configure] Error 1 make[1]: [CMakeFiles/Makefile2:1608: CMakeFiles/extern_protobuf.dir/all] Err or 2 make[1]: *** Waiting for unfinished jobs.... [ 3%] Performing configure step for 'extern_glog' -- Downloading... done -- Downloading... done -- Downloading... done -- Downloading... done CMake Error: Problem with archive_read_open_file(): Unrecognized archive formatC Make Error: Problem with archive_read_open_file(): Unrecognized archive format

CMake Error: Problem extracting tar: /root/Paddle/build/third_party/install/sque ezenet.tar.gzCMake Error: Problem extracting tar: /root/Paddle/build/third_party /install/mobilenet_v1_int8_per_layer.tar.gz

CMake Error: Problem with archive_read_open_file(): Unrecognized archive formatC Make Error: Problem with archive_read_open_file(): Unrecognized archive formatCM ake Error: Problem with archive_read_open_file(): Unrecognized archive format

CMake Error: Problem extracting tar: /root/Paddle/build/third_party/install/step _rnn.tar.gzCMake Error: Problem extracting tar: /root/Paddle/build/third_party/i nstall/inception_v4.tar.gzCMake Error: Problem extracting tar: /root/Paddle/buil d/third_party/install/resnet50_int8_per_layer.tar.gz

make[2]: [lite/CMakeFiles/extern_lite_download_squeezenet_tar_gz.dir/build.m ake:90: third_party/install/src/extern_lite_download_squeezenet_tar_gz-stamp/ext ern_lite_download_squeezenet_tar_gz-download] Error 1 make[2]: [lite/CMakeFiles/extern_lite_download_mobilenet_v1_int8_per_layer_t ar_gz.dir/build.make:90: third_party/install/src/extern_lite_downloadmobilenet v1_int8_per_layer_tar_gz-stamp/extern_lite_download_mobilenet_v1_int8_perlayer tar_gz-download] Error 1 make[1]: [CMakeFiles/Makefile2:2290: lite/CMakeFiles/extern_lite_download_mo bilenet_v1_int8_per_layer_tar_gz.dir/all] Error 2 make[1]: [CMakeFiles/Makefile2:2263: lite/CMakeFiles/extern_lite_download_sq ueezenet_tar_gz.dir/all] Error 2 make[2]: [lite/CMakeFiles/extern_lite_download_resnet50_int8_per_layer_tar_g z.dir/build.make:90: third_party/install/src/extern_lite_download_resnet50int8 per_layer_tar_gz-stamp/extern_lite_download_resnet50_int8_per_layer_tar_gz-downl oad] Error 1 make[2]: [lite/CMakeFiles/extern_lite_download_inception_v4_tar_gz.dir/build .make:90: third_party/install/src/extern_lite_download_inception_v4_tar_gz-stamp /extern_lite_download_inception_v4_tar_gz-download] Error 1 make[2]: [lite/CMakeFiles/extern_lite_download_step_rnn_tar_gz.dir/build.mak e:90: third_party/install/src/extern_lite_download_step_rnn_targz-stamp/extern lite_download_step_rnn_tar_gz-download] Error 1 make[1]: [CMakeFiles/Makefile2:2344: lite/CMakeFiles/extern_lite_download_re snet50_int8_per_layer_tar_gz.dir/all] Error 2 make[1]: [CMakeFiles/Makefile2:2426: lite/CMakeFiles/extern_lite_download_in ception_v4_tar_gz.dir/all] Error 2 make[1]: [CMakeFiles/Makefile2:2507: lite/CMakeFiles/extern_lite_download_st ep_rnn_tar_gz.dir/all] Error 2 CMake Error: Problem with archive_read_open_file(): Unrecognized archive format CMake Error: Problem extracting tar: /root/Paddle/build/thirdparty/install/ssd mobilenet_v1_relu_voc_fp32_300.tar.gz CMake Error: Problem with archive_read_open_file(): Unrecognized archive format CMake Error: Problem extracting tar: /root/Paddle/build/third_party/install/bert .tar.gz make[2]: [lite/CMakeFiles/extern_lite_download_ssd_mobilenet_v1_relu_voc_fp3 2_300_tar_gz.dir/build.make:90: third_party/install/src/extern_lite_download_ssd _mobilenet_v1_relu_voc_fp32_300_tar_gz-stamp/extern_lite_download_ssdmobilenet v1_relu_voc_fp32_300_tar_gz-download] Error 1 CMake Error: Problem with archive_read_open_file(): Unrecognized archive format CMake Error: Problem extracting tar: /root/Paddle/build/third_party/install/flow ers102_val.tar.gz make[1]: [CMakeFiles/Makefile2:2561: lite/CMakeFiles/extern_lite_download_ss d_mobilenet_v1_relu_voc_fp32_300_tar_gz.dir/all] Error 2 CMake Error: Problem with archive_read_open_file(): Unrecognized archive format CMake Error: Problem extracting tar: /root/Paddle/build/third_party/install/yolo v3_darknet53.tar.gz CMake Error: Problem with archive_read_open_file(): Unrecognized archive formatC Make Error: Problem with archive_read_open_file(): Unrecognized archive format

CMake Error: Problem extracting tar: /root/Paddle/build/third_party/install/bert _base_chinese.tar.gzCMake Error: Problem extracting tar: /root/Paddle/build/thir d_party/install/mobilenet_v1.tar.gz

CMake Error: Problem with archive_read_open_file(): Unrecognized archive format CMake Error: Problem extracting tar: /root/Paddle/build/third_party/install/resn et50.tar.gz CMake Error: Problem with archive_read_open_file(): Unrecognized archive format CMake Error: Problem extracting tar: /root/Paddle/build/thirdparty/install/ocr rec_img_txt.tar.gzmake[2]: *** [lite/CMakeFiles/extern_lite_download_bert_tar_gz .dir/build.make:90: third_party/install/src/extern_lite_download_bert_tar_gz-sta mp/extern_lite_download_bert_tar_gz-download] Error 1

CMake Error: Problem with archive_read_open_file(): Unrecognized archive format CMake Error: Problem extracting tar: /root/Paddle/build/third_party/install/resn et50_vd.tar.gz make[1]: *** [CMakeFiles/Makefile2:2534: lite/CMakeFiles/extern_lite_download_be rt_tar_gz.dir/all] Error 2 CMake Error: Problem with archive_read_open_file(): Unrecognized archive format CMake Error: Problem extracting tar: /root/Paddle/build/third_party/install/erni e.tar.gz CMake Error: Problem with archive_read_open_file(): Unrecognized archive format CMake Error: Problem extracting tar: /root/Paddle/build/third_party/install/VGG1 9.tar.gz CMake Error: Problem with archive_read_open_file(): Unrecognized archive format CMake Error: Problem extracting tar: /root/Paddle/build/third_party/install/mobi lenet_v2_relu.tar.gz CMake Error: Problem with archive_read_open_file(): Unrecognized archive formatC Make Error: Problem with archive_read_open_file(): Unrecognized archive formatCM ake Error: Problem with archive_read_open_file(): Unrecognized archive format

CMake Error: Problem extracting tar: /root/Paddle/build/third_party/install/lite _naive_model.tar.gzCMake Error: Problem extracting tar: /root/Paddle/build/third _party/install/ssd_mobilenet_v1_relu_voc_int8_300_per_layer.tar.gz

CMake Error: Problem extracting tar: /root/Paddle/build/third_party/install/mobi lenet_v1_int8_per_channel.tar.gz make[2]: [lite/CMakeFiles/extern_lite_download_flowers102_val_tar_gz.dir/bui ld.make:90: third_party/install/src/extern_lite_download_flowers102_val_tar_gz-s tamp/extern_lite_download_flowers102_val_tar_gz-download] Error 1 CMake Error: Problem with archive_read_open_file(): Unrecognized archive format CMake Error: Problem extracting tar: /root/Paddle/build/third_party/install/mobi lenet_v3_large_x1_0.tar.gz CMake Error: Problem with archive_read_open_file(): Unrecognized archive format CMake Error: Problem extracting tar: /root/Paddle/build/third_party/install/Goog leNet_inference.tar.gz make[1]: [CMakeFiles/Makefile2:2833: lite/CMakeFiles/extern_lite_download_fl owers102_val_tar_gz.dir/all] Error 2 make[2]: *** [lite/CMakeFiles/extern_lite_download_yolov3_darknet53_tar_gz.dir/b uild.make:90: third_party/install/src/extern_lite_download_yolov3_darknet53tar gz-stamp/extern_lite_download_yolov3_darknet53_tar_gz-download] Error 1 CMake Error: Problem with archive_read_open_file(): Unrecognized archive format CMake Error: Problem with archive_read_open_file(): Unrecognized archive formatC Make Error: Problem extracting tar: /root/Paddle/build/third_party/install/incep tion_v4_simple.tar.gz

CMake Error: Problem extracting tar: /root/Paddle/build/third_party/install/tran sformer_nlp2_data_txt.tar.gz CMake Error: Problem with archive_read_open_file(): Unrecognized archive format CMake Error: Problem extracting tar: /root/Paddle/build/thirdparty/install/nlp quant_lstm_int8_data_txt.tar.gz make[1]: [CMakeFiles/Makefile2:2317: lite/CMakeFiles/extern_lite_download_yo lov3_darknet53_tar_gz.dir/all] Error 2 make[2]: [lite/CMakeFiles/extern_lite_download_mobilenet_v1_tar_gz.dir/build .make:90: third_party/install/src/extern_lite_download_mobilenet_v1_tar_gz-stamp /extern_lite_download_mobilenet_v1_tar_gz-download] Error 1 make[2]: [lite/CMakeFiles/extern_lite_download_bert_base_chinese_tar_gz.dir/ build.make:90: third_party/install/src/extern_lite_download_bert_base_chinese_ta r_gz-stamp/extern_lite_download_bert_base_chinese_tar_gz-download] Error 1 CMake Error: Problem with archive_read_open_file(): Unrecognized archive format CMake Error: Problem extracting tar: /root/Paddle/build/third_party/install/vgg1 6.tar.gz make[2]: [lite/CMakeFiles/extern_lite_download_resnet50_vd_tar_gz.dir/build. make:90: third_party/install/src/extern_lite_download_resnet50_vd_tar_gz-stamp/e xtern_lite_download_resnet50_vd_tar_gz-download] Error 1 make[2]: *** [lite/CMakeFiles/extern_lite_download_resnet50_tar_gz.dir/build.mak e:90: third_party/install/src/extern_lite_download_resnet50_targz-stamp/extern lite_download_resnet50_tar_gz-download] Error 1 CMake Error: Problem with archive_read_open_file(): Unrecognized archive format CMake Error: Problem extracting tar: /root/Paddle/build/third_party/install/ILSV RC2012_500.tar.gz CMake Error: Problem with archive_read_open_file(): Unrecognized archive formatC Make Error: Problem with archive_read_open_file(): Unrecognized archive format

CMake Error: Problem extracting tar: /root/Paddle/build/third_party/install/Goog LeNet.tar.gzCMake Error: Problem with archive_read_open_file(): Unrecognized arc hive formatmake[1]: *** [CMakeFiles/Makefile2:2779: lite/CMakeFiles/externlite download_mobilenet_v1_tar_gz.dir/all] Error 2

CMake Error: Problem extracting tar: /root/Paddle/build/third_party/install/bert _data.tar.gzCMake Error: Problem with archive_read_open_file(): Unrecognized arc hive format

make[2]: [lite/CMakeFiles/extern_lite_download_ocr_rec_img_txt_tar_gz.dir/bu ild.make:90: third_party/install/src/extern_lite_download_ocr_rec_img_txt_tar_gz -stamp/extern_lite_download_ocr_rec_img_txt_tar_gz-download] Error 1 CMake Error: Problem extracting tar: /root/Paddle/build/third_party/install/mobi lenet_v3_small_x1_0.tar.gzmake[1]: [CMakeFiles/Makefile2:2914: lite/CMakeFil es/extern_lite_download_resnet50_vd_tar_gz.dir/all] Error 2 CMake Error: Problem extracting tar: /root/Paddle/build/third_party/install/bert _base_chinese_data.tar.gz

make[1]: *** [CMakeFiles/Makefile2:2887: lite/CMakeFiles/extern_lite_download_re snet50_tar_gz.dir/all] Error 2 CMake Error at /root/Paddle/build/third_party/install/glog/glog-stamp/extern_glo g-configure-Release.cmake:49 (message): Command failed: 1

'/usr/bin/cmake' '-DCMAKE_CXX_COMPILER=/usr/bin/c++' '-DCMAKE_C_COMPILER=/usr /bin/cc' '-DCMAKE_CXX_FLAGS= -fopenmp ' '-DCMAKE_CXX_FLAGS_RELEASE=-O3 -DNDEBUG' '-DCMAKE_CXX_FLAGS_DEBUG=-g' '-DCMAKE_C_FLAGS= -fopenmp ' '-DCMAKE_C_FLAGS_DEBU G=-g' '-DCMAKE_C_FLAGS_RELEASE=-O3 -DNDEBUG' '-DCMAKE_INSTALL_PREFIX=/root/Paddl e/build/third_party/install/glog' '-DCMAKE_POSITION_INDEPENDENT_CODE=ON' '-DWITH _GFLAGS=ON' '-Dgflags_DIR=/root/Paddle/build/third_party/install/gflags/lib/cmak e/gflags' '-DBUILD_TESTING=OFF' '-DCMAKE_BUILD_TYPE=' '-GUnix Makefiles' '-C/roo t/Paddle/third-party/glog/tmp/extern_glog-cache-Release.cmake' '/root/Paddle/thi rd-party/glog'

See also

/root/Paddle/build/third_party/install/glog/glog-stamp/extern_glog-configure                                                                     -*.log

make[1]: [CMakeFiles/Makefile2:2941: lite/CMakeFiles/extern_lite_download_be rt_base_chinese_tar_gz.dir/all] Error 2 make[2]: [lite/CMakeFiles/extern_lite_download_ernie_tar_gz.dir/build.make:9 0: third_party/install/src/extern_lite_download_ernie_tar_gz-stamp/extern_lite_d ownload_ernie_tar_gz-download] Error 1 make[1]: [CMakeFiles/Makefile2:1943: lite/CMakeFiles/extern_lite_download_oc r_rec_img_txt_tar_gz.dir/all] Error 2 make[1]: [CMakeFiles/Makefile2:2617: lite/CMakeFiles/extern_lite_download_er nie_tar_gz.dir/all] Error 2 make[2]: [lite/CMakeFiles/extern_lite_download_VGG19_tar_gz.dir/build.make:9 0: third_party/install/src/extern_lite_download_VGG19_tar_gz-stamp/extern_lite_d ownload_VGG19_tar_gz-download] Error 1 make[2]: [lite/CMakeFiles/extern_lite_download_mobilenet_v2_relu_tar_gz.dir/ build.make:90: third_party/install/src/extern_lite_download_mobilenet_v2_relu_ta r_gz-stamp/extern_lite_download_mobilenet_v2_relu_tar_gz-download] Error 1 make[1]: [CMakeFiles/Makefile2:2725: lite/CMakeFiles/extern_lite_download_mo bilenet_v2_relu_tar_gz.dir/all] Error 2 make[1]: [CMakeFiles/Makefile2:2236: lite/CMakeFiles/extern_lite_download_VG G19_tar_gz.dir/all] Error 2 CMake Error: Problem with archive_read_open_file(): Unrecognized archive formatC Make Error: Problem with archive_read_open_file(): Unrecognized archive format

CMake Error: Problem extracting tar: /root/Paddle/build/thirdparty/install/lac data_txt.tar.gz CMake Error: Problem extracting tar: /root/Paddle/build/third_party/install/road sign_data_128.tar.gz make[2]: [lite/CMakeFiles/extern_lite_download_ssd_mobilenet_v1_relu_voc_int 8_300_per_layer_tar_gz.dir/build.make:90: third_party/install/src/extern_lite_do wnload_ssd_mobilenet_v1_relu_voc_int8_300_per_layer_tar_gz-stamp/extern_lite_dow nload_ssd_mobilenet_v1_relu_voc_int8_300_per_layer_tar_gz-download] Error 1 make[2]: [lite/CMakeFiles/extern_lite_download_lite_naive_model_tar_gz.dir/b uild.make:90: third_party/install/src/extern_lite_download_lite_naive_modeltar gz-stamp/extern_lite_download_lite_naive_model_tar_gz-download] Error 1 make[2]: [lite/CMakeFiles/extern_lite_download_mobilenet_v1_int8_per_channel _tar_gz.dir/build.make:90: third_party/install/src/extern_lite_download_mobilene t_v1_int8_per_channel_tar_gz-stamp/extern_lite_download_mobilenet_v1_int8_per_ch annel_tar_gz-download] Error 1 make[2]: [lite/CMakeFiles/extern_lite_download_mobilenet_v3_large_x1_0_tar_g z.dir/build.make:90: third_party/install/src/extern_lite_download_mobilenet_v3_l arge_x1_0_tar_gz-stamp/extern_lite_download_mobilenet_v3_large_x1_0_tar_gz-downl oad] Error 1 make[2]: [lite/CMakeFiles/extern_lite_download_GoogleNet_inference_tar_gz.di r/build.make:90: third_party/install/src/extern_lite_download_GoogleNet_inferenc e_tar_gz-stamp/extern_lite_download_GoogleNet_inference_tar_gz-download] Error 1 make[1]: [CMakeFiles/Makefile2:2644: lite/CMakeFiles/extern_lite_download_li te_naive_model_tar_gz.dir/all] Error 2 make[1]: [CMakeFiles/Makefile2:2698: lite/CMakeFiles/extern_lite_download_ss d_mobilenet_v1_relu_voc_int8_300_per_layer_tar_gz.dir/all] Error 2 make[1]: [CMakeFiles/Makefile2:2752: lite/CMakeFiles/extern_lite_download_mo bilenet_v1_int8_per_channel_tar_gz.dir/all] Error 2 [ 3%] Built target fbs_headers make[1]: [CMakeFiles/Makefile2:2209: lite/CMakeFiles/extern_lite_download_mo bilenet_v3_large_x1_0_tar_gz.dir/all] Error 2 make[1]: [CMakeFiles/Makefile2:2480: lite/CMakeFiles/extern_lite_download_Go ogleNet_inference_tar_gz.dir/all] Error 2 make[2]: [lite/CMakeFiles/extern_lite_download_inception_v4_simple_tar_gz.di r/build.make:90: third_party/install/src/extern_lite_download_inception_v4_simpl e_tar_gz-stamp/extern_lite_download_inception_v4_simple_tar_gz-download] Error 1 make[2]: [lite/CMakeFiles/extern_lite_download_transformer_nlp2_data_txt_tar _gz.dir/build.make:90: third_party/install/src/extern_lite_downloadtransformer nlp2_data_txt_tar_gz-stamp/extern_lite_download_transformer_nlp2_data_txt_tar_gz -download] Error 1 make[2]: [lite/CMakeFiles/extern_lite_download_nlp_quant_lstm_int8_datatxt tar_gz.dir/build.make:90: third_party/install/src/extern_lite_download_nlp_quant _lstm_int8_data_txt_tar_gz-stamp/extern_lite_download_nlp_quant_lstm_int8_data_t xt_tar_gz-download] Error 1 make[1]: [CMakeFiles/Makefile2:2671: lite/CMakeFiles/extern_lite_download_in ception_v4_simple_tar_gz.dir/all] Error 2 make[1]: [CMakeFiles/Makefile2:1834: lite/CMakeFiles/extern_lite_download_tr ansformer_nlp2_data_txt_tar_gz.dir/all] Error 2 make[2]: [lite/CMakeFiles/extern_lite_download_vgg16_tar_gz.dir/build.make:9 0: third_party/install/src/extern_lite_download_vgg16_tar_gz-stamp/extern_lite_d ownload_vgg16_tar_gz-download] Error 1 make[1]: [CMakeFiles/Makefile2:1916: lite/CMakeFiles/extern_lite_download_nl p_quant_lstm_int8_data_txt_tar_gz.dir/all] Error 2 make[2]: [lite/CMakeFiles/extern_lite_download_ILSVRC2012_500_tar_gz.dir/bui ld.make:90: third_party/install/src/extern_lite_download_ILSVRC2012_500_tar_gz-s tamp/extern_lite_download_ILSVRC2012_500_tar_gz-download] Error 1 make[1]: [CMakeFiles/Makefile2:2182: lite/CMakeFiles/extern_lite_download_vg g16_tar_gz.dir/all] Error 2 make[2]: [lite/CMakeFiles/extern_lite_download_mobilenet_v3_small_x1_0_tar_g z.dir/build.make:90: third_party/install/src/extern_lite_download_mobilenet_v3_s mall_x1_0_tar_gz-stamp/extern_lite_download_mobilenet_v3_small_x1_0_tar_gz-downl oad] Error 1 make[2]: [lite/CMakeFiles/extern_lite_download_GoogLeNet_tar_gz.dir/build.ma ke:90: third_party/install/src/extern_lite_download_GoogLeNet_tar_gz-stamp/exter n_lite_download_GoogLeNet_tar_gz-download] Error 1 make[2]: [lite/CMakeFiles/extern_lite_download_bert_data_tar_gz.dir/build.ma ke:90: third_party/install/src/extern_lite_download_bert_data_tar_gz-stamp/exter n_lite_download_bert_data_tar_gz-download] Error 1 make[2]: [lite/CMakeFiles/extern_lite_download_bert_base_chinese_data_tar_gz .dir/build.make:90: third_party/install/src/extern_lite_download_bert_base_chine se_data_tar_gz-stamp/extern_lite_download_bert_base_chinese_data_tar_gz-download ] Error 1 make[1]: [CMakeFiles/Makefile2:2860: lite/CMakeFiles/extern_lite_download_IL SVRC2012_500_tar_gz.dir/all] Error 2 make[1]: [CMakeFiles/Makefile2:2371: lite/CMakeFiles/extern_lite_download_mo bilenet_v3_small_x1_0_tar_gz.dir/all] Error 2 make[1]: [CMakeFiles/Makefile2:2968: lite/CMakeFiles/extern_lite_download_Go ogLeNet_tar_gz.dir/all] Error 2 make[1]: [CMakeFiles/Makefile2:1970: lite/CMakeFiles/extern_lite_download_be rt_base_chinese_data_tar_gz.dir/all] Error 2 make[1]: [CMakeFiles/Makefile2:2453: lite/CMakeFiles/extern_lite_download_be rt_data_tar_gz.dir/all] Error 2 make[2]: [CMakeFiles/extern_glog.dir/build.make:107: third_party/install/glo g/glog-stamp/extern_glog-configure] Error 1 make[1]: [CMakeFiles/Makefile2:1750: CMakeFiles/extern_glog.dir/all] Error 2 -- extracting... src='/root/Paddle/third-party/xbyak/xbyak-5.99.zip' dst='/root/Paddle/build/third_party/xbyak/src/extern_xbyak' -- extracting... [tar xfz] make[2]: [lite/CMakeFiles/extern_lite_download_roadsign_data_128_tar_gz.dir/ build.make:90: third_party/install/src/extern_lite_download_roadsign_data_128_ta r_gz-stamp/extern_lite_download_roadsign_data_128_tar_gz-download] Error 1 make[2]: [lite/CMakeFiles/extern_lite_download_lac_data_txt_tar_gz.dir/build .make:90: third_party/install/src/extern_lite_download_lac_data_txt_tar_gz-stamp /extern_lite_download_lac_data_txt_tar_gz-download] Error 1 make[1]: [CMakeFiles/Makefile2:1889: lite/CMakeFiles/extern_lite_download_la c_data_txt_tar_gz.dir/all] Error 2 make[1]: [CMakeFiles/Makefile2:2806: lite/CMakeFiles/extern_lite_download_ro adsign_data_128_tar_gz.dir/all] Error 2 CMake Error: Problem with archive_read_open_file(): Unrecognized archive format CMake Error: Problem extracting tar: /root/Paddle/third-party/xbyak/xbyak-5.99.z ip -- extracting... src='/root/Paddle/build/third_party/mklml/src/extern_mklml/Glibc225_vsErf_m klml_lnx_2019.0.1.20181227.tgz' dst='/root/Paddle/build/third_party/mklml/src/extern_mklml' -- extracting... src='/root/Paddle/third-party/xxhash/xxHash-0.6.5.zip' dst='/root/Paddle/build/third_party/xxhash/src/extern_xxhash' -- extracting... src='/root/Paddle/third-party/eigen3/eigen-git-mirror-master-9ab917e9db99f5 907d086aa73d5f9103.zip' dst='/root/Paddle/build/third_party/eigen3/src/extern_eigen3' -- extracting... [tar xfz] -- extracting... [tar xfz] -- extracting... [tar xfz] -- extracting... [error clean up] CMake Error at extern_xbyak-stamp/extract-extern_xbyak.cmake:33 (message): error: extract of '/root/Paddle/third-party/xbyak/xbyak-5.99.zip' failed

make[2]: [CMakeFiles/extern_xbyak.dir/build.make:93: third_party/xbyak/src/e xtern_xbyak-stamp/extern_xbyak-download] Error 1 make[1]: [CMakeFiles/Makefile2:1581: CMakeFiles/extern_xbyak.dir/all] Error 2 CMake Error: Problem with archive_read_open_file(): Unrecognized archive format CMake Error: Problem extracting tar: /root/Paddle/third-party/eigen3/eigen-git-m irror-master-9ab917e9db99f5907d086aa73d5f9103.zip CMake Error: Problem with archive_read_open_file(): Unrecognized archive format CMake Error: Problem extracting tar: /root/Paddle/third-party/xxhash/xxHash-0.6. 5.zip CMake Error: Problem with archive_read_open_file(): Unrecognized archive format CMake Error: Problem extracting tar: /root/Paddle/build/third_party/mklml/src/ex tern_mklml/Glibc225_vsErf_mklml_lnx_2019.0.1.20181227.tgz -- extracting... [error clean up] CMake Error at extern_eigen3-stamp/extract-extern_eigen3.cmake:33 (message): error: extract of '/root/Paddle/third-party/eigen3/eigen-git-mirror-master-9ab917e9db99f5907d086 aa73d5f9103.zip' failed

-- extracting... [error clean up] -- extracting... [error clean up] CMake Error at extern_xxhash-stamp/extract-extern_xxhash.cmake:33 (message): error: extract of '/root/Paddle/third-party/xxhash/xxHash-0.6.5.zip' failed

CMake Error at extern_mklml-stamp/extract-extern_mklml.cmake:33 (message): error: extract of '/root/Paddle/build/third_party/mklml/src/extern_mklml/Glibc225_vsErf_mklml_ln x_2019.0.1.20181227.tgz' failed

make[2]: [CMakeFiles/extern_eigen3.dir/build.make:94: third_party/eigen3/src /extern_eigen3-stamp/extern_eigen3-download] Error 1 make[2]: [CMakeFiles/extern_xxhash.dir/build.make:94: third_party/xxhash/src /extern_xxhash-stamp/extern_xxhash-download] Error 1 make[1]: [CMakeFiles/Makefile2:1777: CMakeFiles/extern_eigen3.dir/all] Error 2 make[2]: [CMakeFiles/extern_mklml.dir/build.make:93: third_party/mklml/src/e xtern_mklml-stamp/extern_mklml-download] Error 1 make[1]: [CMakeFiles/Makefile2:1635: CMakeFiles/extern_xxhash.dir/all] Error 2 make[1]: [CMakeFiles/Makefile2:1662: CMakeFiles/extern_mklml.dir/all] Error 2 make: *** [Makefile:95: all] Error 2

2742195759 commented 1 year ago

image 好像是因为这个出错的。可以先更新一下 paddle 版本,然后在 pip install protobuf 升级一下最新的protobuf,然后清空 build 目录,重新编译看看呢

Sweewangyu commented 1 year ago

image 好像是因为这个出错的。可以先更新一下 paddle 版本,然后在 pip install protobuf 升级一下最新的protobuf,然后清空 build 目录,重新编译看看呢

谢谢你的答复,我按照你说的,还是有相同的错误

qili93 commented 1 year ago

您好,昇腾相关适配代码都已经迁移到了 PaddleCustomDevice,目前昇腾通过插件式的方式接入Paddle主框架,主框架中昇腾相关代码已经退场,请参考 https://github.com/PaddlePaddle/PaddleCustomDevice/blob/develop/backends/npu/README_cn.md 这个文档进行昇腾相关的编译安装。

paddle-bot[bot] commented 4 months ago

Since you haven\'t replied for more than a year, we have closed this issue/pr. If the problem is not solved or there is a follow-up one, please reopen it at any time and we will continue to follow up. 由于您超过一年未回复,我们将关闭这个issue/pr。 若问题未解决或有后续问题,请随时重新打开,我们会继续跟进。