Hi,
during the step 3.build of application I got this error when running make(running on win10 WSL ubuntu 18.04 LTS):
In file included from /home/esp32/esp/qemu_esp32/main/main.c:22:
/home/esp32/esp/esp-idf/components/esp_event/include/esp_event_loop.h:2:2: warning: #warning "esp_event_loop.h is deprecated, please include esp_event.h instead" [-Wcpp]
#warning "esp_event_loop.h is deprecated, please include esp_event.h instead"
^~~~~~~
In file included from /home/esp32/esp/qemu_esp32/main/main.c:33:
/home/esp32/esp/esp-idf/components/esp32/include/rom/ets_sys.h:1:2: warning: #warning rom/ets_sys.h is deprecated, please use esp32/rom/ets_sys.h instead [-Wcpp]
#warning rom/ets_sys.h is deprecated, please use esp32/rom/ets_sys.h instead
^~~~~~~
In file included from /home/esp32/esp/qemu_esp32/main/main.c:34:
/home/esp32/esp/esp-idf/components/esp32/include/rom/gpio.h:1:2: warning: #warning rom/gpio.h is deprecated, please use esp32/rom/gpio.h instead [-Wcpp]
#warning rom/gpio.h is deprecated, please use esp32/rom/gpio.h instead
^~~~~~~
In file included from /home/esp32/esp/qemu_esp32/main/main.c:42:
/home/esp32/esp/esp-idf/components/tcpip_adapter/include/tcpip_adapter.h:15:2: warning: #warning "This header is deprecated, please use new network related API in esp_netif.h" [-Wcpp]
#warning "This header is deprecated, please use new network related API in esp_netif.h"
^~~~~~~
/home/esp32/esp/qemu_esp32/main/main.c: In function 'wifi_task':
/home/esp32/esp/qemu_esp32/main/main.c:253:5: warning: 'tcpip_adapter_init' is deprecated [-Wdeprecated-declarations]
tcpip_adapter_init();
^~~~~~~~~~~~~~~~~~
In file included from /home/esp32/esp/esp-idf/components/esp_netif/include/esp_netif.h:35,
from /home/esp32/esp/esp-idf/components/esp_event/include/esp_event_legacy.h:22,
from /home/esp32/esp/esp-idf/components/esp_event/include/esp_event.h:26,
from /home/esp32/esp/esp-idf/components/esp_wifi/include/esp_wifi.h:64,
from /home/esp32/esp/qemu_esp32/main/main.c:19:
/home/esp32/esp/esp-idf/components/tcpip_adapter/include/tcpip_adapter.h:34:6: note: declared here
void tcpip_adapter_init(void) attribute ((deprecated));
^~~~~~~~~~~~~~~~~~
/home/esp32/esp/qemu_esp32/main/main.c:254:5: warning: 'esp_event_loop_init' is deprecated [-Wdeprecated-declarations]
ESP_ERROR_CHECK( esp_event_loop_init(event_handler, NULL) );
^~~~~~~~~~~~~~~
In file included from /home/esp32/esp/esp-idf/components/esp_event/include/esp_event.h:26,
from /home/esp32/esp/esp-idf/components/esp_wifi/include/esp_wifi.h:64,
from /home/esp32/esp/qemu_esp32/main/main.c:19:
/home/esp32/esp/esp-idf/components/esp_event/include/esp_event_legacy.h:231:11: note: declared here
esp_err_t esp_event_loop_init(system_event_cb_t cb, void ctx) attribute ((deprecated));
^~~~~~~~~~~~~~~~~~~
/home/esp32/esp/qemu_esp32/main/main.c: In function 'emulated_net':
/home/esp32/esp/qemu_esp32/main/main.c:341:5: warning: 'tcpip_adapter_init' is deprecated [-Wdeprecated-declarations]
tcpip_adapter_init();
^~~~~~~~~~~~~~~~~~
In file included from /home/esp32/esp/esp-idf/components/esp_netif/include/esp_netif.h:35,
from /home/esp32/esp/esp-idf/components/esp_event/include/esp_event_legacy.h:22,
from /home/esp32/esp/esp-idf/components/esp_event/include/esp_event.h:26,
from /home/esp32/esp/esp-idf/components/esp_wifi/include/esp_wifi.h:64,
from /home/esp32/esp/qemu_esp32/main/main.c:19:
/home/esp32/esp/esp-idf/components/tcpip_adapter/include/tcpip_adapter.h:34:6: note: declared here
void tcpip_adapter_init(void) attribute ((deprecated));
^~~~~~~~~~~~~~~~~~
/home/esp32/esp/qemu_esp32/main/main.c: In function 'phy_tlk110_init':
/home/esp32/esp/qemu_esp32/main/main.c:430:5: error: implicit declaration of function 'esp_eth_smi_write'; did you mean 'esp_eth_start'? [-Werror=implicit-function-declaration]
esp_eth_smi_write(0x1f, 0x8000);
^~~~~~~~~~~~~~~~~
esp_eth_start
/home/esp32/esp/qemu_esp32/main/main.c:433:12: error: implicit declaration of function 'esp_eth_smi_read'; did you mean 'esp_eth_start'? [-Werror=implicit-function-declaration]
while (esp_eth_smi_read(0x2) != 0x2000) {
^~~~~~~~~~~~~~~~
esp_eth_start
/home/esp32/esp/qemu_esp32/main/main.c: In function 'ethernet_main':
/home/esp32/esp/qemu_esp32/main/main.c:487:5: warning: 'tcpip_adapter_init' is deprecated [-Wdeprecated-declarations]
tcpip_adapter_init();
^~~~~~~~~~~~~~~~~~
In file included from /home/esp32/esp/esp-idf/components/esp_netif/include/esp_netif.h:35,
from /home/esp32/esp/esp-idf/components/esp_event/include/esp_event_legacy.h:22,
from /home/esp32/esp/esp-idf/components/esp_event/include/esp_event.h:26,
from /home/esp32/esp/esp-idf/components/esp_wifi/include/esp_wifi.h:64,
from /home/esp32/esp/qemu_esp32/main/main.c:19:
/home/esp32/esp/esp-idf/components/tcpip_adapter/include/tcpip_adapter.h:34:6: note: declared here
void tcpip_adapter_init(void) attribute ((deprecated));
^~~~~~~~~~~~~~~~~~
/home/esp32/esp/qemu_esp32/main/main.c:488:5: warning: 'esp_event_loop_init' is deprecated [-Wdeprecated-declarations]
esp_event_loop_init(NULL, NULL);
^~~~~~~~~~~~~~~~~~~
In file included from /home/esp32/esp/esp-idf/components/esp_event/include/esp_event.h:26,
from /home/esp32/esp/esp-idf/components/esp_wifi/include/esp_wifi.h:64,
from /home/esp32/esp/qemu_esp32/main/main.c:19:
/home/esp32/esp/esp-idf/components/esp_event/include/esp_event_legacy.h:231:11: note: declared here
esp_err_t esp_event_loop_init(system_event_cb_t cb, void ctx) attribute ((deprecated));
^~~~~~~~~~~~~~~~~~~
/home/esp32/esp/qemu_esp32/main/main.c:490:5: error: unknown type name 'eth_config_t'; did you mean 'esp_eth_config_t'?
eth_config_t config;
^~~~~~~~~~~~
esp_eth_config_t
/home/esp32/esp/qemu_esp32/main/main.c:491:11: error: request for member 'phy_addr' in something not a structure or union
config.phy_addr = PHY31;
^
/home/esp32/esp/qemu_esp32/main/main.c:491:23: error: 'PHY31' undeclared (first use in this function)
config.phy_addr = PHY31;
^~~~~
/home/esp32/esp/qemu_esp32/main/main.c:491:23: note: each undeclared identifier is reported only once for each function it appears in
/home/esp32/esp/qemu_esp32/main/main.c:492:11: error: request for member 'mac_mode' in something not a structure or union
config.mac_mode = ETH_MODE_RMII;
^
/home/esp32/esp/qemu_esp32/main/main.c:492:23: error: 'ETH_MODE_RMII' undeclared (first use in this function)
config.mac_mode = ETH_MODE_RMII;
^~~~~~~~~~~~~
/home/esp32/esp/qemu_esp32/main/main.c:493:11: error: request for member 'phy_init' in something not a structure or union
config.phy_init = phy_tlk110_init;
^
/home/esp32/esp/qemu_esp32/main/main.c:494:11: error: request for member 'gpio_config' in something not a structure or union
config.gpio_config = eth_gpio_config_rmii;
^
/home/esp32/esp/qemu_esp32/main/main.c:495:11: error: request for member 'tcpip_input' in something not a structure or union
config.tcpip_input = tcpip_adapter_eth_input;
^
/home/esp32/esp/qemu_esp32/main/main.c:497:11: error: implicit declaration of function 'esp_eth_init'; did you mean 'esp_netif_init'? [-Werror=implicit-function-declaration]
ret = esp_eth_init(&config);
^~~~~~~~~~~~
esp_netif_init
/home/esp32/esp/qemu_esp32/main/main.c:499:9: error: implicit declaration of function 'esp_eth_enable'; did you mean 'esp_intr_enable'? [-Werror=implicit-function-declaration]
esp_eth_enable();
^~~~~~~~~~~~~~
esp_intr_enable
/home/esp32/esp/qemu_esp32/main/main.c: In function 'dump_regs':
/home/esp32/esp/qemu_esp32/main/main.c:522:19: warning: unused variable 'end' [-Wunused-variable]
unsigned int end=(unsigned int)0x400C1FFF;
^~~
/home/esp32/esp/qemu_esp32/main/main.c:521:18: warning: unused variable 'simple_mem_location' [-Wunused-variable]
unsigned intsimple_mem_location=(unsigned int)mem_location;
^~~~~~~~~~~~~~~~~~~
/home/esp32/esp/qemu_esp32/main/main.c: In function 'app_main':
/home/esp32/esp/qemu_esp32/main/main.c:601:2: warning: 'tcpip_adapter_init' is deprecated [-Wdeprecated-declarations]
tcpip_adapter_init();
^~~~~~~~~~~~~~~~~~
In file included from /home/esp32/esp/esp-idf/components/esp_netif/include/esp_netif.h:35,
from /home/esp32/esp/esp-idf/components/esp_event/include/esp_event_legacy.h:22,
from /home/esp32/esp/esp-idf/components/esp_event/include/esp_event.h:26,
from /home/esp32/esp/esp-idf/components/esp_wifi/include/esp_wifi.h:64,
from /home/esp32/esp/qemu_esp32/main/main.c:19:
/home/esp32/esp/esp-idf/components/tcpip_adapter/include/tcpip_adapter.h:34:6: note: declared here
void tcpip_adapter_init(void) attribute ((deprecated));
^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
/home/esp32/esp/esp-idf/make/component_wrapper.mk:291: recipe for target 'main.o' failed
make[1]: *** [main.o] Error 1
/home/esp32/esp/esp-idf/make/project.mk:635: recipe for target 'component-main-build' failed
make: *** [component-main-build] Error 2
Any suggestion how to build it?
Hi,
during the step 3.build of application I got this error when running make(running on win10 WSL ubuntu 18.04 LTS):
In file included from /home/esp32/esp/qemu_esp32/main/main.c:22:
/home/esp32/esp/esp-idf/components/esp_event/include/esp_event_loop.h:2:2: warning: #warning "esp_event_loop.h is deprecated, please include esp_event.h instead" [-Wcpp]
#warning "esp_event_loop.h is deprecated, please include esp_event.h instead"
^~~~~~~
In file included from /home/esp32/esp/qemu_esp32/main/main.c:33:
/home/esp32/esp/esp-idf/components/esp32/include/rom/ets_sys.h:1:2: warning: #warning rom/ets_sys.h is deprecated, please use esp32/rom/ets_sys.h instead [-Wcpp]
#warning rom/ets_sys.h is deprecated, please use esp32/rom/ets_sys.h instead
^~~~~~~
In file included from /home/esp32/esp/qemu_esp32/main/main.c:34:
/home/esp32/esp/esp-idf/components/esp32/include/rom/gpio.h:1:2: warning: #warning rom/gpio.h is deprecated, please use esp32/rom/gpio.h instead [-Wcpp]
#warning rom/gpio.h is deprecated, please use esp32/rom/gpio.h instead
^~~~~~~
In file included from /home/esp32/esp/qemu_esp32/main/main.c:42:
/home/esp32/esp/esp-idf/components/tcpip_adapter/include/tcpip_adapter.h:15:2: warning: #warning "This header is deprecated, please use new network related API in esp_netif.h" [-Wcpp]
#warning "This header is deprecated, please use new network related API in esp_netif.h"
^~~~~~~
/home/esp32/esp/qemu_esp32/main/main.c: In function 'wifi_task':
/home/esp32/esp/qemu_esp32/main/main.c:253:5: warning: 'tcpip_adapter_init' is deprecated [-Wdeprecated-declarations]
tcpip_adapter_init();
^~~~~~~~~~~~~~~~~~
In file included from /home/esp32/esp/esp-idf/components/esp_netif/include/esp_netif.h:35,
from /home/esp32/esp/esp-idf/components/esp_event/include/esp_event_legacy.h:22,
from /home/esp32/esp/esp-idf/components/esp_event/include/esp_event.h:26,
from /home/esp32/esp/esp-idf/components/esp_wifi/include/esp_wifi.h:64,
from /home/esp32/esp/qemu_esp32/main/main.c:19:
/home/esp32/esp/esp-idf/components/tcpip_adapter/include/tcpip_adapter.h:34:6: note: declared here
void tcpip_adapter_init(void) attribute ((deprecated));
^~~~~~~~~~~~~~~~~~
/home/esp32/esp/qemu_esp32/main/main.c:254:5: warning: 'esp_event_loop_init' is deprecated [-Wdeprecated-declarations]
ESP_ERROR_CHECK( esp_event_loop_init(event_handler, NULL) );
^~~~~~~~~~~~~~~
In file included from /home/esp32/esp/esp-idf/components/esp_event/include/esp_event.h:26,
from /home/esp32/esp/esp-idf/components/esp_wifi/include/esp_wifi.h:64,
from /home/esp32/esp/qemu_esp32/main/main.c:19:
/home/esp32/esp/esp-idf/components/esp_event/include/esp_event_legacy.h:231:11: note: declared here
esp_err_t esp_event_loop_init(system_event_cb_t cb, void ctx) attribute ((deprecated));
^~~~~~~~~~~~~~~~~~~
/home/esp32/esp/qemu_esp32/main/main.c: In function 'emulated_net':
/home/esp32/esp/qemu_esp32/main/main.c:341:5: warning: 'tcpip_adapter_init' is deprecated [-Wdeprecated-declarations]
tcpip_adapter_init();
^~~~~~~~~~~~~~~~~~
In file included from /home/esp32/esp/esp-idf/components/esp_netif/include/esp_netif.h:35,
from /home/esp32/esp/esp-idf/components/esp_event/include/esp_event_legacy.h:22,
from /home/esp32/esp/esp-idf/components/esp_event/include/esp_event.h:26,
from /home/esp32/esp/esp-idf/components/esp_wifi/include/esp_wifi.h:64,
from /home/esp32/esp/qemu_esp32/main/main.c:19:
/home/esp32/esp/esp-idf/components/tcpip_adapter/include/tcpip_adapter.h:34:6: note: declared here
void tcpip_adapter_init(void) attribute ((deprecated));
^~~~~~~~~~~~~~~~~~
/home/esp32/esp/qemu_esp32/main/main.c: In function 'phy_tlk110_init':
/home/esp32/esp/qemu_esp32/main/main.c:430:5: error: implicit declaration of function 'esp_eth_smi_write'; did you mean 'esp_eth_start'? [-Werror=implicit-function-declaration]
esp_eth_smi_write(0x1f, 0x8000);
^~~~~~~~~~~~~~~~~
esp_eth_start
/home/esp32/esp/qemu_esp32/main/main.c:433:12: error: implicit declaration of function 'esp_eth_smi_read'; did you mean 'esp_eth_start'? [-Werror=implicit-function-declaration]
while (esp_eth_smi_read(0x2) != 0x2000) {
^~~~~~~~~~~~~~~~
esp_eth_start
/home/esp32/esp/qemu_esp32/main/main.c: In function 'ethernet_main':
/home/esp32/esp/qemu_esp32/main/main.c:487:5: warning: 'tcpip_adapter_init' is deprecated [-Wdeprecated-declarations]
tcpip_adapter_init();
^~~~~~~~~~~~~~~~~~
In file included from /home/esp32/esp/esp-idf/components/esp_netif/include/esp_netif.h:35,
from /home/esp32/esp/esp-idf/components/esp_event/include/esp_event_legacy.h:22,
from /home/esp32/esp/esp-idf/components/esp_event/include/esp_event.h:26,
from /home/esp32/esp/esp-idf/components/esp_wifi/include/esp_wifi.h:64,
from /home/esp32/esp/qemu_esp32/main/main.c:19:
/home/esp32/esp/esp-idf/components/tcpip_adapter/include/tcpip_adapter.h:34:6: note: declared here
void tcpip_adapter_init(void) attribute ((deprecated));
^~~~~~~~~~~~~~~~~~
/home/esp32/esp/qemu_esp32/main/main.c:488:5: warning: 'esp_event_loop_init' is deprecated [-Wdeprecated-declarations]
esp_event_loop_init(NULL, NULL);
^~~~~~~~~~~~~~~~~~~
In file included from /home/esp32/esp/esp-idf/components/esp_event/include/esp_event.h:26,
from /home/esp32/esp/esp-idf/components/esp_wifi/include/esp_wifi.h:64,
from /home/esp32/esp/qemu_esp32/main/main.c:19:
/home/esp32/esp/esp-idf/components/esp_event/include/esp_event_legacy.h:231:11: note: declared here
esp_err_t esp_event_loop_init(system_event_cb_t cb, void ctx) attribute ((deprecated));
^~~~~~~~~~~~~~~~~~~
/home/esp32/esp/qemu_esp32/main/main.c:490:5: error: unknown type name 'eth_config_t'; did you mean 'esp_eth_config_t'?
eth_config_t config;
^~~~~~~~~~~~
esp_eth_config_t
/home/esp32/esp/qemu_esp32/main/main.c:491:11: error: request for member 'phy_addr' in something not a structure or union
config.phy_addr = PHY31;
^
/home/esp32/esp/qemu_esp32/main/main.c:491:23: error: 'PHY31' undeclared (first use in this function)
config.phy_addr = PHY31;
^~~~~
/home/esp32/esp/qemu_esp32/main/main.c:491:23: note: each undeclared identifier is reported only once for each function it appears in
/home/esp32/esp/qemu_esp32/main/main.c:492:11: error: request for member 'mac_mode' in something not a structure or union
config.mac_mode = ETH_MODE_RMII;
^
/home/esp32/esp/qemu_esp32/main/main.c:492:23: error: 'ETH_MODE_RMII' undeclared (first use in this function)
config.mac_mode = ETH_MODE_RMII;
^~~~~~~~~~~~~
/home/esp32/esp/qemu_esp32/main/main.c:493:11: error: request for member 'phy_init' in something not a structure or union
config.phy_init = phy_tlk110_init;
^
/home/esp32/esp/qemu_esp32/main/main.c:494:11: error: request for member 'gpio_config' in something not a structure or union
config.gpio_config = eth_gpio_config_rmii;
^
/home/esp32/esp/qemu_esp32/main/main.c:495:11: error: request for member 'tcpip_input' in something not a structure or union
config.tcpip_input = tcpip_adapter_eth_input;
^
/home/esp32/esp/qemu_esp32/main/main.c:497:11: error: implicit declaration of function 'esp_eth_init'; did you mean 'esp_netif_init'? [-Werror=implicit-function-declaration]
ret = esp_eth_init(&config);
^~~~~~~~~~~~
esp_netif_init
/home/esp32/esp/qemu_esp32/main/main.c:499:9: error: implicit declaration of function 'esp_eth_enable'; did you mean 'esp_intr_enable'? [-Werror=implicit-function-declaration]
esp_eth_enable();
^~~~~~~~~~~~~~
esp_intr_enable
/home/esp32/esp/qemu_esp32/main/main.c: In function 'dump_regs':
/home/esp32/esp/qemu_esp32/main/main.c:522:19: warning: unused variable 'end' [-Wunused-variable]
unsigned int end=(unsigned int)0x400C1FFF;
^~~
/home/esp32/esp/qemu_esp32/main/main.c:521:18: warning: unused variable 'simple_mem_location' [-Wunused-variable]
unsigned intsimple_mem_location=(unsigned int)mem_location;
^~~~~~~~~~~~~~~~~~~
/home/esp32/esp/qemu_esp32/main/main.c: In function 'app_main':
/home/esp32/esp/qemu_esp32/main/main.c:601:2: warning: 'tcpip_adapter_init' is deprecated [-Wdeprecated-declarations]
tcpip_adapter_init();
^~~~~~~~~~~~~~~~~~
In file included from /home/esp32/esp/esp-idf/components/esp_netif/include/esp_netif.h:35,
from /home/esp32/esp/esp-idf/components/esp_event/include/esp_event_legacy.h:22,
from /home/esp32/esp/esp-idf/components/esp_event/include/esp_event.h:26,
from /home/esp32/esp/esp-idf/components/esp_wifi/include/esp_wifi.h:64,
from /home/esp32/esp/qemu_esp32/main/main.c:19:
/home/esp32/esp/esp-idf/components/tcpip_adapter/include/tcpip_adapter.h:34:6: note: declared here
void tcpip_adapter_init(void) attribute ((deprecated));
^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
/home/esp32/esp/esp-idf/make/component_wrapper.mk:291: recipe for target 'main.o' failed
make[1]: *** [main.o] Error 1
/home/esp32/esp/esp-idf/make/project.mk:635: recipe for target 'component-main-build' failed
make: *** [component-main-build] Error 2
Any suggestion how to build it?