430 Star 2.3K Fork 517

OpenHarmony / docs

python build.py wifiiot编译报错

缺陷
已完成
Wu.Right  Opened this issue

该问题是怎么引起的?

快速入门->Hi3861开发板,执行python build.py wifiiot命令编译报错了

重现步骤

Linux服务器安装相关工具后,编译报错

报错信息

Done. Made 57 targets from 53 files in 361ms
ninja: Entering directory `/home/lat/openharmony/out/wifiiot'
[1/197] STAMP obj/applications/sample/wifi-iot/app/startup/startup.stamp
[2/197] cross compiler obj/base/iot_hardware/frameworks/wifiiot_lite/src/wifiiot_adc.o
[3/197] cross compiler obj/base/iot_hardware/frameworks/wifiiot_lite/src/reset.o
[4/197] cross compiler obj/base/hiviewdfx/frameworks/hilog_lite/mini/hiview_log_limit.o
[5/197] cross compiler obj/base/iot_hardware/frameworks/wifiiot_lite/src/wifiiot_flash.o
[6/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/auth_info/remove_auth_info_client.o
[7/197] STAMP obj/applications/sample/wifi-iot/app/app.stamp
[8/197] cross compiler obj/base/iot_hardware/frameworks/wifiiot_lite/src/lowpower.o
[9/197] cross compiler obj/base/hiviewdfx/services/hiview_lite/hiview_service.o
[10/197] cross compiler obj/base/iot_hardware/frameworks/wifiiot_lite/src/wifiiot_kal.o
[11/197] cross compiler obj/base/hiviewdfx/frameworks/hilog_lite/mini/hiview_log.o
[12/197] AR libs/libhiview_lite.a
[13/197] cross compiler obj/base/iot_hardware/frameworks/wifiiot_lite/src/wifiiot_gpio.o
[14/197] cross compiler obj/base/hiviewdfx/utils/lite/hiview_config.o
[15/197] cross compiler obj/base/hiviewdfx/utils/lite/hiview_cache.o
[16/197] cross compiler obj/base/iot_hardware/frameworks/wifiiot_lite/src/wifiiot_watchdog.o
[17/197] cross compiler obj/base/iot_hardware/frameworks/wifiiot_lite/src/wifiiot_partition.o
[18/197] cross compiler obj/base/iot_hardware/frameworks/wifiiot_lite/src/wifiiot_i2c.o
[19/197] cross compiler obj/base/hiviewdfx/utils/lite/hiview_file.o
[20/197] cross compiler obj/base/hiviewdfx/utils/lite/hiview_util.o
[21/197] cross compiler obj/base/iot_hardware/frameworks/wifiiot_lite/src/wifiiot_pwm.o
[22/197] cross compiler obj/base/iot_hardware/frameworks/wifiiot_lite/src/wifiiot_uart.o
[23/197] cross compiler obj/base/iot_hardware/frameworks/wifiiot_lite/src/wifiiot_at.o
[24/197] STAMP obj/build/lite/ndk.stamp
[25/197] AR libs/libcommon_lite.a
[26/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/auth_info/auth_info.o
[27/197] cross compiler obj/base/iot_hardware/frameworks/wifiiot_lite/src/wifiiot_i2s.o
[28/197] cross compiler obj/base/iot_hardware/frameworks/wifiiot_lite/src/wifiiot_spi.o
[29/197] cross compiler obj/base/hiviewdfx/frameworks/hilog_lite/mini/hiview_output_log.o
[30/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/auth_info/add_auth_info_client.o
[31/197] cross compiler obj/base/startup/services/bootstrap_lite/source/bootstrap_service.o
[32/197] cross compiler obj/foundation/communication/services/softbus_lite/discovery/coap/source/json_payload.o
[33/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/auth_info/add_auth_info.o
[34/197] cross compiler obj/base/startup/services/bootstrap_lite/source/system_init.o
[35/197] AR libs/libhilog_lite.a
[36/197] cross compiler obj/base/iot_hardware/frameworks/wifiiot_lite/src/wifiiot_sdio.o
[37/197] cross compiler obj/base/startup/frameworks/syspara_lite/token/src/token_impl_hal/token.o
[38/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/key_agreement/key_agreement.o
[39/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/key_agreement/sec_clone_server.o
[40/197] AR libs/libbootstrap.a
[41/197] STAMP obj/base/hiviewdfx/frameworks/hilog_lite/mini/hilog_lite_ndk.stamp
[42/197] AR libs/libiothardware.a
[43/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/auth_info/exchange_auth_info_client.o
[44/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/key_agreement/key_agreement_client.o
[45/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/key_agreement/key_agreement_server.o
[46/197] cross compiler obj/foundation/communication/services/softbus_lite/discovery/coap/source/coap_discover.o
[47/197] STAMP obj/base/iot_hardware/frameworks/wifiiot_lite/src/iothardware_ndk.stamp
[48/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/struct/add_auth_info_request.o
[49/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/auth_info/exchange_auth_info.o
[50/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/key_agreement/sts_client.o
[51/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/struct/add_auth_info_data.o
[52/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/log/log.o
[53/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/json/commonutil.o
[54/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/json/jsonutil.o
[55/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/struct/auth_ack_request.o
[56/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/struct/import_add_auth_data.o
[57/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/struct/exchange_auth_data.o
[58/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/struct/add_auth_info_response.o
[59/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/struct/auth_ack_response.o
[60/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/struct/exchange_response.o
[61/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/key_agreement/pake_server.o
[62/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/struct/exchange_request.o
[63/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/struct/auth_start_response.o
[64/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/struct/auth_start_request.o
[65/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/key_agreement/pake_client.o
[66/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/struct/pake_client_confirm.o
[67/197] STAMP obj/base/startup/frameworks/syspara_lite/token/token_notes.stamp
[68/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/struct/key_agreement_version.o
[69/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/struct/rmv_auth_info_request.o
[70/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/struct/rmv_auth_info_data.o
[71/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/struct/inform_message.o
[72/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/struct/rmv_auth_info_response.o
[73/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/struct/pake_request.o
[74/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/struct/pake_server_confirm.o
[75/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/struct/pake_response.o
[76/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/struct/parsedata.o
[77/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/schedule/build_object.o
[78/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/schedule/distribution.o
[79/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/key_agreement/sts_server.o
[80/197] cross compiler obj/base/startup/frameworks/syspara_lite/parameter/src/param_impl_hal/param_impl_hal.o
[81/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/struct/sec_clone_data.o
[82/197] cross compiler obj/foundation/communication/services/softbus_lite/authmanager/source/auth_conn.o
[83/197] cross compiler obj/foundation/distributedschedule/services/samgr_lite/communication/broadcast/source/broadcast_service.o
[84/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/hichain.o
[85/197] cross compiler obj/foundation/communication/services/softbus_lite/authmanager/source/msg_get_deviceid.o
[86/197] cross compiler obj/foundation/communication/services/softbus_lite/discovery/coap/source/nstackx_common.o
[87/197] cross compiler obj/foundation/distributedschedule/services/samgr_lite/samgr/registry/service_registry.o
[88/197] cross compiler obj/foundation/communication/services/softbus_lite/authmanager/source/bus_manager.o
[89/197] cross compiler obj/foundation/distributedschedule/services/samgr_lite/communication/broadcast/source/pub_sub_feature.o
[90/197] cross compiler obj/base/startup/frameworks/syspara_lite/parameter/src/parameter_common.o
[91/197] cross compiler obj/foundation/communication/services/softbus_lite/discovery/coap/source/coap_socket.o
[92/197] cross compiler obj/foundation/communication/services/softbus_lite/discovery/coap/source/nstackx_device.o
[93/197] cross compiler obj/foundation/communication/services/softbus_lite/trans_service/source/libdistbus/tcp_session.o
[94/197] cross compiler obj/foundation/communication/services/softbus_lite/trans_service/source/libdistbus/trans_lock.o
[95/197] cross compiler obj/foundation/communication/services/softbus_lite/os_adapter/source/L0/os_adapter.o
[96/197] cross compiler obj/foundation/distributedschedule/services/samgr_lite/samgr/adapter/cmsis/memory_adapter.o
[97/197] cross compiler obj/foundation/distributedschedule/services/samgr_lite/communication/broadcast/source/pub_sub_implement.o
[98/197] cross compiler obj/foundation/communication/services/softbus_lite/trans_service/source/utils/message.o
[99/197] cross compiler obj/foundation/communication/services/softbus_lite/discovery/discovery_service/source/coap_service.o
[100/197] cross compiler obj/foundation/distributedschedule/services/samgr_lite/samgr/adapter/cmsis/time_adapter.o
[101/197] AR libs/libbroadcast.a
[102/197] cross compiler obj/foundation/distributedschedule/services/samgr_lite/samgr/adapter/cmsis/queue_adapter.o
[103/197] cross compiler obj/foundation/communication/services/softbus_lite/trans_service/source/utils/aes_gcm.o
[104/197] cross compiler obj/foundation/communication/services/softbus_lite/authmanager/source/wifi_auth_manager.o
[105/197] cross compiler obj/foundation/communication/services/softbus_lite/authmanager/source/auth_interface.o
[106/197] cross compiler obj/base/security/frameworks/hichainsdk_lite/source/huks_adapter/huks_adapter.o
[107/197] cross compiler obj/foundation/distributedschedule/services/samgr_lite/samgr/source/iunknown.o
[108/197] cross compiler obj/foundation/distributedschedule/services/samgr_lite/samgr/adapter/cmsis/thread_adapter.o
[109/197] STAMP obj/test/xts/acts/acts_compoment.stamp
[110/197] STAMP obj/test/xts/tools/tools.stamp
[111/197] STAMP obj/third_party/cJSON/cjson_shared.stamp
[112/197] AR libs/libhichainsdk.a
[113/197] AR libs/libsamgr_adapter.a
[114/197] cross compiler obj/foundation/communication/services/softbus_lite/discovery/discovery_service/source/common_info_manager.o
[115/197] AR libs/libauthmanager.a
[116/197] cross compiler obj/foundation/communication/services/softbus_lite/trans_service/source/libdistbus/auth_conn_manager.o
[117/197] STAMP obj/base/security/frameworks/hichainsdk_lite/hichainsdk.stamp
[118/197] cross compiler obj/foundation/communication/services/softbus_lite/discovery/coap/source/coap_adapter.o
[119/197] cross compiler obj/foundation/communication/services/softbus_lite/trans_service/source/utils/tcp_socket.o
[120/197] cross compiler obj/foundation/distributedschedule/services/samgr_lite/samgr/source/feature.o
[121/197] cross compiler obj/foundation/distributedschedule/services/samgr_lite/samgr/source/common.o
[122/197] cross compiler obj/foundation/communication/services/softbus_lite/discovery/discovery_service/source/discovery_service.o
[123/197] AR libs/libdiscovery.a
[124/197] cross compiler obj/utils/native/lite/file/src/file_impl_hal/file.o
[125/197] cross compiler obj/vendor/hisi/hi3861/hi3861_adapter/hals/iot_hardware/wifiiot_lite/hal_wifiiot_watchdog.o
[126/197] cross compiler obj/foundation/distributedschedule/services/samgr_lite/samgr/source/message.o
[127/197] STAMP obj/foundation/communication/services/softbus_lite/discovery_ndk.stamp
[128/197] cross compiler obj/foundation/distributedschedule/services/samgr_lite/samgr/source/task_manager.o
[129/197] cross compiler obj/foundation/distributedschedule/services/samgr_lite/samgr/source/service.o
[130/197] cross compiler obj/vendor/hisi/hi3861/hi3861_adapter/hals/iot_hardware/wifiiot_lite/hal_wifiiot_at.o
[131/197] cross compiler obj/kernel/liteos_m/components/kal/src/kal.o
[132/197] cross compiler obj/utils/native/lite/kv_store/src/kvstore_common/kvstore_common.o
[133/197] AR libs/libsamgr_source.a
[134/197] AR libs/libkal.a
[135/197] cross compiler obj/vendor/hisi/hi3861/hi3861_adapter/hals/iot_hardware/wifiiot_lite/hal_wifiiot_partition.o
[136/197] cross compiler obj/utils/native/lite/kv_store/src/kvstore_impl_hal/kv_store.o
[137/197] AR libs/libutils_kv_store.a
[138/197] STAMP obj/utils/native/lite/kv_store/kv_store.stamp
[139/197] cross compiler obj/vendor/hisi/hi3861/hi3861_adapter/hals/iot_hardware/wifiiot_lite/hal_wifiiot_kal.o
[140/197] cross compiler obj/vendor/hisi/hi3861/hi3861_adapter/hals/iot_hardware/wifiiot_lite/hal_wifiiot_uart.o
[141/197] cross compiler obj/vendor/hisi/hi3861/hi3861_adapter/hals/communication/wifi_lite/wifiservice/source/wifi_hotspot.o
[142/197] cross compiler obj/vendor/hisi/hi3861/hi3861_adapter/hals/iot_hardware/wifiiot_lite/hal_wifiiot_pwm.o
[143/197] cross compiler obj/vendor/hisi/hi3861/hi3861_adapter/hals/iot_hardware/wifiiot_lite/hal_wifiiot_spi.o
[144/197] cross compiler obj/vendor/hisi/hi3861/hi3861_adapter/hals/iot_hardware/wifiiot_lite/hal_wifiiot_i2c.o
[145/197] cross compiler obj/vendor/hisi/hi3861/hi3861_adapter/hals/iot_hardware/wifiiot_lite/hal_wifiiot_i2s.o
[146/197] cross compiler obj/vendor/hisi/hi3861/hi3861_adapter/hals/communication/wifi_lite/wifiservice/source/wifi_device_util.o
[147/197] cross compiler obj/foundation/distributedschedule/services/samgr_lite/samgr/source/samgr_lite.o
[148/197] AR libs/libsamgr.a
[149/197] cross compiler obj/vendor/hisi/hi3861/hi3861_adapter/hals/iot_hardware/wifiiot_lite/hal_wifiiot_adc.o
[150/197] cross compiler obj/vendor/hisi/hi3861/hi3861_adapter/hals/iot_hardware/wifiiot_lite/hal_reset.o
[151/197] cross compiler obj/vendor/hisi/hi3861/hi3861_adapter/hals/iot_hardware/wifiiot_lite/hal_wifiiot_sdio.o
[152/197] STAMP obj/foundation/distributedschedule/services/samgr_lite/samgr.stamp
[153/197] STAMP obj/foundation/distributedschedule/services/samgr_lite/samgr_lite_ndk.stamp
[154/197] cross compiler obj/vendor/hisi/hi3861/hi3861_adapter/hals/iot_hardware/wifiiot_lite/hal_lowpower.o
[155/197] cross compiler obj/vendor/hisi/hi3861/hi3861_adapter/hals/iot_hardware/wifiiot_lite/hal_wifiiot_flash.o
[156/197] cross compiler obj/vendor/hisi/hi3861/hi3861_adapter/hals/utils/file/src/hal_file.o
[157/197] cross compiler obj/vendor/huawei/wifi-iot/hals/utils/token/hal_token.o
[158/197] AR libs/libhal_file_static.a
[159/197] AR libs/libhal_token_static.a
[160/197] cross compiler obj/vendor/huawei/wifi-iot/hals/utils/sys_param/hal_sys_param.o
[161/197] AR libs/libnative_file.a
[162/197] AR libs/libtoken_static.a
[163/197] AR libs/libhal_sysparam.a
[164/197] STAMP obj/base/startup/frameworks/syspara_lite/token/token.stamp
[165/197] STAMP obj/utils/native/lite/file/file.stamp
[166/197] AR libs/libsysparam.a
[167/197] STAMP obj/base/startup/frameworks/syspara_lite/parameter/parameter.stamp
[168/197] STAMP obj/base/startup/frameworks/syspara_lite/parameter/parameter_notes.stamp
[169/197] cross compiler obj/vendor/hisi/hi3861/hi3861_adapter/hals/iot_hardware/wifiiot_lite/hal_wifiiot_gpio.o
[170/197] AR libs/libhal_iothardware.a
[171/197] STAMP obj/base/iot_hardware/frameworks/wifiiot_lite/iothardware.stamp
[172/197] cross compiler obj/foundation/communication/services/softbus_lite/trans_service/source/libdistbus/tcp_session_manager.o
[173/197] cross compiler obj/vendor/hisi/hi3861/hi3861_adapter/hals/communication/wifi_lite/wifiservice/source/wifi_device.o
[174/197] AR libs/libtrans_service.a
[175/197] STAMP obj/foundation/communication/services/softbus_lite/trans_service_ndk.stamp
[176/197] STAMP obj/foundation/communication/services/softbus_lite/softbus.stamp
[177/197] AR libs/libwifiservice.a
[178/197] STAMP obj/foundation/communication/services/softbus_lite/softbus_lite_ndk.stamp
[179/197] STAMP obj/foundation/communication/frameworks/wifi_lite/wifi.stamp
[180/197] STAMP obj/vendor/hisi/hi3861/hi3861_adapter/hals/communication/wifi_lite/wifiservice/wifiservice_ndk.stamp
[181/197] cross compiler obj/kernel/liteos_m/components/cmsis/cmsis_liteos.o
[182/197] AR libs/libcmsis.a
[183/197] cross compiler obj/third_party/cJSON/cJSON_Utils.o
[184/197] cross compiler obj/third_party/cJSON/cJSON.o
[185/197] AR libs/libcjson_static.a
[186/197] STAMP obj/third_party/cJSON/cjson_ndk.stamp
[187/197] STAMP obj/vendor/hisi/hi3861/hi3861/sdk.stamp
[188/197] STAMP obj/vendor/hisi/hi3861/hi3861/wifiiot_sdk.stamp
[189/197] ACTION //test/xdevice:xdevice(//build/lite/toolchain:linux_x86_64_riscv32_gcc)
running install
running bdist_egg
running egg_info
writing src/xdevice.egg-info/PKG-INFO
writing dependency_links to src/xdevice.egg-info/dependency_links.txt
writing entry points to src/xdevice.egg-info/entry_points.txt
writing top-level names to src/xdevice.egg-info/top_level.txt
reading manifest file 'src/xdevice.egg-info/SOURCES.txt'
writing manifest file 'src/xdevice.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/xdevice
copying build/lib/xdevice/variables.py -> build/bdist.linux-x86_64/egg/xdevice
copying build/lib/xdevice/main.py -> build/bdist.linux-x86_64/egg/xdevice
copying build/lib/xdevice/init.py -> build/bdist.linux-x86_64/egg/xdevice
creating build/bdist.linux-x86_64/egg/xdevice/_core
copying build/lib/xdevice/_core/interface.py -> build/bdist.linux-x86_64/egg/xdevice/_core
copying build/lib/xdevice/_core/exception.py -> build/bdist.linux-x86_64/egg/xdevice/_core
copying build/lib/xdevice/_core/constants.py -> build/bdist.linux-x86_64/egg/xdevice/_core
copying build/lib/xdevice/_core/common.py -> build/bdist.linux-x86_64/egg/xdevice/_core
creating build/bdist.linux-x86_64/egg/xdevice/_core/testkit
copying build/lib/xdevice/_core/testkit/kit_lite.py -> build/bdist.linux-x86_64/egg/xdevice/_core/testkit
copying build/lib/xdevice/_core/testkit/uikit_lite.py -> build/bdist.linux-x86_64/egg/xdevice/_core/testkit
copying build/lib/xdevice/_core/testkit/json_parser.py -> build/bdist.linux-x86_64/egg/xdevice/_core/testkit
copying build/lib/xdevice/_core/testkit/init.py -> build/bdist.linux-x86_64/egg/xdevice/_core/testkit
copying build/lib/xdevice/_core/utils.py -> build/bdist.linux-x86_64/egg/xdevice/_core
creating build/bdist.linux-x86_64/egg/xdevice/_core/resource
creating build/bdist.linux-x86_64/egg/xdevice/_core/resource/template
copying build/lib/xdevice/_core/resource/template/report.html -> build/bdist.linux-x86_64/egg/xdevice/_core/resource/template
creating build/bdist.linux-x86_64/egg/xdevice/_core/resource/config
copying build/lib/xdevice/_core/resource/config/user_config.xml -> build/bdist.linux-x86_64/egg/xdevice/_core/resource/config
creating build/bdist.linux-x86_64/egg/xdevice/_core/config
copying build/lib/xdevice/_core/config/resource_manager.py -> build/bdist.linux-x86_64/egg/xdevice/_core/config
copying build/lib/xdevice/_core/config/config_manager.py -> build/bdist.linux-x86_64/egg/xdevice/_core/config
copying build/lib/xdevice/_core/config/init.py -> build/bdist.linux-x86_64/egg/xdevice/_core/config
copying build/lib/xdevice/_core/logger.py -> build/bdist.linux-x86_64/egg/xdevice/_core
creating build/bdist.linux-x86_64/egg/xdevice/_core/command
copying build/lib/xdevice/_core/command/init.py -> build/bdist.linux-x86_64/egg/xdevice/_core/command
copying build/lib/xdevice/_core/command/console.py -> build/bdist.linux-x86_64/egg/xdevice/_core/command
copying build/lib/xdevice/_core/init.py -> build/bdist.linux-x86_64/egg/xdevice/_core
copying build/lib/xdevice/_core/plugin.py -> build/bdist.linux-x86_64/egg/xdevice/_core
creating build/bdist.linux-x86_64/egg/xdevice/_core/executor
copying build/lib/xdevice/_core/executor/listener.py -> build/bdist.linux-x86_64/egg/xdevice/_core/executor
copying build/lib/xdevice/_core/executor/source.py -> build/bdist.linux-x86_64/egg/xdevice/_core/executor
copying build/lib/xdevice/_core/executor/scheduler.py -> build/bdist.linux-x86_64/egg/xdevice/_core/executor
copying build/lib/xdevice/_core/executor/init.py -> build/bdist.linux-x86_64/egg/xdevice/_core/executor
copying build/lib/xdevice/_core/executor/concurrent.py -> build/bdist.linux-x86_64/egg/xdevice/_core/executor
copying build/lib/xdevice/_core/executor/request.py -> build/bdist.linux-x86_64/egg/xdevice/_core/executor
creating build/bdist.linux-x86_64/egg/xdevice/_core/report
copying build/lib/xdevice/_core/report/reporter_helper.py -> build/bdist.linux-x86_64/egg/xdevice/_core/report
copying build/lib/xdevice/_core/report/suite_reporter.py -> build/bdist.linux-x86_64/egg/xdevice/_core/report
copying build/lib/xdevice/_core/report/encrypt.py -> build/bdist.linux-x86_64/egg/xdevice/_core/report
copying build/lib/xdevice/_core/report/main.py -> build/bdist.linux-x86_64/egg/xdevice/_core/report
copying build/lib/xdevice/_core/report/init.py -> build/bdist.linux-x86_64/egg/xdevice/_core/report
copying build/lib/xdevice/_core/report/result_reporter.py -> build/bdist.linux-x86_64/egg/xdevice/_core/report
creating build/bdist.linux-x86_64/egg/xdevice/_core/environment
copying build/lib/xdevice/_core/environment/manager_env.py -> build/bdist.linux-x86_64/egg/xdevice/_core/environment
copying build/lib/xdevice/_core/environment/dmlib_lite.py -> build/bdist.linux-x86_64/egg/xdevice/_core/environment
copying build/lib/xdevice/_core/environment/init.py -> build/bdist.linux-x86_64/egg/xdevice/_core/environment
copying build/lib/xdevice/_core/environment/device_lite.py -> build/bdist.linux-x86_64/egg/xdevice/_core/environment
copying build/lib/xdevice/_core/environment/manager_lite.py -> build/bdist.linux-x86_64/egg/xdevice/_core/environment
creating build/bdist.linux-x86_64/egg/xdevice/_core/driver
copying build/lib/xdevice/_core/driver/device_test.py -> build/bdist.linux-x86_64/egg/xdevice/_core/driver
copying build/lib/xdevice/_core/driver/drivers_lite.py -> build/bdist.linux-x86_64/egg/xdevice/_core/driver
copying build/lib/xdevice/_core/driver/init.py -> build/bdist.linux-x86_64/egg/xdevice/_core/driver
copying build/lib/xdevice/_core/driver/parser_lite.py -> build/bdist.linux-x86_64/egg/xdevice/_core/driver
creating build/bdist.linux-x86_64/egg/xdevice/_core/build
copying build/lib/xdevice/_core/build/init.py -> build/bdist.linux-x86_64/egg/xdevice/_core/build
byte-compiling build/bdist.linux-x86_64/egg/xdevice/variables.py to variables.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/main.py to main.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/init.py to init.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/interface.py to interface.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/exception.py to exception.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/constants.py to constants.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/common.py to common.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/testkit/kit_lite.py to kit_lite.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/testkit/uikit_lite.py to uikit_lite.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/testkit/json_parser.py to json_parser.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/testkit/init.py to init.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/utils.py to utils.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/config/resource_manager.py to resource_manager.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/config/config_manager.py to config_manager.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/config/init.py to init.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/logger.py to logger.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/command/init.py to init.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/command/console.py to console.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/init.py to init.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/plugin.py to plugin.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/executor/listener.py to listener.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/executor/source.py to source.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/executor/scheduler.py to scheduler.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/executor/init.py to init.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/executor/concurrent.py to concurrent.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/executor/request.py to request.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/report/reporter_helper.py to reporter_helper.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/report/suite_reporter.py to suite_reporter.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/report/encrypt.py to encrypt.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/report/main.py to main.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/report/init.py to init.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/report/result_reporter.py to result_reporter.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/environment/manager_env.py to manager_env.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/environment/dmlib_lite.py to dmlib_lite.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/environment/init.py to init.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/environment/device_lite.py to device_lite.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/environment/manager_lite.py to manager_lite.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/driver/device_test.py to device_test.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/driver/drivers_lite.py to drivers_lite.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/driver/init.py to init.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/driver/parser_lite.py to parser_lite.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/xdevice/_core/build/init.py to init.cpython-38.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying src/xdevice.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying src/xdevice.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying src/xdevice.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying src/xdevice.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying src/xdevice.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO
copying src/xdevice.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
creating 'dist/xdevice-0.0.0-py3.8.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing xdevice-0.0.0-py3.8.egg
removing '/home/lat/.local/lib/python3.8/site-packages/xdevice-0.0.0-py3.8.egg' (and everything under it)
creating /home/lat/.local/lib/python3.8/site-packages/xdevice-0.0.0-py3.8.egg
Extracting xdevice-0.0.0-py3.8.egg to /home/lat/.local/lib/python3.8/site-packages
xdevice 0.0.0 is already the active version in easy-install.pth
Installing xdevice script to /home/lat/.local/bin
Installing xdevice_report script to /home/lat/.local/bin

Installed /home/lat/.local/lib/python3.8/site-packages/xdevice-0.0.0-py3.8.egg
Processing dependencies for xdevice==0.0.0
Finished processing dependencies for xdevice==0.0.0
[190/197] STAMP obj/test/xdevice/xdevice.stamp
[191/197] ACTION //test/xts/acts:acts(//build/lite/toolchain:linux_x86_64_riscv32_gcc)
[192/197] STAMP obj/test/xts/acts/acts.stamp
[193/197] STAMP obj/build/lite/ohos.stamp
[194/197] ACTION //build/lite:gen_rootfs(//build/lite/toolchain:linux_x86_64_riscv32_gcc)
[195/197] STAMP obj/build/lite/gen_rootfs.stamp
[196/197] ACTION //vendor/hisi/hi3861/hi3861:run_wifiiot_scons(//build/lite/toolchain:linux_x86_64_riscv32_gcc)
FAILED: obj/vendor/hisi/hi3861/hi3861/run_wifiiot_scons_build_ext_components.txt
python ../../build/lite/build_ext_components.py --path=../../vendor/hisi/hi3861/hi3861 --command=sh\ hm_build.sh
execute ota_builder with python...
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/SCons-4.0.1-py3.8.egg/SCons/Script/Main.py", line 1391, in main
_exec_main(parser, values)
File "/usr/local/lib/python3.8/site-packages/SCons-4.0.1-py3.8.egg/SCons/Script/Main.py", line 1355, in _exec_main
_main(parser)
File "/usr/local/lib/python3.8/site-packages/SCons-4.0.1-py3.8.egg/SCons/Script/Main.py", line 1029, in _main
SCons.Script._SConscript._SConscript(fs, script)
File "/usr/local/lib/python3.8/site-packages/SCons-4.0.1-py3.8.egg/SCons/Script/SConscript.py", line 287, in _SConscript
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "/home/lat/openharmony/vendor/hisi/hi3861/hi3861/SConstruct", line 40, in
env_cfg = scons_env_cfg.SconsEnvCfg()
File "/home/lat/openharmony/vendor/hisi/hi3861/hi3861/build/scripts/scons_env_cfg.py", line 39, in init
raise SconsBuildError("%s============== COULD NOT FIND COMPILER! =============%s"%
scons_utils.SconsBuildError: ============== COULD NOT FIND COMPILER! =============

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/bin/scons", line 11, in
load_entry_point('SCons==4.0.1', 'console_scripts', 'scons')()
File "/usr/local/lib/python3.8/site-packages/SCons-4.0.1-py3.8.egg/SCons/Script/Main.py", line 1416, in main
SCons.Script._SConscript.SConscript_exception()
File "/usr/local/lib/python3.8/site-packages/SCons-4.0.1-py3.8.egg/SCons/Script/SConscript.py", line 349, in SConscript_exception
stack = traceback.extract_tb(tb)
File "/usr/local/lib/python3.8/traceback.py", line 72, in extract_tb
return StackSummary.extract(walk_tb(tb), limit=limit)
File "/usr/local/lib/python3.8/traceback.py", line 366, in extract
f.line
File "/usr/local/lib/python3.8/traceback.py", line 288, in line
self._line = linecache.getline(self.filename, self.lineno).strip()
File "/usr/local/lib/python3.8/linecache.py", line 16, in getline
lines = getlines(filename, module_globals)
File "/usr/local/lib/python3.8/linecache.py", line 47, in getlines
return updatecache(filename, module_globals)
File "/usr/local/lib/python3.8/linecache.py", line 137, in updatecache
lines = fp.readlines()
File "/usr/local/lib/python3.8/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xca in position 699: invalid continuation byte
Traceback (most recent call last):
File "../../build/lite/build_ext_components.py", line 64, in
sys.exit(main())
File "../../build/lite/build_ext_components.py", line 58, in main
cmd_exec(args.command)
File "../../build/lite/build_ext_components.py", line 32, in cmd_exec
raise Exception("{} failed, return code is {}".format(cmd, ret_code))
Exception: ['sh', 'hm_build.sh'] failed, return code is 1
ninja: build stopped: subcommand failed.

Attachments
8054015 wx 9846855d06 1599814808 total 2 participants

Comments (3)

stefanDu 2020-10-14 19:12

该问题是没有安装gcc_riscv32编译工具链导致的,请参考官网安装
https://device.harmonyos.com/cn/docs/start/introduce/oem_quickstart_3861_build-0000001054781998,
快速入门->Hi3861开发板->环境搭建->安装gcc_riscv32(WLAN模组类编译工具链)

8054015 wx 9846855d06 1599814808
Wu.Right 2020-10-15 10:29

该问题是没有安装gcc_riscv32编译工具链导致的,请参考官网安装
https://device.harmonyos.com/cn/docs/start/introduce/oem_quickstart_3861_build-0000001054781998,
快速入门->Hi3861开发板->环境搭建->安装gcc_riscv32(WLAN模组类编译工具链)

@stefanDu 我已经安装了gcc_riscv32工具并检查了安装版本号,显示成功的
00904:~$ riscv32-unknown-elf-gcc -v
Using built-in specs.
COLLECT_GCC=riscv32-unknown-elf-gcc
COLLECT_LTO_WRAPPER=/home/tools/hcc_riscv32/bin/../libexec/gcc/riscv32-unknown-elf/7.3.0/lto-wrapper
Target: riscv32-unknown-elf
Configured with: /usr1/heterogeneous_compiler_codesign/build/hcc_riscv32/../../open_source/hcc_riscv32_build_src/gcc-7.3.0/configure --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=riscv32-unknown-elf --with-arch=rv32imc --with-abi=ilp32 --disable-__cxa_atexit --disable-libgomp --disable-libmudflap --enable-libssp --disable-libstdcxx-pch --disable-nls --disable-shared --disable-threads --disable-multilib --enable-poison-system-directories --enable-languages=c,c++ --with-headers=/usr1/heterogeneous_compiler_codesign/build/hcc_riscv32/riscv32_elf_build_dir/hcc_riscv32/riscv32-unknown-elf/include --with-gnu-as --with-gnu-ld --with-newlib --with-pkgversion='Heterogeneous Compiler&Codesign V100R003C00SPC210B006' --with-build-sysroot=/usr1/heterogeneous_compiler_codesign/build/hcc_riscv32/riscv32_elf_build_dir/hcc_riscv32/riscv32-unknown-elf --with-gmp=/usr1/heterogeneous_compiler_codesign/build/hcc_riscv32/riscv32_elf_build_dir/obj/host-libs/usr --with-mpfr=/usr1/heterogeneous_compiler_codesign/build/hcc_riscv32/riscv32_elf_build_dir/obj/host-libs/usr --with-mpc=/usr1/heterogeneous_compiler_codesign/build/hcc_riscv32/riscv32_elf_build_dir/obj/host-libs/usr --with-isl=/usr1/heterogeneous_compiler_codesign/build/hcc_riscv32/riscv32_elf_build_dir/obj/host-libs/usr --with-build-time-tools=/usr1/heterogeneous_compiler_codesign/build/hcc_riscv32/riscv32_elf_build_dir/hcc_riscv32/riscv32-unknown-elf/bin --with-system-zlib
Thread model: single
gcc version 7.3.0 (Heterogeneous Compiler&Codesign V100R003C00SPC210B006)

8054015 wx 9846855d06 1599814808
Wu.Right 2020-10-15 10:42

@stefanDu 已经解决了,确实是安装gcc_riscv32编译链工具的问题,我解压后设置环境变量生效后,但解压的路径下面没有找到gcc_riscv32目录。。。

Sign in to comment

Assignees
Labels
product-question
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority
1
https://git.oschina.net/openharmony/docs.git
git@git.oschina.net:openharmony/docs.git
openharmony
docs
docs

Search