-->
Page 1 of 2

Can't build with sdk 1.5.2

PostPosted: Tue May 10, 2016 1:15 pm
by hax0r
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

Re: Can't build with sdk 1.5.2

PostPosted: Tue May 10, 2016 5:23 pm
by lethe
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?

Re: Can't build with sdk 1.5.2

PostPosted: Thu May 12, 2016 12:59 pm
by hax0r
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)"

Re: Can't build with sdk 1.5.2

PostPosted: Sat May 14, 2016 11:17 pm
by Sprite_tm
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.