Could not find the package with 'SPI' requirements for your system 'linux_x86_64'

After upgrading PIO from a pretty old version, I’m getting this error when it tries to install the SPI library. The other libraries install just fine, but they are specified by github address rather than the library name in the PIO registry.
Here’s my platformio.ini.
Has the SPU library been removed from the PIO registry?

[platformio]
default_envs = esp32
build_dir = build/
src_dir = ./

[global]
lib_arduino_common = 
	SPI
	https://github.com/Bodmer/TFT_eSPI
	bblanchon/ArduinoJson

[env:esp32]
board_build.arduino.upstream_packages = no
platform_packages = 
	framework-arduinoespressif32 @ https://github.com/espressif/esp-idf.git#release/v5.1
platform = espressif32
framework = arduino
board = esp32dev
monitor_speed = 115200
upload_speed = 921600
lib_deps =
	${global.lib_arduino_common}

build_unflags = -std=gnu++11 -Os -std=c++11 -std=c++14 -std=gnu++14 -std=gnu++1y -std=c++1y
build_flags = 
	-std=gnu++2a ; gnu needed for 'typeof'
	-O2
	-fno-threadsafe-statics
	-DUSER_SETUP_LOADED=1
	-DILI9488_DRIVER=1
	-DTFT_MISO=17
	-DTFT_MOSI=2
	-DTFT_SCLK=15
	-DTFT_CS=5
	-DTFT_DC=19
	-DTFT_RST=4
	-DLOAD_FONT2=1
	-DSPI_FREQUENCY=24000000

This makes no sense. The ESP-IDF repo is not the Arduino-ESP32 repo, so it can’t be used as the source for the framework-arduinoespressif32 package.

Thank you. It used to work before, somehow (although probably not with the version 5). Is there any way to get the ESP32 Arduino support, but use the latest C++20-capable compiler?

Given toolchain-xtensa-esp32 is the used toolchain package, with the default-used version being 8.4.0, have you tried only upgrading that to GCC 12 by doing:

platform_packages = 
	toolchain-xtensa-esp32@12.2.0+20230208

?

The chances of that are nil. The ESP-IDF repo can’t supply Arduino-ESP32.

Branches or tags of Arduino-ESP32 are fine, e.g.,

  • https://github.com/espressif/arduino-esp32.git#idf-release/v4.4
  • https://github.com/espressif/arduino-esp32/releases/download/3.0.0-alpha2/esp32-3.0.0-alpha2.zip

But this would only upgrade the framework code, not the toolchain. (In some cases though, both a framework and toolchain update may be needed).

That worked perfectly, thank you very much!