LWIP build failure with ESP8266_RTOS_SDK

cmarrin
Posts: 2
Joined: Wed Aug 31, 2016 11:31 am

LWIP build failure with ESP8266_RTOS_SDK

Postby cmarrin » Thu May 28, 2020 7:30 am

I decided to try the latest released ESP8266_RTOS_SDK. I installed the latest toolchain:

Code: Select all

    xtensa-lx106-elf-macos-1.22.0-100-ge567ec7-5.2.0.tar.gz

Then I cloned the release/v3.3 branch of ESP8266_RTOS_SDK. This caused the build to fail on my project with:

Code: Select all

CC build/lwip/lwip/src/api/if_api.o
In file included from /Users/cmarrin/esp/ESP8266_RTOS_SDK/components/lwip/lwip/src/api/if_api.c:49:0:
/Users/cmarrin/esp/ESP8266_RTOS_SDK/components/lwip/lwip/src/include/lwip/priv/sockets_priv.h:105:0: warning: "LWIP_SETGETSOCKOPT_MAXOPTLEN" redefined
 #define LWIP_SETGETSOCKOPT_MAXOPTLEN LWIP_MAX(16, sizeof(struct ifreq))
 ^
In file included from /Users/cmarrin/esp/ESP8266_RTOS_SDK/components/lwip/lwip/src/include/lwip/priv/sockets_priv.h:45:0,
                 from /Users/cmarrin/esp/ESP8266_RTOS_SDK/components/lwip/lwip/src/api/if_api.c:49:
/Users/cmarrin/esp/ESP8266_RTOS_SDK/components/lwip/lwip/src/include/lwip/sockets.h:115:0: note: this is the location of the previous definition
 #define LWIP_SETGETSOCKOPT_MAXOPTLEN 16
 ^
In file included from /Users/cmarrin/esp/ESP8266_RTOS_SDK/components/lwip/lwip/src/api/if_api.c:49:0:
/Users/cmarrin/esp/ESP8266_RTOS_SDK/components/lwip/lwip/src/include/lwip/priv/sockets_priv.h:109:8: error: redefinition of 'struct lwip_setgetsockopt_data'
 struct lwip_setgetsockopt_data {
        ^
In file included from /Users/cmarrin/esp/ESP8266_RTOS_SDK/components/lwip/lwip/src/include/lwip/priv/sockets_priv.h:45:0,
                 from /Users/cmarrin/esp/ESP8266_RTOS_SDK/components/lwip/lwip/src/api/if_api.c:49:
/Users/cmarrin/esp/ESP8266_RTOS_SDK/components/lwip/lwip/src/include/lwip/sockets.h:119:8: note: originally defined here
 struct lwip_setgetsockopt_data {
        ^
cc1: warning: unrecognized command line option '-Wno-frame-address'
make[1]: *** [/Users/cmarrin/esp/ESP8266_RTOS_SDK/make/component_wrapper.mk:292: lwip/src/api/if_api.o] Error 1
make: *** [/Users/cmarrin/esp/ESP8266_RTOS_SDK/make/project.mk:571: component-lwip-build] Error 2


So I went back to the examples and tried building:

Code: Select all

    ESP8266_RTOS_SDK/examples/get-started/hello_world

and got the same error. It looks like there's some conflict in including two different headers with the same definitions. Has anyone seen this? For the hello_world example I first ran 'make menuconfig' using all the default values.

Her Mary
Posts: 450
Joined: Mon Oct 27, 2014 11:09 am

Re: LWIP build failure with ESP8266_RTOS_SDK

Postby Her Mary » Tue Jun 09, 2020 6:29 pm

Same issue?https://github.com/espressif/ESP8266_RTOS_SDK/issues/892

Who is online

Users browsing this forum: Google [Bot] and 27 guests