SPI.h and Wire.h not found for gd32v Arduino framework

Good morning

Have a tiny Longan Nano board here based on the GD32V RISC-V…

PlatformIO lists that for example the MAX31855 Adafruit library is compatible with this platform…
but when compiling it complains that it can’t find SPI.h and Wire.h…

Processing sipeed-longan-nano (platform: gd32v; board: sipeed-longan-nano; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: sipeed-longan-nano.html
PLATFORM: GigaDevice GD32V 1.1.2 > Sipeed Longan Nano
HARDWARE: GD32VF103CBT6 108MHz, 32KB RAM, 128KB Flash
DEBUG: Current (sipeed-rv-debugger) External (altera-usb-blaster, gd-link, jlink, rv-link, sipeed-rv-debugger, um232h)
PACKAGES: 
 - framework-arduino-gd32v 0.1.1 
 - toolchain-gd32v 9.2.0
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Looking for SPI library in registry
Warning! Library `{'name': 'SPI', 'requirements': None}` has not been found in PlatformIO Registry.
You can ignore this message, if `{'name': 'SPI', 'requirements': None}` is a built-in library (included in framework, SDK). E.g., SPI, Wire, etc.
Looking for Wire library in registry
Warning! Library `{'name': 'Wire', 'requirements': None}` has not been found in PlatformIO Registry.
You can ignore this message, if `{'name': 'Wire', 'requirements': None}` is a built-in library (included in framework, SDK). E.g., SPI, Wire, etc.
Found 15 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <Adafruit MAX31855 library> 1.1.1
|   |-- <Adafruit BusIO> 1.2.6
|   |-- <LiquidCrystal> 1.5.0
Building in release mode
Compiling .pio/build/sipeed-longan-nano/src/main.cpp.o
Compiling .pio/build/sipeed-longan-nano/liba9f/Adafruit BusIO_ID6214/Adafruit_BusIO_Register.cpp.o
Compiling .pio/build/sipeed-longan-nano/liba9f/Adafruit BusIO_ID6214/Adafruit_I2CDevice.cpp.o
Compiling .pio/build/sipeed-longan-nano/liba9f/Adafruit BusIO_ID6214/Adafruit_SPIDevice.cpp.o
In file included from .pio/libdeps/sipeed-longan-nano/Adafruit BusIO_ID6214/Adafruit_BusIO_Register.h:1,
                 from .pio/libdeps/sipeed-longan-nano/Adafruit BusIO_ID6214/Adafruit_BusIO_Register.cpp:1:
.pio/libdeps/sipeed-longan-nano/Adafruit BusIO_ID6214/Adafruit_I2CDevice.h:1:10: fatal error: Wire.h: No such file or directory

**************************************************************
* Looking for Wire.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:Wire.h"
* Web  > https://platformio.org/lib/search?query=header:Wire.h
*
**************************************************************

    1 | #include <Wire.h>
      |          ^~~~~~~~
compilation terminated.

So are no Arduino libraries usable which depend on SPI or Wire with the GD32V platform?

thanks in advance

That is an unfortunate side effect of Adafruit specifying architectures=* in their library manifest, indicating that their library is compatible with ALL architectures rather than listing the architectures it is actually compatible with. :man_facepalming:

Since it looks like that device only needs SPI, and not I2C (Wire.h), so it might be worth trying to cobble together something using the sipeed/Longduino version of the platform since it seems that actually does have SPI support, and putting the GitHub - adafruit/Adafruit-MAX31855-library: Library for the Adafruit Thermocouple breakout with MAX31855K and Adafruit_SPIDevice.h/Adafruit_SPIDevice.cpp from GitHub - adafruit/Adafruit_BusIO: Arduino library for I2C & SPI abstractions into your libs folder (make sure you delete library.properties so it doesn’t get ideas about downloading any dependencies), and seeing if you can get it working in that custom, limited form.