Apple silicon M1 chip 'darwin_arm64' problem with xtensa32 toolchain

Hi, I have an Apple M1 computer, installed an Arm version of VS Code, try to run ESP32 with espidf example without success, however, the Arduino example ran just fine, shows the error message as following:

'platformio/toolchain-xtensa32 @ ~2.80400.0' requirements for your system 'darwin_arm64'"

and

--------------------------  ------------------------------------------
PlatformIO Core             5.1.0
Python                      3.9.1-final.0
System Type                 darwin_arm64
Platform                    macOS-11.1
File System Encoding        utf-8
Locale Encoding             UTF-8
PlatformIO Core Directory   /Users/lee/.platformio
PlatformIO Core Executable  /Users/lee/.platformio/penv/bin/platformio
Python Executable           /Users/lee/.platformio/penv/bin/python
Global Libraries            0
Development Platforms       2
Tools & Toolchains          6
--------------------------  ------------------------------------------

Does it have anything to do with the toolchain not compatible in arm structure?

That is weird, this says Darwin Arm64 and in the other instance where someone is running an M1 chip, PlatformIO declares it as darwin_x86_x64 (possibly through emulation) at Platform IDE for VSCode on Mac ARM/M1? - #21 by tecnico-solar-boat.

@ivankravets the Xtensa32 8.4.0 version seems to be missing / not yet declared compatible with darwin_arm64?

1 Like

@valeros, please help.

I’ve updated packages, @astate please try to run your project again.

It’s now working!

Although had to get around the cffi problem of the need to manually compile the rust (Homebrew shipped with the X86 version), and using

env CRYPTOGRAPHY_SUPPRESS_LINK_FLAGS=1 LDFLAGS="$(brew --prefix openssl@1.1)/lib/libssl.a $(brew --prefix openssl@1.1)/lib/libcrypto.a" CFLAGS="-I$(brew --prefix openssl@1.1)/include" pip install cryptography

to compile cryptography, afterward, everything works fine.

Thank you guys for the great work!

Also have add to note that I’m using the insider Arm version of the VS Code

Can be verified running on Apple silicon by open Activity Monitor

Screen Shot 2021-02-12 at 5.41.13 PM

The user from previous thread probably using the Intel version of the VSCode?