platform-espressif32 icon indicating copy to clipboard operation
platform-espressif32 copied to clipboard

sh: 1: xtensa-lx106-elf-g++: not found *** Error 127 but file really exists

Open fran6120 opened this issue 3 years ago • 2 comments

What kind of issue is this?

  • [ ] Development Platform or Board. All issues (building, uploading, adding new boards, etc.) related to PlatformIO development platforms should be reported to appropriate repository related to your hardware https://github.com/topics/platformio-platform

  • [ ] PlatformIO Core. If you’ve found a bug, please provide an information below.


Configuration

Operating system:

Android through Termux

PlatformIO Version (platformio --version):

(esphome) ~ $ pio system info
--------------------------  -------------------------------------------------------
PlatformIO Core             5.2.4
Python                      3.10.1-final.0
System Type                 linux_armv7l
Platform                    Linux-3.4.0-g2c2be66-armv7l-with-libc
File System Encoding        utf-8
Locale Encoding             UTF-8
PlatformIO Core Directory   /data/data/com.termux/files/home/.platformio
PlatformIO Core Executable  /data/data/com.termux/files/home/esphome/bin/platformio
Python Executable           /data/data/com.termux/files/home/esphome/bin/python
Global Libraries            0
Development Platforms       6
Tools & Toolchains          23
--------------------------  -------------------------------------------------------

Description of problem

I am running Platformio core on a python env (named esphome) installed by pip install platformio

I can't compile for any platform except esp32. When i try for esp8266 or atmelavr i get this error.

For esp32 (examples incluided on platforms dir):

(esphome) ~ $  cd /data/data/com.termux/files/home/.platformio/platforms/espressif32/examples/arduino-wifiscan
(esphome) ~/.../examples/arduino-wifiscan $ pio run -v -e esp32dev
Processing esp32dev (platform: espressif32; framework: arduino; board: esp32dev; monitor_speed: 115200)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (3.3.2) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
 - framework-arduinoespressif32 3.10006.210326 (1.0.6)
 - tool-esptoolpy 1.30100.210531 (3.1.0)
 - toolchain-xtensa32 2.50200.97 (5.2.0)
xtensa-esp32-elf-g++ -o "/data/data/com.termux/files/home/.platformio/platforms/espressif32/examples/arduino-wifiscan/src/WiFiScan.ino.cpp" -x c++ -fpreprocessed -dD -E "/data/data/com.termux/files/usr/tmp/tmpf7ok3qn8"
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 28 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <WiFi> 1.0 (/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/libraries/WiFi)
Building in release mode
xtensa-esp32-elf-g++ -o .pio/build/esp32dev/src/WiFiScan.ino.cpp.o -c -fno-rtti -fno-exceptions -std=gnu++11 -Os -g3 -Wall -nostdlib -Wpointer-arith -Wno-error=unused-but-set-variable -Wno-error=unused-variable -mlongcalls -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wno-error=deprecated-declarations -Wno-error=unused-function -Wno-unused-parameter -Wno-sign-compare -fstack-protector -fexceptions -Werror=reorder -DPLATFORMIO=50204 -DARDUINO_ESP32_DEV -DESP32 -DESP_PLATFORM -DF_CPU=240000000L -DHAVE_CONFIG_H -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DARDUINO=10805 -DARDUINO_ARCH_ESP32 -DARDUINO_VARIANT=\"esp32\" "-DARDUINO_BOARD=\"Espressif ESP32 Dev Module\"" -Iinclude -Isrc -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/config -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/app_trace -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/app_update -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/asio -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/bootloader_support -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/bt -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/coap -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/console -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/driver -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/efuse -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/esp-tls -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/esp32 -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/esp_adc_cal -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/esp_event -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/esp_http_client -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/esp_http_server -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/esp_https_ota -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/esp_https_server -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/esp_ringbuf -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/esp_websocket_client -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/espcoredump -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/ethernet -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/expat -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/fatfs -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/freemodbus -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/heap -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/idf_test -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/jsmn -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/json -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/libsodium -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/log -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/lwip -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/mbedtls -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/mdns -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/micro-ecc -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/mqtt -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/newlib -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/nghttp -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/nvs_flash -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/openssl -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/protobuf-c -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/protocomm -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/pthread -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/sdmmc -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/smartconfig_ack -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/soc -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/spi_flash -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/spiffs -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/tcp_transport -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/tcpip_adapter -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/ulp -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/unity -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/vfs -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/wear_levelling -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/wifi_provisioning -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/wpa_supplicant -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/xtensa-debug-module -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/esp-face -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/esp32-camera -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/esp-face -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/fb_gfx -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/cores/esp32 -I/data/data/com.termux/files/home/.platformio/packages/framework-arduinoespressif32/variants/esp32 src/WiFiScan.ino.cpp
<lambda>(["checkprogsize"], [".pio/build/esp32dev/firmware.elf"])
MethodWrapper(["checkprogsize"], [".pio/build/esp32dev/firmware.elf"])
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [=         ]  11.6% (used 37852 bytes from 327680 bytes)
Flash: [=====     ]  48.7% (used 638242 bytes from 1310720 bytes)
.pio/build/esp32dev/firmware.elf  :
section                                                                           size         addr
.rtc.text                                                                            0   1074528256
.rtc.dummy                                                                           0   1073217536
.rtc.force_fast                                                                      0   1073217536
.rtc_noinit                                                                          0   1342177792
.rtc.force_slow                                                                      0   1342177792
.iram0.vectors                                                                    1024   1074266112
.iram0.text                                                                      60940   1074267136
.dram0.data                                                                      15132   1073470304
.noinit                                                                              0   1073485436
.dram0.bss                                                                       22720   1073485440
.flash.rodata                                                                   110020   1061158944
.flash.text                                                                     451126   1074593816
.debug_frame                                                                    126632            0
.debug_info                                                                    2230614            0
.debug_abbrev                                                                   263274            0
.debug_loc                                                                      871131            0
.debug_aranges                                                                   49088            0
.debug_ranges                                                                    59744            0
.debug_macro                                                                    188347            0
.debug_line                                                                    1089270            0
.debug_str                                                                     1076671            0
.comment                                                                           477            0
.xtensa.info                                                                        56            0
.xt.lit._ZNSt8functionIFv17system_event_id_t19system_event_info_tEEC5ERKS3_          0            0
.xt.lit._ZN15WiFiEventCbListC5ERKS_                                                  0            0
.xt.lit._ZNSt12_Destroy_auxILb0EE9__destroyIP15WiFiEventCbListEEvT_S4_               0            0
.xt.prop._ZNSt8functionIFv17system_event_id_t19system_event_info_tEEC5ERKS3_         0            0
.xt.prop._ZN15WiFiEventCbListC5ERKS_                                                 0            0
.xt.prop._ZNSt12_Destroy_auxILb0EE9__destroyIP15WiFiEventCbListEEvT_S4_             60            0
.xt.prop._ZNSt14_Function_baseD2Ev                                                  48            0
.xt.prop._ZNSt8functionIFv17system_event_id_t19system_event_info_tEEC2ERKS3_        84            0
.xt.prop._ZN15WiFiEventCbListC2ERKS_                                                36            0
.xt.lit._ZN14HardwareSerialD5Ev                                                      0            0
.xt.prop._ZN14HardwareSerialD5Ev                                                     0            0
.xt.prop._ZN6Stream9readBytesEPhj                                                   36            0
.xt.prop._ZN14HardwareSerialD2Ev                                                    36            0
.xt.prop._ZN14HardwareSerialD0Ev                                                    36            0
.xt.prop._ZTV14HardwareSerial                                                       12            0
.xt.lit._ZN9IPAddressD5Ev                                                            0            0
.xt.prop._ZN9IPAddressD5Ev                                                           0            0
.xt.prop._ZN9IPAddressD2Ev                                                          36            0
.xt.prop._ZN9IPAddressD0Ev                                                          36            0
.xt.prop._ZTV9IPAddress                                                             12            0
.xt.lit._ZN5Print5writeEPKc                                                          8            0
.xt.prop._ZN5Print5writeEPKc                                                        60            0
.xt.lit._ZN6String6setLenEi                                                          0            0
.xt.lit._ZN6String4initEv                                                            0            0
.xt.prop._ZN6String6setLenEi                                                        72            0
.xt.prop._ZN6String4initEv                                                          36            0
.xt.prop._ZNK6String3lenEv                                                          60            0
.xt.prop._ZNK6String7wbufferEv                                                      48            0
.xt.lit._ZN3nvs4ItemC5EhNS_8ItemTypeEhPKch                                           0            0
.xt.prop._ZN3nvs4ItemC5EhNS_8ItemTypeEhPKch                                          0            0
.xt.prop._ZN3nvs4ItemC2EhNS_8ItemTypeEhPKch                                        108            0
.xt.prop._ZTISt9exception                                                           12            0
.xt.prop._ZTISt9bad_alloc                                                           12            0
.xt.lit._ZNK9__gnu_cxx24__concurrence_lock_error4whatEv                              8            0
.xt.lit._ZNK9__gnu_cxx26__concurrence_unlock_error4whatEv                            8            0
.xt.lit._ZN9__gnu_cxx24__concurrence_lock_errorD5Ev                                  8            0
.xt.lit._ZN9__gnu_cxx26__concurrence_unlock_errorD5Ev                                8            0
.xt.lit._ZN9__gnu_cxx7__mutex4lockEv                                                 8            0
.xt.lit._ZN9__gnu_cxx13__scoped_lockD5Ev                                             8            0
.xt.prop._ZNK9__gnu_cxx24__concurrence_lock_error4whatEv                            48            0
.xt.prop._ZNK9__gnu_cxx26__concurrence_unlock_error4whatEv                          48            0
.xt.prop._ZN9__gnu_cxx24__concurrence_lock_errorD5Ev                                12            0
.xt.prop._ZN9__gnu_cxx26__concurrence_unlock_errorD5Ev                              12            0
.xt.prop._ZN9__gnu_cxx7__mutex4lockEv                                               60            0
.xt.prop._ZN9__gnu_cxx13__scoped_lockD5Ev                                           12            0
.xt.prop._ZN9__gnu_cxx24__concurrence_lock_errorD2Ev                                36            0
.xt.prop._ZN9__gnu_cxx26__concurrence_unlock_errorD2Ev                              36            0
.xt.prop._ZN9__gnu_cxx24__concurrence_lock_errorD0Ev                                36            0
.xt.prop._ZN9__gnu_cxx26__concurrence_unlock_errorD0Ev                              36            0
.xt.prop._ZN9__gnu_cxx13__scoped_lockD2Ev                                           72            0
.xt.prop._ZTIN9__gnu_cxx24__concurrence_lock_errorE                                 12            0
.xt.prop._ZTIN9__gnu_cxx26__concurrence_unlock_errorE                               12            0
.xt.prop._ZTVN9__gnu_cxx24__concurrence_lock_errorE                                 12            0
.xt.prop._ZTVN9__gnu_cxx26__concurrence_unlock_errorE                               12            0
.xt.prop._ZTVN10__cxxabiv120__si_class_type_infoE                                   12            0
.xt.prop._ZTVSt9bad_alloc                                                           12            0
.xt.prop._ZTVN10__cxxabiv117__class_type_infoE                                      12            0
Total                                                                          6617654
======================================================================================== [SUCCESS] Took 11.43 seconds ========================================================================================

Environment     Status    Duration
--------------  --------  ------------
esp32dev        SUCCESS   00:00:11.427
esp wrover kit  IGNORED
espea32         IGNORED
esp320          IGNORED
========================================================================================= 1 succeeded in 00:00:11.427 =========================================================================================

For esp8266 (examples incluided on platforms dir):

(esphome) ~ $ cd /data/data/com.termux/files/home/.platformio/platforms/espressif8266/examples/arduino-wifiscan
(esphome) ~/.../examples/arduino-wifiscan $ pio run -v -e esp01
Processing esp01 (platform: espressif8266; framework: arduino; board: esp01)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp01.html
PLATFORM: Espressif 8266 (2.6.3) > Espressif Generic ESP8266 ESP-01 512k
HARDWARE: ESP8266 80MHz, 80KB RAM, 512KB Flash
PACKAGES:
 - framework-arduinoespressif8266 3.20704.0 (2.7.4)
 - tool-esptool 1.413.0 (4.13)
 - tool-esptoolpy 1.30000.201119 (3.0.0)
 - toolchain-xtensa 2.40802.200502 (4.8.2)
xtensa-lx106-elf-g++ -o "/data/data/com.termux/files/home/.platformio/platforms/espressif8266/examples/arduino-wifiscan/src/WiFiScan.ino.cpp" -x c++ -fpreprocessed -dD -E "/data/data/com.termux/files/usr/tmp/tmpenukircp"
sh: 1: xtensa-lx106-elf-g++: not found
*** Error 127
AssertionError: :
  File "/data/data/com.termux/files/home/esphome/lib/python3.10/site-packages/platformio/builder/main.py", line 181:
    env.SConscript("$BUILD_SCRIPT")
  File "/data/data/com.termux/files/home/.platformio/packages/tool-scons/scons-local-4.3.0/SCons/Script/SConscript.py", line 597:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/data/data/com.termux/files/home/.platformio/packages/tool-scons/scons-local-4.3.0/SCons/Script/SConscript.py", line 285:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "/data/data/com.termux/files/home/.platformio/platforms/espressif8266/builder/main.py", line 238:
    target_elf = env.BuildProgram()
  File "/data/data/com.termux/files/home/.platformio/packages/tool-scons/scons-local-4.3.0/SCons/Util.py", line 742:
    return self.method(*nargs, **kwargs)
  File "/data/data/com.termux/files/home/esphome/lib/python3.10/site-packages/platformio/builder/tools/platformio.py", line 61:
    env.ProcessProgramDeps()
  File "/data/data/com.termux/files/home/.platformio/packages/tool-scons/scons-local-4.3.0/SCons/Util.py", line 742:
    return self.method(*nargs, **kwargs)
  File "/data/data/com.termux/files/home/esphome/lib/python3.10/site-packages/platformio/builder/tools/platformio.py", line 128:
    env.BuildFrameworks(env.get("PIOFRAMEWORK"))
  File "/data/data/com.termux/files/home/.platformio/packages/tool-scons/scons-local-4.3.0/SCons/Util.py", line 742:
    return self.method(*nargs, **kwargs)
  File "/data/data/com.termux/files/home/esphome/lib/python3.10/site-packages/platformio/builder/tools/platformio.py", line 340:
    env.ConvertInoToCpp()
  File "/data/data/com.termux/files/home/.platformio/packages/tool-scons/scons-local-4.3.0/SCons/Util.py", line 742:
    return self.method(*nargs, **kwargs)
  File "/data/data/com.termux/files/home/esphome/lib/python3.10/site-packages/platformio/builder/tools/piomisc.py", line 240:
    out_file = c.convert(ino_nodes)
  File "/data/data/com.termux/files/home/esphome/lib/python3.10/site-packages/platformio/builder/tools/piomisc.py", line 92:
    return self.process(contents)
  File "/data/data/com.termux/files/home/esphome/lib/python3.10/site-packages/platformio/builder/tools/piomisc.py", line 113:
    assert self._gcc_preprocess(contents, out_file)
========================================================================================= [FAILED] Took 2.45 seconds =========================================================================================

Environment    Status    Duration
-------------  --------  ------------
esp01          FAILED    00:00:02.450
nodemcuv2      IGNORED
huzzah         IGNORED
thing          IGNORED
==================================================================================== 1 failed, 0 succeeded in 00:00:02.450 ====================================================================================

but xtensa-lx106-elf-g++ really exist

(esphome) ~ $ find /data/data/com.termux/files/home/.platformio/packages -name xtensa-lx106-elf-g++
/data/data/com.termux/files/home/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++

same for atmel avr:

(esphome) ~/.../examples/arduino-wifiscan $ cd /data/data/com.termux/files/home/.platformio/platforms/atmelavr/examples/arduino-blink
(esphome) ~/.../examples/arduino-blink $ pio run -v -e uno
Processing uno (platform: atmelavr; framework: arduino; board: uno)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/uno.html
PLATFORM: Atmel AVR (3.4.0) > Arduino Uno
HARDWARE: ATMEGA328P 16MHz, 2KB RAM, 31.50KB Flash
DEBUG: Current (avr-stub) On-board (avr-stub, simavr)
PACKAGES:
 - framework-arduino-avr 5.1.0
 - toolchain-atmelavr 1.70300.191015 (7.3.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 5 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
avr-gcc-ar rc .pio/build/uno/libFrameworkArduinoVariant.a
avr-g++ -o .pio/build/uno/src/Blink.cpp.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega328p -DPLATFORMIO=50204 -DARDUINO_AVR_UNO -DF_CPU=160000sh: 1: avr-gcc-ar: not found
00L -DARDUINO_AR*** [.pio/build/uno/libFrameworkArduinoVariant.a] Error 127
CH_AVR -DARDUINO=10808 -Iinclude -Isrc -I/data/data/com.termux/files/home/.platformio/packages/framework-arduino-avr/cores/arduino -I/data/data/com.termux/files/home/.platformio/packages/framework-arduino-avr/variants/standard src/Blink.cpp
sh: 1: avr-g++: not found
*** [.pio/build/uno/src/Blink.cpp.o] Error 127
========================================================================================= [FAILED] Took 2.91 seconds =========================================================================================

Environment     Status    Duration
--------------  --------  ------------
uno             FAILED    00:00:02.906
lightblue-bean  IGNORED
attiny13        IGNORED
digispark-pro   IGNORED
digispark-tiny  IGNORED
dwenguino       IGNORED
ATmega16        IGNORED
ATmega48        IGNORED
AT90CAN64       IGNORED
ATmega324PB     IGNORED
ATmega328PB     IGNORED
nibo2           IGNORED
panStampAVR     IGNORED
attiny828       IGNORED
attiny441       IGNORED
ATmega8515      IGNORED
prusa_rambo     IGNORED
==================================================================================== 1 failed, 0 succeeded in 00:00:02.906 ====================================================================================
(esphome) ~ $ find /data/data/com.termux/files/home/.platformio/packages -name avr-gcc-ar
/data/data/com.termux/files/home/.platformio/packages/toolchain-atmelavr/bin/avr-gcc-ar
(esphome) ~ $ find /data/data/com.termux/files/home/.platformio/packages -name avr-g++
/data/data/com.termux/files/home/.platformio/packages/toolchain-atmelavr/bin/avr-g++

Additional info

I have try with clean installs many times even using and not using python env but always get same error.

Here there are people that could fix that error moving theirs system from armv7l to aarch64 and vice versa.

#https://github.com/esphome/issues/issues/1386

I am not a developer, only aficionated so sorry if this issue souldnt be here

Thanks

fran6120 avatar Jan 04 '22 15:01 fran6120

Y have similar but diferent problem...seams that platformio in termux dont find things what needed but surprisely install tho. "export PATH=$PATH:$HOME/.platformio/penv/bin" Apeal to you like you can have a diferent approach. Trying to compile esp8266 and not much more... and the same in ubuntu flawesly. WITH that command the lost path of xtensa seems found, but the .pio/build folder.. temporal folder for compiling lose now... Anyway.. been gone from changing files: talking of a armv7 compatibily, aymlinks somewhere with new warnings of double symlinks and not working.

The latter days been rushy... platormio later version build with get-platformio.py, and the repo pip version behave all alike after adding command "" to .bashrc.

Any comments welcome.

DMaisterra avatar Mar 29 '22 20:03 DMaisterra

This issue has been automatically marked as stale because it has not had recent activity. Please provide more details or it will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 31 '22 20:07 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. Please provide more details or it will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 08 '22 22:09 stale[bot]