Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed for QEMU #4759

Open
reastykim opened this issue Jan 22, 2021 · 0 comments
Open

Build failed for QEMU #4759

reastykim opened this issue Jan 22, 2021 · 0 comments
Assignees

Comments

@reastykim
Copy link

Configure and build with QEMU, an error occurs in chip/lm3s_ethernet.c.

The error details are as follows.

CC: chip/lm3s_ethernet.c chip/lm3s_ethernet.c: In function 'tiva_transmit': chip/lm3s_ethernet.c:496:22: error: 'struct netif' has no member named 'd_buf' dbuf = priv->ld_dev.d_buf; ^ chip/lm3s_ethernet.c: In function 'tiva_receive': chip/lm3s_ethernet.c:585:22: error: 'struct netif' has no member named 'd_buf' dbuf = priv->ld_dev.d_buf; ^ chip/lm3s_ethernet.c:189:49: error: 'struct netif' has no member named 'd_buf' #define ETHBUF ((struct eth_hdr_s *)priv->ld_dev.d_buf) ^ chip/lm3s_ethernet.c:688:7: note: in expansion of macro 'ETHBUF' if (ETHBUF->type == HTONS(ETHTYPE_IP)) { ^~~~~~ chip/lm3s_ethernet.c:698:15: error: too few arguments to function 'ethernetif_input' int res = ethernetif_input(&priv->ld_dev); ^~~~~~~~~~~~~~~~ In file included from chip/lm3s_ethernet.c:77:0: /root/tizenrt/os/include/tinyara/net/ethernet.h:103:5: note: declared here int ethernetif_input(struct netif *netif, uint8_t *buf, uint16_t buflen); ^~~~~~~~~~~~~~~~ chip/lm3s_ethernet.c:189:49: error: 'struct netif' has no member named 'd_buf' #define ETHBUF ((struct eth_hdr_s *)priv->ld_dev.d_buf) ^ chip/lm3s_ethernet.c:757:8: note: in expansion of macro 'ETHBUF' if (ETHBUF->type == htons(ETHTYPE_ARP)) { ^~~~~~ chip/lm3s_ethernet.c:766:16: error: too few arguments to function 'ethernetif_input' int res = ethernetif_input(&priv->ld_dev); ^~~~~~~~~~~~~~~~ In file included from chip/lm3s_ethernet.c:77:0: /root/tizenrt/os/include/tinyara/net/ethernet.h:103:5: note: declared here int ethernetif_input(struct netif *netif, uint8_t *buf, uint16_t buflen); ^~~~~~~~~~~~~~~~ In file included from /root/tizenrt/os/net/lwip/src/include/lwip/arch/cc.h:52:0, from /root/tizenrt/os/net/lwip/src/include/lwip/arch.h:60, from /root/tizenrt/os/net/lwip/src/include/lwip/debug.h:52, from /root/tizenrt/os/net/lwip/src/include/lwip/opt.h:63, from /root/tizenrt/os/net/lwip/src/include/lwip/inet.h:60, from /root/tizenrt/os/include/netinet/in.h:66, from /root/tizenrt/os/include/arpa/inet.h:75, from chip/lm3s_ethernet.c:67: chip/lm3s_ethernet.c: In function 'tiva_txpoll': chip/lm3s_ethernet.c:965:26: error: 'struct netif' has no member named 'd_buf' DEBUGASSERT(priv->ld_dev.d_buf != NULL); ^ make[1]: *** [lm3s_ethernet.o] Error 1 Makefile:187: recipe for target 'lm3s_ethernet.o' failed make[1]: Leaving directory '/root/tizenrt/os/arch/arm/src' make: *** [arch/arm/src/libarch.a] Error 2 LibTargets.mk:272: recipe for target 'arch/arm/src/libarch.a' failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants