pfalcon / esp-open-sdk

Free and open (as much as possible) integrated SDK for ESP8266/ESP8285 chips
1.97k stars 624 forks source link

ERROR: Empty preprocessor output - check for errors above #142

Open Tkizzy opened 8 years ago

Tkizzy commented 8 years ago

I've successfully generated the toolset on OSX, and set

echo "PATH=$(pwd)/xtensa-lx106-elf/bin:\$PATH" >> ~/.bash_profile

I've done cd micro python/esp8266 but when I try to do make I get the errors below.

make: xtensa-lx106-elf-gcc: Command not found
GEN build/genhdr/qstrdefs.generated.h
/bin/sh: xtensa-lx106-elf-gcc: command not found
ERROR: Empty preprocessor output - check for errors above
make: *** [build/genhdr/qstrdefs.generated.h] Error 1
make: *** Deleting file `build/genhdr/qstrdefs.generated.h'

Help me build this firmware!

dpgeorge commented 8 years ago

Did you restart your shell session to make the bash_profile settings take effect? You can check by doing: echo $PATH.

Tkizzy commented 8 years ago

@dpgeorge Thanks for your response. I sure did. 'echo $PATH' returns /Users/me/Documents/gitStuff/pySerialStuff/micropython/esp8266/xtensa-lx106-elf/bin:/Users/me/Documents/gitStuff/pySerialStuff/micropython/esp8266/xtensa-lx106-elf/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

dpgeorge commented 8 years ago

Then if you type xtensa-lx106-elf-gcc at the command line it should work, does it?

Tkizzy commented 8 years ago

It doesn't :(

anty:~/Documents/gitStuff/pySerialStuff/micropython/esp8266 🚦  xtensa-lx106-elf-gcc

-bash: xtensa-lx106-elf-gcc: command not found

A file search doesn't yield any files by the name xtensa-lx106-elf-gcc should that be somewhere in the esp-open-sdk? Also there's no reference to it in my bash_profile.

Tkizzy commented 8 years ago

ok - fixed this by remaking the toolchain and then doing export PATH=/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/bin:$PATH

(to anyone looking at this it depends on installing the toolchain in a case-sensitive disk image named eep-open-sdk)

Tkizzy commented 8 years ago

OK. the make command works now but there's another error.

LINK build/firmware.elf
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(user_interface.o): In function `system_print_meminfo':
(.irom0.text+0xfb0): undefined reference to `dhcps_start'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(user_interface.o): In function `system_get_free_heap_size':
(.irom0.text+0xfe4): undefined reference to `dhcps_start'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(user_interface.o): In function `system_get_chip_id':
(.irom0.text+0x1000): undefined reference to `dhcps_stop'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(user_interface.o): In function `system_get_rtc_time':
(.irom0.text+0x102c): undefined reference to `dhcps_stop'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(user_interface.o): In function `system_get_rtc_time':
(.irom0.text+0x1050): undefined reference to `dhcp_start'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(user_interface.o): In function `system_mktime':
(.irom0.text+0x1098): undefined reference to `dhcp_start'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(user_interface.o): In function `system_mktime':
(.irom0.text+0x10ac): undefined reference to `dhcp_stop'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(user_interface.o): In function `system_mktime':
(.irom0.text+0x10d8): undefined reference to `dhcp_stop'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(user_interface.o): In function `system_mktime':
(.irom0.text+0x10f4): undefined reference to `dhcp_cleanup'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(user_interface.o): In function `system_mktime':
(.irom0.text+0x1118): undefined reference to `dhcp_stop'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(user_interface.o): In function `system_mktime':
(.irom0.text+0x1120): undefined reference to `dhcp_cleanup'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(user_interface.o): In function `wifi_softap_dhcps_start':
(.irom0.text+0x122c): undefined reference to `netif_set_default'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(user_interface.o): In function `wifi_softap_dhcps_stop':
(.irom0.text+0x1285): undefined reference to `netif_set_default'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(user_interface.o): In function `wifi_softap_dhcps_stop':
(.irom0.text+0x1298): undefined reference to `netif_default'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(user_interface.o): In function `wifi_station_dhcpc_start':
(.irom0.text+0x131a): undefined reference to `netif_set_default'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(user_interface.o): In function `wifi_station_dhcpc_stop':
(.irom0.text+0x134d): undefined reference to `netif_set_default'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(user_interface.o): In function `wifi_softap_set_default_ssid':
(.irom0.text+0x29d0): undefined reference to `ethbroadcast'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(user_interface.o): In function `wifi_softap_get_config_default':
(.irom0.text+0x2d45): undefined reference to `netif_set_default'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(user_interface.o): In function `wifi_softap_get_station_info':
(.irom0.text+0x2fc4): undefined reference to `netif_set_addr'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(user_interface.o): In function `wifi_softap_get_station_info':
(.irom0.text+0x3018): undefined reference to `netif_set_addr'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(app_main.o): In function `user_uart_wait_tx_fifo_empty':
(.irom0.text+0x50c): undefined reference to `sys_check_timeouts'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(app_main.o): In function `user_uart_wait_tx_fifo_empty':
(.irom0.text+0x540): undefined reference to `lwip_init'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(app_main.o): In function `user_uart_wait_tx_fifo_empty':
(.irom0.text+0x544): undefined reference to `espconn_init'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(app_main.o): In function `user_uart_wait_tx_fifo_empty':
(.irom0.text+0x5ce): undefined reference to `lwip_init'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(app_main.o): In function `user_uart_wait_tx_fifo_empty':
(.irom0.text+0x5d4): undefined reference to `espconn_init'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(app_main.o): In function `user_rf_pre_init':
(.irom0.text+0x84e): undefined reference to `netif_set_default'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(eagle_lwip_if.o):(.irom0.text+0x0): undefined reference to `pbuf_free'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(eagle_lwip_if.o):(.irom0.text+0x2f): undefined reference to `pbuf_free'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(eagle_lwip_if.o):(.irom0.text+0x6b): undefined reference to `pbuf_free'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(eagle_lwip_if.o):(.irom0.text+0x98): undefined reference to `etharp_output'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(eagle_lwip_if.o):(.irom0.text+0xa8): undefined reference to `ethernet_input'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(eagle_lwip_if.o):(.irom0.text+0xc4): undefined reference to `netif_add'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(eagle_lwip_if.o): In function `eagle_lwip_if_alloc':
(.irom0.text+0x175): undefined reference to `netif_set_addr'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(eagle_lwip_if.o): In function `eagle_lwip_if_alloc':
(.irom0.text+0x1b2): undefined reference to `netif_add'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(eagle_lwip_if.o): In function `eagle_lwip_if_alloc':
(.irom0.text+0x1c3): undefined reference to `dhcps_start'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(eagle_lwip_if.o): In function `eagle_lwip_if_alloc':
(.irom0.text+0x276): undefined reference to `netif_add'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(eagle_lwip_if.o): In function `eagle_lwip_if_alloc':
(.irom0.text+0x280): undefined reference to `netif_remove'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(eagle_lwip_if.o): In function `eagle_lwip_if_alloc':
(.irom0.text+0x294): undefined reference to `netif_remove'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(eagle_lwip_if.o): In function `eagle_lwip_if_alloc':
(.irom0.text+0x2b6): undefined reference to `dhcps_stop'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(eagle_lwip_if.o): In function `eagle_lwip_if_alloc':
(.irom0.text+0x2be): undefined reference to `netif_remove'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libpp.a(pp.o): In function `ppRecycleRxPkt':
(.irom0.text+0xaba): undefined reference to `pbuf_free'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libnet80211.a(ieee80211_hostap.o):(.irom0.text+0x6e0): undefined reference to `pbuf_alloc'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libnet80211.a(ieee80211_hostap.o):(.irom0.text+0x6f6): undefined reference to `pbuf_alloc'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libnet80211.a(ieee80211_hostap.o): In function `hostap_input':
(.irom0.text+0xbb1): undefined reference to `pbuf_alloc'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libnet80211.a(ieee80211_hostap.o): In function `hostap_input':
(.irom0.text+0xbe7): undefined reference to `pbuf_free'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libnet80211.a(ieee80211_hostap.o): In function `hostap_input':
(.irom0.text+0x1714): undefined reference to `netif_set_up'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libnet80211.a(ieee80211_hostap.o): In function `hostap_input':
(.irom0.text+0x1815): undefined reference to `netif_set_up'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libnet80211.a(ieee80211_hostap.o): In function `hostap_input':
(.irom0.text+0x181d): undefined reference to `netif_set_default'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libnet80211.a(ieee80211_hostap.o): In function `hostap_input':
(.irom0.text+0x1888): undefined reference to `netif_set_down'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libnet80211.a(ieee80211_hostap.o): In function `hostap_input':
(.irom0.text+0x1911): undefined reference to `netif_set_down'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libnet80211.a(ieee80211_input.o): In function `ieee80211_deliver_data':
(.irom0.text+0x23): undefined reference to `pbuf_alloc'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libnet80211.a(ieee80211_output.o):(.irom0.text+0x4): undefined reference to `pbuf_ref'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libnet80211.a(ieee80211_output.o): In function `ieee80211_output_pbuf':
(.irom0.text+0x210): undefined reference to `pbuf_ref'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libnet80211.a(ieee80211_power.o): In function `ieee80211_pwrsave':
(.irom0.text+0x89): undefined reference to `pbuf_free'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libnet80211.a(ieee80211_power.o): In function `pwrsave_flushq':
(.irom0.text+0x11b): undefined reference to `pbuf_free'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libnet80211.a(ieee80211_power.o): In function `pwrsave_flushq':
(.irom0.text+0x145): undefined reference to `pbuf_free'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libnet80211.a(wl_cnx.o): In function `cnx_rc_update_rssi':
(.irom0.text+0xeec): undefined reference to `dhcp_release'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libnet80211.a(wl_cnx.o): In function `cnx_rc_update_state_metric':
(.irom0.text+0xf28): undefined reference to `netif_set_down'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libnet80211.a(wl_cnx.o): In function `cnx_rc_update_state_metric':
(.irom0.text+0xf36): undefined reference to `dhcp_release'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libnet80211.a(wl_cnx.o): In function `cnx_rc_update_state_metric':
(.irom0.text+0xf3e): undefined reference to `dhcp_stop'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libnet80211.a(wl_cnx.o): In function `cnx_rc_update_state_metric':
(.irom0.text+0xf46): undefined reference to `dhcp_cleanup'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libwpa.a(wpa_auth.o): In function `__wpa_send_eapol':
(.irom0.text+0xca6): undefined reference to `pbuf_alloc'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libwpa.a(wpa_main.o): In function `eagle_auth_done':
(.irom0.text+0x36b): undefined reference to `dhcp_start'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libwpa.a(wpa_main.o): In function `eagle_auth_done':
(.irom0.text+0x397): undefined reference to `netif_set_addr'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libwpa.a(wpa_main.o): In function `eagle_auth_done':
(.irom0.text+0x39f): undefined reference to `netif_set_up'
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libwpa.a(wpas_glue.o): In function `wpa_sm_alloc_eapol':
(.irom0.text+0x88): undefined reference to `pbuf_alloc'
build/extmod/modlwip.o:(.text.mod_lwip_reset+0x4): undefined reference to `lwip_init'
build/extmod/modlwip.o: In function `mod_lwip_reset':
modlwip.c:(.text.mod_lwip_reset+0xe): undefined reference to `lwip_init'
build/extmod/modlwip.o:(.text.mod_lwip_callback+0x0): undefined reference to `sys_check_timeouts'
build/extmod/modlwip.o: In function `mod_lwip_callback':
modlwip.c:(.text.mod_lwip_callback+0x15): undefined reference to `sys_check_timeouts'
build/extmod/modlwip.o:(.text.lwip_tcp_receive+0xc): undefined reference to `pbuf_copy_partial'
build/extmod/modlwip.o:(.text.lwip_tcp_receive+0x10): undefined reference to `pbuf_free'
build/extmod/modlwip.o:(.text.lwip_tcp_receive+0x14): undefined reference to `tcp_recved'
build/extmod/modlwip.o: In function `lwip_tcp_receive':
modlwip.c:(.text.lwip_tcp_receive+0xbb): undefined reference to `pbuf_copy_partial'
modlwip.c:(.text.lwip_tcp_receive+0xd4): undefined reference to `pbuf_free'
modlwip.c:(.text.lwip_tcp_receive+0xeb): undefined reference to `tcp_recved'
build/extmod/modlwip.o: In function `lwip_udp_receive':
modlwip.c:(.text.lwip_udp_receive+0xb2): undefined reference to `pbuf_copy_partial'
modlwip.c:(.text.lwip_udp_receive+0xbc): undefined reference to `pbuf_free'
build/extmod/modlwip.o: In function `_lwip_udp_incoming':
modlwip.c:(.text._lwip_udp_incoming+0x12): undefined reference to `pbuf_free'
build/extmod/modlwip.o:(.text.lwip_tcp_send+0x0): undefined reference to `tcp_write'
build/extmod/modlwip.o: In function `lwip_tcp_send':
modlwip.c:(.text.lwip_tcp_send+0x2a): undefined reference to `tcp_write'
build/extmod/modlwip.o:(.text.lwip_udp_send+0x4): undefined reference to `udp_send'
build/extmod/modlwip.o:(.text.lwip_udp_send+0x8): undefined reference to `udp_sendto'
build/extmod/modlwip.o: In function `lwip_udp_send':
modlwip.c:(.text.lwip_udp_send+0x36): undefined reference to `pbuf_alloc'
modlwip.c:(.text.lwip_udp_send+0x62): undefined reference to `udp_send'
modlwip.c:(.text.lwip_udp_send+0x9b): undefined reference to `udp_sendto'
modlwip.c:(.text.lwip_udp_send+0xa6): undefined reference to `pbuf_free'
build/extmod/modlwip.o:(.text.lwip_socket_connect+0x8): undefined reference to `tcp_recv'
build/extmod/modlwip.o:(.text.lwip_socket_connect+0xc): undefined reference to `tcp_connect'
build/extmod/modlwip.o:(.text.lwip_socket_connect+0x10): undefined reference to `udp_connect'
build/extmod/modlwip.o: In function `lwip_socket_connect':
modlwip.c:(.text.lwip_socket_connect+0x9b): undefined reference to `tcp_recv'
modlwip.c:(.text.lwip_socket_connect+0xb2): undefined reference to `tcp_connect'
modlwip.c:(.text.lwip_socket_connect+0x156): undefined reference to `udp_connect'
build/extmod/modlwip.o:(.text.lwip_socket_accept+0x8): undefined reference to `tcp_arg'
build/extmod/modlwip.o:(.text.lwip_socket_accept+0xc): undefined reference to `tcp_err'
build/extmod/modlwip.o: In function `lwip_socket_accept':
modlwip.c:(.text.lwip_socket_accept+0xec): undefined reference to `tcp_arg'
modlwip.c:(.text.lwip_socket_accept+0xfa): undefined reference to `tcp_err'
modlwip.c:(.text.lwip_socket_accept+0x108): undefined reference to `tcp_recv'
build/extmod/modlwip.o:(.text.lwip_socket_bind+0x0): undefined reference to `tcp_bind'
build/extmod/modlwip.o:(.text.lwip_socket_bind+0x4): undefined reference to `udp_bind'
build/extmod/modlwip.o: In function `lwip_socket_bind':
modlwip.c:(.text.lwip_socket_bind+0x53): undefined reference to `tcp_bind'
modlwip.c:(.text.lwip_socket_bind+0x63): undefined reference to `udp_bind'
build/extmod/modlwip.o:(.text.lwip_socket_close+0x0): undefined reference to `tcp_close'
build/extmod/modlwip.o:(.text.lwip_socket_close+0x4): undefined reference to `tcp_abort'
build/extmod/modlwip.o:(.text.lwip_socket_close+0x8): undefined reference to `udp_remove'
build/extmod/modlwip.o: In function `lwip_socket_close':
modlwip.c:(.text.lwip_socket_close+0x42): undefined reference to `tcp_close'
modlwip.c:(.text.lwip_socket_close+0x52): undefined reference to `tcp_abort'
modlwip.c:(.text.lwip_socket_close+0x62): undefined reference to `udp_remove'
modlwip.c:(.text.lwip_socket_close+0x82): undefined reference to `pbuf_free'
modlwip.c:(.text.lwip_socket_close+0x8c): undefined reference to `tcp_abort'
build/extmod/modlwip.o:(.text.lwip_socket_make_new+0x4): undefined reference to `tcp_new'
build/extmod/modlwip.o:(.text.lwip_socket_make_new+0x8): undefined reference to `udp_new'
build/extmod/modlwip.o:(.text.lwip_socket_make_new+0xc): undefined reference to `udp_recv'
build/extmod/modlwip.o: In function `lwip_socket_make_new':
modlwip.c:(.text.lwip_socket_make_new+0x65): undefined reference to `tcp_new'
modlwip.c:(.text.lwip_socket_make_new+0x70): undefined reference to `udp_new'
modlwip.c:(.text.lwip_socket_make_new+0xaf): undefined reference to `tcp_arg'
modlwip.c:(.text.lwip_socket_make_new+0xbe): undefined reference to `tcp_err'
modlwip.c:(.text.lwip_socket_make_new+0xd2): undefined reference to `udp_recv'
build/extmod/modlwip.o:(.text.lwip_getaddrinfo+0x4): undefined reference to `dns_gethostbyname'
build/extmod/modlwip.o: In function `lwip_getaddrinfo':
modlwip.c:(.text.lwip_getaddrinfo+0x36): undefined reference to `dns_gethostbyname'
build/extmod/modlwip.o:(.text.lwip_socket_listen+0x4): undefined reference to `tcp_listen_with_backlog'
build/extmod/modlwip.o:(.text.lwip_socket_listen+0x8): undefined reference to `tcp_accept'
build/extmod/modlwip.o: In function `lwip_socket_listen':
modlwip.c:(.text.lwip_socket_listen+0x4d): undefined reference to `tcp_listen_with_backlog'
modlwip.c:(.text.lwip_socket_listen+0x68): undefined reference to `tcp_accept'
make: *** [build/firmware.elf] Error 1
Tkizzy commented 8 years ago

the solution for the above was to do

cd esp-open-sdk git checkout lwip-headers

before building the toolkit

Now, there's a new error. Progress.

/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/include/esp_sdk_ver.h:1:1: error: expected identifier or '(' before '-' token
 -e #undef ESP_SDK_VERSION
 ^
/Volumes/esp-open-sdk/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/include/esp_sdk_ver.h:1:4: error: stray '#' in program
 -e #undef ESP_SDK_VERSION