pfalcon / esp-open-sdk

Free and open (as much as possible) integrated SDK for ESP8266/ESP8285 chips
1.97k stars 622 forks source link

Compiling can't go through crosstool-NG/samples/ #165

Open linanw opened 8 years ago

linanw commented 8 years ago

Guys, I followed 100% of the instruction, but always receive this error. Any idea? Below the console output, I have also printed my Ubuntu version at the end. Thanks in advance.

... make: Leaving directory /mnt/c/users/linan/Documents/GitHub/esp-open-sdk-2/crosstool-NG' make install MAKELEVEL=0 make: Entering directory/mnt/c/users/linan/Documents/GitHub/esp-open-sdk-2/crosstool-NG' GEN 'config/configure.in' GEN 'paths.mk' GEN 'paths.sh' MKDIR '/mnt/c/users/linan/Documents/GitHub/esp-open-sdk-2/crosstool-NG/bin/' INST 'ct-ng' MKDIR '/mnt/c/users/linan/Documents/GitHub/esp-open-sdk-2/crosstool-NG/lib/crosstool-ng-1.22.0-55-gecfc19a/' INSTDIR 'config/' INSTDIR 'contrib/' INSTDIR 'patches/' INSTDIR 'scripts/' INST 'steps.mk' INST 'paths' INSTDIR 'samples/' /bin/sed: can't read samples/samples.mk//crosstool.config: No such file or directory /usr/bin/install: cannot stat ‘samples/samples.mk//reported.by’: No such file or directory INST 'kconfig/' MKDIR '/mnt/c/users/linan/Documents/GitHub/esp-open-sdk-2/crosstool-NG/share/doc/crosstool-ng/crosstool-ng-1.22.0-55-gecfc19a/' INST 'docs/*.txt' MKDIR '/mnt/c/users/linan/Documents/GitHub/esp-open-sdk-2/crosstool-NG/share/man/man1/' INST 'ct-ng.1.gz'

For auto-completion, do not forget to install 'ct-ng.comp' into your bash completion directory (usually /etc/bash_completion.d) make: Leaving directory /mnt/c/users/linan/Documents/GitHub/esp-open-sdk-2/crosstool-NG' make[1]: Leaving directory/mnt/c/users/linan/Documents/GitHub/esp-open-sdk-2/crosstool-NG' cp -f 1000-mforce-l32.patch crosstool-NG/local-patches/gcc/4.8.5/ make -C crosstool-NG -f ../Makefile _toolchain make[1]: Entering directory /mnt/c/users/linan/Documents/GitHub/esp-open-sdk-2/crosstool-NG' ./ct-ng xtensa-lx106-elf make[2]: Entering directory/mnt/c/users/linan/Documents/GitHub/esp-open-sdk-2/crosstool-NG' make[2]: * /mnt/c/users/linan/Documents/GitHub/esp-open-sdk-2/crosstool-NG/lib/crosstool-ng-1.22.0-55-gecfc19a/samples/samples.mk: Is a directory. Stop. make[2]: Leaving directory `/mnt/c/users/linan/Documents/GitHub/esp-open-sdk-2/crosstool-NG' make[1]: * [_toolchain] Error 2 make[1]: Leaving directory`/mnt/c/users/linan/Documents/GitHub/esp-open-sdk-2/crosstool-NG' make: *\ [/mnt/c/users/linan/Documents/GitHub/esp-open-sdk-2/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc] Error 2 linan@SUR-LINAN:/mnt/c/users/linan/Documents/GitHub/esp-open-sdk-2$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.4 LTS Release: 14.04 Codename: trusty

rigid commented 8 years ago

I got a similiar error and worked around it, by running "make" multiple times. There seems to be a dependency problem. I had to run it 4 times to get everything as expected. Maybe that helps.