44 Star 288 Fork 244

OpenHarmony-SIG / knowledge_demo_smart_home

 / 详情

智能加湿器编译问题

已完成
任务
创建于  
2022-04-19 14:54

【任务描述】
ohos_build_compiler: gcc
ohos_kernel_type: liteos_m
liteos_config_file: /root/data/pwx1057852/dev-2022/workspace/openHarmony_310/vendor/team_x/smart_humidifier/kernel_configs/debug.config
product_name: smart_humidifier
product_path: /root/data/pwx1057852/dev-2022/workspace/openHarmony_310/vendor/team_x/smart_humidifier
build wifiiot_v200zr : true
copy_lib_name: gen_bsp_lib_wifiiot_v200zr
copy signature bin exec_path /root/data/pwx1057852/dev-2022/workspace/openHarmony_310/out/v200zr/smart_humidifier
bsp_path: /root/data/pwx1057852/dev-2022/workspace/openHarmony_310/device/soc/bestechnic/bes2600/liteos_m/sdk/bsp
Done. Made 231 targets from 177 files in 500ms
ninja: Entering directory `/root/data/pwx1057852/dev-2022/workspace/openHarmony_310/out/v200zr/smart_humidifier'
[1/1300] COPY ../../../base/global/i18n_lite/frameworks/i18n/i18n.dat data/i18n.dat
[2/1300] STAMP obj/base/global/resmgr_lite/frameworks/resmgr_lite/test/unittest.stamp
[3/1300] STAMP obj/base/global/i18n_lite/frameworks/i18n/test/I18nTest.stamp
[4/1300] STAMP obj/base/global/i18n_lite/frameworks/i18n/global_dat.stamp
[5/1300] STAMP obj/base/hiviewdfx/hilog_lite/frameworks/featured/hilog_shared.stamp
[6/1300] STAMP obj/base/hiviewdfx/hilog_lite/frameworks/featured/hilog_ndk.stamp
[7/1300] gcc cross compiler obj/base/hiviewdfx/hilog_lite/frameworks/mini/libhilog_lite.hiview_log_limit.o
[8/1300] gcc cross compiler obj/base/hiviewdfx/hiview_lite/libhiview_lite.hiview_config.o
[9/1300] gcc CXX obj/base/hiviewdfx/hilog_lite/frameworks/featured/libhilog_static.hilog.o
[10/1300] gcc cross compiler obj/base/hiviewdfx/hilog_lite/frameworks/mini/libhilog_lite.hiview_log.o
[11/1300] gcc cross compiler obj/base/global/resmgr_lite/frameworks/resmgr_lite/src/libglobal_resmgr.global.o
[12/1300] gcc cross compiler obj/base/hiviewdfx/hilog_lite/frameworks/mini/libhilog_lite.hiview_output_log.o
[13/1300] gcc cross compiler obj/base/global/resmgr_lite/frameworks/resmgr_lite/src/libglobal_resmgr.global_utils.o
[14/1300] gcc cross compiler obj/base/hiviewdfx/hilog_lite/frameworks/featured/libhilog_static.hiview_log.o
[15/1300] gcc CXX obj/base/global/i18n_lite/frameworks/i18n/src/libglobal_i18n.date_time_format.o
In file included from ../../../base/global/i18n_lite/frameworks/i18n/src/date_time_format.cpp:17:
../../../base/global/i18n_lite/frameworks/i18n/include/data_resource.h:61:20: warning: 'OHOS::I18N::gDataResourcePath' defined but not used [-Wunused-variable]
61 | static const char *gDataResourcePath = "/storage/data/i18n.dat";
| ^~~~~~~~~~~~~~~~~
[16/1300] gcc CXX obj/base/global/i18n_lite/frameworks/i18n/src/libglobal_i18n.date_time_data.o
[145/1300] gcc cross compiler obj/drivers/adapter/platform/gpio/gpio.gpio_bes.o
FAILED: obj/drivers/adapter/platform/gpio/gpio.gpio_bes.o
arm-none-eabi-gcc -D_XOPEN_SOURCE=700 -DOHOS_DEBUG -D__LITEOS__ -D__LITEOS_M__ -DSECUREC_IN_KERNEL=0 -D_BSD_SOURCE=1 -D__LITEOS__ -D__LITEOS_M__ -I../../../drivers/adapter/platform/gpio -I../../../device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/include/rtos/liteos/liteos_m/kal/cmsis -I../../../utils/native/lite/include -I../../../kernel/liteos_m/arch/arm/cortex-m33/gcc/NTZ -I../../../kernel/liteos_m/arch/arm/include -I../../../kernel/liteos_m/arch/include -I../../../kernel/liteos_m/kernel/include -I../../../kernel/liteos_m/kal/libc/newlib/porting/include -I../../../third_party/bounds_checking_function/include -I../../../kernel/liteos_m/kal/posix/include -I../../../kernel/liteos_m/components/backtrace -I../../../kernel/liteos_m/components/cpup -I../../../kernel/liteos_m/components/exchook -I../../../kernel/liteos_m/components/fs/vfs -I../../../kernel/liteos_m/components/fs/littlefs -I../../../third_party/littlefs -I../../../third_party/littlefs/bd -I../../../device/soc/bestechnic/bes2600/liteos_m/components/net/lwip-2.1/porting/include -I../../../kernel/liteos_m/components/net/lwip-2.1/porting/include -I../../../kernel/liteos_m/components/net/lwip-2.1/enhancement/include -I../../../third_party/lwip/src/include -I../../../kernel/liteos_m/components/power -I../../../kernel/liteos_m/utils -I../../../device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/rtos/liteos/liteos_m -I../../../device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/rtos/liteos/liteos_m/kal/cmsis -I../../../device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/platform/cmsis/inc -I../../../device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/platform/hal -I../../../device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/platform/drivers/ana -I../../../device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/services/wifi_app/wifi_console -I../../../device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/utils/crc32 -I../../../device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/utils/kfifo -I../../../device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/net/wifi -I../../../device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/platform/hal/best2003 -I../../../device/soc/bestechnic/bes2600/liteos_m/components/drivers/display/hal -I../../../device/soc/bestechnic/bes2600/liteos_m/components/drivers/flash -I../../../device/soc/bestechnic/bes2600/liteos_m/components/drivers/mipi_dsi -I../../../device/soc/bestechnic/bes2600/liteos_m/components/drivers/touch -I../../../device/soc/bestechnic/bes2600/liteos_m/components/drivers/touch/include -I../../../device/soc/bestechnic/bes2600/liteos_m/components/fs -I../../../device/soc/bestechnic/bes2600/liteos_m/components/ui -I../../../device/soc/bestechnic/bes2600/liteos_m/components/utils/include -I../../../utils/native/lite/include -I../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits -I../../../drivers/adapter/khdf/liteos_m/osal/include -I../../../drivers/framework/include -I../../../drivers/framework/include/osal -I../../../drivers/framework/include/utils -I../../../drivers/framework/utils/include -I../../../drivers/framework/include/platform -I../../../drivers/framework/include/core -I../../../drivers/framework/include/net -I../../../drivers/framework/include/wifi -I../../../drivers/framework/model/network/common/netdevice -I../../../drivers/framework/support/platform/include -I../../../drivers/framework/support/platform/include/common -I../../../drivers/framework/core/host/include -I../../../drivers/framework/core/manager/include -I../../../drivers/framework/core/shared/include -I../../../drivers/framework/core/common/include/manager -I../../../drivers/framework/core/common/include/host -I../../../drivers/framework/core/adapter/vnode/include -I../../../drivers/framework/core/adapter/syscall/include -I../../../drivers/adapter/khdf/liteos_m/network/include -I../../../drivers/framework/support/platform/include/fwk -I../../../drivers/framework/support/platform/include/gpio -I../../../drivers/framework/support/platform/include/i2c -I../../../drivers/framework/support/platform/include/pwm -I../../../drivers/framework/support/platform/include/mipi -I../../../drivers/framework/support/platform/include/spi -I../../../drivers/framework/support/platform/include/uart -Os -mcpu=cortex-m33 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -fdata-sections -mthumb -mthumb-interwork -DPLAYER_TOOL -DCHIP_BEST2003 -DOS_HEAP_SIZE=0x400000 -DCHIP_HAS_UART=3 -DRTOS -DDEBUG=1 -DCMSIS_OS_VER=2 -DOS_HWI_MAX_NUM=96 -DCONFIG_DISPLAY_A064 -DLFS_MAX_OPEN_DIRS=32 -DMBEDTLS_CMSIS_FILE="rtos/liteos/liteos_m/kal/cmsis/cmsis_os.h" -DLOSCFG_BASE_CORE_HILOG -mcpu=cortex-m33 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -fdata-sections -mthumb -mthumb-interwork -DPLAYER_TOOL -DCHIP_BEST2003 -DOS_HEAP_SIZE=0x400000 -DCHIP_HAS_UART=3 -DRTOS -DDEBUG=1 -DCMSIS_OS_VER=2 -DOS_HWI_MAX_NUM=96 -DCONFIG_DISPLAY_A064 -DLFS_MAX_OPEN_DIRS=32 -DMBEDTLS_CMSIS_FILE="rtos/liteos/liteos_m/kal/cmsis/cmsis_os.h" -DLOSCFG_BASE_CORE_HILOG -mcpu=cortex-m33 -fno-common -fno-builtin -fno-strict-aliasing -Wall -fsigned-char -fstack-protector-all -imacros /root/data/pwx1057852/dev-2022/workspace/openHarmony_310/out/v200zr/smart_humidifier/config.h -isystem /root/.hpm/global/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/include -Os -fstack-protector-strong -fno-pic -fno-builtin -fms-extensions -fno-strict-aliasing -fno-common -fsigned-char -ffunction-sections -fdata-sections -fno-exceptions -fno-omit-frame-pointer -fno-aggressive-loop-optimizations -std=c99 -std=c99 -c ../../../drivers/adapter/platform/gpio/gpio_bes.c -o obj/drivers/adapter/platform/gpio/gpio.gpio_bes.o
In file included from ../../../drivers/framework/include/core/hdf_io_service_if.h:33,
from ../../../drivers/framework/include/core/hdf_device_desc.h:33,
from ../../../drivers/framework/support/platform/include/gpio/gpio_core.h:13,
from ../../../drivers/adapter/platform/gpio/gpio_bes.h:18,
from ../../../drivers/adapter/platform/gpio/gpio_bes.c:15:
../../../drivers/framework/include/utils/hdf_dlist.h:166: warning: "CONTAINER_OF" redefined
166 | #define CONTAINER_OF(ptr, type, member)
|
In file included from ../../../device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/platform/hal/hal_timer.h:22,
from ../../../device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/rtos/liteos/liteos_m/target_config.h:20,
from ../../../kernel/liteos_m/kernel/include/los_config.h:40,
from ../../../kernel/liteos_m/kal/libc/newlib/porting/include/sys/_pthreadtypes.h:61,
from /root/.hpm/global/gcc-arm-none-eabi-10.3-2021.10/arm-none-eabi/include/sys/types.h:223,
from ../../../drivers/adapter/khdf/liteos_m/osal/include/hdf_types.h:38,
from ../../../drivers/framework/include/utils/hdf_base.h:33,
from ../../../drivers/framework/support/platform/include/gpio/gpio_core.h:12,
from ../../../drivers/adapter/platform/gpio/gpio_bes.h:18,
from ../../../drivers/adapter/platform/gpio/gpio_bes.c:15:
../../../device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/platform/hal/plat_types.h:201: note: this is the location of the previous definition
201 | #define CONTAINER_OF(ptr, type, member) ({
|
In file included from ../../../drivers/framework/include/osal/osal_atomic.h:40,
from ../../../drivers/framework/utils/include/hdf_sref.h:12,
from ../../../drivers/framework/support/platform/include/fwk/platform_device.h:15,
from ../../../drivers/framework/support/platform/include/fwk/platform_core.h:18,
from ../../../drivers/framework/support/platform/include/gpio/gpio_core.h:17,
from ../../../drivers/adapter/platform/gpio/gpio_bes.h:18,
from ../../../drivers/adapter/platform/gpio/gpio_bes.c:15:
../../../drivers/adapter/khdf/liteos_m/osal/include/osal_atomic_def.h: In function 'OsalTestSetBitWrapper':
../../../drivers/adapter/khdf/liteos_m/osal/include/osal_atomic_def.h:60:24: warning: implicit declaration of function 'LOS_IntLock' [-Wimplicit-function-declaration]
60 | uint32_t intSave = LOS_IntLock();
| ^~~~~~~~~~~
../../../drivers/adapter/khdf/liteos_m/osal/include/osal_atomic_def.h:67:5: warning: implicit declaration of function 'LOS_IntRestore'; did you mean 'LOS_EventDestroy'? [-Wimplicit-function-declaration]
67 | LOS_IntRestore(intSave);
| ^~~~~~~~~~~~~~
| LOS_EventDestroy
../../../drivers/adapter/platform/gpio/gpio_bes.c: In function 'AttachGpioDevice':
../../../drivers/adapter/platform/gpio/gpio_bes.c:203:39: warning: implicit declaration of function 'OsalMemAlloc' [-Wimplicit-function-declaration]
203 | gpioDevice = (struct GpioDevice *)OsalMemAlloc(sizeof(struct GpioDevice));
| ^~~~~~~~~~~~
../../../drivers/adapter/platform/gpio/gpio_bes.c:211:15: warning: implicit declaration of function 'OsalMemFree' [-Wimplicit-function-declaration]
211 | (void)OsalMemFree(gpioDevice);
| ^~~~~~~~~~~
../../../drivers/adapter/platform/gpio/gpio_bes.c: In function 'GpioDriverBind':
../../../drivers/adapter/platform/gpio/gpio_bes.c:258:5: error: 'gpioCntlr' undeclared (first use in this function); did you mean 'GpioCntlr'?
258 | gpioCntlr.device.hdfDev = device;
| ^~~~~~~~~
| GpioCntlr
../../../drivers/adapter/platform/gpio/gpio_bes.c:258:5: note: each undeclared identifier is reported only once for each function it appears in
At top level:
../../../drivers/adapter/platform/gpio/gpio_bes.c:34:34: warning: 'HalGpioGetIrqConfig' defined but not used [-Wunused-function]
34 | static struct HAL_GPIO_IRQ_CFG_T HalGpioGetIrqConfig(enum HAL_GPIO_PIN_T pin)
| ^~~~~~~~~~~~~~~~~~~
[146/1300] gcc cross compiler obj/drivers/framework/support/platform/src/uart/hdf_platform_lite.uart_core.o
In file included from ../../../drivers/framework/include/core/hdf_io_service_if.h:33,
from ../../../drivers/framework/include/core/hdf_device_desc.h:33,
from ../../../drivers/framework/support/platform/include/uart/uart_core.h:13,
from ../../../drivers/framework/support/platform/src/uart/uart_core.c:9:
../../../drivers/framework/include/utils/hdf_dlist.h:166: warning: "CONTAINER_OF" redefined
166 | #define CONTAINER_OF(ptr, type, member)
|
In file included from ../../../device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/platform/hal/hal_timer.h:22,
from ../../../device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/rtos/liteos/liteos_m/target_config.h:20,
from ../../../kernel/liteos_m/kernel/include/los_config.h:40,
from ../../../kernel/liteos_m/kal/libc/newlib/porting/include/sys/_pthreadtypes.h:61,
from /root/.hpm/global/gcc-arm-none-eabi-10.3-2021.10/arm-none-eabi/include/sys/types.h:223,
from ../../../drivers/adapter/khdf/liteos_m/osal/include/hdf_types.h:38,
from ../../../drivers/framework/include/utils/hdf_base.h:33,
from ../../../drivers/framework/support/platform/include/uart/uart_core.h:12,
from ../../../drivers/framework/support/platform/src/uart/uart_core.c:9:
../../../device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/platform/hal/plat_types.h:201: note: this is the location of the previous definition
201 | #define CONTAINER_OF(ptr, type, member) ({
|
In file included from ../../../drivers/framework/include/osal/osal_atomic.h:40,
from ../../../drivers/framework/support/platform/include/uart/uart_core.h:14,
from ../../../drivers/framework/support/platform/src/uart/uart_core.c:9:
../../../drivers/adapter/khdf/liteos_m/osal/include/osal_atomic_def.h: In function 'OsalTestSetBitWrapper':
../../../drivers/adapter/khdf/liteos_m/osal/include/osal_atomic_def.h:60:24: warning: implicit declaration of function 'LOS_IntLock' [-Wimplicit-function-declaration]
60 | uint32_t intSave = LOS_IntLock();
| ^~~~~~~~~~~
../../../drivers/adapter/khdf/liteos_m/osal/include/osal_atomic_def.h:67:5: warning: implicit declaration of function 'LOS_IntRestore'; did you mean 'LOS_EventDestroy'? [-Wimplicit-function-declaration]
67 | LOS_IntRestore(intSave);
| ^~~~~~~~~~~~~~
| LOS_EventDestroy
In file included from ../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/hilog_cp.h:19,
from ../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/log.h:19,
from ../../../drivers/adapter/khdf/liteos_m/osal/include/hdf_log_adapter.h:35,
from ../../../drivers/framework/include/utils/hdf_log.h:48,
from ../../../drivers/framework/support/platform/src/uart/uart_core.c:10:
../../../drivers/framework/support/platform/src/uart/uart_core.c: In function 'UartUserRead':
../../../drivers/framework/support/platform/src/uart/uart_core.c:72:18: warning: format '%d' expects argument of type 'int', but argument 7 has type 'int32_t' {aka 'long int'} [-Wformat=]
72 | HDF_LOGE("%s: UartHostRead error, len is %d", func, len);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~
| |
| int32_t {aka long int}
../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/hiview_log.h:291:92: note: in definition of macro 'HILOG_ERROR'
291 | #define HILOG_ERROR(type, ...) ((void)HiLogPrint(LOG_CORE, LOG_ERROR, LOG_DOMAIN, LOG_TAG, VA_ARGS))
| ^~~~~~~~~~~
../../../drivers/framework/include/utils/hdf_log.h:98:32: note: in expansion of macro 'HDF_LOGE_WRAPPER'
98 | #define HDF_LOGE(fmt, args...) HDF_LOGE_WRAPPER(fmt, ##args)
| ^~~~~~~~~~~~~~~~
../../../drivers/framework/support/platform/src/uart/uart_core.c:72:9: note: in expansion of macro 'HDF_LOGE'
72 | HDF_LOGE("%s: UartHostRead error, len is %d", func, len);
| ^~~~~~~~
../../../drivers/framework/support/platform/src/uart/uart_core.c:72:51: note: format string is defined here
72 | HDF_LOGE("%s: UartHostRead error, len is %d", func, len);
| ~^
| |
| int
| %ld
../../../drivers/framework/support/platform/src/uart/uart_core.c: In function 'UartUserWrite':
../../../drivers/framework/support/platform/src/uart/uart_core.c:90:55: warning: passing argument 3 of 'HdfSbufReadBuffer' from incompatible pointer type [-Wincompatible-pointer-types]
90 | if (!HdfSbufReadBuffer(data, (const void **)&buf, &size)) {
| ^~~~~
| |
| size_t * {aka unsigned int *}
In file included from ../../../drivers/framework/include/core/hdf_io_service_if.h:35,
from ../../../drivers/framework/include/core/hdf_device_desc.h:33,
from ../../../drivers/framework/support/platform/include/uart/uart_core.h:13,
from ../../../drivers/framework/support/platform/src/uart/uart_core.c:9:
../../../drivers/framework/include/utils/hdf_sbuf.h:312:75: note: expected 'uint32_t *' {aka 'long unsigned int *'} but argument is of type 'size_t *' {aka 'unsigned int *'}
312 | bool HdfSbufReadBuffer(struct HdfSBuf *sbuf, const void **data, uint32_t *readSize);
| ~~~~~~~~~~^~~~~~~~
../../../drivers/framework/support/platform/src/uart/uart_core.c: In function 'UartUserSetBaud':
../../../drivers/framework/support/platform/src/uart/uart_core.c:118:60: warning: passing argument 3 of 'HdfSbufReadBuffer' from incompatible pointer type [-Wincompatible-pointer-types]
118 | if (!HdfSbufReadBuffer(data, (const void *)&baudRate, &size)) {
| ^~~~~
| |
| size_t * {aka unsigned int }
%ld
In file included from ../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/hilog_cp.h:19,
from ../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/log.h:19,
from ../../../drivers/adapter/khdf/liteos_m/osal/include/hdf_log_adapter.h:35,
from ../../../drivers/framework/include/utils/hdf_log.h:48,
from ../../../drivers/framework/core/host/src/devhost_service.c:15:
../../../drivers/framework/core/host/src/devhost_service.c: In function 'DevHostServiceDelDevice':
../../../drivers/framework/core/host/src/devhost_service.c:128:18: warning: format '%u' expects argument of type 'unsigned int', but argument 6 has type 'devid_t' {aka 'long unsigned int'} [-Wformat=]
128 | HDF_LOGI("failed to del device %u, not exist", devId);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~
| |
| devid_t {aka long unsigned int}
../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/hiview_log.h:251:90: note: in definition of macro 'HILOG_INFO'
251 | #define HILOG_INFO(type, ...) ((void)HiLogPrint(LOG_CORE, LOG_INFO, LOG_DOMAIN, LOG_TAG, VA_ARGS))
| ^~~~~~~~~~~
../../../drivers/framework/include/utils/hdf_log.h:80:32: note: in expansion of macro 'HDF_LOGI_WRAPPER'
80 | #define HDF_LOGI(fmt, args...) HDF_LOGI_WRAPPER(fmt, ##args)
| ^~~~~~~~~~~~~~~~
../../../drivers/framework/core/host/src/devhost_service.c:128:9: note: in expansion of macro 'HDF_LOGI'
128 | HDF_LOGI("failed to del device %u, not exist", devId);
| ^~~~~~~~
../../../drivers/framework/core/host/src/devhost_service.c:128:41: note: format string is defined here
128 | HDF_LOGI("failed to del device %u, not exist", devId);
| ~^
| |
| unsigned int
| %lu
In file included from ../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/hilog_cp.h:19,
from ../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/log.h:19,
from ../../../drivers/adapter/khdf/liteos_m/osal/include/hdf_log_adapter.h:35,
from ../../../drivers/framework/include/utils/hdf_log.h:48,
from ../../../drivers/framework/core/host/src/devhost_service.c:15:
../../../drivers/framework/core/host/src/devhost_service.c:133:18: warning: format '%u' expects argument of type 'unsigned int', but argument 6 has type 'devid_t' {aka 'long unsigned int'} [-Wformat=]
133 | HDF_LOGE("failed to del device %u, invalid device", devId);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~
| |
| devid_t {aka long unsigned int}
../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/hiview_log.h:291:92: note: in definition of macro 'HILOG_ERROR'
291 | #define HILOG_ERROR(type, ...) ((void)HiLogPrint(LOG_CORE, LOG_ERROR, LOG_DOMAIN, LOG_TAG, VA_ARGS))
| ^~~~~~~~~~~
../../../drivers/framework/include/utils/hdf_log.h:98:32: note: in expansion of macro 'HDF_LOGE_WRAPPER'
98 | #define HDF_LOGE(fmt, args...) HDF_LOGE_WRAPPER(fmt, ##args)
| ^~~~~~~~~~~~~~~~
../../../drivers/framework/core/host/src/devhost_service.c:133:9: note: in expansion of macro 'HDF_LOGE'
133 | HDF_LOGE("failed to del device %u, invalid device", devId);
| ^~~~~~~~
../../../drivers/framework/core/host/src/devhost_service.c:133:41: note: format string is defined here
133 | HDF_LOGE("failed to del device %u, invalid device", devId);
| ~^
| |
| unsigned int
| %lu
In file included from ../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/hilog_cp.h:19,
from ../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/log.h:19,
from ../../../drivers/adapter/khdf/liteos_m/osal/include/hdf_log_adapter.h:35,
from ../../../drivers/framework/include/utils/hdf_log.h:48,
from ../../../drivers/framework/core/host/src/devhost_service.c:15:
../../../drivers/framework/core/host/src/devhost_service.c:138:18: warning: format '%u' expects argument of type 'unsigned int', but argument 6 has type 'devid_t' {aka 'long unsigned int'} [-Wformat=]
138 | HDF_LOGE("failed to detach device %u", devId);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~
| |
| devid_t {aka long unsigned int}
../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/hiview_log.h:291:92: note: in definition of macro 'HILOG_ERROR'
291 | #define HILOG_ERROR(type, ...) ((void)HiLogPrint(LOG_CORE, LOG_ERROR, LOG_DOMAIN, LOG_TAG, VA_ARGS))
| ^~~~~~~~~~~
../../../drivers/framework/include/utils/hdf_log.h:98:32: note: in expansion of macro 'HDF_LOGE_WRAPPER'
98 | #define HDF_LOGE(fmt, args...) HDF_LOGE_WRAPPER(fmt, ##args)
| ^~~~~~~~~~~~~~~~
../../../drivers/framework/core/host/src/devhost_service.c:138:9: note: in expansion of macro 'HDF_LOGE'
138 | HDF_LOGE("failed to detach device %u", devId);
| ^~~~~~~~
../../../drivers/framework/core/host/src/devhost_service.c:138:44: note: format string is defined here
138 | HDF_LOGE("failed to detach device %u", devId);
| ~^
| |
| unsigned int
| %lu
In file included from ../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/hilog_cp.h:19,
from ../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/log.h:19,
from ../../../drivers/adapter/khdf/liteos_m/osal/include/hdf_log_adapter.h:35,
from ../../../drivers/framework/include/utils/hdf_log.h:48,
from ../../../drivers/framework/core/host/src/devhost_service.c:15:
../../../drivers/framework/core/host/src/devhost_service.c: In function 'ApplyDevicesPowerState':
../../../drivers/framework/core/host/src/devhost_service.c:171:30: warning: format '%d' expects argument of type 'int', but argument 7 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
171 | HDF_LOGE("device %s failed to resume(%d)", deviceNode->driver->entry->moduleName, state);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~
| |
| uint32_t {aka long unsigned int}
../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/hiview_log.h:291:92: note: in definition of macro 'HILOG_ERROR'
291 | #define HILOG_ERROR(type, ...) ((void)HiLogPrint(LOG_CORE, LOG_ERROR, LOG_DOMAIN, LOG_TAG, VA_ARGS))
| ^~~~~~~~~~~
../../../drivers/framework/include/utils/hdf_log.h:98:32: note: in expansion of macro 'HDF_LOGE_WRAPPER'
98 | #define HDF_LOGE(fmt, args...) HDF_LOGE_WRAPPER(fmt, ##args)
| ^~~~~~~~~~~~~~~~
../../../drivers/framework/core/host/src/devhost_service.c:171:21: note: in expansion of macro 'HDF_LOGE'
171 | HDF_LOGE("device %s failed to resume(%d)", deviceNode->driver->entry->moduleName, state);
| ^~~~~~~~
../../../drivers/framework/core/host/src/devhost_service.c:171:59: note: format string is defined here
171 | HDF_LOGE("device %s failed to resume(%d)", deviceNode->driver->entry->moduleName, state);
| ~^
| |
| int
| %ld
In file included from ../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/hilog_cp.h:19,
from ../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/log.h:19,
from ../../../drivers/adapter/khdf/liteos_m/osal/include/hdf_log_adapter.h:35,
from ../../../drivers/framework/include/utils/hdf_log.h:48,
from ../../../drivers/framework/core/host/src/devhost_service.c:15:
../../../drivers/framework/core/host/src/devhost_service.c:180:30: warning: format '%d' expects argument of type 'int', but argument 7 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
180 | HDF_LOGE("device %s failed to suspend(%d)", deviceNode->driver->entry->moduleName, state);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~
| |
| uint32_t {aka long unsigned int}
../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/hiview_log.h:291:92: note: in definition of macro 'HILOG_ERROR'
291 | #define HILOG_ERROR(type, ...) ((void)HiLogPrint(LOG_CORE, LOG_ERROR, LOG_DOMAIN, LOG_TAG, VA_ARGS))
| ^~~~~~~~~~~
../../../drivers/framework/include/utils/hdf_log.h:98:32: note: in expansion of macro 'HDF_LOGE_WRAPPER'
98 | #define HDF_LOGE(fmt, args...) HDF_LOGE_WRAPPER(fmt, ##args)
| ^~~~~~~~~~~~~~~~
../../../drivers/framework/core/host/src/devhost_service.c:180:21: note: in expansion of macro 'HDF_LOGE'
180 | HDF_LOGE("device %s failed to suspend(%d)", deviceNode->driver->entry->moduleName, state);
| ^~~~~~~~
../../../drivers/framework/core/host/src/devhost_service.c:180:60: note: format string is defined here
180 | HDF_LOGE("device %s failed to suspend(%d)", deviceNode->driver->entry->moduleName, state);
| ~^
| |
| int
| %ld
In file included from ../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/hilog_cp.h:19,
from ../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/log.h:19,
from ../../../drivers/adapter/khdf/liteos_m/osal/include/hdf_log_adapter.h:35,
from ../../../drivers/framework/include/utils/hdf_log.h:48,
from ../../../drivers/framework/core/host/src/devhost_service.c:15:
../../../drivers/framework/core/host/src/devhost_service.c: In function 'DevHostServicePmNotify':
../../../drivers/framework/core/host/src/devhost_service.c:199:14: warning: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
199 | HDF_LOGD("host(%s) set power state=%u", hostService->hostName, state);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~
| |
| uint32_t {aka long unsigned int}
../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/hiview_log.h:231:92: note: in definition of macro 'HILOG_DEBUG'
231 | #define HILOG_DEBUG(type, ...) ((void)HiLogPrint(LOG_CORE, LOG_DEBUG, LOG_DOMAIN, LOG_TAG, VA_ARGS))
| ^~~~~~~~~~~
../../../drivers/framework/include/utils/hdf_log.h:71:32: note: in expansion of macro 'HDF_LOGD_WRAPPER'
71 | #define HDF_LOGD(fmt, args...) HDF_LOGD_WRAPPER(fmt, ##args)
| ^~~~~~~~~~~~~~~~
../../../drivers/framework/core/host/src/devhost_service.c:199:5: note: in expansion of macro 'HDF_LOGD'
199 | HDF_LOGD("host(%s) set power state=%u", hostService->hostName, state);
| ^~~~~~~~
../../../drivers/framework/core/host/src/devhost_service.c:199:41: note: format string is defined here
199 | HDF_LOGD("host(%s) set power state=%u", hostService->hostName, state);
| ~^
| |
| unsigned int
| %lu
[150/1300] gcc cross compiler obj/third_party/lwip/src/netif/ppp/lwip.ccp.o
In file included from ../../../kernel/liteos_m/components/fs/vfs/vfs_config.h:88,
from ../../../kernel/liteos_m/components/net/lwip-2.1/porting/include/lwip/lwipopts.h:138,
from ../../../kernel/liteos_m/components/net/lwip-2.1/porting/include/lwipopts.h:36,
from ../../../third_party/lwip/src/include/lwip/opt.h:51,
from ../../../third_party/lwip/src/include/netif/ppp/ppp_opts.h:31,
from ../../../third_party/lwip/src/netif/ppp/ccp.c:31:
../../../device/soc/bestechnic/bes2600/liteos_m/components/net/lwip-2.1/porting/include/lwip/lwipopts.h:22: warning: "LWIP_CHECKSUM_ON_COPY" redefined
22 | #define LWIP_CHECKSUM_ON_COPY 0
|
In file included from ../../../kernel/liteos_m/components/net/lwip-2.1/porting/include/lwipopts.h:36,
from ../../../third_party/lwip/src/include/lwip/opt.h:51,
from ../../../third_party/lwip/src/include/netif/ppp/ppp_opts.h:31,
from ../../../third_party/lwip/src/netif/ppp/ccp.c:31:
../../../kernel/liteos_m/components/net/lwip-2.1/porting/include/lwip/lwipopts.h:109: note: this is the location of the previous definition
109 | #define LWIP_CHECKSUM_ON_COPY 1
|
In file included from ../../../third_party/lwip/src/include/lwip/arch.h:48,
from ../../../third_party/lwip/src/include/lwip/debug.h:40,
from ../../../third_party/lwip/src/include/lwip/opt.h:52,
from ../../../third_party/lwip/src/include/netif/ppp/ppp_opts.h:31,
from ../../../third_party/lwip/src/netif/ppp/ccp.c:31:
../../../kernel/liteos_m/components/net/lwip-2.1/porting/include/arch/cc.h:91: warning: "ALIGNED" redefined
91 | #define ALIGNED(n) attribute((aligned (n)))
|
In file included from ../../../device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/platform/hal/hal_timer.h:22,
from ../../../device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/rtos/liteos/liteos_m/target_config.h:20,
from ../../../kernel/liteos_m/kernel/include/los_config.h:40,
from ../../../kernel/liteos_m/kal/libc/newlib/porting/include/sys/_pthreadtypes.h:61,
from /root/.hpm/global/gcc-arm-none-eabi-10.3-2021.10/arm-none-eabi/include/sys/types.h:223,
from /root/.hpm/global/gcc-arm-none-eabi-10.3-2021.10/arm-none-eabi/include/sys/_default_fcntl.h:210,
from /root/.hpm/global/gcc-arm-none-eabi-10.3-2021.10/arm-none-eabi/include/sys/fcntl.h:4,
from ../../../kernel/liteos_m/kal/libc/newlib/porting/include/sys/fcntl.h:34,
from /root/.hpm/global/gcc-arm-none-eabi-10.3-2021.10/arm-none-eabi/include/fcntl.h:1,
from ../../../kernel/liteos_m/components/fs/littlefs/lfs_api.h:35,
from ../../../kernel/liteos_m/components/fs/vfs/vfs_config.h:108,
from ../../../kernel/liteos_m/components/net/lwip-2.1/porting/include/lwip/lwipopts.h:138,
from ../../../kernel/liteos_m/components/net/lwip-2.1/porting/include/lwipopts.h:36,
from ../../../third_party/lwip/src/include/lwip/opt.h:51,
from ../../../third_party/lwip/src/include/netif/ppp/ppp_opts.h:31,
from ../../../third_party/lwip/src/netif/ppp/ccp.c:31:
../../../device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/platform/hal/plat_types.h:153: note: this is the location of the previous definition
153 | #define ALIGNED(a) attribute((aligned(a)))
|
[151/1300] gcc cross compiler obj/drivers/framework/core/host/src/hdf_core.power_state_token.o
In file included from ../../../drivers/framework/include/osal/osal_atomic.h:40,
from ../../../drivers/framework/utils/include/hdf_sref.h:12,
from ../../../drivers/framework/core/host/include/power_state_token.h:12,
from ../../../drivers/framework/core/host/src/power_state_token.c:9:
../../../drivers/adapter/khdf/liteos_m/osal/include/osal_atomic_def.h: In function 'OsalTestSetBitWrapper':
../../../drivers/adapter/khdf/liteos_m/osal/include/osal_atomic_def.h:60:24: warning: implicit declaration of function 'LOS_IntLock' [-Wimplicit-function-declaration]
60 | uint32_t intSave = LOS_IntLock();
| ^~~~~~~~~~~
../../../drivers/adapter/khdf/liteos_m/osal/include/osal_atomic_def.h:67:5: warning: implicit declaration of function 'LOS_IntRestore'; did you mean 'LOS_EventDestroy'? [-Wimplicit-function-declaration]
67 | LOS_IntRestore(intSave);
| ^~~~~~~~~~~~~~
| LOS_EventDestroy
In file included from ../../../drivers/framework/include/core/hdf_io_service_if.h:33,
from ../../../drivers/framework/include/core/hdf_device_desc.h:33,
from ../../../drivers/framework/include/core/hdf_pm.h:11,
from ../../../drivers/framework/core/host/include/power_state_token.h:14,
from ../../../drivers/framework/core/host/src/power_state_token.c:9:
../../../drivers/framework/include/utils/hdf_dlist.h: At top level:
../../../drivers/framework/include/utils/hdf_dlist.h:166: warning: "CONTAINER_OF" redefined
166 | #define CONTAINER_OF(ptr, type, member)
|
In file included from ../../../device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/platform/hal/hal_timer.h:22,
from ../../../device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/rtos/liteos/liteos_m/target_config.h:20,
from ../../../kernel/liteos_m/kernel/include/los_config.h:40,
from ../../../kernel/liteos_m/kal/libc/newlib/porting/include/sys/_pthreadtypes.h:61,
from /root/.hpm/global/gcc-arm-none-eabi-10.3-2021.10/arm-none-eabi/include/sys/types.h:223,
from ../../../drivers/adapter/khdf/liteos_m/osal/include/hdf_types.h:38,
from ../../../drivers/framework/include/utils/hdf_base.h:33,
from ../../../drivers/adapter/khdf/liteos_m/osal/include/osal_atomic_def.h:35,
from ../../../drivers/framework/include/osal/osal_atomic.h:40,
from ../../../drivers/framework/utils/include/hdf_sref.h:12,
from ../../../drivers/framework/core/host/include/power_state_token.h:12,
from ../../../drivers/framework/core/host/src/power_state_token.c:9:
../../../device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/platform/hal/plat_types.h:201: note: this is the location of the previous definition
201 | #define CONTAINER_OF(ptr, type, member) ({
|
[152/1300] gcc cross compiler obj/drivers/framework/core/host/src/hdf_core.hdf_device.o
In file included from ../../../drivers/framework/include/core/hdf_io_service_if.h:33,
from ../../../drivers/framework/include/core/hdf_device_desc.h:33,
from ../../../drivers/framework/core/host/include/hdf_device.h:12,
from ../../../drivers/framework/core/host/src/hdf_device.c:9:
../../../drivers/framework/include/utils/hdf_dlist.h:166: warning: "CONTAINER_OF" redefined
166 | #define CONTAINER_OF(ptr, type, member)
|
In file included from ../../../device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/platform/hal/hal_timer.h:22,
from ../../../device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/rtos/liteos/liteos_m/target_config.h:20,
from ../../../kernel/liteos_m/kernel/include/los_config.h:40,
from ../../../kernel/liteos_m/kal/libc/newlib/porting/include/sys/_pthreadtypes.h:61,
from /root/.hpm/global/gcc-arm-none-eabi-10.3-2021.10/arm-none-eabi/include/sys/types.h:223,
from ../../../drivers/adapter/khdf/liteos_m/osal/include/hdf_types.h:38,
from ../../../drivers/framework/include/utils/hdf_base.h:33,
from ../../../drivers/framework/include/utils/hdf_dlist.h:35,
from ../../../drivers/framework/include/core/hdf_io_service_if.h:33,
from ../../../drivers/framework/include/core/hdf_device_desc.h:33,
from ../../../drivers/framework/core/host/include/hdf_device.h:12,
from ../../../drivers/framework/core/host/src/hdf_device.c:9:
../../../device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/platform/hal/plat_types.h:201: note: this is the location of the previous definition
201 | #define CONTAINER_OF(ptr, type, member) ({
|
In file included from ../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/hilog_cp.h:19,
from ../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/log.h:19,
from ../../../drivers/adapter/khdf/liteos_m/osal/include/hdf_log_adapter.h:35,
from ../../../drivers/framework/include/utils/hdf_log.h:48,
from ../../../drivers/framework/core/host/src/hdf_device.c:14:
../../../drivers/framework/core/host/src/hdf_device.c: In function 'HdfDeviceDetach':
../../../drivers/framework/core/host/src/hdf_device.c:74:18: warning: format '%x' expects argument of type 'unsigned int', but argument 7 has type 'devid_t' {aka 'long unsigned int'} [-Wformat=]
74 | HDF_LOGE("%s: device %x detach unknown devnode %x", func, device->deviceId, devNode->devId);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
| |
| devid_t {aka long unsigned int}
../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/hiview_log.h:291:92: note: in definition of macro 'HILOG_ERROR'
291 | #define HILOG_ERROR(type, ...) ((void)HiLogPrint(LOG_CORE, LOG_ERROR, LOG_DOMAIN, LOG_TAG, VA_ARGS))
| ^~~~~~~~~~~
../../../drivers/framework/include/utils/hdf_log.h:98:32: note: in expansion of macro 'HDF_LOGE_WRAPPER'
98 | #define HDF_LOGE(fmt, args...) HDF_LOGE_WRAPPER(fmt, ##args)
| ^~~~~~~~~~~~~~~~
../../../drivers/framework/core/host/src/hdf_device.c:74:9: note: in expansion of macro 'HDF_LOGE'
74 | HDF_LOGE("%s: device %x detach unknown devnode %x", func, device->deviceId, devNode->devId);
| ^~~~~~~~
../../../drivers/framework/core/host/src/hdf_device.c:74:31: note: format string is defined here
74 | HDF_LOGE("%s: device %x detach unknown devnode %x", func, device->deviceId, devNode->devId);
| ~^
| |
| unsigned int
| %lx
In file included from ../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/hilog_cp.h:19,
from ../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/log.h:19,
from ../../../drivers/adapter/khdf/liteos_m/osal/include/hdf_log_adapter.h:35,
from ../../../drivers/framework/include/utils/hdf_log.h:48,
from ../../../drivers/framework/core/host/src/hdf_device.c:14:
../../../drivers/framework/core/host/src/hdf_device.c:74:18: warning: format '%x' expects argument of type 'unsigned int', but argument 8 has type 'devid_t' {aka 'long unsigned int'} [-Wformat=]
74 | HDF_LOGE("%s: device %x detach unknown devnode %x", func, device->deviceId, devNode->devId);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
| |
| devid_t {aka long unsigned int}
../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/hiview_log.h:291:92: note: in definition of macro 'HILOG_ERROR'
291 | #define HILOG_ERROR(type, ...) ((void)HiLogPrint(LOG_CORE, LOG_ERROR, LOG_DOMAIN, LOG_TAG, VA_ARGS))
| ^~~~~~~~~~~
../../../drivers/framework/include/utils/hdf_log.h:98:32: note: in expansion of macro 'HDF_LOGE_WRAPPER'
98 | #define HDF_LOGE(fmt, args...) HDF_LOGE_WRAPPER(fmt, ##args)
| ^~~~~~~~~~~~~~~~
../../../drivers/framework/core/host/src/hdf_device.c:74:9: note: in expansion of macro 'HDF_LOGE'
74 | HDF_LOGE("%s: device %x detach unknown devnode %x", func, device->deviceId, devNode->devId);
| ^~~~~~~~
../../../drivers/framework/core/host/src/hdf_device.c:74:57: note: format string is defined here
74 | HDF_LOGE("%s: device %x detach unknown devnode %x", func, device->deviceId, devNode->devId);
| ~^
| |
| unsigned int
| %lx
In file included from ../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/hilog_cp.h:19,
from ../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/log.h:19,
from ../../../drivers/adapter/khdf/liteos_m/osal/include/hdf_log_adapter.h:35,
from ../../../drivers/framework/include/utils/hdf_log.h:48,
from ../../../drivers/framework/core/host/src/hdf_device.c:14:
../../../drivers/framework/core/host/src/hdf_device.c: In function 'HdfDeviceDetachWithDevid':
../../../drivers/framework/core/host/src/hdf_device.c:105:18: warning: format '%x' expects argument of type 'unsigned int', but argument 6 has type 'devid_t' {aka 'long unsigned int'} [-Wformat=]
105 | HDF_LOGE("detach device node %x not in device %x", devid, dev->deviceId);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~
| |
| devid_t {aka long unsigned int}
../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/hiview_log.h:291:92: note: in definition of macro 'HILOG_ERROR'
291 | #define HILOG_ERROR(type, ...) ((void)HiLogPrint(LOG_CORE, LOG_ERROR, LOG_DOMAIN, LOG_TAG, VA_ARGS))
| ^~~~~~~~~~~
../../../drivers/framework/include/utils/hdf_log.h:98:32: note: in expansion of macro 'HDF_LOGE_WRAPPER'
98 | #define HDF_LOGE(fmt, args...) HDF_LOGE_WRAPPER(fmt, ##args)
| ^~~~~~~~~~~~~~~~
../../../drivers/framework/core/host/src/hdf_device.c:105:9: note: in expansion of macro 'HDF_LOGE'
105 | HDF_LOGE("detach device node %x not in device %x", devid, dev->deviceId);
| ^~~~~~~~
../../../drivers/framework/core/host/src/hdf_device.c:105:39: note: format string is defined here
105 | HDF_LOGE("detach device node %x not in device %x", devid, dev->deviceId);
| ~^
| |
| unsigned int
| %lx
In file included from ../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/hilog_cp.h:19,
from ../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/log.h:19,
from ../../../drivers/adapter/khdf/liteos_m/osal/include/hdf_log_adapter.h:35,
from ../../../drivers/framework/include/utils/hdf_log.h:48,
from ../../../drivers/framework/core/host/src/hdf_device.c:14:
../../../drivers/framework/core/host/src/hdf_device.c:105:18: warning: format '%x' expects argument of type 'unsigned int', but argument 7 has type 'devid_t' {aka 'long unsigned int'} [-Wformat=]
105 | HDF_LOGE("detach device node %x not in device %x", devid, dev->deviceId);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~
| |
| devid_t {aka long unsigned int}
../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/hiview_log.h:291:92: note: in definition of macro 'HILOG_ERROR'
291 | #define HILOG_ERROR(type, ...) ((void)HiLogPrint(LOG_CORE, LOG_ERROR, LOG_DOMAIN, LOG_TAG, VA_ARGS))
| ^~~~~~~~~~~
../../../drivers/framework/include/utils/hdf_log.h:98:32: note: in expansion of macro 'HDF_LOGE_WRAPPER'
98 | #define HDF_LOGE(fmt, args...) HDF_LOGE_WRAPPER(fmt, ##args)
| ^~~~~~~~~~~~~~~~
../../../drivers/framework/core/host/src/hdf_device.c:105:9: note: in expansion of macro 'HDF_LOGE'
105 | HDF_LOGE("detach device node %x not in device %x", devid, dev->deviceId);
| ^~~~~~~~
../../../drivers/framework/core/host/src/hdf_device.c:105:56: note: format string is defined here
105 | HDF_LOGE("detach device node %x not in device %x", devid, dev->deviceId);
| ~^
| |
| unsigned int
| %lx
[153/1300] gcc cross compiler obj/drivers/framework/core/host/src/hdf_core.hdf_device_object.o
In file included from ../../../drivers/framework/include/core/hdf_io_service_if.h:33,
from ../../../drivers/framework/include/core/hdf_device_desc.h:33,
from ../../../drivers/framework/core/host/include/hdf_device_object.h:12,
from ../../../drivers/framework/core/host/src/hdf_device_object.c:9:
../../../drivers/framework/include/utils/hdf_dlist.h:166: warning: "CONTAINER_OF" redefined
166 | #define CONTAINER_OF(ptr, type, member)
|
In file included from ../../../device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/platform/hal/hal_timer.h:22,
from ../../../device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/rtos/liteos/liteos_m/target_config.h:20,
from ../../../kernel/liteos_m/kernel/include/los_config.h:40,
from ../../../kernel/liteos_m/kal/libc/newlib/porting/include/sys/_pthreadtypes.h:61,
from /root/.hpm/global/gcc-arm-none-eabi-10.3-2021.10/arm-none-eabi/include/sys/types.h:223,
from ../../../drivers/adapter/khdf/liteos_m/osal/include/hdf_types.h:38,
from ../../../drivers/framework/include/utils/hdf_base.h:33,
from ../../../drivers/framework/include/utils/hdf_dlist.h:35,
from ../../../drivers/framework/include/core/hdf_io_service_if.h:33,
from ../../../drivers/framework/include/core/hdf_device_desc.h:33,
from ../../../drivers/framework/core/host/include/hdf_device_object.h:12,
from ../../../drivers/framework/core/host/src/hdf_device_object.c:9:
../../../device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/platform/hal/plat_types.h:201: note: this is the location of the previous definition
201 | #define CONTAINER_OF(ptr, type, member) ({
|
In file included from ../../../drivers/framework/include/osal/osal_atomic.h:40,
from ../../../drivers/framework/utils/include/hdf_sref.h:12,
from ../../../drivers/framework/core/host/include/power_state_token.h:12,
from ../../../drivers/framework/core/host/include/hdf_power_manager.h:13,
from ../../../drivers/framework/core/host/src/hdf_device_object.c:19:
../../../drivers/adapter/khdf/liteos_m/osal/include/osal_atomic_def.h: In function 'OsalTestSetBitWrapper':
../../../drivers/adapter/khdf/liteos_m/osal/include/osal_atomic_def.h:60:24: warning: implicit declaration of function 'LOS_IntLock' [-Wimplicit-function-declaration]
60 | uint32_t intSave = LOS_IntLock();
| ^~~~~~~~~~~
../../../drivers/adapter/khdf/liteos_m/osal/include/osal_atomic_def.h:67:5: warning: implicit declaration of function 'LOS_IntRestore'; did you mean 'LOS_EventDestroy'? [-Wimplicit-function-declaration]
67 | LOS_IntRestore(intSave);
| ^~~~~~~~~~~~~~
| LOS_EventDestroy
[154/1300] gcc CXX obj/foundation/appexecfwk/appexecfwk_lite/services/bundlemgr_lite/src/libbundlems.gt_extractor_util.o
../../../foundation/appexecfwk/appexecfwk_lite/services/bundlemgr_lite/src/gt_extractor_util.cpp: In static member function 'static char
OHOS::GtExtractorUtil::ReadString(int32_t, uint32_t)':
../../../foundation/appexecfwk/appexecfwk_lite/services/bundlemgr_lite/src/gt_extractor_util.cpp:92:28: warning: comparison of integer expressions of different signedness: 'int' and 'uint32_t' {aka 'long unsigned int'} [-Wsign-compare]
92 | if (read(fp, buf, len) != len) {
| ~~~~~~~~~~~~~~~~~~~^~~~~~
../../../foundation/appexecfwk/appexecfwk_lite/services/bundlemgr_lite/src/gt_extractor_util.cpp: In static member function 'static bool OHOS::GtExtractorUtil::HasCopiedData(const char
, int32_t, uint64_t)':
../../../foundation/appexecfwk/appexecfwk_lite/services/bundlemgr_lite/src/gt_extractor_util.cpp:255:28: warning: comparison of integer expressions of different signedness: 'int32_t' {aka 'long int'} and 'uint64_t' {aka 'long long unsigned int'} [-Wsign-compare]
255 | if (ret < 0 || ret != reading) {
| ~~~~^~~~~~~~~~
../../../foundation/appexecfwk/appexecfwk_lite/services/bundlemgr_lite/src/gt_extractor_util.cpp:262:28: warning: comparison of integer expressions of different signedness: 'int32_t' {aka 'long int'} and 'uint64_t' {aka 'long long unsigned int'} [-Wsign-compare]
262 | if (ret < 0 || ret != reading) {
| ~~~~^~~~~~~~~~
ninja: build stopped: subcommand failed.

评论 (2)

pjscc 创建了任务
kenio_zhang 任务状态待办的 修改为进行中
展开全部操作日志

@pjscc 您好,经过与相关同学沟通,问题已解决了吗?

../../../drivers/adapter/platform/gpio/gpio_bes.c:258:5: error: 'gpioCntlr' undeclared (first use in this function); did you mean 'GpioCntlr'?

@pjscc,pjss你好,从日志上来看是系统drivers报的错误,还请说明是在那个版本下编译出的错误,推荐在比较稳定的3.1 release版本下编译,具体链接如下:
OpenHarmony-v3.1-release

kenio_zhang 任务状态进行中 修改为已完成

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
1
https://gitee.com/openharmony-sig/knowledge_demo_smart_home.git
git@gitee.com:openharmony-sig/knowledge_demo_smart_home.git
openharmony-sig
knowledge_demo_smart_home
knowledge_demo_smart_home

搜索帮助