ERROR:
`λ localhost /work/Serving/build-server-npu {v0.9.0} make TARGET=ARMV8 -j16
[ 3%] Built target extern_gflags
[ 9%] Built target extern_snappy
[ 9%] Built target extern_zlib
[ 13%] Performing download step (download, verify and extract) for 'extern_paddle'
[ 14%] Built target extern_boost
[ 17%] Built target extern_utf8proc
[ 27%] Built target extern_prometheus
[ 27%] Built target extern_pybind
[ 27%] Built target extern_jsoncpp
-- File already exists but no hash specified (use URL_HASH):
file='/work/Serving/build-server-npu/third_party/Paddle/src/extern_paddle/archive.tar'
Old file will be removed and new file downloaded from URL.
-- Downloading...
dst='/work/Serving/build-server-npu/third_party/Paddle/src/extern_paddle/archive.tar'
timeout='none'
inactivity timeout='none'
-- Using src='http://paddle-serving.bj.bcebos.com/inferlib/2.3.0-rc0/cxx_c/Linux/ASCEND/arm64_gcc8.2_openblas/paddle_inference.tgz'
[ 27%] Built target general_model_config_py_proto_init
[ 30%] Built target extern_leveldb
[ 30%] Built target boost
[ 33%] Built target extern_protobuf
[ 36%] Built target extern_glog
[ 36%] Built target general_model_service_py_proto_init
[ 36%] Built target server_config_py_proto_init
core/pdcodegen/CMakeFiles/pdcodegen.dir/build.make:73: target pattern contains no '%'. Stop.
make[1]: [CMakeFiles/Makefile2:1383: core/pdcodegen/CMakeFiles/pdcodegen.dir/all] Error 2
make[1]: Waiting for unfinished jobs....
Copy generated general_model_config proto file into directory paddle_serving_server/proto.
[ 39%] Built target extern_brpc
[ 40%] Built target utils
[ 40%] Running Python grpc protocol buffer compiler on proto/general_model_service.proto
Copy generated python proto into directory paddle_serving_server/proto.
[ 41%] Built target general_model_config_py_proto
/usr/bin/python3: Error while finding module specification for 'grpc_tools.protoc' (ModuleNotFoundError: No module named 'grpc_tools')
[ 42%] Built target server_config_py_proto
make[2]: [core/configure/CMakeFiles/general_model_service_py_proto.dir/build.make:73: core/configure/general_model_service_pb2_grpc.py] Error 1
make[1]: *** [CMakeFiles/Makefile2:1276: core/configure/CMakeFiles/general_model_service_py_proto.dir/all] Error 2
[ 42%] Built target transfer-rfw
[ 42%] Built target transfer-docopt-go
[ 42%] Built target agent-pipeline
[ 42%] Built target transfer-logex
[ 42%] Built target agent-logex
[ 42%] Built target agent-docopt-go
-- Retrying...
-- Using src='http://paddle-serving.bj.bcebos.com/inferlib/2.3.0-rc0/cxx_c/Linux/ASCEND/arm64_gcc8.2_openblas/paddle_inference.tgz'
-- Retry after 5 seconds (attempt #2) ...
-- Using src='http://paddle-serving.bj.bcebos.com/inferlib/2.3.0-rc0/cxx_c/Linux/ASCEND/arm64_gcc8.2_openblas/paddle_inference.tgz'
-- [download 0% complete]
CMake Error at extern_paddle-stamp/download-extern_paddle.cmake:170 (message):
Each download failed!
error: downloading 'http://paddle-serving.bj.bcebos.com/inferlib/2.3.0-rc0/cxx_c/Linux/ASCEND/arm64_gcc8.2_openblas/paddle_inference.tgz' failed
status_code: 6
status_string: "Couldn't resolve host name"
log:
--- LOG BEGIN ---
timeout on name lookup is not supported
getaddrinfo(3) failed for paddle-serving.bj.bcebos.com:80
Could not resolve host: paddle-serving.bj.bcebos.com
Closing connection 0
--- LOG END ---
error: downloading 'http://paddle-serving.bj.bcebos.com/inferlib/2.3.0-rc0/cxx_c/Linux/ASCEND/arm64_gcc8.2_openblas/paddle_inference.tgz' failed
status_code: 6
status_string: "Couldn't resolve host name"
log:
--- LOG BEGIN ---
timeout on name lookup is not supported
getaddrinfo(3) failed for paddle-serving.bj.bcebos.com:80
Could not resolve host: paddle-serving.bj.bcebos.com
Closing connection 0
--- LOG END ---
error: downloading 'http://paddle-serving.bj.bcebos.com/inferlib/2.3.0-rc0/cxx_c/Linux/ASCEND/arm64_gcc8.2_openblas/paddle_inference.tgz' failed
status_code: 22
status_string: "HTTP response code said error"
log:
--- LOG BEGIN ---
timeout on name lookup is not supported
Trying 36.110.192.178:80...
Connected to paddle-serving.bj.bcebos.com (36.110.192.178) port 80 (#0)
GET
/inferlib/2.3.0-rc0/cxx_c/Linux/ASCEND/arm64_gcc8.2_openblas/paddle_inference.tgz
HTTP/1.1
ERROR: `λ localhost /work/Serving/build-server-npu {v0.9.0} make TARGET=ARMV8 -j16 [ 3%] Built target extern_gflags [ 9%] Built target extern_snappy [ 9%] Built target extern_zlib [ 13%] Performing download step (download, verify and extract) for 'extern_paddle' [ 14%] Built target extern_boost [ 17%] Built target extern_utf8proc [ 27%] Built target extern_prometheus [ 27%] Built target extern_pybind [ 27%] Built target extern_jsoncpp -- File already exists but no hash specified (use URL_HASH): file='/work/Serving/build-server-npu/third_party/Paddle/src/extern_paddle/archive.tar' Old file will be removed and new file downloaded from URL. -- Downloading... dst='/work/Serving/build-server-npu/third_party/Paddle/src/extern_paddle/archive.tar' timeout='none' inactivity timeout='none' -- Using src='http://paddle-serving.bj.bcebos.com/inferlib/2.3.0-rc0/cxx_c/Linux/ASCEND/arm64_gcc8.2_openblas/paddle_inference.tgz' [ 27%] Built target general_model_config_py_proto_init [ 30%] Built target extern_leveldb [ 30%] Built target boost [ 33%] Built target extern_protobuf [ 36%] Built target extern_glog [ 36%] Built target general_model_service_py_proto_init [ 36%] Built target server_config_py_proto_init core/pdcodegen/CMakeFiles/pdcodegen.dir/build.make:73: target pattern contains no '%'. Stop. make[1]: [CMakeFiles/Makefile2:1383: core/pdcodegen/CMakeFiles/pdcodegen.dir/all] Error 2 make[1]: Waiting for unfinished jobs.... Copy generated general_model_config proto file into directory paddle_serving_server/proto. [ 39%] Built target extern_brpc [ 40%] Built target utils [ 40%] Running Python grpc protocol buffer compiler on proto/general_model_service.proto Copy generated python proto into directory paddle_serving_server/proto. [ 41%] Built target general_model_config_py_proto /usr/bin/python3: Error while finding module specification for 'grpc_tools.protoc' (ModuleNotFoundError: No module named 'grpc_tools') [ 42%] Built target server_config_py_proto make[2]: [core/configure/CMakeFiles/general_model_service_py_proto.dir/build.make:73: core/configure/general_model_service_pb2_grpc.py] Error 1 make[1]: *** [CMakeFiles/Makefile2:1276: core/configure/CMakeFiles/general_model_service_py_proto.dir/all] Error 2 [ 42%] Built target transfer-rfw [ 42%] Built target transfer-docopt-go [ 42%] Built target agent-pipeline [ 42%] Built target transfer-logex [ 42%] Built target agent-logex [ 42%] Built target agent-docopt-go -- Retrying... -- Using src='http://paddle-serving.bj.bcebos.com/inferlib/2.3.0-rc0/cxx_c/Linux/ASCEND/arm64_gcc8.2_openblas/paddle_inference.tgz' -- Retry after 5 seconds (attempt #2) ... -- Using src='http://paddle-serving.bj.bcebos.com/inferlib/2.3.0-rc0/cxx_c/Linux/ASCEND/arm64_gcc8.2_openblas/paddle_inference.tgz' -- [download 0% complete] CMake Error at extern_paddle-stamp/download-extern_paddle.cmake:170 (message): Each download failed!
getaddrinfo(3) failed for paddle-serving.bj.bcebos.com:80
Could not resolve host: paddle-serving.bj.bcebos.com
Closing connection 0
getaddrinfo(3) failed for paddle-serving.bj.bcebos.com:80
Could not resolve host: paddle-serving.bj.bcebos.com
Closing connection 0
Connected to paddle-serving.bj.bcebos.com (36.110.192.178) port 80 (#0)
GET /inferlib/2.3.0-rc0/cxx_c/Linux/ASCEND/arm64_gcc8.2_openblas/paddle_inference.tgz HTTP/1.1
Host: paddle-serving.bj.bcebos.com
User-Agent: curl/8.1.2
Accept: /
HTTP/1.1 404 Not Found
Date: Thu, 18 Jul 2024 05:28:13 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 117
Connection: keep-alive
Server: BceBos
X-Bce-Flow-Control-Type: -1
X-Bce-Is-Transition: false
x-bce-debug-id: bg0f34msmT7m8r0KJJxOoV4guk+389TQ4ZojqMLRbSUKKq5MvgNJwFXdW0hpC7fCuFmESMiiA68ehKStIAUgYg==
x-bce-flow-control-type: -1
x-bce-is-transition: false
x-bce-request-id: e55b9176-be2c-4be0-8f16-8e7d3c91a977
The requested URL returned error: 404
Closing connection 0
make[2]: [CMakeFiles/extern_paddle.dir/build.make:99: third_party/Paddle/src/extern_paddle-stamp/extern_paddle-download] Error 1 make[1]: [CMakeFiles/Makefile2:759: CMakeFiles/extern_paddle.dir/all] Error 2 make: *** [Makefile:136: all] Error 2 `
Scene Reproduction: `IMAGE: registry.baidubce.com/device/paddle-npu:cann80RC1-ubuntu20-aarch64-gcc84-py39 After completing the installation of the paddles:(reference) https://www.paddlepaddle.org.cn/documentation/docs/zh/guides/hardware_support/npu/install_cn.html
Reference links to compiling serving: https://github.com/PaddlePaddle/Serving/blob/v0.9.0/doc/Run_On_NPU_CN.md
4、compiling server
mkdir build-server-npu && cd build-server-npu cmake -DPYTHON_INCLUDE_DIR=$PYTHON_INCLUDE_DIR/ \ -DPYTHON_LIBRARIES=$PYTHON_LIBRARIES \ -DPYTHON_EXECUTABLE=$PYTHON_EXECUTABLE \ -DCMAKE_INSTALL_PREFIX=./output \ -DWITH_ASCEND_CL=ON \ -DSERVER=ON .. make TARGET=ARMV8 -j16
`