nrf_soc.h in these distributions reference symbols like SWI2_IRQn which aren't defined unless the build includes nrf51_to_nrf52.h, something I try to avoid when building for an NRF52 device.
The patch is straightfoward; it'd be nice if this made it into a future release.
Thanks.