ESP32 toolchain broken??
See original GitHub issueI run an update today with platformio update
and if I remember correct it updated the toolchain for ESP32. After the update all builds fail (even the blink example).
Error messages:
platformio run
[11/26/17 18:41:32] Processing esp32dev (platform: espressif32; board: esp32dev; framework: arduino)
Verbose mode can be enabled via `-v, --verbose` option
Collected 26 compatible libraries
Looking for dependencies...
No dependencies
Compiling .pioenvs\esp32dev\FrameworkArduino\Esp.o
Compiling .pioenvs\esp32dev\FrameworkArduino\esp32-hal-gpio.o
Compiling .pioenvs\esp32dev\FrameworkArduino\esp32-hal-i2c.o
Compiling .pioenvs\esp32dev\FrameworkArduino\esp32-hal-ledc.o
Compiling .pioenvs\esp32dev\FrameworkArduino\esp32-hal-matrix.o
Compiling .pioenvs\esp32dev\FrameworkArduino\esp32-hal-misc.o
Compiling .pioenvs\esp32dev\FrameworkArduino\esp32-hal-sigmadelta.o
Compiling .pioenvs\esp32dev\FrameworkArduino\esp32-hal-spi.o
In file included from c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr.h
:148:0,
from c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\ext\atomicity.h:35,
from c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\memory:73,
from C:\Users\beegee\.platformio\packages\framework-arduinoespressif32\cores\esp32\Esp.cpp:25:
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h:47:9: error:
'pthread_t' does not name a type
typedef pthread_t __gthread_t;
^
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h:48:9: error:
'pthread_key_t' does not name a type
typedef pthread_key_t __gthread_key_t;
^
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h:48:9: error:
'pthread_key_t' does not name a type
typedef pthread_key_t __gthread_key_t;
^
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h:49:9: error:
'pthread_once_t' does not name a type
typedef pthread_once_t __gthread_once_t;
^
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h:50:9: error:
'pthread_mutex_t' does not name a type
typedef pthread_mutex_t __gthread_mutex_t;
^
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h:51:9: error:
'pthread_mutex_t' does not name a type
typedef pthread_mutex_t __gthread_recursive_mutex_t;
^
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h:52:9: error:
'pthread_cond_t' does not name a type
typedef pthread_cond_t __gthread_cond_t;
^
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h:659:19: error
: '__gthread_create' declared as an 'inline' variable
__gthread_create (__gthread_t *__threadid, void *(*__func) (void*),
^
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h:659:19: error
: '__gthread_t' was not declared in this scope
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h:659:32: error
: '__threadid' was not declared in this scope
__gthread_create (__gthread_t *__threadid, void *(*__func) (void*),
^
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h:659:44: error
: expected primary-expression before 'void'
__gthread_create (__gthread_t *__threadid, void *(*__func) (void*),
^
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h:660:5: error:
expected primary-expression before 'void'
void *__args)
^
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h:660:17: error
: expression list treated as compound expression in initializer [-fpermissive]
void *__args)
^
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h:661:1: error:
expected ',' or ';' before '{' token
{
^
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h:666:17: error
: '__gthread_join' declared as an 'inline' variable
__gthread_join (__gthread_t __threadid, void **__value_ptr)
^
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h:666:17: error
: '__gthread_t' was not declared in this scope
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h:666:41: error
: expected primary-expression before 'void'
__gthread_join (__gthread_t __threadid, void **__value_ptr)
^
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h:666:59: error
: expression list treated as compound expression in initializer [-fpermissive]
__gthread_join (__gthread_t __threadid, void **__value_ptr)
^
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h:667:1: error:
expected ',' or ';' before '{' token
{
^
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h:672:19: error
: '__gthread_detach' declared as an 'inline' variable
__gthread_detach (__gthread_t __threadid)
^
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h:672:19: error
: '__gthread_t' was not declared in this scope
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h:673:1: error:
expected ',' or ';' before '{' token
{
^
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h:678:18: error
: '__gthread_equal' declared as an 'inline' variable
__gthread_equal (__gthread_t __t1, __gthread_t __t2)
^
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h:678:18: error
: '__gthread_t' was not declared in this scope
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h:678:36: error
: '__gthread_t' was not declared in this scope
__gthread_equal (__gthread_t __t1, __gthread_t __t2)
^
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h:678:52: error
: expression list treated as compound expression in initializer [-fpermissive]
__gthread_equal (__gthread_t __t1, __gthread_t __t2)
^
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h:679:1: error:
expected ',' or ';' before '{' token
{
^
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h:683:15: error
: '__gthread_t' does not name a type
static inline __gthread_t
^
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h: In function
'int __gthread_yield()':
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h:692:33: error
: 'sched_yield' was not declared in this scope
return __gthrw_(sched_yield) ();
^
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h: At global sc
ope:
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h:696:17: error
: '__gthread_once' declared as an 'inline' variable
__gthread_once (__gthread_once_t *__once, void (*__func) (void))
^
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h:696:17: error
: '__gthread_once_t' was not declared in this scope
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h:696:35: error
: '__once' was not declared in this scope
__gthread_once (__gthread_once_t *__once, void (*__func) (void))
^
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h:696:50: error
: '__func' was not declared in this scope
__gthread_once (__gthread_once_t *__once, void (*__func) (void))
^
c:\users\beegee\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits\gthr-default.h:696:59: error
....
Platform and library version:
PS B:\Projects\ESP32\ESP32-Weatherstation - EMQ> platformio update
Updating tool-scons @ 3.20501.2 [Up-to-date]
Updating tool-unity @ 1.20302.1 [Up-to-date]
Updating pysite-pioplus @ 0.4.2 [Up-to-date]
Updating contrib-piohome @ 0.3.2 [Up-to-date]
Updating tool-pioplus @ 0.10.14 [Up-to-date]
Platform Manager
================
Platform Espressif 32
--------
Updating espressif32 @ 0.10.0 [Up-to-date]
Updating tool-esptoolpy @ 1.20000.0 [Up-to-date]
Updating toolchain-xtensa32 @ 1.50200.1 [Up-to-date]
Updating framework-arduinoespressif32 @ 1.2.0 [Up-to-date]
Platform Espressif 32 (Stage)
--------
Updating espressif32 @ 0a02d44 [Up-to-date]
Updating tool-esptoolpy @ 1.20100.0 [Up-to-date]
Updating toolchain-xtensa32 @ 1.50200.1 [Up-to-date]
Updating framework-arduinoespressif32 @ 8eecfd2 [Up-to-date]
Platform Espressif 8266
--------
Updating espressif8266 @ 1.4.0 [Up-to-date]
Updating framework-arduinoespressif8266 @ 1.20300.1 [Up-to-date]
Updating tool-esptool @ 1.409.0 [Up-to-date]
Updating toolchain-xtensa @ 1.40802.0 [Up-to-date]
Platform Espressif 8266 (Stage)
--------
Updating espressif8266 @ a05b810 [Up-to-date]
Updating framework-arduinoespressif8266 @ 7b09ae5 [Up-to-date]
Updating tool-esptool @ 1.409.0 [Up-to-date]
Updating toolchain-xtensa @ 1.40802.0 [Up-to-date]
Library Manager
===============
Updating Adafruit DHT Unified @ 1.0.0 [Up-to-date]
Updating Adafruit TSL2561 @ 1.0.0 [Up-to-date]
Updating Adafruit Unified Sensor @ 1.0.2 [Up-to-date]
Updating ArduinoJson @ 5.11.2 [Up-to-date]
Updating DHT sensor library @ 1.3.0 [Up-to-date]
Updating MQTT @ 2.2.1 [Up-to-date]
Updating TFT_eSPI @ 0.17.11 [Up-to-date]
Updating Ticker-esp32 @ 1.0.0 [Up-to-date]
Updating Time @ 18ce15b202 [Up-to-date]
Updating WifiManager @ 0.12 [Up-to-date]
Updating esp8266FTPServer @ 97888b3 [Up-to-date]
PS B:\Projects\ESP32\ESP32-Weatherstation - EMQ>
PIO core version:
PS B:\Projects\ESP32\ESP32-Weatherstation - EMQ> platformio upgrade
You're up-to-date!
PlatformIO 3.5.0b6 is currently the newest version available.
PS B:\Projects\ESP32\ESP32-Weatherstation - EMQ>
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Issues: latest toolchain install on Windows - ESP32 Forum
I'm trying to get side-by-side stable and latest toolchains configured on my Windows 10 PC. I have stable working fine, in as much...
Read more >PlatformIO is Broken for any esp32!
I don't understand why but my platformIO is completely broken and i can't compile anything using the toolchain-xtensa32 .
Read more >ESP32-S2 build toolchain not working - ESPHome
Hi everyone, I'm pretty new to the ESP world and I just received a few lonlin S2 mini, and installed ESP Home add-on...
Read more >ESP32-IDF framework fails to compile on ARMv7 · Issue #3076
The problem Ever since updating to ESPHome 2022.2.x my ESP32-C3 fails ... /packages/toolchain-riscv32-esp/bin/riscv32-esp-elf-gcc -- broken ...
Read more >Espressif tool chain broken after macOS Monterey 12.3 beta 3 ...
After Monterey 12.3 beta 2 installed, the Espressif tool chain is broken. If you compile with platformIO you'll get the following error:
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you @ivankravets! I agree with @beegee-tokyo, great job!
No need for sorry. You are doing a great job. Do you ever sleep?
Thank you!