thunderace / Esp8266-Arduino-Makefile

Makefile to build arduino code for ESP8266/ESP32x under linux (tested on debian X64)
34 stars 20 forks source link

xtensa-lx106-elf-gcc: Command not found #9

Closed mat-cab closed 7 years ago

mat-cab commented 7 years ago

After a nominal install on Debian, I get the following error make: /home/me/Esp8266-Arduino-Makefile/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc : command not found

However when i look in the /home/me/Esp8266-Arduino-Makefile/xtensa-lx106-elf/bin directory, the file is present, with appropriate permissions (-rwxr-xr-x). Manual try to execute the (./xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc) fails with the same error (command not found).

Manually installing xtensa-lx106-elf-gcc (through esp-open-sdk) and esptool (through esptool-ck) and modifying the Makefile script to point to the appropriate location fixes that...

thunderace commented 7 years ago

Strange... have you use the right install script (install-x86_64-pc-linux-gnu.sh for linux 64 or install-i686-pc-linux-gnu.sh for linux 32)?

thunderace commented 7 years ago

Hello, I think that your problem is elsewhere not related to the makefile

Can you run this command : make print-CC and make print-LD

Regards.

2017-07-19 13:50 GMT+02:00 Mikhail Dronov notifications@github.com:

@thunderace https://github.com/thunderace install script changed to esp8266-install.sh, I also have this problem building my docker image for this purposes.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/thunderace/Esp8266-Arduino-Makefile/issues/9#issuecomment-316361089, or mute the thread https://github.com/notifications/unsubscribe-auth/ABO5uZ9AXCR4DDzmGetXroyqM67zsClzks5sPe2IgaJpZM4OSL4Y .

dronov commented 7 years ago

@thunderace hey and thanks for your work. With new script I have this error on Debian (while building docker container) and Ubuntu (on host machine) at installation

  inflating: esp8266-2.3.0/variants/wifinfo/pins_arduino.h  
   creating: esp8266-2.3.0/variants/wifio/
  inflating: esp8266-2.3.0/variants/wifio/pins_arduino.h  
  inflating: esp8266-2.3.0/variants/wifio/WifioProtocol.h  
  inflating: esp8266-2.3.0/variants/wifio/WifioWiring.cpp  
Platform: x86_64-pc-linux-gnu
Traceback (most recent call last):
  File "./get.py", line 113, in <module>
    tools_to_download = load_tools_list('../package/package_esp8266com_index.template.json', identify_platform())
  File "./get.py", line 87, in load_tools_list
    tools_info = json.load(open(filename))['packages'][0]['tools']
IOError: [Errno 2] No such file or directory: '../package/package_esp8266com_index.template.json'

Compiler did not downloaded. If I checked out to previous (e.g. December) commits and x86_64 script -- it works well.

dronov commented 7 years ago

@thunderace here it is my work-in-progress Dockerfile: https://paste.gnome.org/py5dzf7cm with old script https://paste.gnome.org/plo1twfd0 with new script

UPD: package folder did not appeared when esp8266-2.3.0 archive downloaded... In original repository the folder exists. :\ And after that the compiler was found! :)

thunderace commented 7 years ago

you are right, there is no package directory in the 2.3.0 archive. It's strange because in my repository, i have it in my old installation (06/23/2016).

The last commit fix this. Update your repository and run esp8266-install.sh again

dronov commented 7 years ago

@thunderace check this out please :) https://github.com/thunderace/Esp8266-Arduino-Makefile/pull/10

thunderace commented 7 years ago

thx dronov. Fixed and PR #10 closed

thunderace commented 7 years ago

I have no problem with your second dockerfile (https://paste.gnome.org/plo1twfd0)...

dronov commented 7 years ago

@thunderace yeah, it works. Thanks a lot.

mat-cab commented 7 years ago

The issue can be closed, I think I used x64 files instead of x32.