Compile error region flash overflow

When I try to compile ArduPilot 3.9.0 I get:

c:/Users/JACK/Documents/GitHub/sitl-debug/ardupilot/modules/PX4Firmware/Build/ section .text' will not fit in regionflash’
c:\pixhawk_toolchain\toolchain\bin\arm-none-eabi-ld.exe: region `flash’ overflowed by 10392 bytes


When I try to compile ArduPilot 3.9.1 I get:

make[3]: *** No rule to make target c:/Users/JACK/Documents/GitHub/sitl-debug/ardupilot/libraries/AP_Notify/NavioLED_I2C.h', needed bylibraries/AP_Notify/AP_Notify.cpp.o’. Stop.
make[2]: *** [/c/Users/JACK/Documents/GitHub/sitl-debug/ardupilot/modules/PX4Firmware/Build/] Error 2
make[1]: *** [/c/Users/JACK/Documents/GitHub/sitl-debug/ardupilot/modules/PX4Firmware/Build/] Error 2
make: *** [px4-v2] Error 2

So I guess the makefile must contain some error…

I’m working with a fresh install of px4 toolchain and compiling with eclipse on windows and a fresh clone of the ardupilot repository.

Migratin to Ubuntu 18.04 solved my problems.