ESP8266 Webserver Project

Moderator: Sprite_tm

User avatar
By hax0r
#47239 Hi,

I'm using esp_iot_sdk_v1.5.2 to build esp-httpd and I'm getting following issue:

make[2]: Entering directory 'esphttpd/libesphttpd/espfs/mkespfsimage'
/mnt/cam/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc -o mkespfsimage main.o heatshrink_encoder.o
/mnt/cam/esp-open-sdk/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: cannot find crt1-sim.o: No such file or directory
/mnt/cam/esp-open-sdk/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: cannot find _vectors.o: No such file or directory
/mnt/cam/esp-open-sdk/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: cannot find -lsim
/mnt/cam/esp-open-sdk/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: cannot find -lhandlers-sim


Any idea ?

Thanks
User avatar
By lethe
#47263 mkespfsimage is supposed to be compiled with your host's compiler, why are you trying to build it with xtensa-lx106-elf-gcc? Did you modify the makefile to do so?
User avatar
By hax0r
#47367 Thanks for this information.
I had to patch the Makefile to make it works.

In case you need it:

espfs/mkespfsimage/mkespfsimage: espfs/mkespfsimage/
- $(Q) $(MAKE) -C espfs/mkespfsimage USE_HEATSHRINK="$(USE_HEATSHRINK)" GZIP_COMPRESSION="$(GZIP_COMPRESSION)"
+ $(Q) $(MAKE) CC=gcc -C espfs/mkespfsimage USE_HEATSHRINK="$(USE_HEATSHRINK)" GZIP_COMPRESSION="$(GZIP_COMPRESSION)"
User avatar
By Sprite_tm
#47459
hax0r wrote:Thanks for this information.
I had to patch the Makefile to make it works.


What toolchain did you use to compile this? I haven't run into one that sets CC to be the Xtensa compiler yet.