Closed MadmanSmoker closed 9 years ago
Can you post the full build log? Also which version of SDK are you using?
same on os x sdk: esp_iot_sdk_v0.9.5_15_01_23.zip
the log:
-e \e[1;32m[INFO]-e \e[0m Building application code
-e \e[1;36m[GEN]-e \e[0m built-in.o
-e \e[1;36m[GEN]-e \e[0m built-in.o
-e \e[1;36m[GEN]-e \e[0m built-in.o
-e \e[1;36m[GEN]-e \e[0m built-in.o
-e \e[1;36m[GEN]-e \e[0m built-in.o
-e \e[1;36m[GEN]-e \e[0m built-in.o
-e \e[1;36m[GEN]-e \e[0m built-in.o
-e \e[1;36m[GEN]-e \e[0m built-in.o
-e \e[1;32m[INFO]-e \e[0m Building antares library code and startup
-e \e[1;36m[GEN]-e \e[0m built-in.o
-e \e[1;36m[GEN]-e \e[0m built-in.o
-e \e[1;36m[GEN]-e \e[0m built-in.o
-e \e[1;36m[GEN]-e \e[0m built-in.o
-e \e[1;36m[GEN]-e \e[0m built-in.o
-e \e[1;36m[GEN]-e \e[0m built-in.o
-e \e[1;36m[GEN]-e \e[0m built-in.o
-e \e[1;36m[GEN]-e \e[0m built-in.o
-e \e[1;36m[GEN]-e \e[0m built-in.o
echo -e "/Volumes/ESPTools/esp8266-frankenstein/antares/scripts/parseobjs /Volumes/ESPTools/esp8266-frankenstein/build/built-in.o
\n \
/Volumes/ESPTools/esp8266-frankenstein/antares/scripts/parseobjs /Volumes/ESPTools/esp8266-frankenstein/build/app/built-in.o
" | while read file; do \
echo $file; \
xtensa-lx106-elf-objcopy --rename-section .text=.irom0.text \
--rename-section .literal=.irom0.literal $file; \
done
/Volumes/ESPTools/esp8266-frankenstein/build/arch/esp8266/newlib-dummies.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/main.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/stdio.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/helpers.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/microrl.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/console.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/hostname.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/env.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/cb.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/telnet.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/cmd_common.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/cmd_env.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/uart.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/cmd_iw.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/cmd_uart.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/cmd_ifconfig.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/cmd_gpio.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/cmd_flash.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/cmd_listen.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/cmd_send.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/cmd_ds18b20.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/cmd_tftp.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/tftp.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/api/api_lib.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/api/api_msg.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/api/err.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/api/netbuf.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/api/netdb.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/api/netifapi.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/api/sockets.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/api/tcpip.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/app/dhcpserver.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/app/espconn.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/app/espconn_tcp.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/app/espconn_udp.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/def.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/dhcp.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/dns.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/init.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/mem.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/memp.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/netif.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/pbuf.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/raw.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/stats.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/sys_arch.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/sys.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/tcp.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/tcp_in.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/tcp_out.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/timers.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/udp.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/ipv4/autoip.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/ipv4/icmp.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/ipv4/igmp.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/ipv4/inet.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/ipv4/inet_chksum.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/ipv4/ip_addr.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/ipv4/ip.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/ipv4/ip_frag.o
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/netif/etharp.o
echo xtensa-lx106-elf-gcc -o images/antares.elf \
/Volumes/ESPTools/esp8266-frankenstein/antares/scripts/parseobjs /Volumes/ESPTools/esp8266-frankenstein/build/built-in.o
\
/Volumes/ESPTools/esp8266-frankenstein/antares/scripts/parseobjs /Volumes/ESPTools/esp8266-frankenstein/build/app/built-in.o
\
-nostdlib -Wl,--no-check-sections -u call_user_start -Wl,-static -Wl,--start-group -lmain -lhal -lnet80211 -lphy -lpp -lwpa -lssl -lm -lcirom -lgcc -Wl,--end-group -lm -T /Volumes/ESPTools/esp8266-frankenstein/antares/src/arch/esp8266/ld/eagle.app.v6.ld
xtensa-lx106-elf-gcc -o images/antares.elf /Volumes/ESPTools/esp8266-frankenstein/build/arch/esp8266/newlib-dummies.o /Volumes/ESPTools/esp8266-frankenstein/build/app/main.o /Volumes/ESPTools/esp8266-frankenstein/build/app/stdio.o /Volumes/ESPTools/esp8266-frankenstein/build/app/helpers.o /Volumes/ESPTools/esp8266-frankenstein/build/app/microrl.o /Volumes/ESPTools/esp8266-frankenstein/build/app/console.o /Volumes/ESPTools/esp8266-frankenstein/build/app/hostname.o /Volumes/ESPTools/esp8266-frankenstein/build/app/env.o /Volumes/ESPTools/esp8266-frankenstein/build/app/cb.o /Volumes/ESPTools/esp8266-frankenstein/build/app/telnet.o /Volumes/ESPTools/esp8266-frankenstein/build/app/cmd_common.o /Volumes/ESPTools/esp8266-frankenstein/build/app/cmd_env.o /Volumes/ESPTools/esp8266-frankenstein/build/app/uart.o /Volumes/ESPTools/esp8266-frankenstein/build/app/cmd_iw.o /Volumes/ESPTools/esp8266-frankenstein/build/app/cmd_uart.o /Volumes/ESPTools/esp8266-frankenstein/build/app/cmd_ifconfig.o /Volumes/ESPTools/esp8266-frankenstein/build/app/cmd_gpio.o /Volumes/ESPTools/esp8266-frankenstein/build/app/cmd_flash.o /Volumes/ESPTools/esp8266-frankenstein/build/app/cmd_listen.o /Volumes/ESPTools/esp8266-frankenstein/build/app/cmd_send.o /Volumes/ESPTools/esp8266-frankenstein/build/app/cmd_ds18b20.o /Volumes/ESPTools/esp8266-frankenstein/build/app/cmd_tftp.o /Volumes/ESPTools/esp8266-frankenstein/build/app/tftp.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/api/api_lib.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/api/api_msg.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/api/err.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/api/netbuf.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/api/netdb.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/api/netifapi.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/api/sockets.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/api/tcpip.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/app/dhcpserver.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/app/espconn.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/app/espconn_tcp.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/app/espconn_udp.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/def.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/dhcp.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/dns.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/init.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/mem.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/memp.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/netif.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/pbuf.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/raw.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/stats.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/sys_arch.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/sys.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/tcp.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/tcp_in.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/tcp_out.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/timers.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/udp.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/ipv4/autoip.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/ipv4/icmp.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/ipv4/igmp.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/ipv4/inet.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/ipv4/inet_chksum.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/ipv4/ip_addr.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/ipv4/ip.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/core/ipv4/ip_frag.o /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/netif/etharp.o -nostdlib -Wl,--no-check-sections -u call_user_start -Wl,-static -Wl,--start-group -lmain -lhal -lnet80211 -lphy -lpp -lwpa -lssl -lm -lcirom -lgcc -Wl,--end-group -lm -T /Volumes/ESPTools/esp8266-frankenstein/antares/src/arch/esp8266/ld/eagle.app.v6.ld
-e \e[1;35m[LD]-e \e[0m images/antares.elf
/Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/app/dhcpserver.o: In function handle_dhcp': dhcpserver.c:(.irom0.text+0x710): undefined reference to
os_printf'
dhcpserver.c:(.irom0.text+0x747): undefined reference to os_printf' /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/app/espconn.o: In function
espconn_accept':
espconn.c:(.irom0.text+0x4f3): undefined reference to os_printf' /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/app/espconn_tcp.o: In function
espconn_server_recv':
espconn_tcp.c:(.irom0.text+0x6a2): undefined reference to os_printf' /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/app/espconn_tcp.o: In function
espconn_server_sent':
espconn_tcp.c:(.irom0.text+0x9cb): undefined reference to os_printf' /Volumes/ESPTools/esp8266-frankenstein/build/app/lwip/app/espconn_tcp.o:espconn_tcp.c:(.irom0.text+0x9ee): more undefined references to
os_printf' follow
/Volumes/ESPTools/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(spi_flash.o): In function spi_flash_get_id': (.text+0x70): undefined reference to
SPI_read_status'
/Volumes/ESPTools/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(spi_flash.o): In function spi_flash_get_id': (.text+0x88): undefined reference to
SPI_read_status'
/Volumes/ESPTools/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(spi_flash.o): In function spi_flash_read_status': (.text+0xa8): undefined reference to
SPI_write_status'
/Volumes/ESPTools/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libmain.a(spi_flash.o): In function spi_flash_read_status': (.text+0xc0): undefined reference to
SPI_write_status'
collect2: error: ld returned 1 exit status
make: *\ [images/antares.elf] Error 1
Update frankenstein and antares to the latest git. I've just pushed changes to fix compilation with the latest 0.9.5 SDK
Yep. That works. What did you change? A git log doesnt show me any commit that updates it to version 0.9.5?
Everything regarding SDK happens in 'antares' tree, since it handles most of the lowlevel stuff including LD file, so have a look at the git commit log in antares. e.g.
cd antares
git log
Okay. Thanks for the help.
I am unable to build frankenstein on Ubuntu. I have used the make STANDALONE=y for building the open sdk.
However when I enter make I get a number of undefined reference errors like. In function `spi_flash_read_status':