Greetings!
Since libtonc was updated to 1.4.5 (specifically this commit). The type tonc uses for s32/u32 has changed to using stdint.h types "int32_t"/"uint32_t" which is implemented as "long int" and "long unsigned int". This is from stdint.h from arm-none-eabi-gcc provided with devkitARM. My projects started to break after updating to the recent pacman upgrades.
I made a PR for grit here. Be nice to get this into the pacman releases to keep that ecosphere running good.