I build code for a cortex-m0+ (samd21g) microcontroler with a custom toolchain on top of gcc-arm-none-eabi. I was trying to build with
cortex-m0+
samd21g
gcc-arm-none-eabi