Multiple compilation errors that | think may be linked to the board/compiler

I’m recreating a code i found on the internet for a School Project and I keep getting certain compiler errors

The Errors:

Arduino: 1.8.6 (Windows 10), Board: “Arduino Leonardo”

C:\Users\Mason\Documents\Arduino\libraries\NewliquidCrystal\LiquidCrystal_I2C.cpp: In member function ‘write4bits.constprop’:

C:\Users\Mason\Documents\Arduino\libraries\NewliquidCrystal\LiquidCrystal_I2C.cpp:283:1: internal compiler error: Segmentation fault

}

^

Please submit a full bug report,

with preprocessed source if appropriate.

See http://gcc.gnu.org/bugs.html for instructions.

lto-wrapper.exe: fatal error: C:\Users\Mason\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\5.4.0-atmel3.6.1-arduino2/bin/avr-gcc returned 1 exit status

compilation terminated.

c:/users/mason/appdata/local/arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2/bin/…/lib/gcc/avr/5.4.0/…/…/…/…/avr/bin/ld.exe: error: lto-wrapper failed

collect2.exe: error: ld returned 1 exit status

Using library Adafruit-MCP23017-Arduino-Library-master at version 1.0.3 in folder: C:\Users\Mason\Documents\Arduino\libraries\Adafruit-MCP23017-Arduino-Library-master
Using library Wire at version 1.0 in folder: D:\Arduino\hardware\arduino\avr\libraries\Wire
Using library NewliquidCrystal in folder: C:\Users\Mason\Documents\Arduino\libraries\NewliquidCrystal (legacy)
exit status 1
Error compiling for board Arduino Leonardo.

Here is the link to the Instructables page of the project if that is any help:

The person who posted the page is using a Arduino UNO and I’m using the Leonardo which could also be a problem

Please submit a full bug report,

with preprocessed source if appropriate.

See http://gcc.gnu.org/bugs.html for instructions.

AWOL:

Website requires an account to file a bug report and account creation is restricted

So, post the preprocessed source like it asks, and see if anyone here can help.

Posting an error message helps no-one.

It appears to be an issue with the DESTRUCTABLE code ...

If using the examples from the libraries they compile just fine.
I used that ADAFRUIT MCP library gathered via Library Manager, but there are others so you might want to avoid those.

The error is specific to board manager v1.6.23. You need to downgrade that to a lower version.

Unfortunately that's not possible in IDE 1.8.6, so you also need another IDE.

Known to work
IDE 1.8.5, BM 1.6.20
IDE 1.8.7, BM 1.6.21

For the first one, you need to upgrade BM to 1.6.21 if you use 2018 model original nanos.