Comiler error using Nano 33 BLE Rev2 and arduino-cli

Hi Arduino-Community :wave: I am just a hobbyist but I can usually figure these things out. This time tho... I can find very little information – none useful – on this error and Arduino(-cli). Apparently it was a known error with gcc some versions ago, but shouldn't be a problem with current versions. Anyhow, this is the error I'm getting, even just with the blink sketch:

/home/hanser/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/arm-none-eabi/include/c++/7.2.1/limits:1599:7: internal compiler error: Illegal instruction
       min() _GLIBCXX_USE_NOEXCEPT { return __FLT_MIN__; }

Sorry, if I'm missing something completely obvious. Like I said, I'm a hobbyist and half the time I luck into getting things to work. Am I doing something wrong with arduino-cli? I kinda feel the mbed_nano core wouldn't be this broken that not even the blink sketch compiles...