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

news2024/12/24 20:56:30

接前一篇文章:零知识玩转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# 

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

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

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

如何在Tomcat中的webapp中手动发布

这里写目录标题 首先进入Tomcat文件夹进入webaaps中,编写Java代码最后进入浏览器打开就看可以进入这个界面了 首先进入Tomcat文件夹 如图: 进入webaaps中, 编写Java代码 最后进入浏览器打开 就看可以进入这个界面了

【Spring Boot】创建你的第一个 Spring Boot 应用

创建你的第一个 Spring Boot 应用 1.环境配置2.步骤详解3.项目结构分析3.1 入口类 DemoApplication3.2 控制器 PathVariableController3.3 控制器 BasicController3.4 模型 User 4.运行 Spring Boot 目前已经成为了 Java 开发领域的框架范式。本篇博客&#xff0c;我将带领大家…

DataGrip 面试题及答案整理,最新面试题

DataGrip的数据库兼容性和多数据库支持如何实现&#xff1f; DataGrip实现数据库兼容性和多数据库支持的方式包括&#xff1a; 1、广泛的数据库支持&#xff1a; DataGrip支持多种数据库&#xff0c;包括但不限于MySQL, PostgreSQL, SQL Server, Oracle, SQLite, 和MongoDB&a…

前端学习之css选择器--基本选择器、关系选择器、属性选择器、复合选择器、伪类选择器

目录 基本选择器 结果 关系选择器 结果 父子关系 祖先后代关系 相邻兄弟关系 兄弟关系 ​编辑 属性选择器 结果 复合选择器 结果 伪类选择器 结果 伪类选择器-操作标签 结果 未访问 访问后 悬停 基本选择器 <!DOCTYPE html> <html lang"en"…

Java八股文(Git)

Java八股文のGit Git Git Git 是什么&#xff1f;它有什么作用&#xff1f; Git 是一种分布式版本控制系统&#xff0c;用于管理源代码的变更和追踪。 它可以记录文件更改的历史&#xff0c;帮助多人协同开发&#xff0c;并提供了回滚、分支管理等功能。 Git 和 SVN&#xff0…

数字电子技术实验(四)

单选题 1.组合逻辑电路中产生竞争冒险的原因是&#xff1f; A. 电路没有最简化 。 B. 时延 。 C. 电路有多个输出。 D. 逻辑门的类型不同。 答案&#xff1a;B 评语&#xff1a;10分 单选题 2.下列表达式不存在竞争冒险的有&#xff1f; 答案&#xff1a;A 评语&#x…

【b站咸虾米】2 Vue基础(下) 2021最新Vue从基础到实例高级_vue2_vuecli脚手架博客案例

课程地址&#xff1a;【2021最新Vue从基础到实例高级_vue2_vuecli脚手架博客案例】 https://www.bilibili.com/video/BV1pz4y1S7bC/?share_sourcecopy_web&vd_sourceb1cb921b73fe3808550eaf2224d1c155 目录 2 Vue基础 下 2.8 计算属性 2.8.1 计算属性使用 2.8.2 计算…

MySQL:视图

1. 概述 在MySQL中&#xff0c;视图&#xff08;View&#xff09;是一个虚拟存在的表&#xff0c;其内容是由查询定义的。视图本身并不包含数据&#xff0c;它只包含一条SQL查询语句&#xff08;即定义视图的SELECT语句&#xff09;。当通过视图访问数据时&#xff0c;MySQL会执…

zed2i相机驱动的安装(2)

安装完sdk和wrapper&#xff0c;启动时显示缺少标定文件&#xff0c;第一反应是运行自带的标定程序 但是此时运行ZED tools里的标定程序也会出问题 打开 On Linux : /usr/local/zed/settings/On Windows : C:\ProgramData\Stereolabs\settings 查看里面是否是空的&#xff…

c++算法学习笔记 (8) 树与图部分

1.树与图的存储 &#xff08;1&#xff09;邻接矩阵 &#xff08;2&#xff09;邻接表 // 链式前向星模板&#xff08;数组模拟&#xff09; #include <iostream> #include <cstring> #include <algorithm> using namespace std; const int N 100010, M …

官网链接怎么转二维码?扫码直接跳转官网的方法

随着互联网的不断发展&#xff0c;现在一般信息内容都是通过手机来获取的&#xff0c;所以现在通过手机访问官方网站获取内容也是一种很常见的方式&#xff0c;那么如何将官网网址生成二维码图片&#xff0c;用户能够通过扫码访问官方网站或者其他页面内容呢&#xff1f;下面分…

基于SpringBoot SSM vue办公自动化系统

基于SpringBoot SSM vue办公自动化系统 系统功能 登录 个人中心 请假信息管理 考勤信息管理 出差信息管理 行政领导管理 代办事项管理 文档管理 公告信息管理 企业信息管理 会议室信息管理 资产设备管理 员工信息管理 开发环境和技术 开发语言&#xff1a;Java 使用框架: S…

xray问题排查,curl: (35) Encountered end of file(已解决)

经过了好几次排查&#xff0c;都没找到问题&#xff0c;先说问题的排查过程&#xff0c;多次确认了user信息&#xff0c;包括用户id和alterid&#xff0c;都没问题&#xff0c;头大的一逼 问题排查过程 确保本地的xray服务是正常的 [rootk8s-master01 xray]# systemctl stat…

深入浅出FISCO BCOS:区块链底层平台

苏泽 大家好 这里是苏泽 一个钟爱区块链技术的后端开发者 本篇专栏 ←持续记录本人自学两年走过无数弯路的智能合约学习笔记和经验总结 如果喜欢拜托三连支持~ 我前面有补充相关的区块链的知识 如果没有了解的话 可能部分概念或名词会不懂哦 建议先了解一波再来看~http://t.c…

灯塔:CSS笔记(4)

伪类选择器&#xff1a; 1.作用与优势&#xff1a; 1.作用&#xff1a;根据元素在HTML中的结构关系查找元素 2.优势&#xff1a;减少对于HTML中类的依赖&#xff0c;有利于保持代码的整洁 3.场景&#xff1a;常用于查找某父级选择器中的子元素 2.选择器 选择器说明E:first-c…

关于UE的相机震动CameraShake

创建CameraShake资源 CameraShake配置是个蓝图类&#xff0c;我们选择创建BlueprintClass&#xff0c;父类选择CameraShakeBase即可。 参数调整 目前主要用到了 LocationAmplitudeMultiplier 1 LocationFrequencyMultiplier 10 RotationAmplitudeMultiplier 1 Rotation…

【3月16日-云服务器推荐】京东云降价了!!4折变2折 阿里云 腾讯云最新价格对比 选购指南 搭建博客 游戏服务器均可多用

3月16日更新&#xff0c;京东云又双叒降价了&#xff01; 《最新对比表》已更新在文章头部—腾讯云文档&#xff0c;文章具有时效性&#xff0c;请以腾讯文档为准&#xff01; 【腾讯文档实时更新】云服务器1分钟教会你如何选择教程 https://docs.qq.com/document/DV0RCS0lGeH…

Leet code 179 最大数

解题思路 贪心算法 贪心算法就是走一步看一步 每一步都取当前位置的最优解 这题我们该如何贪呢&#xff1f; 我们先把int数组转换为string数组 以示例2为例 3 30 34 5 9 排序哪个在前哪个在后&#xff1f; 3 30 &#xff08;330&#xff09;> 30 3 &#xff08;30…

免费阅读篇 | 芒果YOLOv8改进110:注意力机制GAM:用于保留信息以增强渠道空间互动

&#x1f4a1;&#x1f680;&#x1f680;&#x1f680;本博客 改进源代码改进 适用于 YOLOv8 按步骤操作运行改进后的代码即可 该专栏完整目录链接&#xff1a; 芒果YOLOv8深度改进教程 该篇博客为免费阅读内容&#xff0c;直接改进即可&#x1f680;&#x1f680;&#x1f…

leetcode每日一题--矩阵中移动的最大次数

一.题目原型 二.思路解析 1.动态规划 这道题要求的是矩阵的最大移动次数。根据题目意思&#xff0c;从索引 0 列开始向右移动&#xff0c;每次移动一列&#xff0c;最多移动到 n - 1 列&#xff0c;也就是 n - 1次。其移动规则为&#xff1a;当前单元格可以移动到其右上方、正…