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: stm32f429i-disco nettest #6151

Open
xidoo123 opened this issue Apr 21, 2024 · 0 comments
Open

build failed: stm32f429i-disco nettest #6151

xidoo123 opened this issue Apr 21, 2024 · 0 comments
Assignees

Comments

@xidoo123
Copy link

Hi,

I followed the docker setup, configed as stm32f429i-disco board and chose the hello configuration, then I manually edited the config to enable lwip and built nettest example. This was what I got, looks like there is smth wrong in both board code and lwip code.

chip/stm32_exti_gpio.c: In function 'stm32_gpiosetevent':
chip/stm32_exti_gpio.c:267:12: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
    handler = stm32_exti0_isr;
            ^
chip/stm32_exti_gpio.c:271:12: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
    handler = stm32_exti1_isr;
            ^
chip/stm32_exti_gpio.c:275:12: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
    handler = stm32_exti2_isr;
            ^
chip/stm32_exti_gpio.c:279:12: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
    handler = stm32_exti3_isr;
            ^
chip/stm32_exti_gpio.c:283:12: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
    handler = stm32_exti4_isr;
            ^
chip/stm32_exti_gpio.c:288:11: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
   handler = stm32_exti95_isr;
           ^
chip/stm32_exti_gpio.c:293:11: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
   handler = stm32_exti1510_isr;
           ^
CC:  chip/stm32_flash.c
CC:  chip/stm32_irq.c
chip/stm32_irq.c: In function 'up_irqinitialize':
chip/stm32_irq.c:362:28: warning: passing argument 2 of 'irq_attach' from incompatible pointer type [-Wincompatible-pointer-types]
  irq_attach(STM32_IRQ_NMI, stm32_nmi, NULL);
                            ^~~~~~~~~
In file included from chip/stm32_irq.c:63:0:
/root/tizenrt/os/include/tinyara/irq.h:124:5: note: expected 'xcpt_t {aka int (*)(int,  void *, void *)}' but argument is of type 'int (*)(int,  void *)'
 int irq_attach(int irq, xcpt_t isr, FAR void *arg);
     ^~~~~~~~~~
chip/stm32_irq.c:363:31: warning: passing argument 2 of 'irq_attach' from incompatible pointer type [-Wincompatible-pointer-types]
  irq_attach(STM32_IRQ_PENDSV, stm32_pendsv, NULL);
                               ^~~~~~~~~~~~
In file included from chip/stm32_irq.c:63:0:
/root/tizenrt/os/include/tinyara/irq.h:124:5: note: expected 'xcpt_t {aka int (*)(int,  void *, void *)}' but argument is of type 'int (*)(int,  void *)'
 int irq_attach(int irq, xcpt_t isr, FAR void *arg);
     ^~~~~~~~~~
chip/stm32_irq.c:364:35: warning: passing argument 2 of 'irq_attach' from incompatible pointer type [-Wincompatible-pointer-types]
  irq_attach(STM32_IRQ_DBGMONITOR, stm32_dbgmonitor, NULL);
                                   ^~~~~~~~~~~~~~~~
In file included from chip/stm32_irq.c:63:0:
/root/tizenrt/os/include/tinyara/irq.h:124:5: note: expected 'xcpt_t {aka int (*)(int,  void *, void *)}' but argument is of type 'int (*)(int,  void *)'
 int irq_attach(int irq, xcpt_t isr, FAR void *arg);
     ^~~~~~~~~~
chip/stm32_irq.c:365:33: warning: passing argument 2 of 'irq_attach' from incompatible pointer type [-Wincompatible-pointer-types]
  irq_attach(STM32_IRQ_RESERVED, stm32_reserved, NULL);
                                 ^~~~~~~~~~~~~~
In file included from chip/stm32_irq.c:63:0:
/root/tizenrt/os/include/tinyara/irq.h:124:5: note: expected 'xcpt_t {aka int (*)(int,  void *, void *)}' but argument is of type 'int (*)(int,  void *)'
 int irq_attach(int irq, xcpt_t isr, FAR void *arg);
     ^~~~~~~~~~
CC:  chip/stm32_dma.c
In file included from chip/stm32_dma.c:97:0:
chip/stm32f40xxx_dma.c: In function 'up_dmainitialize':
chip/stm32f40xxx_dma.c:479:32: warning: passing argument 2 of 'irq_attach' from incompatible pointer type [-Wincompatible-pointer-types]
   (void)irq_attach(dmast->irq, stm32_dmainterrupt, NULL);
                                ^~~~~~~~~~~~~~~~~~
In file included from /root/tizenrt/os/arch/arm/src/chip/stm32_gpio.h:69:0,
                 from chip/chip/stm32f40xxx_pinmap.h:62,
                 from chip/chip.h:148,
                 from chip/stm32_dma.c:59:
/root/tizenrt/os/include/tinyara/irq.h:124:5: note: expected 'xcpt_t {aka int (*)(int,  void *, void *)}' but argument is of type 'int (*)(int,  void *)'
 int irq_attach(int irq, xcpt_t isr, FAR void *arg);
     ^~~~~~~~~~
CC:  chip/stm32_lowputc.c
chip/stm32_lowputc.c: In function 'up_lowputc':
chip/stm32_lowputc.c:426:5: warning: "STM32_CONSOLE_RS485_DIR" is not defined [-Wundef]
 #if STM32_CONSOLE_RS485_DIR
     ^~~~~~~~~~~~~~~~~~~~~~~
chip/stm32_lowputc.c:434:5: warning: "STM32_CONSOLE_RS485_DIR" is not defined [-Wundef]
 #if STM32_CONSOLE_RS485_DIR
     ^~~~~~~~~~~~~~~~~~~~~~~
CC:  chip/stm32_serial.c
chip/stm32_serial.c:403:11: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
  .ioctl = up_ioctl,
           ^~~~~~~~
chip/stm32_serial.c:403:11: note: (near initialization for 'g_uart_ops.ioctl')
chip/stm32_serial.c: In function 'up_attach':
chip/stm32_serial.c:1638:30: warning: passing argument 2 of 'irq_attach' from incompatible pointer type [-Wincompatible-pointer-types]
  ret = irq_attach(priv->irq, priv->vector, NULL);
                              ^~~~
In file included from chip/stm32_serial.c:68:0:
/root/tizenrt/os/include/tinyara/irq.h:124:5: note: expected 'xcpt_t {aka int (*)(int,  void *, void *)}' but argument is of type 'int (* const)(int,  void *)'
 int irq_attach(int irq, xcpt_t isr, FAR void *arg);
     ^~~~~~~~~~
CC:  chip/stm32_spi.c
chip/stm32_spi.c:411:13: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
  .setmode = spi_setmode,
             ^~~~~~~~~~~
chip/stm32_spi.c:411:13: note: (near initialization for 'g_sp5iops.setmode')
chip/stm32_spi.c:412:13: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
  .setbits = spi_setbits,
             ^~~~~~~~~~~
chip/stm32_spi.c:412:13: note: (near initialization for 'g_sp5iops.setbits')
CC:  chip/stm32_sdio.c
CC:  chip/stm32_tim.c
CC:  chip/stm32_waste.c
CC:  chip/stm32_ccm.c
CC:  chip/stm32_timerisr.c
CC:  chip/stm32_i2c.c
CC:  chip/stm32_otghsdev.c
chip/stm32_otghsdev.c: In function 'up_usbinitialize':
chip/stm32_otghsdev.c:5076:36: warning: passing argument 2 of 'irq_attach' from incompatible pointer type [-Wincompatible-pointer-types]
  ret = irq_attach(STM32_IRQ_OTGHS, stm32_usbinterrupt, NULL);
                                    ^~~~~~~~~~~~~~~~~~
In file included from /root/tizenrt/os/include/tinyara/sched.h:79:0,
                 from /root/tizenrt/os/include/sched.h:72,
                 from /root/tizenrt/os/include/tinyara/arch.h:119,
                 from chip/stm32_otghsdev.c:67:
/root/tizenrt/os/include/tinyara/irq.h:124:5: note: expected 'xcpt_t {aka int (*)(int,  void *, void *)}' but argument is of type 'int (*)(int,  void *)'
 int irq_attach(int irq, xcpt_t isr, FAR void *arg);


...

test_main.c: In function '_print_addrinfo':
test_main.c:43:4: warning: implicit declaration of function 'inet_ntop' [-Wimplicit-function-declaration]
    inet_ntop(rp->ai_family, &(((struct sockaddr_in *)(rp->ai_addr))->sin_addr), buf, sizeof(buf));
    ^~~~~~~~~
test_main.c: In function '_print_host':
test_main.c:69:29: warning: implicit declaration of function 'inet_ntoa' [-Wimplicit-function-declaration]
  printf("IP address: %s\n", inet_ntoa(*(struct in_addr *)he->h_addr));
                             ^~~~~~~~~
In file included from test_main.c:21:0:
test_main.c: In function 'tc_gethostbyname_n':
test_main.c:169:21: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
  ST_EXPECT_EQ(NULL, shost);
                     ^
test_main.c: In function 'tc_netmon_sock':
test_main.c:179:12: warning: implicit declaration of function 'netlib_netmon_sock' [-Wimplicit-function-declaration]
  int ret = netlib_netmon_sock(str_sock);
            ^~~~~~~~~~~~~~~~~~
test_main.c:183:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
   free(str_sock);
   ^~~~
test_main.c: In function 'tc_netmon_stats':
test_main.c:194:12: warning: implicit declaration of function 'netlib_getstats' [-Wimplicit-function-declaration]
  int ret = netlib_getstats((void *)str_stats);
            ^~~~~~~~~~~~~~~
test_main.c: In function 'tc_netmon_dev_stats':
test_main.c:209:12: warning: implicit declaration of function 'netlib_netmon_devstats' [-Wimplicit-function-declaration]
  int ret = netlib_netmon_devstats("wlan0", (void **)&str_stats);
            ^~~~~~~~~~~~~~~~~~~~~~
test_main.c: In function 'tc_set_dns_p':
test_main.c:226:2: warning: implicit declaration of function 'inet_pton' [-Wimplicit-function-declaration]
  inet_pton(AF_INET, NT_STR_DNS_ADDR, (void *)&dns_addr.sin_addr);
  ^~~~~~~~~
test_main.c:227:12: warning: implicit declaration of function 'netlib_setdnsserver' [-Wimplicit-function-declaration]
  int res = netlib_setdnsserver((struct sockaddr *)&dns_addr, -1);
            ^~~~~~~~~~~~~~~~~~~
CC:  nettest.c
nettest.c: In function 'ipmcast_sender_thread':
nettest.c:371:33: error: 'IP_MULTICAST_LOOP' undeclared (first use in this function)
  if (setsockopt(sd, IPPROTO_IP, IP_MULTICAST_LOOP, (char *)&loopch, sizeof(loopch)) < 0) {
                                 ^~~~~~~~~~~~~~~~~
nettest.c:371:33: note: each undeclared identifier is reported only once for each function it appears in
nettest.c:386:33: error: 'IP_MULTICAST_IF' undeclared (first use in this function)
  if (setsockopt(sd, IPPROTO_IP, IP_MULTICAST_IF, (char *)&localInterface, sizeof(localInterface)) < 0) {
                                 ^~~~~~~~~~~~~~~
nettest.c: In function 'ipmcast_receiver_thread':
nettest.c:443:17: error: storage size of 'group' isn't known
  struct ip_mreq group;
                 ^~~~~
nettest.c:478:33: error: 'IP_ADD_MEMBERSHIP' undeclared (first use in this function)
  if (setsockopt(sd, IPPROTO_IP, IP_ADD_MEMBERSHIP, (char *)&group, sizeof(group)) < 0) {
                                 ^~~~~~~~~~~~~~~~~
nettest.c:443:17: warning: unused variable 'group' [-Wunused-variable]
  struct ip_mreq group;

Attachment is the .config I used, any idea how to fix this? Thanks.
config.zip

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