零知识玩转AVH(7)—— 门槛任务(2)所遇错误及解决(1)

接前一篇文章:零知识玩转AVH(6)—— 门槛任务(1)源码下载、编译及运行

上一回说到完成门槛任务

  • https://github.com/ArmDeveloperEcosystem/Paddle-examples-for-AVH (推荐,内含 ML 视觉用例,包括:图像分类、目标检测、光学字符识别、目标分割等)

时,进行到“执行run_demo.sh”这一步时遇到了以下错误:

root@instance-eoy24hji:/home/ubuntu/ph/Paddle-examples-for-AVH/object_classification# bash run_demo.sh --model PP_LCNet --device cortex-m55
Device name is cortex-m55
Model name is PP_LCNet
--2024-03-14 00:41:03--  https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPLCNet_x0_75_infer.tar
Resolving paddle-imagenet-models-name.bj.bcebos.com (paddle-imagenet-models-name.bj.bcebos.com)... 100.67.200.6
Connecting to paddle-imagenet-models-name.bj.bcebos.com (paddle-imagenet-models-name.bj.bcebos.com)|100.67.200.6|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10024960 (9.6M) [application/x-tar]
Saving to: ‘PPLCNet_x0_75_infer.tar’
 
PPLCNet_x0_75_infer.tar                        100%[==================================================================================================>]   9.56M  --.-KB/s    in 0.08s   
 
2024-03-14 00:41:04 (117 MB/s) - ‘PPLCNet_x0_75_infer.tar’ saved [10024960/10024960]
 
run_demo.sh: line 96: paddle2onnx: command not found
Traceback (most recent call last):
  File "rename_onnx_model.py", line 30, in <module>
    model = onnx.load(args.model)
  File "/usr/local/lib/python3.8/dist-packages/onnx/__init__.py", line 208, in load_model
    model = _get_serializer(format, f).deserialize_proto(_load_bytes(f), ModelProto())
  File "/usr/local/lib/python3.8/dist-packages/onnx/__init__.py", line 145, in _load_bytes
    with open(f, "rb") as readable:
FileNotFoundError: [Errno 2] No such file or directory: 'inference.onnx'
Error: Input file 'inference.onnx' doesn't exist, is a broken symbolic link, or a directory.
rm: cannot remove 'inference.onnx': No such file or directory
tar: cls.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
rm: cannot remove 'cls.tar': No such file or directory
run_demo.sh: line 139: /opt/ctools/bin/csolution: cannot execute binary file: Exec format error
run_demo.sh: line 140: /opt/ctools/bin/cpackget: cannot execute binary file: Exec format error
run_demo.sh: line 141: /opt/ctools/bin/cpackget: cannot execute binary file: Exec format error
Project file name is object_classification+PaddleClasM55.cprj
run_demo.sh: line 145: /opt/ctools/bin/cbuild: cannot execute binary file: Exec format error
VHT_MPS3_Corstone_SSE-300: 'out/object_classification/PaddleClasM55/object_classification.axf': application file not found
Info: /OSCI/SystemC: Simulation stopped by user.
root@instance-eoy24hji:/home/ubuntu/ph/Paddle-examples-for-AVH/object_classification# 

本回就对于所遇到的错误和解决方法进行详细说明和讲解。

错误1

具体问题

上边log中的第一个错误是:

run_demo.sh: line 96: paddle2onnx: command not found

解决方法

通过pip安装paddle2onnx。实际命令及结果如下:

root@instance-eoy24hji:/home/ubuntu/ph/Paddle-examples-for-AVH# pip install paddle2onnx
Looking in indexes: http://mirrors.baidubce.com/pypi/simple/
Collecting paddle2onnx
  Downloading http://mirrors.baidubce.com/pypi/packages/67/33/dccb1014be2ea51c4e39284523c8eb00920f21a43e956d1d725993863e17/paddle2onnx-1.0.5-cp38-cp38-manylinux_2_27_aarch64.whl (2.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.8/2.8 MB 49.2 MB/s eta 0:00:00
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from paddle2onnx) (1.14.0)
DEPRECATION: devscripts 2.20.2ubuntu2 has a non-standard version number. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of devscripts or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
DEPRECATION: distro-info 0.23ubuntu1 has a non-standard version number. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of distro-info or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
DEPRECATION: gpg 1.13.1-unknown has a non-standard version number. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of gpg or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
DEPRECATION: python-debian 0.1.36ubuntu1 has a non-standard version number. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of python-debian or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
Installing collected packages: paddle2onnx
Successfully installed paddle2onnx-1.0.5
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
root@instance-eoy24hji:/home/ubuntu/ph/Paddle-examples-for-AVH#

安装paddle2onnx后,重新执行run_demo.sh,结果如下:

root@instance-eoy24hji:/home/ubuntu/ph/Paddle-examples-for-AVH/object_classification# bash run_demo.sh --model PP_LCNet --device cortex-m55
Device name is cortex-m55
Model name is PP_LCNet
--2024-03-14 00:51:47--  https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPLCNet_x0_75_infer.tar
Resolving paddle-imagenet-models-name.bj.bcebos.com (paddle-imagenet-models-name.bj.bcebos.com)... 100.67.200.6
Connecting to paddle-imagenet-models-name.bj.bcebos.com (paddle-imagenet-models-name.bj.bcebos.com)|100.67.200.6|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10024960 (9.6M) [application/x-tar]
Saving to: ‘PPLCNet_x0_75_infer.tar’

PPLCNet_x0_75_infer.tar                        100%[==================================================================================================>]   9.56M  --.-KB/s    in 0.07s   

2024-03-14 00:51:47 (143 MB/s) - ‘PPLCNet_x0_75_infer.tar’ saved [10024960/10024960]

[Paddle2ONNX] Start to parse PaddlePaddle model...
[Paddle2ONNX] Model file path: /home/ubuntu/ph/Paddle-examples-for-AVH/object_classification/model/inference.pdmodel
[Paddle2ONNX] Paramters file path: /home/ubuntu/ph/Paddle-examples-for-AVH/object_classification/model/inference.pdiparams
[Paddle2ONNX] Start to parsing Paddle model...
[Paddle2ONNX] Use opset_version = 9 for ONNX export.
[Paddle2ONNX] PaddlePaddle model is exported as ONNX format now.
2024-03-14 00:51:48 [INFO]      ===============Make PaddlePaddle Better!================
2024-03-14 00:51:48 [INFO]      A little survey: https://iwenjuan.baidu.com/?code=r8hu2s
[ERROR] The defined new_name '{}' is already exist in the onnx model, which is not allowed.
WARNING:autotvm:One or more operators have not been tuned. Please tune your model for better performance. Use DEBUG logging level to see more details.
WARNING:strategy:dense is not optimized for arm cpu.
WARNING:strategy:dense is not optimized for arm cpu.
./
./codegen/
./codegen/host/
./codegen/host/include/
./codegen/host/include/tvmgen_cls.h
./codegen/host/src/
./codegen/host/src/cls_lib0.c
./codegen/host/src/cls_lib1.c
./metadata.json
./parameters/
./parameters/cls.params
./src/
./src/cls.relay
./runtime/
./runtime/CMakeLists.txt
./runtime/include/
./runtime/include/checksum.h
./runtime/include/dlpack/
./runtime/include/dlpack/dlpack.h
./runtime/include/dmlc/
./runtime/include/dmlc/any.h
./runtime/include/dmlc/array_view.h
./runtime/include/dmlc/base.h
./runtime/include/dmlc/blockingconcurrentqueue.h
./runtime/include/dmlc/build_config_default.h
./runtime/include/dmlc/common.h
./runtime/include/dmlc/concurrency.h
./runtime/include/dmlc/concurrentqueue.h
./runtime/include/dmlc/config.h
./runtime/include/dmlc/data.h
./runtime/include/dmlc/endian.h
./runtime/include/dmlc/filesystem.h
./runtime/include/dmlc/input_split_shuffle.h
./runtime/include/dmlc/io.h
./runtime/include/dmlc/json.h
./runtime/include/dmlc/logging.h
./runtime/include/dmlc/lua.h
./runtime/include/dmlc/memory.h
./runtime/include/dmlc/memory_io.h
./runtime/include/dmlc/omp.h
./runtime/include/dmlc/optional.h
./runtime/include/dmlc/parameter.h
./runtime/include/dmlc/recordio.h
./runtime/include/dmlc/registry.h
./runtime/include/dmlc/serializer.h
./runtime/include/dmlc/strtonum.h
./runtime/include/dmlc/thread_group.h
./runtime/include/dmlc/thread_local.h
./runtime/include/dmlc/threadediter.h
./runtime/include/dmlc/timer.h
./runtime/include/dmlc/type_traits.h
./runtime/include/tvm/
./runtime/include/tvm/runtime/
./runtime/include/tvm/runtime/c_backend_api.h
./runtime/include/tvm/runtime/c_runtime_api.h
./runtime/include/tvm/runtime/crt/
./runtime/include/tvm/runtime/crt/aot_executor.h
./runtime/include/tvm/runtime/crt/aot_executor_module.h
./runtime/include/tvm/runtime/crt/crt.h
./runtime/include/tvm/runtime/crt/error_codes.h
./runtime/include/tvm/runtime/crt/func_registry.h
./runtime/include/tvm/runtime/crt/graph_executor.h
./runtime/include/tvm/runtime/crt/graph_executor_module.h
./runtime/include/tvm/runtime/crt/internal/
./runtime/include/tvm/runtime/crt/internal/common/
./runtime/include/tvm/runtime/crt/internal/common/func_registry.h
./runtime/include/tvm/runtime/crt/internal/common/ndarray.h
./runtime/include/tvm/runtime/crt/internal/graph_executor/
./runtime/include/tvm/runtime/crt/internal/graph_executor/graph_executor.h
./runtime/include/tvm/runtime/crt/internal/graph_executor/load_json.h
./runtime/include/tvm/runtime/crt/internal/memory/
./runtime/include/tvm/runtime/crt/internal/memory/page_allocator.h
./runtime/include/tvm/runtime/crt/logging.h
./runtime/include/tvm/runtime/crt/microtvm_rpc_server.h
./runtime/include/tvm/runtime/crt/module.h
./runtime/include/tvm/runtime/crt/packed_func.h
./runtime/include/tvm/runtime/crt/page_allocator.h
./runtime/include/tvm/runtime/crt/platform.h
./runtime/include/tvm/runtime/crt/rpc_common/
./runtime/include/tvm/runtime/crt/rpc_common/frame_buffer.h
./runtime/include/tvm/runtime/crt/rpc_common/framing.h
./runtime/include/tvm/runtime/crt/rpc_common/session.h
./runtime/include/tvm/runtime/crt/rpc_common/write_stream.h
./runtime/include/tvm/runtime/crt/stack_allocator.h
./runtime/include/tvm/runtime/metadata_types.h
./runtime/src/
./runtime/src/runtime/
./runtime/src/runtime/crt/
./runtime/src/runtime/crt/aot_executor/
./runtime/src/runtime/crt/aot_executor/aot_executor.c
./runtime/src/runtime/crt/aot_executor_module/
./runtime/src/runtime/crt/aot_executor_module/aot_executor_module.c
./runtime/src/runtime/crt/common/
./runtime/src/runtime/crt/common/crt_backend_api.c
./runtime/src/runtime/crt/common/crt_runtime_api.c
./runtime/src/runtime/crt/common/func_registry.c
./runtime/src/runtime/crt/common/ndarray.c
./runtime/src/runtime/crt/common/packed_func.c
./runtime/src/runtime/crt/graph_executor/
./runtime/src/runtime/crt/graph_executor/graph_executor.c
./runtime/src/runtime/crt/graph_executor/load_json.c
./runtime/src/runtime/crt/graph_executor_module/
./runtime/src/runtime/crt/graph_executor_module/graph_executor_module.c
./runtime/src/runtime/crt/memory/
./runtime/src/runtime/crt/memory/page_allocator.c
./runtime/src/runtime/crt/memory/stack_allocator.c
./runtime/src/runtime/crt/microtvm_rpc_common/
./runtime/src/runtime/crt/microtvm_rpc_common/crcccitt.c
./runtime/src/runtime/crt/microtvm_rpc_common/frame_buffer.cc
./runtime/src/runtime/crt/microtvm_rpc_common/framing.cc
./runtime/src/runtime/crt/microtvm_rpc_common/session.cc
./runtime/src/runtime/crt/microtvm_rpc_common/write_stream.cc
./runtime/src/runtime/crt/microtvm_rpc_server/
./runtime/src/runtime/crt/microtvm_rpc_server/rpc_server.cc
./runtime/src/runtime/crt/tab/
./runtime/src/runtime/crt/tab/gentab_ccitt.inc
./runtime/src/runtime/minrpc/
./runtime/src/runtime/minrpc/minrpc_interfaces.h
./runtime/src/runtime/minrpc/minrpc_logger.h
./runtime/src/runtime/minrpc/minrpc_server.h
./runtime/src/runtime/minrpc/minrpc_server_logging.h
./runtime/src/runtime/minrpc/rpc_reference.h
./runtime/src/support/
./runtime/src/support/generic_arena.h
./runtime/src/support/ssize.h
./templates/crt_config.h.template
./templates/platform.c.template
run_demo.sh: line 139: /opt/ctools/bin/csolution: cannot execute binary file: Exec format error
run_demo.sh: line 140: /opt/ctools/bin/cpackget: cannot execute binary file: Exec format error
run_demo.sh: line 141: /opt/ctools/bin/cpackget: cannot execute binary file: Exec format error
Project file name is object_classification+PaddleClasM55.cprj
run_demo.sh: line 145: /opt/ctools/bin/cbuild: cannot execute binary file: Exec format error
VHT_MPS3_Corstone_SSE-300: 'out/object_classification/PaddleClasM55/object_classification.axf': application file not found

可见,第一个错误解决了,但是仍然有其它错误。

错误2

具体问题

上边log中的第二个错误是:

run_demo.sh: line 139: /opt/ctools/bin/csolution: cannot execute binary file: Exec format error
run_demo.sh: line 140: /opt/ctools/bin/cpackget: cannot execute binary file: Exec format error
run_demo.sh: line 141: /opt/ctools/bin/cpackget: cannot execute binary file: Exec format error
Project file name is object_classification+PaddleClasM55.cprj
run_demo.sh: line 145: /opt/ctools/bin/cbuild: cannot execute binary file: Exec format error

解决方法

通过咨询相关技术支持人员,他们给出了原因和解决方法:当前系统中的cmsis是x86的,需要更换为ARM版本的,需要下载ARM版本的ctools。

具体方法如下:

(1)访问https://github.com/Open-CMSIS-Pack/cmsis-toolbox/releases/tag/2.0.0。页面如下:

(2)翻到下边,找到以下文件:

(3)进行下载。由于服务器是Linux环境,因此通过wget命令进行下载。实际命令及结果如下:

root@instance-eoy24hji:/home/ubuntu/cmsis# wget https://github.com/Open-CMSIS-Pack/cmsis-toolbox/releases/download/2.0.0/cmsis-toolbox-linux-arm64.tar.gz

root@instance-eoy24hji:/home/ubuntu/cmsis# wget https://github.com/Open-CMSIS-Pack/cmsis-toolbox/releases/download/2.0.0/cmsis-toolbox-linux-arm64.tar.gz
--2024-03-14 10:53:49--  https://github.com/Open-CMSIS-Pack/cmsis-toolbox/releases/download/2.0.0/cmsis-toolbox-linux-arm64.tar.gz
Resolving github.com (github.com)... 20.205.243.166
Connecting to github.com (github.com)|20.205.243.166|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/518766597/2ee9045a-bf95-4d13-ad26-9c38f7c54c09?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240314%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240314T025350Z&X-Amz-Expires=300&X-Amz-Signature=3116c424fe6af7f547991af1fb852e9c797b1e97ea39b6e5c2a532e947bdba9b&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=518766597&response-content-disposition=attachment%3B%20filename%3Dcmsis-toolbox-linux-arm64.tar.gz&response-content-type=application%2Foctet-stream [following]
--2024-03-14 10:53:50--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/518766597/2ee9045a-bf95-4d13-ad26-9c38f7c54c09?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240314%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240314T025350Z&X-Amz-Expires=300&X-Amz-Signature=3116c424fe6af7f547991af1fb852e9c797b1e97ea39b6e5c2a532e947bdba9b&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=518766597&response-content-disposition=attachment%3B%20filename%3Dcmsis-toolbox-linux-arm64.tar.gz&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.109.133, 185.199.111.133, 185.199.108.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.109.133|:443... connected.
^[[BHTTP request sent, awaiting response... 200 OK
Length: 14744297 (14M) [application/octet-stream]
Saving to: ‘cmsis-toolbox-linux-arm64.tar.gz’

cmsis-toolbox-linux-arm64.tar.gz               100%[==================================================================================================>]  14.06M   176KB/s    in 66s     

2024-03-14 10:55:04 (218 KB/s) - ‘cmsis-toolbox-linux-arm64.tar.gz’ saved [14744297/14744297]

(4)将工具路径添加到环境变量。命令及实际结果如下:

root@instance-eoy24hji:/home/ubuntu/cmsis# export PATH=/home/ubuntu/cmsis/cmsis-toolbox-linux-arm64/bin:$PATH
root@instance-eoy24hji:/home/ubuntu/cmsis# echo $PATH
/home/ubuntu/cmsis/cmsis-toolbox-linux-arm64/bin:/home/ubuntu/.local/bin:/opt/ctools/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/armcompiler/bin:/opt/gcc-arm-11.2-2022.02-aarch64-arm-none-eabi/bin:/opt/VHT

当然,也可以将以上语句添加到bashrc或profile文件中,这样就不用每次输入了。

更换为ARM版本的ctools后,重新执行run_demo.sh,结果如下:

root@instance-eoy24hji:/home/ubuntu/ph/Paddle-examples-for-AVH/object_classification# bash run_demo.sh --model PP_LCNet --device cortex-m55
Device name is cortex-m55
Model name is PP_LCNet
--2024-03-14 12:13:01--  https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPLCNet_x0_75_infer.tar
Resolving paddle-imagenet-models-name.bj.bcebos.com (paddle-imagenet-models-name.bj.bcebos.com)... 100.67.200.6
Connecting to paddle-imagenet-models-name.bj.bcebos.com (paddle-imagenet-models-name.bj.bcebos.com)|100.67.200.6|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10024960 (9.6M) [application/x-tar]
Saving to: ‘PPLCNet_x0_75_infer.tar’

PPLCNet_x0_75_infer.tar                        100%[==================================================================================================>]   9.56M  --.-KB/s    in 0.1s    

2024-03-14 12:13:01 (99.4 MB/s) - ‘PPLCNet_x0_75_infer.tar’ saved [10024960/10024960]

[Paddle2ONNX] Start to parse PaddlePaddle model...
[Paddle2ONNX] Model file path: /home/ubuntu/ph/Paddle-examples-for-AVH/object_classification/model/inference.pdmodel
[Paddle2ONNX] Paramters file path: /home/ubuntu/ph/Paddle-examples-for-AVH/object_classification/model/inference.pdiparams
[Paddle2ONNX] Start to parsing Paddle model...
[Paddle2ONNX] Use opset_version = 9 for ONNX export.
[Paddle2ONNX] PaddlePaddle model is exported as ONNX format now.
2024-03-14 12:13:02 [INFO]      ===============Make PaddlePaddle Better!================
2024-03-14 12:13:02 [INFO]      A little survey: https://iwenjuan.baidu.com/?code=r8hu2s
[ERROR] The defined new_name '{}' is already exist in the onnx model, which is not allowed.
WARNING:autotvm:One or more operators have not been tuned. Please tune your model for better performance. Use DEBUG logging level to see more details.
WARNING:strategy:dense is not optimized for arm cpu.
WARNING:strategy:dense is not optimized for arm cpu.
./
./codegen/
./codegen/host/
./codegen/host/include/
./codegen/host/include/tvmgen_cls.h
./codegen/host/src/
./codegen/host/src/cls_lib0.c
./codegen/host/src/cls_lib1.c
./metadata.json
./parameters/
./parameters/cls.params
./src/
./src/cls.relay
./runtime/
./runtime/CMakeLists.txt
./runtime/include/
./runtime/include/checksum.h
./runtime/include/dlpack/
./runtime/include/dlpack/dlpack.h
./runtime/include/dmlc/
./runtime/include/dmlc/any.h
./runtime/include/dmlc/array_view.h
./runtime/include/dmlc/base.h
./runtime/include/dmlc/blockingconcurrentqueue.h
./runtime/include/dmlc/build_config_default.h
./runtime/include/dmlc/common.h
./runtime/include/dmlc/concurrency.h
./runtime/include/dmlc/concurrentqueue.h
./runtime/include/dmlc/config.h
./runtime/include/dmlc/data.h
./runtime/include/dmlc/endian.h
./runtime/include/dmlc/filesystem.h
./runtime/include/dmlc/input_split_shuffle.h
./runtime/include/dmlc/io.h
./runtime/include/dmlc/json.h
./runtime/include/dmlc/logging.h
./runtime/include/dmlc/lua.h
./runtime/include/dmlc/memory.h
./runtime/include/dmlc/memory_io.h
./runtime/include/dmlc/omp.h
./runtime/include/dmlc/optional.h
./runtime/include/dmlc/parameter.h
./runtime/include/dmlc/recordio.h
./runtime/include/dmlc/registry.h
./runtime/include/dmlc/serializer.h
./runtime/include/dmlc/strtonum.h
./runtime/include/dmlc/thread_group.h
./runtime/include/dmlc/thread_local.h
./runtime/include/dmlc/threadediter.h
./runtime/include/dmlc/timer.h
./runtime/include/dmlc/type_traits.h
./runtime/include/tvm/
./runtime/include/tvm/runtime/
./runtime/include/tvm/runtime/c_backend_api.h
./runtime/include/tvm/runtime/c_runtime_api.h
./runtime/include/tvm/runtime/crt/
./runtime/include/tvm/runtime/crt/aot_executor.h
./runtime/include/tvm/runtime/crt/aot_executor_module.h
./runtime/include/tvm/runtime/crt/crt.h
./runtime/include/tvm/runtime/crt/error_codes.h
./runtime/include/tvm/runtime/crt/func_registry.h
./runtime/include/tvm/runtime/crt/graph_executor.h
./runtime/include/tvm/runtime/crt/graph_executor_module.h
./runtime/include/tvm/runtime/crt/internal/
./runtime/include/tvm/runtime/crt/internal/common/
./runtime/include/tvm/runtime/crt/internal/common/func_registry.h
./runtime/include/tvm/runtime/crt/internal/common/ndarray.h
./runtime/include/tvm/runtime/crt/internal/graph_executor/
./runtime/include/tvm/runtime/crt/internal/graph_executor/graph_executor.h
./runtime/include/tvm/runtime/crt/internal/graph_executor/load_json.h
./runtime/include/tvm/runtime/crt/internal/memory/
./runtime/include/tvm/runtime/crt/internal/memory/page_allocator.h
./runtime/include/tvm/runtime/crt/logging.h
./runtime/include/tvm/runtime/crt/microtvm_rpc_server.h
./runtime/include/tvm/runtime/crt/module.h
./runtime/include/tvm/runtime/crt/packed_func.h
./runtime/include/tvm/runtime/crt/page_allocator.h
./runtime/include/tvm/runtime/crt/platform.h
./runtime/include/tvm/runtime/crt/rpc_common/
./runtime/include/tvm/runtime/crt/rpc_common/frame_buffer.h
./runtime/include/tvm/runtime/crt/rpc_common/framing.h
./runtime/include/tvm/runtime/crt/rpc_common/session.h
./runtime/include/tvm/runtime/crt/rpc_common/write_stream.h
./runtime/include/tvm/runtime/crt/stack_allocator.h
./runtime/include/tvm/runtime/metadata_types.h
./runtime/src/
./runtime/src/runtime/
./runtime/src/runtime/crt/
./runtime/src/runtime/crt/aot_executor/
./runtime/src/runtime/crt/aot_executor/aot_executor.c
./runtime/src/runtime/crt/aot_executor_module/
./runtime/src/runtime/crt/aot_executor_module/aot_executor_module.c
./runtime/src/runtime/crt/common/
./runtime/src/runtime/crt/common/crt_backend_api.c
./runtime/src/runtime/crt/common/crt_runtime_api.c
./runtime/src/runtime/crt/common/func_registry.c
./runtime/src/runtime/crt/common/ndarray.c
./runtime/src/runtime/crt/common/packed_func.c
./runtime/src/runtime/crt/graph_executor/
./runtime/src/runtime/crt/graph_executor/graph_executor.c
./runtime/src/runtime/crt/graph_executor/load_json.c
./runtime/src/runtime/crt/graph_executor_module/
./runtime/src/runtime/crt/graph_executor_module/graph_executor_module.c
./runtime/src/runtime/crt/memory/
./runtime/src/runtime/crt/memory/page_allocator.c
./runtime/src/runtime/crt/memory/stack_allocator.c
./runtime/src/runtime/crt/microtvm_rpc_common/
./runtime/src/runtime/crt/microtvm_rpc_common/crcccitt.c
./runtime/src/runtime/crt/microtvm_rpc_common/frame_buffer.cc
./runtime/src/runtime/crt/microtvm_rpc_common/framing.cc
./runtime/src/runtime/crt/microtvm_rpc_common/session.cc
./runtime/src/runtime/crt/microtvm_rpc_common/write_stream.cc
./runtime/src/runtime/crt/microtvm_rpc_server/
./runtime/src/runtime/crt/microtvm_rpc_server/rpc_server.cc
./runtime/src/runtime/crt/tab/
./runtime/src/runtime/crt/tab/gentab_ccitt.inc
./runtime/src/runtime/minrpc/
./runtime/src/runtime/minrpc/minrpc_interfaces.h
./runtime/src/runtime/minrpc/minrpc_logger.h
./runtime/src/runtime/minrpc/minrpc_server.h
./runtime/src/runtime/minrpc/minrpc_server_logging.h
./runtime/src/runtime/minrpc/rpc_reference.h
./runtime/src/support/
./runtime/src/support/generic_arena.h
./runtime/src/support/ssize.h
./templates/crt_config.h.template
./templates/platform.c.template
I: Using pack root: "/home/ubuntu/packs"
I: Updating public index
I: Downloading index.pidx...
I: 100% |█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| (182/182 kB, 36 kB/s)        

I: Updating PDSC files of installed packs referenced in index.pidx
I: Using pack root: "/home/ubuntu/packs"
I: Parsing packs urls via file packs.txt
I: Adding pack "ARM::CMSIS"
E: Can't decompress "/home/ubuntu/packs/.Download/ARM.CMSIS.6.0.0.pack": zip: not a valid zip file
E: fail to decompress file
I: Downloading ARM.CMSIS-DSP.pdsc...
I: 100% |███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| (14/14 kB, 47 MB/s)        

I: Adding pack "ARM::CMSIS-DSP"
I: Downloading ARM.CMSIS-DSP.1.15.0.pack...
I:  19% |██████████████████████████                                                                                                                 | (1.5/7.7 MB, 13 kB/s) [5m22s:8m21s]^I:  88% |█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████                 | (6.8/7.7 MB, 13 kB/s) [25m12s:1m11s]E: unexpected EOF

E: failed writing HTTP stream to local file
I: Downloading ARM.CMSIS-NN.pdsc...
I: 100% |███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| (11/11 kB, 58 MB/s)        

I: Adding pack "ARM::CMSIS-NN"
I: Downloading ARM.CMSIS-NN.4.1.0.pack...
I: 100% |█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| (940/940 kB, 5.2 kB/s)           

I: Extracting files to /home/ubuntu/packs/ARM/CMSIS-NN/4.1.0...
I: 100% |█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| (513/513, 12906 it/s)        
I: Downloading ARM.V2M_MPS3_SSE_300_BSP.pdsc...
I: 100% |██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| (29/29 kB, 139 kB/s)        

I: Adding pack "ARM::V2M_MPS3_SSE_300_BSP"
I: Downloading ARM.V2M_MPS3_SSE_300_BSP.1.5.0.pack...
I:  59% |█████████████████████████████████████████████████████████████████████████████████                                                         | (2.5/4.2 MB, 5.5 kB/s) [9m46s:5m19s]^I:  63% |██████████████████████████████████████████████████████████████████████████████████████                                                    | (2.7/4.2 MB, 8.3 kB/s) [10m34s:3m9s]^I:  79% |████████████████████████████████████████████████████████████████████████████████████████████████████████████                             | (3.4/4.2 MB, 7.5 kB/s) [13m10s:1m57s]^I: 100% |████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| (4.2/4.2 MB, 3.9 kB/s)            

I: Extracting files to /home/ubuntu/packs/ARM/V2M_MPS3_SSE_300_BSP/1.5.0...
I: 100% |██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| (122/122, 1754 it/s)        
I: Downloading ARM.CMSIS-Compiler.pdsc...
I: 100% |██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| (22/22 kB, 103 kB/s)        

I: Package requirements not satisfied - installing ARM::CMSIS@>=6.0.0 ARM::CMSIS-Compiler@>=2.0.0 
I: Adding pack ARM.CMSIS.6.0.0
E: Can't decompress "/home/ubuntu/packs/.Download/ARM.CMSIS.6.0.0.pack": zip: not a valid zip file
E: fail to decompress file
I: Downloading ARM.V2M_MPS3_SSE_310_BSP.pdsc...
I: 100% |██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| (31/31 kB, 149 kB/s)        

I: Adding pack "ARM::V2M_MPS3_SSE_310_BSP"
I: Downloading ARM.V2M_MPS3_SSE_310_BSP.1.4.0.pack...
I:  22% |██████████████████████████████                                                                                                             | (1.3/6.0 MB, 16 kB/s) [4m55s:4m58s]^I: 100% |████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| (6.0/6.0 MB, 4.0 kB/s)            

I: Extracting files to /home/ubuntu/packs/ARM/V2M_MPS3_SSE_310_BSP/1.4.0...
I: 100% |██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| (142/142, 1328 it/s)        
E: Get "https://www.keil.com/pack/ARM.CMSIS-Compiler.pdsc": read tcp 192.168.32.2:36018->104.109.129.106:443: read: connection timed out
E: Could not download "https://www.keil.com/pack/ARM.CMSIS-Compiler.pdsc": failed to download file
E: the URL for the pack pdsc file seems not to exist or it didn't return the file
I: Downloading Keil.ARM_Compiler.pdsc...
I: 100% |███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| (21/21 kB, 98 kB/s)        

I: Adding pack "Keil::ARM_Compiler"
I: Downloading Keil.ARM_Compiler.1.7.2.pack...
I: 100% |█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| (3.9/3.9 MB, 4.7 kB/s)           

I: Extracting files to /home/ubuntu/packs/Keil/ARM_Compiler/1.7.2...
I: 100% |██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| (670/670, 7642 it/s)        
Project file name is object_classification+PaddleClasM55.cprj
info cbuild: Build Invocation 2.0.0 (C) 2023 Arm Ltd. and Contributors

M654: Package 'ARM::CMSIS@5.9.0' was added to the list of missing packages.
M654: Package 'ARM::V2M_MPS3_SSE_300_BSP@1.4.0' was added to the list of missing packages.
M650: Command completed successfully.
error cbuild: missing packs must be installed, rerun cbuild with the --packs option
error cbuild: missing packs must be installed, rerun cbuild with the --packs option
VHT_MPS3_Corstone_SSE-300: 'out/object_classification/PaddleClasM55/object_classification.axf': application file not found

Info: /OSCI/SystemC: Simulation stopped by user.

可见,第二个错误解决了,但是仍然有其它错误。

错误3

具体问题

M654: Package 'ARM::CMSIS@5.9.0' was added to the list of missing packages.
M654: Package 'ARM::V2M_MPS3_SSE_300_BSP@1.4.0' was added to the list of missing packages.

解决方法

这个问题是由于缺少了CMSIS 5.9.0和V2M_MPS3_SSE_300_BSP 1.4.0两个包。需要下载并安装这两个包。具体步骤如下:

(1)登录官网

登录Arm Keil | CMSIS Packs,页面如下:

(2)搜索“CMSIS”

以“CMSIS”为关键字进行搜索,结果如下:

(3)下载CMSIS包

注意,这里不要直接下载最新的6.0.0.版本,而是要下载5.9.0版本。实际命令及结果如下:

# wget http://www.keil.com/pack/ARM.CMSIS.5.9.0.pack
URL transformed to HTTPS due to an HSTS policy
--2024-03-14 22:53:21--  https://www.keil.com/pack/ARM.CMSIS.5.9.0.pack
Resolving www.keil.com (www.keil.com)... 23.44.51.144, 23.44.51.203, 2600:140b:1e00:11::17db:aa33, ...
Connecting to www.keil.com (www.keil.com)|23.44.51.144|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://keilpack.azureedge.net/pack/ARM.CMSIS.5.9.0.pack [following]
--2024-03-14 22:53:23--  https://keilpack.azureedge.net/pack/ARM.CMSIS.5.9.0.pack
Resolving keilpack.azureedge.net (keilpack.azureedge.net)... 117.18.232.200, 2606:2800:147:120f:30c:1ba0:fc6:265a
Connecting to keilpack.azureedge.net (keilpack.azureedge.net)|117.18.232.200|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 34129867 (33M) [application/octet-stream]
Saving to: ‘ARM.CMSIS.5.9.0.pack’

ARM.CMSIS.5.9.0.pack                             1%[>                                                                                                  ] 407.99K  2.17KB/s    eta 3h 33m ^ARM.CMSIS.5.9.0.pack                             1%[>                                                                                                  ] 664.00K  2.36KB/s    eta 3h 39m ^ARM.CMSIS.5.9.0.pack                             9%[========>                                                                                          ]   3.21M  3.32KB/s    eta 2h 51m ^ARM.CMSIS.5.9.0.pack                            24%[======================>                                                                            ]   7.88M  3.23KB/s    in 49m 9s  

2024-03-14 23:42:36 (2.73 KB/s) - Connection closed at byte 8257536. Retrying.

--2024-03-14 23:42:37--  (try: 2)  https://keilpack.azureedge.net/pack/ARM.CMSIS.5.9.0.pack
Connecting to keilpack.azureedge.net (keilpack.azureedge.net)|117.18.232.200|:443... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 34129867 (33M), 25872331 (25M) remaining [application/octet-stream]
Saving to: ‘ARM.CMSIS.5.9.0.pack’

ARM.CMSIS.5.9.0.pack                            44%[+++++++++++++++++++++++===================>                                                        ]  14.37M  3.21KB/s    eta 92m 37s^ARM.CMSIS.5.9.0.pack                           100%[+++++++++++++++++++++++===========================================================================>]  32.55M  6.04KB/s    in 96m 44s 

2024-03-15 01:19:25 (4.35 KB/s) - ‘ARM.CMSIS.5.9.0.pack’ saved [34129867/34129867]

(4)搜索“V2M_MPS3_SSE_300_BSP”

以“V2M_MPS3_SSE_300_BSP”为关键字进行搜索,结果如下:

(5)下载V2M_MPS3_SSE_300_BSP包

注意,这里不要直接下载最新的1.5.0.版本,而是要下载1.4.0版本。实际命令及结果如下:

# wget http://www.keil.com/pack/ARM.V2M_MPS3_SSE_300_BSP.1.4.0.pack
URL transformed to HTTPS due to an HSTS policy
--2024-03-14 21:00:40--  https://www.keil.com/pack/ARM.V2M_MPS3_SSE_300_BSP.1.4.0.pack
Resolving www.keil.com (www.keil.com)... 23.44.51.203, 23.44.51.144, 2600:1417:4400:1b::17c8:8f47, ...
Connecting to www.keil.com (www.keil.com)|23.44.51.203|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://keilpack.azureedge.net/pack/ARM.V2M_MPS3_SSE_300_BSP.1.4.0.pack [following]
--2024-03-14 21:00:44--  https://keilpack.azureedge.net/pack/ARM.V2M_MPS3_SSE_300_BSP.1.4.0.pack
Resolving keilpack.azureedge.net (keilpack.azureedge.net)... 117.18.232.200, 2606:2800:147:120f:30c:1ba0:fc6:265a
Connecting to keilpack.azureedge.net (keilpack.azureedge.net)|117.18.232.200|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5102774 (4.9M) [application/octet-stream]
Saving to: ‘ARM.V2M_MPS3_SSE_300_BSP.1.4.0.pack’

ARM.V2M_MPS3_SSE_300_BSP.1.4.0.pack              2%[=>                                                                                                 ] 120.00K   985 B/s    eta 84m 16s^ARM.V2M_MPS3_SSE_300_BSP.1.4.0.pack             38%[====================================>                                                              ]   1.87M   906 B/s    eta 36m 7s ^ARM.V2M_MPS3_SSE_300_BSP.1.4.0.pack             40%[======================================>                                                            ]   1.96M   567 B/s    eta 39m 29s^ARM.V2M_MPS3_SSE_300_BSP.1.4.0.pack            100%[==================================================================================================>]   4.87M  1.49KB/s    in 61m 5s  

2024-03-14 22:01:59 (1.36 KB/s) - ‘ARM.V2M_MPS3_SSE_300_BSP.1.4.0.pack’ saved [5102774/5102774]

(6)安装CMSIS包和V2M_MPS3_SSE_300_BSP包

通过cpackget 命令分别安装CMSIS包和V2M_MPS3_SSE_300_BSP包。实际命令及结果分别如下:

  • CMSIS 5.9.0
root@instance-eoy24hji:/home/ubuntu/cmsis_packet# cpackget add ARM.CMSIS.5.9.0.pack 
I: Using pack root: "/home/ubuntu/packs"
I: Adding pack "ARM.CMSIS.5.9.0.pack"
I: Extracting files to /home/ubuntu/packs/ARM/CMSIS/5.9.0...
I: 100% |████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| (8642/8642, 7626 it/s)        
  • V2M_MPS3_SSE_300_BSP 1.4.0
# cpackget add ARM.V2M_MPS3_SSE_300_BSP.1.4.0.pack 
I: Using pack root: "/home/ubuntu/packs"
I: Adding pack "ARM.V2M_MPS3_SSE_300_BSP.1.4.0.pack"
I: Extracting files to /home/ubuntu/packs/ARM/V2M_MPS3_SSE_300_BSP/1.4.0...
I: 100% |██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| (128/128, 1744 it/s)        

下载并安装ARM.CMSIS.5.9.0.pack和ARM.V2M_MPS3_SSE_300_BSP.1.4.0.pack后,重新执行run_demo.sh,结果如下:

root@instance-eoy24hji:/home/ubuntu/ph/Paddle-examples-for-AVH/object_classification# bash run_demo.sh --model PP_LCNet --device cortex-m55
Device name is cortex-m55
Model name is PP_LCNet
--2024-03-15 01:25:57--  https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/inference/PPLCNet_x0_75_infer.tar
Resolving paddle-imagenet-models-name.bj.bcebos.com (paddle-imagenet-models-name.bj.bcebos.com)... 100.67.200.6
Connecting to paddle-imagenet-models-name.bj.bcebos.com (paddle-imagenet-models-name.bj.bcebos.com)|100.67.200.6|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10024960 (9.6M) [application/x-tar]
Saving to: ‘PPLCNet_x0_75_infer.tar’

PPLCNet_x0_75_infer.tar                        100%[==================================================================================================>]   9.56M  --.-KB/s    in 0.07s   

2024-03-15 01:25:57 (137 MB/s) - ‘PPLCNet_x0_75_infer.tar’ saved [10024960/10024960]

[Paddle2ONNX] Start to parse PaddlePaddle model...
[Paddle2ONNX] Model file path: /home/ubuntu/ph/Paddle-examples-for-AVH/object_classification/model/inference.pdmodel
[Paddle2ONNX] Paramters file path: /home/ubuntu/ph/Paddle-examples-for-AVH/object_classification/model/inference.pdiparams
[Paddle2ONNX] Start to parsing Paddle model...
[Paddle2ONNX] Use opset_version = 9 for ONNX export.
[Paddle2ONNX] PaddlePaddle model is exported as ONNX format now.
2024-03-15 01:25:57 [INFO]      ===============Make PaddlePaddle Better!================
2024-03-15 01:25:57 [INFO]      A little survey: https://iwenjuan.baidu.com/?code=r8hu2s
[ERROR] The defined new_name '{}' is already exist in the onnx model, which is not allowed.
WARNING:autotvm:One or more operators have not been tuned. Please tune your model for better performance. Use DEBUG logging level to see more details.
WARNING:strategy:dense is not optimized for arm cpu.
WARNING:strategy:dense is not optimized for arm cpu.
./
./codegen/
./codegen/host/
./codegen/host/include/
./codegen/host/include/tvmgen_cls.h
./codegen/host/src/
./codegen/host/src/cls_lib0.c
./codegen/host/src/cls_lib1.c
./metadata.json
./parameters/
./parameters/cls.params
./src/
./src/cls.relay
./runtime/
./runtime/CMakeLists.txt
./runtime/include/
./runtime/include/checksum.h
./runtime/include/dlpack/
./runtime/include/dlpack/dlpack.h
./runtime/include/dmlc/
./runtime/include/dmlc/any.h
./runtime/include/dmlc/array_view.h
./runtime/include/dmlc/base.h
./runtime/include/dmlc/blockingconcurrentqueue.h
./runtime/include/dmlc/build_config_default.h
./runtime/include/dmlc/common.h
./runtime/include/dmlc/concurrency.h
./runtime/include/dmlc/concurrentqueue.h
./runtime/include/dmlc/config.h
./runtime/include/dmlc/data.h
./runtime/include/dmlc/endian.h
./runtime/include/dmlc/filesystem.h
./runtime/include/dmlc/input_split_shuffle.h
./runtime/include/dmlc/io.h
./runtime/include/dmlc/json.h
./runtime/include/dmlc/logging.h
./runtime/include/dmlc/lua.h
./runtime/include/dmlc/memory.h
./runtime/include/dmlc/memory_io.h
./runtime/include/dmlc/omp.h
./runtime/include/dmlc/optional.h
./runtime/include/dmlc/parameter.h
./runtime/include/dmlc/recordio.h
./runtime/include/dmlc/registry.h
./runtime/include/dmlc/serializer.h
./runtime/include/dmlc/strtonum.h
./runtime/include/dmlc/thread_group.h
./runtime/include/dmlc/thread_local.h
./runtime/include/dmlc/threadediter.h
./runtime/include/dmlc/timer.h
./runtime/include/dmlc/type_traits.h
./runtime/include/tvm/
./runtime/include/tvm/runtime/
./runtime/include/tvm/runtime/c_backend_api.h
./runtime/include/tvm/runtime/c_runtime_api.h
./runtime/include/tvm/runtime/crt/
./runtime/include/tvm/runtime/crt/aot_executor.h
./runtime/include/tvm/runtime/crt/aot_executor_module.h
./runtime/include/tvm/runtime/crt/crt.h
./runtime/include/tvm/runtime/crt/error_codes.h
./runtime/include/tvm/runtime/crt/func_registry.h
./runtime/include/tvm/runtime/crt/graph_executor.h
./runtime/include/tvm/runtime/crt/graph_executor_module.h
./runtime/include/tvm/runtime/crt/internal/
./runtime/include/tvm/runtime/crt/internal/common/
./runtime/include/tvm/runtime/crt/internal/common/func_registry.h
./runtime/include/tvm/runtime/crt/internal/common/ndarray.h
./runtime/include/tvm/runtime/crt/internal/graph_executor/
./runtime/include/tvm/runtime/crt/internal/graph_executor/graph_executor.h
./runtime/include/tvm/runtime/crt/internal/graph_executor/load_json.h
./runtime/include/tvm/runtime/crt/internal/memory/
./runtime/include/tvm/runtime/crt/internal/memory/page_allocator.h
./runtime/include/tvm/runtime/crt/logging.h
./runtime/include/tvm/runtime/crt/microtvm_rpc_server.h
./runtime/include/tvm/runtime/crt/module.h
./runtime/include/tvm/runtime/crt/packed_func.h
./runtime/include/tvm/runtime/crt/page_allocator.h
./runtime/include/tvm/runtime/crt/platform.h
./runtime/include/tvm/runtime/crt/rpc_common/
./runtime/include/tvm/runtime/crt/rpc_common/frame_buffer.h
./runtime/include/tvm/runtime/crt/rpc_common/framing.h
./runtime/include/tvm/runtime/crt/rpc_common/session.h
./runtime/include/tvm/runtime/crt/rpc_common/write_stream.h
./runtime/include/tvm/runtime/crt/stack_allocator.h
./runtime/include/tvm/runtime/metadata_types.h
./runtime/src/
./runtime/src/runtime/
./runtime/src/runtime/crt/
./runtime/src/runtime/crt/aot_executor/
./runtime/src/runtime/crt/aot_executor/aot_executor.c
./runtime/src/runtime/crt/aot_executor_module/
./runtime/src/runtime/crt/aot_executor_module/aot_executor_module.c
./runtime/src/runtime/crt/common/
./runtime/src/runtime/crt/common/crt_backend_api.c
./runtime/src/runtime/crt/common/crt_runtime_api.c
./runtime/src/runtime/crt/common/func_registry.c
./runtime/src/runtime/crt/common/ndarray.c
./runtime/src/runtime/crt/common/packed_func.c
./runtime/src/runtime/crt/graph_executor/
./runtime/src/runtime/crt/graph_executor/graph_executor.c
./runtime/src/runtime/crt/graph_executor/load_json.c
./runtime/src/runtime/crt/graph_executor_module/
./runtime/src/runtime/crt/graph_executor_module/graph_executor_module.c
./runtime/src/runtime/crt/memory/
./runtime/src/runtime/crt/memory/page_allocator.c
./runtime/src/runtime/crt/memory/stack_allocator.c
./runtime/src/runtime/crt/microtvm_rpc_common/
./runtime/src/runtime/crt/microtvm_rpc_common/crcccitt.c
./runtime/src/runtime/crt/microtvm_rpc_common/frame_buffer.cc
./runtime/src/runtime/crt/microtvm_rpc_common/framing.cc
./runtime/src/runtime/crt/microtvm_rpc_common/session.cc
./runtime/src/runtime/crt/microtvm_rpc_common/write_stream.cc
./runtime/src/runtime/crt/microtvm_rpc_server/
./runtime/src/runtime/crt/microtvm_rpc_server/rpc_server.cc
./runtime/src/runtime/crt/tab/
./runtime/src/runtime/crt/tab/gentab_ccitt.inc
./runtime/src/runtime/minrpc/
./runtime/src/runtime/minrpc/minrpc_interfaces.h
./runtime/src/runtime/minrpc/minrpc_logger.h
./runtime/src/runtime/minrpc/minrpc_server.h
./runtime/src/runtime/minrpc/minrpc_server_logging.h
./runtime/src/runtime/minrpc/rpc_reference.h
./runtime/src/support/
./runtime/src/support/generic_arena.h
./runtime/src/support/ssize.h
./templates/crt_config.h.template
./templates/platform.c.template
I: Using pack root: "/home/ubuntu/packs"
I: Updating public index
I: Downloading index.pidx...
I: 100% |████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| (182/182 kB, 215 kB/s)        

I: Updating PDSC files of installed packs referenced in index.pidx
I: Using pack root: "/home/ubuntu/packs"
I: Parsing packs urls via file packs.txt
W: Missing a pack-path or list with pack urls specified via -f/--packs-list-filename
Project file name is object_classification+PaddleClasM55.cprj
info cbuild: Build Invocation 2.0.0 (C) 2023 Arm Ltd. and Contributors

M650: Command completed successfully.

M652: Generated file for project build: '/home/ubuntu/ph/Paddle-examples-for-AVH/object_classification/tmp/object_classification/PaddleClasM55/CMakeLists.txt'
-- The C compiler identification is unknown
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /opt/armcompiler/bin/armclang
-- Check for working C compiler: /opt/armcompiler/bin/armclang - broken
CMake Error at /usr/local/share/cmake-3.24/Modules/CMakeTestCCompiler.cmake:69 (message):
  The C compiler

    "/opt/armcompiler/bin/armclang"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /home/ubuntu/ph/Paddle-examples-for-AVH/object_classification/tmp/object_classification/PaddleClasM55/CMakeFiles/CMakeTmp
    
    Run Build Command(s):/usr/bin/ninja cmTC_5b500 && [1/2] Building C object CMakeFiles/cmTC_5b500.dir/testCCompiler.c.obj
    FAILED: CMakeFiles/cmTC_5b500.dir/testCCompiler.c.obj 
    /opt/armcompiler/bin/armclang   -mcpu=Cortex-M55 -mfloat-abi=hard -o CMakeFiles/cmTC_5b500.dir/testCCompiler.c.obj -c /home/ubuntu/ph/Paddle-examples-for-AVH/object_classification/tmp/object_classification/PaddleClasM55/CMakeFiles/CMakeTmp/testCCompiler.c
    armclang: error: Failed to check out a license.
    This host does not match the host ID in the license.
Information about this error is available at: http://ds.arm.com/support/lic56/m9
     General licensing information is available at: http://ds.arm.com/support/licensing/
     If you need further help, provide this complete error report to your supplier or license.support@arm.com.
     - ARMLMD_LICENSE_FILE: '/opt/data.dat'
     - LM_LICENSE_FILE: unset
     - ARM_PRODUCT_DEF: unset
     - ARM_PRODUCT_PATH: unset
     - ARM_TOOL_VARIANT: unset
     - Product location: /opt/armcompiler/sw/mappings
     - Toolchain location: /opt/armcompiler/bin
     - Selected tool variant: product
 - Checkout feature: compiler5
     - Feature version: 5.0202203
     - Flex error code: -9
    Product: Arm Compiler for Embedded 6.18 Professional
    Component: Arm Compiler for Embedded 6.18
    Tool: armclang [5e4cbf00]
    
    ninja: build stopped: subcommand failed.
    
    

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:171 (project)


-- Configuring incomplete, errors occurred!
See also "/home/ubuntu/ph/Paddle-examples-for-AVH/object_classification/tmp/object_classification/PaddleClasM55/CMakeFiles/CMakeOutput.log".
See also "/home/ubuntu/ph/Paddle-examples-for-AVH/object_classification/tmp/object_classification/PaddleClasM55/CMakeFiles/CMakeError.log".
error cbuild: error executing 'cmake' configuration
error cbuild: exit status 1
VHT_MPS3_Corstone_SSE-300: 'out/object_classification/PaddleClasM55/object_classification.axf': application file not found

Info: /OSCI/SystemC: Simulation stopped by user.
root@instance-eoy24hji:/home/ubuntu/ph/Paddle-examples-for-AVH/object_classification# 

仍然存在错误。至于这些错误如何解决,有待进一步探究。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:/a/462404.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

前后端分离项目环境搭建

1. 使用到的技术和工具 springboot vue项目的搭建 工具 idea&#xff0c;mavennodejs 2. 后端框架搭建 利用maven创建springboot项目 3. 前端项目搭建 1. 安装相关工具 nodejs&#xff1a; 一个开源、跨平台的 JavaScript 运行时环境&#xff0c;可以理解成java当中需要…

企业微信 API 接口调用教程:深入解析企业微信 API 的用法

本文通过 access_token 凭证的方式来讲解怎么调用 企业微信 API&#xff0c;并一步步介绍如何获取企业微信 API 的 corpsecret、corpid、access_token 凭证以及怎么向企业微信的应用发送消息。 企业微信 API 在线地址为&#xff1a;qiyeweixin.apifox.cn/ &#xff0c;这个在线…

LInux 进程替换(理解系统调用)

目录 一、替换原理 二、替换函数 1、exec函数 2、命名理解 3、返回值 4、使用execl/lp、execv/vp 5、执行自定义命令 Makefile编译多个文件 命令行程序mycmd.c 传入自己的可执行文件 7、子进程都继承父进程环境变量 8、execle/ve修改子进程环境变量 9、exece函数为…

Hack The Box-Jab

目录 信息收集 nmap enum4linux 服务信息收集 Pidgin kerbrute hashcat 反弹shell & get user 提权 系统信息收集 端口转发 漏洞利用 get root 信息收集 nmap 端口探测┌──(root㉿ru)-[~/kali/hackthebox] └─# nmap -p- 10.10.11.4 --min-rate 10000 -oA…

Docker----Dockerfile构建微服务镜像

目录 一、关键步骤 二、具体步骤 1、准备后端jar包(这里以java后端演示) 2、编写Dockerfile 3、构建镜像 4、运行镜像容器 5、测试是否成功 一、关键步骤 1、准备后端jar包(这里以java后端演示) 2、编写Dockerfile 3、构建镜像 4、运行镜像容器 5、测试是否成功 二…

Openfeign使用教程(带你快速体验Openfeign的便捷)

文章摘要 本文中将教会您如何快速使用Openfeign&#xff0c;包括Opengfeign的基础配置、接口调用、接口重试、拦截器实现、记录接口日志信息到数据库 文章目录 文章摘要一、Openfeign初步定义二、Openfeign快速入门1.引入maven坐标2.启动类增加EnableFeignClients注解3.定义fei…

从金蝶云星空到钉钉通过接口配置打通数据

从金蝶云星空到钉钉通过接口配置打通数据 对接系统金蝶云星空 金蝶K/3Cloud&#xff08;金蝶云星空&#xff09;是移动互联网时代的新型ERP&#xff0c;是基于WEB2.0与云技术的新时代企业管理服务平台。金蝶K/3Cloud围绕着“生态、人人、体验”&#xff0c;旨在帮助企业打造面…

IDEA连接Mysql失败:下载驱动失败,Failed todownload Cannot download Read timed out

解决&#xff1a; 1. 手动加入jar包 2.选择自己maven仓库中存在mysql-connector 3. 选择完毕后&#xff0c;确定使用&#xff1a; 4. 进行测试连接

【代码随想录】【回溯算法】补day24:组合问题以及组合的优化

回溯算法&#xff1a;递归函数里面嵌套着for循环 给定两个整数 n 和 k&#xff0c;返回 1 … n 中所有可能的 k 个数的组合。 示例: 输入: n 4, k 2 输出: [ [2,4], [3,4], [2,3], [1,2], [1,3], [1,4], ] 包含组合问题和组合问题的剪枝优化 class solution:def combine(se…

免费接口调用 招标信息自动抽取|招标信息|招标数据解析接口

一、开源项目介绍 一款多模态AI能力引擎&#xff0c;专注于提供自然语言处理&#xff08;NLP&#xff09;、情感分析、实体识别、图像识别与分类、OCR识别和语音识别等接口服务。该平台功能强大&#xff0c;支持本地化部署&#xff0c;并鼓励用户体验和开发者共同完善&#xf…

git:码云仓库提交以及Spring项目创建

git&#xff1a;码云仓库提交 1 前言 码云访问稳定性优于github&#xff0c;首先准备好码云的账户&#xff1a; 官网下载GIT&#xff0c;打开git bash&#xff1a; 查看当前用户的所有GIT仓库&#xff0c;需要查看全局的配置信息&#xff0c;使用如下命令&#xff1a; git …

旅游管理系统 |基于springboot框架+ Mysql+Java+Tomcat的旅游管理系统设计与实现(可运行源码+数据库+设计文档)

推荐阅读100套最新项目 最新ssmjava项目文档视频演示可运行源码分享 最新jspjava项目文档视频演示可运行源码分享 最新Spring Boot项目文档视频演示可运行源码分享 目录 前台功能效果图 管理员功能登录前台功能效果图 系统功能设计 数据库E-R图设计 lunwen参考 摘要 研究…

羊大师分析羊奶入菜,美味新体验

羊大师分析羊奶入菜&#xff0c;美味新体验 羊奶&#xff0c;这一古老而珍贵的食材&#xff0c;近年来在料理界掀起了一股新风潮。其醇厚的口感和丰富的营养价值&#xff0c;让越来越多的人开始尝试将羊奶融入日常烹饪中&#xff0c;为味蕾带来前所未有的新体验。 在传统的烹饪…

由浅到深认识C语言(5):函数

该文章Github地址&#xff1a;https://github.com/AntonyCheng/c-notes 在此介绍一下作者开源的SpringBoot项目初始化模板&#xff08;Github仓库地址&#xff1a;https://github.com/AntonyCheng/spring-boot-init-template & CSDN文章地址&#xff1a;https://blog.csdn…

湖南麒麟SSH服务漏洞

针对湖南麒麟操作系统进行漏洞检测时&#xff0c;会报SSH漏洞风险提醒&#xff0c;具体如下&#xff1a; 针对这些漏洞&#xff0c;可以关闭SSH服务&#xff08;前提是应用已经部署完毕不再需要通过SSH远程访问传输文件的情况下&#xff0c;此时可以通过VNC远程登录方法&#x…

Arduino IDE配置ESP8266开发环境

一、配置步骤 在Arduino IDE中配置ESP8266开发环境的详细步骤如下&#xff1a; 1.打开Arduino IDE&#xff0c;依次点击“文件”->“首选项”&#xff0c;在“附加开发板管理器网址”一栏添加ESP8266开发板的网址。常用的网址是&#xff1a; http://arduino.esp8266.com/s…

软件测试——接口常见问题汇总

前言 今天我们来聊聊接口设计用例设计&#xff0c;说到这个接口&#xff0c;相信绝大多数的测试员都有遇到过某些棘手的问题&#xff0c;那么今天我们就来总结一下在接口方面会遇到的难题。 一、接口用例设计 接口测试用例可以从功能、性能、安全三方面进行入手&#xff0c;…

【好书推荐-第十二期】《并行计算与高性能计算》

&#x1f60e; 作者介绍&#xff1a;我是程序员洲洲&#xff0c;一个热爱写作的非著名程序员。CSDN全栈优质领域创作者、华为云博客社区云享专家、阿里云博客社区专家博主、前后端开发、人工智能研究生。公众号&#xff1a;洲与AI。 &#x1f388; 本文专栏&#xff1a;本文收录…

[java基础揉碎]多态参数

多态参数 方法定义的形参类型为父类类型&#xff0c;实参类型允许为子类类型 例子: 定义一个员工类, 有名字和工资两个属性, 有年工资的方法 定义一个普通员工继承了员工类 , 重写了年工资的方法 定义一个经理类, 也继承了员工类, 同时经理多以了一个奖金的属性, 重写的年…

GPD<论文精简版>

问题陈述 给定点云数据、机械手的几何参数&#xff0c;抓取位姿检测问题&#xff08; grasp pose detection problem&#xff09;表示为&#xff0c;在抓手闭合情况下&#xff0c;识别抓手的配置的问题。 &#xff1a;机器人工作空间 &#xff1a;三维点云中的一组点&#x…