Skip to content
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.

compile issue #35

Open
kuzmanzs opened this issue Sep 22, 2020 · 0 comments
Open

compile issue #35

kuzmanzs opened this issue Sep 22, 2020 · 0 comments

Comments

@kuzmanzs
Copy link

kuzmanzs commented Sep 22, 2020

I have following on my path:
/home/me/dev/v2.2.x/ESP8266_NONOS_SDK/tools or ESP8266_RTOS_SDK/tools latest from GitHub
/home/me/dev/1.22.0-100-ge567ec7-5.2.0/xtensa-lx106-elf/bin

and with make COMPILE=gcc BOOT=none APP=0 SPI_SPEED=40 SPI_MODE=QIO SPI_SIZE=1024
getting:

xtensa-lx106-elf-gcc -Os -g -Os -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals  -DICACHE_FLASH   -I include -I ../include -I ../../include -I ../../extra_include -I ../../include/lwip -I ../../include/lwip/ipv4 -I ../../include/lwip/ipv6 -I ../../include/espressif  -o .output/eagle/debug/obj/user_main.o -c user_main.c
user_main.c: In function 'recalcAddDelSamp':
user_main.c:122:6: error: implicit declaration of function 'spiRamFifoLen' [-Werror=implicit-function-declaration]
  if (spiRamFifoLen()<10*1024) {
      ^
user_main.c: At top level:
user_main.c:187:8: error: type defaults to 'int' in declaration of 'oldRate' [-Werror=implicit-int]
 static oldRate=0;
        ^
user_main.c: In function 'user_init':
user_main.c:404:2: error: implicit declaration of function 'UART_SetBaudrate' [-Werror=implicit-function-declaration]
  UART_SetBaudrate(0, 115200);
  ^

EDIT: with ESP8266_RTOS_SDK_V1.4.0 + xtensa-lx106-elf-gcc (crosstool-NG crosstool-ng-1.22.0-88-gde0bdc1) 4.8.5
I got xtensa-lx106-elf/bin/ld: cannot find -lhal:
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -Os -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcall s -mtext-section-literals -DICACHE_FLASH -I include -I ../include -I ../../include -I ../../extra_include -I ../../include/lw ip -I ../../include/lwip/ipv4 -I ../../include/lwip/ipv6 -I ../../include/espressif user_main.c DEPEND: xtensa-lx106-elf-gcc -M -Os -g -Os -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcall s -mtext-section-literals -DICACHE_FLASH -I include -I ../include -I ../../include -I ../../extra_include -I ../../include/lw ip -I ../../include/lwip/ipv4 -I ../../include/lwip/ipv6 -I ../../include/espressif spiram_fifo.c xtensa-lx106-elf-gcc -Os -g -Os -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-se ction-literals -DICACHE_FLASH -I include -I ../include -I ../../include -I ../../extra_include -I ../../include/lwip -I .. /../include/lwip/ipv4 -I ../../include/lwip/ipv6 -I ../../include/espressif -o .output/eagle/debug/obj/spiram_fifo.o -c spir am_fifo.c xtensa-lx106-elf-gcc -Os -g -Os -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-se ction-literals -DICACHE_FLASH -I include -I ../include -I ../../include -I ../../extra_include -I ../../include/lwip -I .. /../include/lwip/ipv4 -I ../../include/lwip/ipv6 -I ../../include/espressif -o .output/eagle/debug/obj/user_main.o -c user_m ain.c xtensa-lx106-elf-ar ru .output/eagle/debug/lib/libuser.a .output/eagle/debug/obj/spiram_fifo.o .output/eagle/debug/obj/user_m ain.o xtensa-lx106-elf-ar: creating .output/eagle/debug/lib/libuser.a .. /1.22.0-88-gde0bdc1-4.8.5/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx10 6-elf/4.8.5/../../../../xtensa-lx106-elf/bin/ld: cannot find -lhal collect2: error: ld returned 1 exit status ../Makefile:321: recipe for target '.output/eagle/debug/image/eagle.app.v6.out' failed make[1]: *** [.output/eagle/debug/image/eagle.app.v6.out] Error 1 make[1]: Leaving directory '/home/zsolt/dev/projects/c/esp/esp8266/projects/ESP8266_MP3_DECODER/mp3' Makefile:266: recipe for target '.subdirs' failed make: *** [.subdirs] Error 2

Which SDK+Toolchain should be used?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant