735 Star 4.3K Fork 1.3K

OpenHarmony / docs

 / 详情

DevEco Device Tool 2.2 Beta1 Hi3861 Windows编译出错

Done
Task
Opened this issue  
2021-07-07 08:56

**【任务描述】**使用全量代码2.0 Canary直接编译出错,未修改任何代码。
下面的链接是编译报错的截图。
(https://images.gitee.com/uploads/images/2021/0707/085353_6eb90704_5085657.png)

【解决方案】

【任务来源】

> Executing task in folder code-2.0-canary: c:\users\rme-tspr\.deveco-device-tool\core\deveco-venv\scripts\hos.exe run --project-dir C:\Users\RME-TSPR\Downloads\code-2.0-canary --environment hi3861 <

Processing hi3861 (platform: hisilicon; board: hi3861; framework: hb)
----------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
builder(["out\hispark_pegasus\wifiiot_hispark_pegasus\Hi3861_wifiiot_app.out"], [])
[OHOS INFO] [1/1] Regenerating ninja files
[OHOS INFO] [1/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/auth_info/libhichainsdk.remove_auth_info_client.o
[OHOS INFO] [2/208] gcc cross compiler obj/base/hiviewdfx/hilog_lite/frameworks/mini/libhilog_lite.hiview_log.o
[OHOS INFO] [3/208] gcc cross compiler obj/base/hiviewdfx/hilog_lite/frameworks/mini/libhilog_lite.hiview_log_limit.o
[OHOS INFO] [4/208] gcc cross compiler obj/base/hiviewdfx/hievent_lite/frameworks/libhievent_lite.hiview_event.o
[OHOS INFO] [5/208] gcc cross compiler obj/base/hiviewdfx/hilog_lite/frameworks/mini/libhilog_lite.hiview_output_log.o
[OHOS INFO] [6/208] gcc cross compiler obj/base/hiviewdfx/hievent_lite/frameworks/libhievent_lite.hiview_output_event.o
[OHOS INFO] [7/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/auth_info/libhichainsdk.add_auth_info_client.o[OHOS INFO] [8/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/auth_info/libhichainsdk.add_auth_info.o
[OHOS INFO] [9/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/auth_info/libhichainsdk.exchange_auth_info.o
[OHOS INFO] [10/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/auth_info/libhichainsdk.exchange_auth_info_client.o
[OHOS INFO] [11/208] gcc cross compiler obj/base/hiviewdfx/hiview_lite/libhiview_lite.hiview_file.o
[OHOS INFO] [12/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/auth_info/libhichainsdk.auth_info.o
[OHOS INFO] [13/208] gcc cross compiler obj/base/hiviewdfx/hiview_lite/libhiview_lite.hiview_service.o
[OHOS INFO] [14/208] gcc cross compiler obj/base/hiviewdfx/hiview_lite/libhiview_lite.hiview_util.o
[OHOS INFO] [15/208] gcc cross compiler obj/base/hiviewdfx/hiview_lite/libhiview_lite.hiview_config.o
[OHOS INFO] [16/208] gcc cross compiler obj/base/hiviewdfx/hiview_lite/libhiview_lite.hiview_cache.o
[OHOS INFO] [17/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.pake_client_confirm.o
[OHOS INFO] [18/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/json/libhichainsdk.jsonutil.o
[OHOS INFO] [19/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/key_agreement/libhichainsdk.pake_server.o
[OHOS INFO] [20/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/json/libhichainsdk.commonutil.o
[OHOS INFO] [21/208] AR libs/libhiview_lite.a
[OHOS INFO] [22/208] AR libs/libhievent_lite.a
[OHOS INFO] [23/208] AR libs/libhilog_lite.a
[OHOS INFO] [24/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.auth_ack_request.o
[OHOS INFO] [25/208] STAMP obj/base/hiviewdfx/hilog_lite/frameworks/mini/hilog_lite_ndk.stamp
[OHOS INFO] [26/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/key_agreement/libhichainsdk.key_agreement.o  
[OHOS INFO] [27/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/key_agreement/libhichainsdk.key_agreement_server.o
[OHOS INFO] [28/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/key_agreement/libhichainsdk.key_agreement_client.o
[OHOS INFO] [29/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/huks_adapter/libhichainsdk.huks_adapter.o
[OHOS INFO] [30/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/log/libhichainsdk.log.o
[OHOS INFO] [31/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/key_agreement/libhichainsdk.sts_client.o
[OHOS INFO] [32/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/key_agreement/libhichainsdk.pake_client.o
[OHOS INFO] [33/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.add_auth_info_response.o[OHOS INFO] [34/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/key_agreement/libhichainsdk.sec_clone_server.o
[OHOS INFO] [35/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/schedule/libhichainsdk.distribution.o
[OHOS INFO] [36/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.add_auth_info_data.o
[OHOS INFO] [37/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/libhichainsdk.hichain.o
[OHOS INFO] [38/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.add_auth_info_request.o
[OHOS INFO] [39/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/schedule/libhichainsdk.build_object.o
[OHOS INFO] [40/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.key_agreement_version.o
[OHOS INFO] [41/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.auth_ack_response.o
[OHOS INFO] [42/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.auth_start_request.o
[OHOS INFO] [43/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/key_agreement/libhichainsdk.sts_server.o
[OHOS INFO] [44/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.exchange_response.o
[OHOS INFO] [45/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.exchange_auth_data.o
[OHOS INFO] [46/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.exchange_request.o
[OHOS INFO] [47/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.import_add_auth_data.o
[OHOS INFO] [48/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.inform_message.o
[OHOS INFO] [49/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.pake_server_confirm.o
[OHOS INFO] [50/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.auth_start_response.o
[OHOS INFO] [51/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.rmv_auth_info_response.o[OHOS INFO] [52/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.parsedata.o
[OHOS INFO] [53/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.pake_request.o
[OHOS INFO] [54/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.rmv_auth_info_request.o
[OHOS INFO] [55/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.sec_clone_data.o        
[OHOS INFO] [56/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.rmv_auth_info_data.o    
[OHOS INFO] [57/208] STAMP obj/base/security/huks/frameworks/huks_lite/huks_sdk.stamp
[OHOS INFO] [58/208] STAMP obj/base/update/ota_lite/frameworks/test.stamp
[OHOS INFO] [59/208] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.pake_response.o
[OHOS INFO] [60/208] STAMP obj/base/startup/syspara_lite/frameworks/token/token_notes.stamp
[OHOS INFO] [61/208] STAMP obj/base/update/ota_lite/frameworks/update_api.stamp
[OHOS INFO] [62/208] gcc cross compiler obj/base/startup/bootstrap_lite/services/source/libbootstrap.system_init.o
[OHOS INFO] [63/208] AR libs/libhichainsdk.a
[OHOS INFO] [64/208] STAMP obj/base/security/deviceauth/frameworks/deviceauth_lite/hichainsdk.stamp
[OHOS INFO] [65/208] gcc cross compiler obj/base/startup/bootstrap_lite/services/source/libbootstrap.bootstrap_service.o
[OHOS INFO] [66/208] AR libs/libbootstrap.a
[OHOS INFO] [67/208] gcc cross compiler obj/base/update/ota_lite/frameworks/source/verify/libhota.app_rsa.o
[OHOS INFO] [68/208] gcc cross compiler obj/base/startup/syspara_lite/frameworks/token/src/token_impl_hal/libtoken_static.token.o
[OHOS INFO] [69/208] STAMP obj/build/lite/ndk.stamp
[OHOS INFO] [70/208] gcc cross compiler obj/base/startup/syspara_lite/frameworks/parameter/src/libsysparam.parameter_common.o
[OHOS INFO] [71/208] gcc cross compiler obj/base/startup/syspara_lite/frameworks/parameter/src/param_impl_hal/libsysparam.param_impl_hal.o
[OHOS INFO] [72/208] gcc cross compiler obj/base/update/ota_lite/frameworks/source/verify/libhota.app_sha256.o
[OHOS INFO] [73/208] gcc cross compiler obj/device/hisilicon/hispark_pegasus/hi3861_adapter/hals/communication/wifi_lite/wifiaware/source/libhal_wifiaware.hal_wifiaware.o
[OHOS INFO] [74/208] gcc cross compiler obj/base/update/ota_lite/frameworks/source/verify/libhota.hota_verify.o
[OHOS INFO] [75/208] gcc cross compiler obj/device/hisilicon/hispark_pegasus/hi3861_adapter/hals/communication/wifi_lite/wifiservice/source/libwifiservice.wifi_device_util.o
[OHOS INFO] [76/208] AR libs/libhal_wifiaware.a
[OHOS INFO] [77/208] gcc cross compiler obj/base/update/ota_lite/frameworks/source/updater/libhota.hota_updater.o
[OHOS INFO] [78/208] STAMP obj/build/lite/config/component/cJSON/cjson_shared.stamp
[OHOS INFO] [79/208] STAMP obj/device/hisilicon/hispark_pegasus/hispark_pegasus.stamp
[OHOS INFO] [80/208] gcc cross compiler obj/device/hisilicon/hispark_pegasus/hi3861_adapter/hals/iot_hardware/wifiiot_lite/libhal_iothardware.hal_iot_flash.o
[OHOS INFO] [81/208] gcc cross compiler obj/device/hisilicon/hispark_pegasus/hi3861_adapter/hals/communication/wifi_lite/wifiservice/source/libwifiservice.wifi_hotspot.o
[OHOS INFO] [82/208] gcc cross compiler obj/device/hisilicon/hispark_pegasus/hi3861_adapter/hals/iot_hardware/wifiiot_lite/libhal_iothardware.hal_iot_gpio.o
[OHOS INFO] [83/208] gcc cross compiler obj/device/hisilicon/hispark_pegasus/hi3861_adapter/hals/communication/wifi_lite/wifiservice/source/libwifiservice.wifi_device.o
[OHOS INFO] [84/208] AR libs/libwifiservice.a
[OHOS INFO] [85/208] STAMP obj/device/hisilicon/hispark_pegasus/hi3861_adapter/hals/communication/wifi_lite/wifiservice/wifiservice_ndk.stamp
[OHOS INFO] [86/208] gcc cross compiler obj/device/hisilicon/hispark_pegasus/hi3861_adapter/hals/iot_hardware/wifiiot_lite/libhal_iothardware.hal_iot_watchdog.o
[OHOS INFO] [87/208] gcc cross compiler obj/third_party/cJSON/libcjson_static.cJSON_Utils.o
[OHOS INFO] [88/208] gcc cross compiler obj/device/hisilicon/hispark_pegasus/hi3861_adapter/hals/utils/file/src/libhal_file_static.hal_file.o
[OHOS INFO] [89/208] gcc cross compiler obj/device/hisilicon/hispark_pegasus/hi3861_adapter/hals/iot_hardware/wifiiot_lite/libhal_iothardware.hal_iot_pwm.o
[OHOS INFO] [90/208] gcc cross compiler obj/device/hisilicon/hispark_pegasus/hi3861_adapter/hals/iot_hardware/wifiiot_lite/libhal_iothardware.hal_iot_uart.o
[OHOS INFO] [91/208] gcc cross compiler obj/device/hisilicon/hispark_pegasus/hi3861_adapter/hals/iot_hardware/wifiiot_lite/libhal_iothardware.hal_reset.o
[OHOS INFO] [92/208] AR libs/libhal_file_static.a
[OHOS INFO] [93/208] STAMP obj/domains/iot/link/link.stamp
[OHOS INFO] [94/208] STAMP obj/domains/iot/link/iot.stamp
[OHOS INFO] [95/208] gcc cross compiler obj/device/hisilicon/hispark_pegasus/hi3861_adapter/hals/update/libhal_update_static.hal_hota_board.o
[OHOS INFO] [96/208] gcc cross compiler obj/device/hisilicon/hispark_pegasus/hi3861_adapter/hals/iot_hardware/wifiiot_lite/libhal_iothardware.hal_lowpower.o
[OHOS INFO] [97/208] gcc cross compiler obj/device/hisilicon/hispark_pegasus/hi3861_adapter/hals/iot_hardware/wifiiot_lite/libhal_iothardware.hal_iot_i2c.o
[OHOS INFO] [98/208] AR libs/libhal_update_static.a
[OHOS INFO] [99/208] AR libs/libhal_iothardware.a
[OHOS INFO] [100/208] STAMP obj/base/iot_hardware/peripheral/iothardware_ndk.stamp
[OHOS INFO] [101/208] STAMP obj/base/iot_hardware/peripheral/iothardware.stamp
[OHOS INFO] [102/208] gcc cross compiler obj/device/hisilicon/hispark_pegasus/hi3861_adapter/kal/posix/src/libposix.pthread_attr.o
[OHOS INFO] [103/208] gcc cross compiler obj/device/hisilicon/hispark_pegasus/hi3861_adapter/kal/posix/src/libposix.libc.o
[OHOS INFO] [104/208] gcc cross compiler obj/device/hisilicon/hispark_pegasus/hi3861_adapter/kal/posix/src/libposix.file.o
[OHOS INFO] [105/208] gcc cross compiler obj/device/hisilicon/hispark_pegasus/hi3861_adapter/kal/posix/src/libposix.pthread.o
[OHOS INFO] [106/208] gcc cross compiler obj/third_party/cJSON/libcjson_static.cJSON.o
[OHOS INFO] [107/208] gcc cross compiler obj/device/hisilicon/hispark_pegasus/hi3861_adapter/kal/posix/src/libposix.time.o
[OHOS INFO] [108/208] AR libs/libcjson_static.a
[OHOS INFO] [109/208] AR libs/libposix.a
[OHOS INFO] [110/208] STAMP obj/build/lite/config/component/cJSON/cjson_ndk.stamp
[OHOS INFO] [111/208] gcc cross compiler obj/foundation/communication/softbus_lite/discovery/coap/source/libdiscovery.coap_adapter.o
[OHOS INFO] [112/208] gcc cross compiler obj/foundation/communication/softbus_lite/authmanager/source/libauthmanager.bus_manager.o
[OHOS INFO] [113/208] gcc cross compiler obj/foundation/communication/softbus_lite/discovery/coap/source/libdiscovery.coap_socket.o
[OHOS INFO] [114/208] gcc cross compiler obj/device/hisilicon/hispark_pegasus/hi3861_adapter/kal/cmsis/libcmsis.cmsis_liteos.o
[OHOS INFO] [115/208] AR libs/libcmsis.a
[OHOS INFO] [116/208] STAMP obj/device/hisilicon/hispark_pegasus/hi3861_adapter/kal/kal.stamp
[OHOS INFO] [117/208] gcc cross compiler obj/foundation/communication/softbus_lite/discovery/coap/source/libdiscovery.json_payload.o
[OHOS INFO] [118/208] gcc cross compiler obj/foundation/communication/softbus_lite/discovery/coap/source/libdiscovery.coap_discover.o
[OHOS INFO] [119/208] STAMP obj/device/hisilicon/hispark_pegasus/sdk_liteos/sdk.stamp
[OHOS INFO] [120/208] gcc cross compiler obj/foundation/communication/softbus_lite/authmanager/source/libauthmanager.auth_conn.o
[OHOS INFO] [121/208] STAMP obj/device/hisilicon/hispark_pegasus/sdk_liteos/wifiiot_sdk.stamp
[OHOS INFO] [122/208] gcc cross compiler obj/foundation/communication/softbus_lite/authmanager/source/libauthmanager.wifi_auth_manager.o
[OHOS INFO] [123/208] gcc cross compiler obj/foundation/communication/softbus_lite/authmanager/source/libauthmanager.msg_get_deviceid.o
[OHOS INFO] [124/208] gcc cross compiler obj/foundation/communication/softbus_lite/discovery/coap/source/libdiscovery.nstackx_common.o
[OHOS INFO] [125/208] gcc cross compiler obj/foundation/communication/softbus_lite/trans_service/source/utils/libtrans_service.message.o
[OHOS INFO] [126/208] gcc cross compiler obj/foundation/communication/softbus_lite/discovery/coap/source/libdiscovery.nstackx_device.o
[OHOS INFO] [127/208] gcc cross compiler obj/foundation/communication/softbus_lite/trans_service/source/libdistbus/libtrans_service.trans_lock.o    
[OHOS INFO] [128/208] gcc cross compiler obj/foundation/communication/softbus_lite/discovery/discovery_service/source/libdiscovery.coap_service.o
[OHOS INFO] [129/208] gcc cross compiler obj/foundation/communication/softbus_lite/authmanager/source/libauthmanager.auth_interface.o
[OHOS INFO] [130/208] gcc cross compiler obj/foundation/communication/softbus_lite/trans_service/source/utils/libtrans_service.aes_gcm.o
[OHOS INFO] [131/208] AR libs/libauthmanager.a
[OHOS INFO] [132/208] gcc cross compiler obj/foundation/communication/softbus_lite/trans_service/source/utils/libtrans_service.tcp_socket.o
[OHOS INFO] [133/208] gcc cross compiler obj/foundation/communication/softbus_lite/os_adapter/source/L0/libdiscovery.os_adapter.o
[OHOS INFO] [134/208] gcc cross compiler obj/foundation/communication/softbus_lite/discovery/discovery_service/source/libdiscovery.discovery_service.o
[OHOS INFO] [135/208] STAMP obj/foundation/communication/wifi_lite/wifi.stamp
[OHOS INFO] [136/208] gcc cross compiler obj/foundation/communication/softbus_lite/trans_service/source/libdistbus/libtrans_service.tcp_session.o
[OHOS INFO] [137/208] gcc cross compiler obj/foundation/communication/softbus_lite/discovery/discovery_service/source/libdiscovery.common_info_manager.o
[OHOS INFO] [138/208] gcc cross compiler obj/foundation/communication/wifi_aware/frameworks/source/libwifiaware.wifiaware.o
[OHOS INFO] [139/208] AR libs/libwifiaware.a
[OHOS INFO] [140/208] gcc cross compiler obj/foundation/communication/softbus_lite/trans_service/source/libdistbus/libtrans_service.auth_conn_manager.o
[OHOS INFO] [141/208] AR libs/libdiscovery.a
[OHOS INFO] [142/208] gcc cross compiler obj/foundation/communication/softbus_lite/trans_service/source/libdistbus/libtrans_service.tcp_session_manager.o
[OHOS INFO] [143/208] STAMP obj/foundation/communication/softbus_lite/discovery_ndk.stamp
[OHOS INFO] [144/208] gcc cross compiler obj/foundation/distributedschedule/samgr_lite/communication/broadcast/source/libbroadcast.broadcast_service.o
[OHOS INFO] [145/208] AR libs/libtrans_service.a
[OHOS INFO] [146/208] STAMP obj/foundation/communication/softbus_lite/softbus.stamp
[OHOS INFO] [147/208] STAMP obj/foundation/communication/softbus_lite/trans_service_ndk.stamp
[OHOS INFO] [148/208] gcc cross compiler obj/foundation/distributedschedule/samgr_lite/communication/broadcast/source/libbroadcast.pub_sub_implement.o
[OHOS INFO] [149/208] STAMP obj/foundation/communication/softbus_lite/softbus_lite_ndk.stamp
[OHOS INFO] [150/208] gcc cross compiler obj/foundation/distributedschedule/samgr_lite/samgr/registry/libsamgr.service_registry.o
[OHOS INFO] [151/208] gcc cross compiler obj/foundation/distributedschedule/samgr_lite/communication/broadcast/source/libbroadcast.pub_sub_feature.o[OHOS INFO] [152/208] gcc cross compiler obj/foundation/distributedschedule/samgr_lite/samgr/source/libsamgr_source.common.o
[OHOS INFO] [153/208] AR libs/libbroadcast.a
[OHOS INFO] [154/208] COPY ../../../foundation/distributedschedule/samgr_lite/config/system_capability.json obj/foundation/distributedschedule/samgr_lite/config/system_capability.json
[OHOS INFO] [155/208] gcc cross compiler obj/foundation/distributedschedule/samgr_lite/samgr/source/libsamgr.samgr_lite.o
[OHOS INFO] [156/208] gcc cross compiler obj/foundation/distributedschedule/samgr_lite/samgr/source/libsamgr_source.message.o
[OHOS INFO] [157/208] STAMP obj/foundation/distributedschedule/samgr_lite/ConfigFiles.stamp
[OHOS INFO] [158/208] gcc cross compiler obj/foundation/distributedschedule/samgr_lite/samgr/adapter/cmsis/libsamgr_adapter.queue_adapter.o
[OHOS INFO] [159/208] gcc cross compiler obj/foundation/distributedschedule/samgr_lite/samgr/adapter/cmsis/libsamgr_adapter.thread_adapter.o
[OHOS INFO] [160/208] gcc cross compiler obj/foundation/distributedschedule/samgr_lite/samgr/source/libsamgr_source.feature.o
[OHOS INFO] [161/208] gcc cross compiler obj/foundation/distributedschedule/samgr_lite/samgr/adapter/cmsis/libsamgr_adapter.time_adapter.o
[OHOS INFO] [162/208] STAMP obj/test/xts/acts/build_lite/acts_component.stamp
[OHOS INFO] [163/208] gcc cross compiler obj/foundation/distributedschedule/samgr_lite/samgr/adapter/cmsis/libsamgr_adapter.memory_adapter.o
[OHOS INFO] [164/208] AR libs/libsamgr_adapter.a
[OHOS INFO] [165/208] gcc cross compiler obj/foundation/distributedschedule/samgr_lite/samgr/source/libsamgr_source.iunknown.o
[OHOS INFO] [166/208] gcc cross compiler obj/foundation/distributedschedule/samgr_lite/samgr/source/libsamgr_source.service.o
[OHOS INFO] [167/208] STAMP obj/vendor/hisilicon/hispark_pegasus/hispark_pegasus.stamp
[OHOS INFO] [168/208] gcc cross compiler obj/foundation/distributedschedule/samgr_lite/samgr/source/libsamgr_source.task_manager.o
[OHOS INFO] [169/208] STAMP obj/test/xts/tools/lite/tools.stamp
[OHOS INFO] [170/208] AR libs/libsamgr_source.a
[OHOS INFO] [171/208] gcc cross compiler obj/foundation/distributeddatamgr/appdatamgr/appdatamgr_lite/dbm_kv_store/src/kv_store_impl_hal/libfoundation_dbm_kv_store.dbm_kv_store.o
[OHOS INFO] [172/208] gcc cross compiler obj/utils/native/lite/file/src/file_impl_hal/libnative_file.file.o
[OHOS INFO] [173/208] gcc cross compiler obj/utils/native/lite/os_dump/libdump_static.dump_syspara.o
[OHOS INFO] [174/208] AR libs/libsamgr.a
[OHOS INFO] [175/208] AR libs/libfoundation_dbm_kv_store.a
[OHOS INFO] [176/208] AR libs/libnative_file.a
[OHOS INFO] [177/208] STAMP obj/foundation/distributedschedule/samgr_lite/samgr.stamp
[OHOS INFO] [178/208] STAMP obj/foundation/distributeddatamgr/appdatamgr/appdatamgr_lite/dbm_kv_store.stamp
[OHOS INFO] [179/208] STAMP obj/utils/native/lite/file/file.stamp
[OHOS INFO] [180/208] STAMP obj/foundation/distributedschedule/samgr_lite/samgr_lite_ndk.stamp
[OHOS INFO] [181/208] STAMP obj/applications/sample/wifi-iot/app/startup/startup.stamp
[OHOS INFO] [182/208] STAMP obj/applications/sample/wifi-iot/app/app.stamp
[OHOS INFO] [183/208] gcc cross compiler obj/utils/native/lite/kv_store/src/kvstore_common/libutils_kv_store.kvstore_common.o
[OHOS INFO] [184/208] gcc cross compiler obj/vendor/hisilicon/hispark_pegasus/hals/utils/sys_param/libhal_sysparam.hal_sys_param.o
[OHOS INFO] [185/208] gcc cross compiler obj/utils/native/lite/kv_store/src/kvstore_impl_hal/libutils_kv_store.kv_store.o
[OHOS INFO] [186/208] AR libs/libhal_sysparam.a
[OHOS INFO] [187/208] gcc cross compiler obj/vendor/hisilicon/hispark_pegasus/hals/utils/token/libhal_token_static.hal_token.o
[OHOS INFO] [188/208] AR libs/libutils_kv_store.a
[OHOS INFO] [189/208] STAMP obj/utils/native/lite/kv_store/kv_store.stamp
[OHOS INFO] [190/208] AR libs/libsysparam.a
[OHOS INFO] [191/208] AR libs/libhal_token_static.a
[OHOS INFO] [192/208] STAMP obj/base/startup/syspara_lite/frameworks/parameter/parameter_notes.stamp
[OHOS INFO] [193/208] STAMP obj/base/startup/syspara_lite/frameworks/parameter/parameter.stamp
[OHOS INFO] [194/208] AR libs/libdump_static.a
[OHOS INFO] [195/208] AR libs/libtoken_static.a
[OHOS INFO] [196/208] AR libs/libhota.a
[OHOS INFO] [197/208] STAMP obj/utils/native/lite/os_dump/utils_os_dump.stamp
[OHOS INFO] [198/208] STAMP obj/base/startup/syspara_lite/frameworks/token/token.stamp
[OHOS INFO] [199/208] STAMP obj/base/update/ota_lite/frameworks/ota_lite.stamp
[OHOS INFO] [200/208] ACTION //test/xts/acts/build_lite:acts_xdevice(//build/lite/toolchain:riscv32-unknown-elf)
[OHOS INFO] [201/208] STAMP obj/test/xts/acts/build_lite/acts_xdevice.stamp
[OHOS INFO] [202/208] ACTION //test/xts/acts/build_lite:acts_generate_module_data(//build/lite/toolchain:riscv32-unknown-elf)
[OHOS INFO] [203/208] STAMP obj/test/xts/acts/build_lite/acts_generate_module_data.stamp
[OHOS INFO] [204/208] ACTION //test/xts/acts/build_lite:acts(//build/lite/toolchain:riscv32-unknown-elf)
[OHOS INFO] [205/208] STAMP obj/test/xts/acts/build_lite/acts.stamp
[OHOS INFO] [206/208] STAMP obj/build/lite/ohos.stamp
[OHOS INFO] [207/208] ACTION //device/hisilicon/hispark_pegasus/sdk_liteos:run_wifiiot_scons(//build/lite/toolchain:riscv32-unknown-elf)
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR]   File "c:\users\rme-tspr\.deveco-device-tool\core\deveco-venv\lib\site-packages\hb\__main__.py", line 80, in main
[OHOS ERROR]     status = args.command(args)
[OHOS ERROR]   File "c:\users\rme-tspr\.deveco-device-tool\core\deveco-venv\lib\site-packages\hb\build\build.py", line 94, in exec_command
[OHOS ERROR]     return build.build(args.full, cmd_args=cmd_args)
[OHOS ERROR]   File "c:\users\rme-tspr\.deveco-device-tool\core\deveco-venv\lib\site-packages\hb\build\build_process.py", line 119, in build        
[OHOS ERROR]     exec_cmd(cmd_args)
[OHOS ERROR]   File "c:\users\rme-tspr\.deveco-device-tool\core\deveco-venv\lib\site-packages\hb\build\build_process.py", line 200, in ninja_build  
[OHOS ERROR]     exec_command(ninja_cmd, log_path=self.config.log_path, log_filter=True)
[OHOS ERROR]   File "c:\users\rme-tspr\.deveco-device-tool\core\deveco-venv\lib\site-packages\hb\common\utils.py", line 99, in exec_command
[OHOS ERROR]     for line in iter(process.stdout.readline, ''):
[OHOS ERROR]   File "C:\Users\RME-TSPR\AppData\Local\Programs\Python\Python38\lib\codecs.py", line 322, in decode
[OHOS ERROR]     (result, consumed) = self._buffer_decode(data, self.errors, final)
[OHOS ERROR] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd5 in position 1315: invalid continuation byte
[OHOS ERROR] Unhandled error: 'utf-8' codec can't decode byte 0xd5 in position 1315: invalid continuation byte
*** [out\hispark_pegasus\wifiiot_hispark_pegasus\Hi3861_wifiiot_app.out] Error -1
=========================================================== [FAILED] Took 23.05 seconds ===========================================================
The terminal process "c:\users\rme-tspr\.deveco-device-tool\core\deveco-venv\scripts\hos.exe 'run', '--project-dir', 'C:\Users\RME-TSPR\Downloads\code-2.0-canary', '--environment', 'hi3861'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

Comments (10)

JohnChen created任务
JohnChen set related repository to OpenHarmony/docs
JohnChen changed description
JohnChen changed description
JohnChen changed description
Expand operation logs

你好,你这边尝试一下:

  1. 通过DevEco工具打开code-2.0-canary这个工程
  2. 点击左下角的DevEco CLI
  3. 在弹出的终端窗口中输入:
    hb --help
    hos run

将回写的日志发一下,谢谢。

馥有诗书气自甄 changed issue state from 待办的 to 进行中
PS F:\code-2.0-canary> hb --help
hb : 无法将“hb”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
所在位置 行:1 字符: 1
+ hb --help
+ ~~
    + CategoryInfo          : ObjectNotFound: (hb:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException


PS F:\code-2.0-canary> hos run
hos : 无法将“hos”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
所在位置 行:1 字符: 1
+ hos run
+ ~~~
    + CategoryInfo          : ObjectNotFound: (hos:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

你好,不好意思,我这两天出差没有及时跟进。
请尝试一下,

  • 手动删除c:\users\rme-tspr.deveco-device-tool和c:\users\rme-tspr\AppData\Local\deveco-device-tool-installer两个目录
  • 重新安装
  • 打开VSCode,并打开一个DevEco工程
  • 点击DevEco CLI
  • 分别输入hos --help 和hb --help

您好,我也遇到了这个问题,并且我解决了。
输入图片说明
在孙工的解决方案的基础上,确保hos --helphb --help没有什么问题后,
在当前工程目录下执行 hpm init -t dist
然后再执行hos run 即可执行

@馥有诗书气自甄 孙工,我这出现了相同问题DevEco Device Tool 2.2 Beta1 Hi3861 Windows下编译hos --help 和hb --help均正常,
Verbose mode can be enabled via -v, --verbose option
builder(["out\hispark_pegasus\wifiiot_hispark_pegasus\Hi3861_wifiiot_app.out"], [])
[OHOS INFO] [1/51] COPY ../../../foundation/distributedschedule/samgr_lite/config/system_capability.json obj/foundation/distributedschedule/samgr_lite/config/system_capability.json
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR] File "c:\users\ding.deveco-device-tool\core\deveco-venv\lib\site-packages\hb_main_.py", line 80, in main
[OHOS ERROR] status = args.command(args)
[OHOS ERROR] File "c:\users\ding.deveco-device-tool\core\deveco-venv\lib\site-packages\hb\build\build.py", line 94, in exec_command
[OHOS ERROR] return build.build(args.full, cmd_args=cmd_args)
[OHOS ERROR] File "c:\users\ding.deveco-device-tool\core\deveco-venv\lib\site-packages\hb\build\build_process.py", line 119, in build
[OHOS ERROR] exec_cmd(cmd_args)
[OHOS ERROR] File "c:\users\ding.deveco-device-tool\core\deveco-venv\lib\site-packages\hb\build\build_process.py", line 200, in ninja_build
[OHOS ERROR] exec_command(ninja_cmd, log_path=self.config.log_path, log_filter=True)
[OHOS ERROR] File "c:\users\ding.deveco-device-tool\core\deveco-venv\lib\site-packages\hb\common\utils.py", line 113, in exec_command
[OHOS ERROR] for line in iter(process.stderr.readline, ''):
[OHOS ERROR] File "C:\Users\Ding\AppData\Local\Programs\Python\Python38\lib\codecs.py", line 322, in decode
[OHOS ERROR] (result, consumed) = self._buffer_decode(data, self.errors, final)
[OHOS ERROR] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbe in position 24: invalid start byte
[OHOS ERROR] Unhandled error: 'utf-8' codec can't decode byte 0xbe in position 24: invalid start byte
*** [out\hispark_pegasus\wifiiot_hispark_pegasus\Hi3861_wifiiot_app.out] Error -1

Hi3861 Windows编译,请问你在工具中是如何配置Tools界面中的tool_msys这个工具链的?
方便的话,在Tools界面截一下图:包括工具名和路径。

您好,请问您现在这个问题解决了吗?我也跟您是相同的报错

输入图片说明
这是我的tool_msys工具链

Austin changed issue state from 进行中 to 已完成

孙工,我这边也是出现了相同问题DevEco Device Tool 2.2 Beta1 Hi3861 Windows下编译hos --help 和hb --help均正常,但是在运行hos run的时候报出以下错误
Verbose mode can be enabled via -v, --verbose option
builder(["out\hispark_pegasus\wifiiot_hispark_pegasus\Hi3861_wifiiot_app.out"], [])
[OHOS ERROR] Invalid vendor path: E:\HarmonySourceCode\code-v3.0-LTS\vendor
scons: *** [out\hispark_pegasus\wifiiot_hispark_pegasus\Hi3861_wifiiot_app.out] Error -1

请问一下i你code-v3.0-LTS目录下是否存在一个名为ohos_config.json的文件,麻烦你将文件内容发一下,谢谢。

Sign in to comment

Status
Assignees
Projects
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
Duration (hours)
参与者(6)
7469797 gao kuo call 1605445849
1
https://git.oschina.net/openharmony/docs.git
git@git.oschina.net:openharmony/docs.git
openharmony
docs
docs

Search