433 Star 2.3K Fork 518

OpenHarmony / docs

编译3516CAMERA项目出错

缺陷
已确认
牛年牛月生的牛  Opened this issue

该问题是怎么引起的?

执行python build.py ipcamera_hi3516dv300 -b debug

重现步骤

执行python build.py ipcamera_hi3516dv300 -b debug

报错信息

make[1]: Entering directory '/home/hjw/kernel/liteos_a/net/lwip-2.1'
enhancement/src/dhcps.c:257:39: error: use of undeclared identifier 'DHCP_OPTION_IDX_REQUESTED_IP'
if (dhcps_option_given(dhcps, DHCP_OPTION_IDX_REQUESTED_IP)) {
^
enhancement/src/dhcps.c:258:67: error: use of undeclared identifier 'DHCP_OPTION_IDX_REQUESTED_IP'
client_ip.addr = (u32_t)dhcps_get_option_value(dhcps, DHCP_OPTION_IDX_REQUESTED_IP);
^
enhancement/src/dhcps.c:454:27: error: use of undeclared identifier 'LWIP_NETIF_CLIENT_DATA_INDEX_DHCPS'
struct dhcps dhcps = netif_get_dhcps(netif);
^
enhancement/src/dhcps.c:101:77: note: expanded from macro 'netif_get_dhcps'
#define netif_get_dhcps(netif) ((struct dhcps
)netif_get_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCPS))
^
enhancement/src/dhcps.c:465:41: error: use of undeclared identifier 'DHCP_OPTION_IDX_REQUESTED_IP'
(!dhcps_option_given(dhcps, DHCP_OPTION_IDX_REQUESTED_IP))) {
^
enhancement/src/dhcps.c:479:66: error: use of undeclared identifier 'DHCP_OPTION_IDX_REQUESTED_IP'
requested_ip.addr = (u32_t)dhcps_get_option_value(dhcps, DHCP_OPTION_IDX_REQUESTED_IP);
^
enhancement/src/dhcps.c:485:39: error: use of undeclared identifier 'DHCP_OPTION_IDX_REQUESTED_IP'
if (dhcps_option_given(dhcps, DHCP_OPTION_IDX_REQUESTED_IP)) {
^
enhancement/src/dhcps.c:503:70: error: use of undeclared identifier 'DHCP_OPTION_IDX_REQUESTED_IP'
requested_ip.addr = (u32_t)dhcps_get_option_value(dhcps, DHCP_OPTION_IDX_REQUESTED_IP);
^
enhancement/src/dhcps.c:665:62: error: use of undeclared identifier 'DHCP_OPTION_IDX_REQUESTED_IP'
if ((client_lease != NULL) && (dhcps_option_given(dhcps, DHCP_OPTION_IDX_REQUESTED_IP)) &&
^
enhancement/src/dhcps.c:667:81: error: use of undeclared identifier 'DHCP_OPTION_IDX_REQUESTED_IP'
if (client_lease->cli_addr.addr == (u32_t)dhcps_get_option_value(dhcps, DHCP_OPTION_IDX_REQUESTED_IP)) {
^
enhancement/src/dhcps.c:762:27: error: use of undeclared identifier 'LWIP_NETIF_CLIENT_DATA_INDEX_DHCPS'
struct dhcps dhcps = netif_get_dhcps(netif);
^
enhancement/src/dhcps.c:101:77: note: expanded from macro 'netif_get_dhcps'
#define netif_get_dhcps(netif) ((struct dhcps
)netif_get_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCPS))
^
enhancement/src/dhcps.c:865:13: error: use of undeclared identifier 'LWIP_NETIF_CLIENT_DATA_INDEX_DHCPS'
dhcps = netif_get_dhcps(netif);
^
enhancement/src/dhcps.c:101:77: note: expanded from macro 'netif_get_dhcps'
#define netif_get_dhcps(netif) ((struct dhcps*)netif_get_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCPS))
^
enhancement/src/dhcps.c:961:5: error: use of undeclared identifier 'LWIP_NETIF_CLIENT_DATA_INDEX_DHCPS'
netif_set_dhcps(netif, dhcps);
^
enhancement/src/dhcps.c:102:68: note: expanded from macro 'netif_set_dhcps'
#define netif_set_dhcps(netif, dhcps) netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCPS, dhcps)
^
enhancement/src/dhcps.c:968:27: error: use of undeclared identifier 'LWIP_NETIF_CLIENT_DATA_INDEX_DHCPS'
struct dhcps dhcps = netif_get_dhcps(netif);
^
enhancement/src/dhcps.c:101:77: note: expanded from macro 'netif_get_dhcps'
#define netif_get_dhcps(netif) ((struct dhcps
)netif_get_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCPS))
^
enhancement/src/dhcps.c:978:9: error: use of undeclared identifier 'LWIP_NETIF_CLIENT_DATA_INDEX_DHCPS'
netif_set_dhcps(netif, NULL);
^
enhancement/src/dhcps.c:102:68: note: expanded from macro 'netif_set_dhcps'
#define netif_set_dhcps(netif, dhcps) netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCPS, dhcps)
^
14 errors generated.
/home/hjw/kernel/liteos_a/tools/build/mk/module.mk:83: recipe for target '/home/hjw/out/ipcamera_hi3516dv300/obj/kernel/liteos_a/obj/net/lwip/enhancement/src/dhcps.o' failed
make[1]: *** [/home/hjw/out/ipcamera_hi3516dv300/obj/kernel/liteos_a/obj/net/lwip/enhancement/src/dhcps.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/hjw/kernel/liteos_a/net/lwip-2.1'
Makefile:138: recipe for target 'liteos' failed
make: *** [liteos] Error 1
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 56, in main
cmd_exec(data)
File "../../build/lite/build_ext_components.py", line 32, in cmd_exec
raise Exception("{} failed, return code is {}".format(cmd, ret_code))
Exception: ['make', 'rootfs', 'VERSION=OpenHarmony 1.0', '-j', '16', 'OUTDIR=/home/hjw/out/ipcamera_hi3516dv300/obj/kernel/liteos_a'] failed, return code is 2

Attachments
total 3 participants

Comments (5)

Xingwa 2020-10-20 20:07

请上传 out/ipcamera_hi3516dv300/build.log

另外是否在本地做了修改?比如修改了内核config

牛年牛月生的牛 2020-10-23 22:46

请上传 out/ipcamera_hi3516dv300/build.log
另外是否在本地做了修改?比如修改了内核config

@Xingwa build.log

没有修改源码,下载后就直接解压编译了。

tjCFeng 2020-10-31 10:52

确实有这个问题,鸿蒙code-1.0.tar.gz直接编译都正常,只要替换了kernel就会出现这个编译错误。

牛年牛月生的牛 2020-11-13 22:37

确实有这个问题,鸿蒙code-1.0.tar.gz直接编译都正常,只要替换了kernel就会出现这个编译错误。

@tjCFeng 那请问你知道怎么解决吗?

tjCFeng 2020-11-14 18:24

@牛年牛月生的牛 不知道,还没有解决。

Sign in to comment

Assignees
Labels
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