- Tue Nov 25, 2014 5:19 am
#3283
martinayotte wrote:
Verify in the root Makefile that you have proper path to CrossTool-NG :
XTENSA_TOOLS_ROOT ?= /opt/Espressif/crosstool-NG/builds/xtensa-lx106-elf/bin
Dear martinayotte and others
Problem Solved ! (?)
Hey thank you very much for help.
Actually everything was ok. XTENSA_TOOLS_ROOT was proper, gcc was there. all ok.
basically I was trying all this in windows with cygwin32 and cygwin64.
Normal compiling of all other apps do work.
But my problem was only with "mkespfsimage" FS image making (webpages.espfs) was not working.
I tried in lubuntu image also but same problem was there.
Finally I followed guide at:
https://github.com/esp8266/esp8266-wiki/wiki/ToolchainEarlier also I left this crosstool-NG because of 'libexpat' not found in lubuntu.
But then It got resolved by installing "libexpat-dev"
So now I'm able to generate webpages.espfs image on CrossTool.NG.
But 'make' still giving me error. I guess it must be a problem of LIBs.
But for now I resolved it by executing make in Cygwin to get 0x00000.bin and 0x40000.bin
And for Image generation I have to go to lubuntu (CrossTool.NG.)
Now error i get during normal make in (lubuntu) CrossTool.NG. is as:
Code: Select allesp8266@esp8266-VirtualBox:/opt/Espressif/esphttpd$ make
CC user/cgi.c
CC user/cgiwifi.c
CC user/espfs.c
CC user/heatshrink_decoder.c
CC user/httpd.c
CC user/httpdespfs.c
CC user/io.c
CC user/stdout.c
CC user/user_main.c
AR build/httpd_app.a
LD build/httpd.out
/opt/Espressif/ESP8266_SDK/lib/libmain.a(app_main.o): In function `read_macaddr_from_otp':
(.irom0.text+0x7c): undefined reference to `wDev_ProcessFiq'
/opt/Espressif/ESP8266_SDK/lib/libmain.a(app_main.o): In function `read_macaddr_from_otp':
(.irom0.text+0x84): undefined reference to `lmacInit'
/opt/Espressif/ESP8266_SDK/lib/libmain.a(app_main.o): In function `read_macaddr_from_otp':
(.irom0.text+0x88): undefined reference to `wDev_Initialize'
/opt/Espressif/ESP8266_SDK/lib/libmain.a(app_main.o): In function `read_macaddr_from_otp':
(.irom0.text+0x8c): undefined reference to `pp_attach'
/opt/Espressif/ESP8266_SDK/lib/libmain.a(app_main.o): In function `read_macaddr_from_otp':
(.irom0.text+0x98): undefined reference to `pm_attach'
/opt/Espressif/ESP8266_SDK/lib/libmain.a(app_main.o): In function `read_macaddr_from_otp':
(.irom0.text+0x9c): undefined reference to `wDevEnableRx'
/opt/Espressif/ESP8266_SDK/lib/libmain.a(app_main.o): In function `read_macaddr_from_otp':
(.irom0.text+0xe3): undefined reference to `lmacInit'
/opt/Espressif/ESP8266_SDK/lib/libmain.a(app_main.o): In function `read_macaddr_from_otp':
(.irom0.text+0xec): undefined reference to `wDev_Initialize'
/opt/Espressif/ESP8266_SDK/lib/libmain.a(app_main.o): In function `read_macaddr_from_otp':
(.irom0.text+0xf2): undefined reference to `pp_attach'
/opt/Espressif/ESP8266_SDK/lib/libmain.a(app_main.o): In function `read_macaddr_from_otp':
(.irom0.text+0x115): undefined reference to `pm_attach'
/opt/Espressif/ESP8266_SDK/lib/libmain.a(app_main.o): In function `read_macaddr_from_otp':
(.irom0.text+0x126): undefined reference to `wDevEnableRx'
/opt/Espressif/ESP8266_SDK/lib/libmain.a(user_interface.o): In function `os_printf':
(.irom0.text+0x58): undefined reference to `pm_is_open'
/opt/Espressif/ESP8266_SDK/lib/libmain.a(user_interface.o): In function `os_printf':
(.irom0.text+0x5c): undefined reference to `pm_is_waked'
/opt/Espressif/ESP8266_SDK/lib/libmain.a(user_interface.o): In function `os_printf':
(.irom0.text+0x60): undefined reference to `pm_post'
/opt/Espressif/ESP8266_SDK/lib/libmain.a(user_interface.o): In function `os_printf':
(.irom0.text+0x6d): undefined reference to `pm_is_open'
/opt/Espressif/ESP8266_SDK/lib/libmain.a(user_interface.o): In function `os_printf':
(.irom0.text+0x93): undefined reference to `pm_is_waked'
/opt/Espressif/ESP8266_SDK/lib/libmain.a(user_interface.o): In function `os_printf':
(.irom0.text+0xba): undefined reference to `pm_post'
/opt/Espressif/ESP8266_SDK/lib/libmain.a(user_interface.o): In function `os_printf':
(.irom0.text+0x13c): undefined reference to `pm_is_waked'
/opt/Espressif/ESP8266_SDK/lib/libmain.a(user_interface.o): In function `os_printf':
(.irom0.text+0x144): undefined reference to `pm_is_open'
/opt/Espressif/ESP8266_SDK/lib/libmain.a(user_interface.o): In function `os_printf':
(.irom0.text+0x1d8): undefined reference to `pm_post'
/opt/Espressif/ESP8266_SDK/lib/libmain.a(user_interface.o): In function `os_printf':
(.irom0.text+0x204): undefined reference to `ppRecycleRxPkt'
/opt/Espressif/ESP8266_SDK/lib/libmain.a(user_interface.o): In function `os_printf':
(.irom0.text+0x20d): undefined reference to `ppRecycleRxPkt'
/opt/Espressif/ESP8266_SDK/lib/libmain.a(user_interface.o): In function `system_upgrade_reboot':
(.irom0.text+0x390): undefined reference to `pm_rtc_clock_cali_proc'
/opt/Espressif/ESP8266_SDK/lib/libmain.a(user_interface.o): In function `system_upgrade_reboot':
(.irom0.text+0x394): undefined reference to `pm_set_sleep_time'
/opt/Espressif/ESP8266_SDK/lib/libmain.a(user_interface.o): In function `system_deep_sleep':
(.irom0.text+0x4aa): undefined reference to `pm_rtc_clock_cali_proc'
/opt/Espressif/ESP8266_SDK/lib/libmain.a(user_interface.o): In function `system_deep_sleep':
(.irom0.text+0x4b2): undefined reference to `pm_set_sleep_time'
/opt/Espressif/ESP8266_SDK/lib/libmain.a(user_interface.o): In function `system_print_meminfo':
(.irom0.text+0x6ad): undefined reference to `pm_rtc_clock_cali_proc'
/opt/Espressif/ESP8266_SDK/lib/libmain.a(user_interface.o): In function `wifi_softap_set_config':
(.irom0.text+0x14f0): undefined reference to `pm_set_sleep_type_from_upper'
/opt/Espressif/ESP8266_SDK/lib/libmain.a(user_interface.o): In function `wifi_softap_set_config':
(.irom0.text+0x1501): undefined reference to `pm_set_sleep_type_from_upper'
/opt/Espressif/ESP8266_SDK/lib/libphy.a(phy_chip_v6.o): In function `chip_v6_rxmax_ext':
(.irom0.text+0x2424): undefined reference to `uart_tx_flush'
/opt/Espressif/ESP8266_SDK/lib/libphy.a(phy_chip_v6.o): In function `chip_v6_rxmax_ext':
(.irom0.text+0x242d): undefined reference to `uart_tx_flush'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_hostap.o):(.irom0.text+0x10): undefined reference to `ppTxPkt'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_hostap.o):(.irom0.text+0xea): undefined reference to `ppTxPkt'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_hostap.o):(.irom0.text+0x330): undefined reference to `ic_bss_info_update'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_hostap.o):(.irom0.text+0x334): undefined reference to `ppRegisterTxCallback'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_hostap.o):(.irom0.text+0x363): undefined reference to `ic_bss_info_update'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_hostap.o):(.irom0.text+0x37a): undefined reference to `ppRegisterTxCallback'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_hostap.o): In function `hostap_handle_timer':
(.irom0.text+0x509): undefined reference to `ppRecycleRxPkt'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_hostap.o): In function `hostap_input':
(.irom0.text+0xd3b): undefined reference to `ppTxPkt'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_hostap.o): In function `hostap_input':
(.irom0.text+0xd70): undefined reference to `ic_set_vif'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_hostap.o): In function `hostap_input':
(.irom0.text+0xdd3): undefined reference to `ic_set_vif'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_hostap.o): In function `hostap_input':
(.irom0.text+0xe68): undefined reference to `esf_buf_recycle'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_hostap.o): In function `hostap_input':
(.irom0.text+0xf00): undefined reference to `ic_bss_info_update'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_hostap.o): In function `hostap_input':
(.irom0.text+0xf10): undefined reference to `ic_set_vif'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_hostap.o): In function `hostap_input':
(.irom0.text+0xf23): undefined reference to `esf_buf_recycle'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_ht.o): In function `ieee80211_add_htinfo_vendor':
(.irom0.text+0x90c): undefined reference to `rc_get_trc_by_index'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_ht.o): In function `ieee80211_add_htinfo_vendor':
(.irom0.text+0xa4e): undefined reference to `rc_get_trc_by_index'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_input.o): In function `ieee80211_deliver_data':
(.irom0.text+0x56): undefined reference to `ppRecycleRxPkt'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_output.o):(.irom0.text+0x8): undefined reference to `esf_buf_alloc'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_output.o): In function `ieee80211_output_pbuf':
(.irom0.text+0x92): undefined reference to `esf_buf_alloc'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_output.o): In function `ieee80211_output_pbuf':
(.irom0.text+0xce): undefined reference to `esf_buf_recycle'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_output.o): In function `ieee80211_output_pbuf':
(.irom0.text+0x1a1): undefined reference to `rc_get_trc_by_index'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_output.o): In function `ieee80211_output_pbuf':
(.irom0.text+0x255): undefined reference to `ppTxPkt'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_output.o): In function `ieee80211_mgmt_output':
(.irom0.text+0x495): undefined reference to `ppTxPkt'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_output.o): In function `ieee80211_send_nulldata':
(.irom0.text+0x5cf): undefined reference to `rc_get_trc_by_index'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_output.o): In function `ieee80211_send_nulldata':
(.irom0.text+0x5de): undefined reference to `ppTxPkt'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_output.o): In function `ieee80211_send_nulldata':
(.irom0.text+0x72b): undefined reference to `esf_buf_recycle'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_output.o): In function `ieee80211_send_probereq':
(.irom0.text+0xb7f): undefined reference to `ppTxPkt'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_output.o): In function `ieee80211_send_probereq':
(.irom0.text+0xb92): undefined reference to `rc_get_trc_by_index'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_output.o): In function `ieee80211_getcapinfo':
(.irom0.text+0xcb4): undefined reference to `esf_buf_recycle'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_output.o): In function `ieee80211_send_mgmt':
(.irom0.text+0xe65): undefined reference to `rc_get_trc_by_index'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_output.o): In function `ieee80211_alloc_proberesp':
(.irom0.text+0x1499): undefined reference to `rc_get_trc_by_index'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_output.o): In function `ieee80211_alloc_proberesp':
(.irom0.text+0x14a9): undefined reference to `ppTxPkt'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_power.o): In function `ieee80211_pwrsave':
(.irom0.text+0x90): undefined reference to `esf_buf_recycle'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_power.o): In function `ieee80211_pwrsave':
(.irom0.text+0xfa): undefined reference to `ppTxPkt'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_proto.o): In function `ieee80211_proto_attach':
(.irom0.text+0x1e): undefined reference to `ppRegisterTxCallback'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_scan.o): In function `ieee80211_scan_attach':
(.irom0.text+0x90): undefined reference to `pm_scan_lock'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_scan.o): In function `ieee80211_scan_attach':
(.irom0.text+0xb9): undefined reference to `pm_is_open'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_scan.o): In function `ieee80211_scan_attach':
(.irom0.text+0xc2): undefined reference to `pm_is_waked'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_scan.o): In function `ieee80211_scan_attach':
(.irom0.text+0xcc): undefined reference to `pm_post'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_scan.o): In function `scan_start':
(.irom0.text+0x100): undefined reference to `pm_scan_lock'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_scan.o): In function `scan_start':
(.irom0.text+0x2cb): undefined reference to `ppTxPkt'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_scan.o): In function `scan_start':
(.irom0.text+0x36c): undefined reference to `wDev_SetRxPolicy'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_scan.o): In function `scan_start':
(.irom0.text+0x370): undefined reference to `pm_force_scan_unlock'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_scan.o): In function `scan_cancel':
(.irom0.text+0x3e7): undefined reference to `wDev_SetRxPolicy'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_scan.o): In function `scan_cancel':
(.irom0.text+0x3f9): undefined reference to `wDev_SetRxPolicy'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_scan.o): In function `scan_cancel':
(.irom0.text+0x430): undefined reference to `pm_is_open'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_scan.o): In function `scan_cancel':
(.irom0.text+0x438): undefined reference to `pm_force_scan_unlock'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_scan.o): In function `scan_remove_probe_ssid':
(.irom0.text+0x69c): undefined reference to `ppCheckTxIdle'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_scan.o): In function `scan_remove_probe_ssid':
(.irom0.text+0x6ab): undefined reference to `ppCheckTxIdle'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_sta.o): In function `ieee80211_sta_new_state':
(.irom0.text+0x2a8): undefined reference to `ppRecycleRxPkt'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_sta.o): In function `ieee80211_parse_wmeparams':
(.irom0.text+0x8fc): undefined reference to `ic_bss_info_update'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_sta.o): In function `ieee80211_parse_wmeparams':
(.irom0.text+0xb0f): undefined reference to `ic_set_vif'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(wl_cnx.o): In function `cnx_attach':
(.irom0.text+0x3e): undefined reference to `ppRegisterTxCallback'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(wl_cnx.o): In function `cnx_sta_connect_cmd':
(.irom0.text+0x125): undefined reference to `wDev_SetRxPolicy'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(wl_cnx.o): In function `cnx_sta_connect_cmd':
(.irom0.text+0x136): undefined reference to `wDev_SetRxPolicy'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(wl_cnx.o): In function `cnx_sta_connect_cmd':
(.irom0.text+0x1c5): undefined reference to `wDev_SetRxPolicy'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(wl_cnx.o): In function `cnx_start_handoff_cb':
(.irom0.text+0x5b0): undefined reference to `wDev_remove_KeyEntry'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(wl_cnx.o): In function `cnx_start_handoff_cb':
(.irom0.text+0x5dc): undefined reference to `wDev_remove_KeyEntry'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(wl_cnx.o): In function `cnx_start_handoff_cb':
(.irom0.text+0x5e4): undefined reference to `wDev_remove_KeyEntry'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(wl_cnx.o): In function `cnx_start_handoff_cb':
(.irom0.text+0x5ec): undefined reference to `wDev_remove_KeyEntry'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(wl_cnx.o): In function `cnx_start_handoff_cb':
(.irom0.text+0x5f4): undefined reference to `wDev_remove_KeyEntry'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(wl_cnx.o): In function `cnx_rc_update_rssi':
(.irom0.text+0xdc4): undefined reference to `ic_set_sta'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(wl_cnx.o): In function `cnx_rc_update_state_metric':
(.irom0.text+0xdf2): undefined reference to `ic_set_sta'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(wl_cnx.o): In function `cnx_update_bss':
(.irom0.text+0xeb3): undefined reference to `ic_set_sta'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(wl_cnx.o): In function `cnx_sta_leave':
(.irom0.text+0x1097): undefined reference to `ic_set_sta'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(wl_cnx.o): In function `cnx_sta_associated':
(.irom0.text+0x1186): undefined reference to `ic_set_sta'
/opt/Espressif/ESP8266_SDK/lib/libnet80211.a(ieee80211_ets.o): In function `ieee80211_getmgtframe':
(.irom0.text+0x31): undefined reference to `esf_buf_alloc'
/opt/Espressif/ESP8266_SDK/lib/libwpa.a(wpa_auth.o):(.irom0.text+0xc): undefined reference to `ic_remove_key'
/opt/Espressif/ESP8266_SDK/lib/libwpa.a(wpa_auth.o):(.irom0.text+0x10): undefined reference to `ic_set_key'
/opt/Espressif/ESP8266_SDK/lib/libwpa.a(wpa_auth.o):(.irom0.text+0x74): undefined reference to `ic_remove_key'
/opt/Espressif/ESP8266_SDK/lib/libwpa.a(wpa_auth.o):(.irom0.text+0xd6): undefined reference to `ic_set_key'
/opt/Espressif/ESP8266_SDK/lib/libwpa.a(wpa_main.o):(.irom0.text+0x1f): undefined reference to `ic_set_key'
/opt/Espressif/ESP8266_SDK/lib/libwpa.a(wpa_main.o): In function `eagle_auth_done':
(.irom0.text+0x2ae): undefined reference to `ppRegisterTxCallback'
collect2: error: ld returned 1 exit status
make: *** [build/httpd.out] Error 1
Friends... let me know if anyone have any guess..!