接前一篇文章:零知识玩转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#
仍然存在错误。至于这些错误如何解决,有待进一步探究。