Exit Status 1 Error compiling for board Arduino/Genuino Mega or Mega 2560.

I have a CR-10S with a weird configuration from the factory. My CR-10S has an LCD touch screen, a MKS base 1.5 board. I am trying to install a BLTouch and update the firmware. Most of the CR-10S printers come with a Ramps 1.4 board. Thought this was a good idea but now regret ever purchasing it because Creality doesn't even admit it exists now. Trying to install updated firmware with the MKS board,Can't get past the following error(s)

Any help would be greatly appreciated. Thank you

Code and Error files attached

Code.txt (71.6 KB)

Error.txt (68 KB)

Have a look at GCC compiler segmentation fault.

Thanks,

But, I have no idea how that relates to my issue. Far too inexperienced.

That's why I directed you to that possibe solution.

From your error.txt

C:\Users\TuT\AppData\Local\Temp\arduino_build_901835\sketch\Marlin_main.cpp:2190:3: internal compiler error: Segmentation fault

Thanks, that seemed to do the trick. Bug? who would of thought, certainly not me. BLTouch doesn't work, but that's another post.