NRF_DRV_SPIS_INSTANCE(1) results in GCC Exits with code 1

First some general info:

* Compiler GCC 7.2.0 GDB 8.0.1

* VisualGDB 5.3R8 Build 1973

* Visual Studio 2017

* SDK 12.0

I try to build an application using the SPI slave. But I'm out of luck quite quick.

The steps I did:

1. Set the SPI Driver to slave in the embedit framework

2. Enable SPIS in the sdk_config.h file (eg #define SPIS_ENABLED 1)

3. Enable instance 1 as this is the only slave instance availible for the nRF51 series (eg #define SPIS1_ENABLED 1)

4. Include the header files:

#include "nrf_spis.h"
#include "nrf_drv_spis.h"

Now if I try to create an instance of the SPI slave with:

static const nrf_drv_spis_t m_spi_slave_1 = NRF_DRV_SPIS_INSTANCE(1);

I get the folowing error code:

"Error  Failed to compile LEDBlink.cpp. GCC exited with code 1 SPI_Slave C:\Program Files (x86)\Sysprogs\VisualGDB\MSBuild\Targets\gcc.targets 85"

What am I missing here. I did use the SPI master in the past without any problem. So I'm a little bit in the dark here why this time things dont seem to work. Any help is welkom.