The following commands were used to build gcc-8.3.0: export CFLAGS_FOR_TARGET="-g -fdata-sections -ffunction-sections -Wl,--gc-sections -save-temps -fverbose-asm" ./gcc/configure --target=myarch-elf --prefix=/opt/myarch-toolchain --with-newlib --disable-libssp --enable-lto make && sudo make install Note that building GCC with C-only and building Newlib succeeded; here I was rebuilding GCC without --enable-language=c . ../../../gcc/libbacktrace/elf.c: In function ‘elf_zlib_inflate’: ../../../gcc/libbacktrace/elf.c:2041:14: error: this statement may fall through [-Werror=implicit-fallthrough=] *plen++ = prev; ~~~~~~~~^~~~~~ ../../../gcc/libbacktrace/elf.c:2043:4: note: here case 5: ^~~~ ../../../gcc/libbacktrace/elf.c:2044:14: error: this statement may fall through [-Werror=implicit-fallthrough=] *plen++ = prev; ~~~~~~~~^~~~~~ ../../../gcc/libbacktrace/elf.c:2046:4: note: here case 4: ^~~~ ../../../gcc/libbacktrace/elf.c:2075:14: error: this statement may fall through [-Werror=implicit-fallthrough=] *plen++ = 0; ~~~~~~~~^~~ ../../../gcc/libbacktrace/elf.c:2077:4: note: here case 9: ^~~~ ../../../gcc/libbacktrace/elf.c:2078:14: error: this statement may fall through [-Werror=implicit-fallthrough=] *plen++ = 0; ~~~~~~~~^~~ ../../../gcc/libbacktrace/elf.c:2080:4: note: here case 8: ^~~~ ../../../gcc/libbacktrace/elf.c:2081:14: error: this statement may fall through [-Werror=implicit-fallthrough=] *plen++ = 0; ~~~~~~~~^~~ ../../../gcc/libbacktrace/elf.c:2083:4: note: here case 7: ^~~~ ../../../gcc/libbacktrace/elf.c:2084:14: error: this statement may fall through [-Werror=implicit-fallthrough=] *plen++ = 0; ~~~~~~~~^~~ ../../../gcc/libbacktrace/elf.c:2086:4: note: here case 6: ^~~~ ../../../gcc/libbacktrace/elf.c:2087:14: error: this statement may fall through [-Werror=implicit-fallthrough=] *plen++ = 0; ~~~~~~~~^~~ ../../../gcc/libbacktrace/elf.c:2089:4: note: here case 5: ^~~~ ../../../gcc/libbacktrace/elf.c:2090:14: error: this statement may fall through [-Werror=implicit-fallthrough=] *plen++ = 0; ~~~~~~~~^~~ ../../../gcc/libbacktrace/elf.c:2092:4: note: here case 4: ^~~~ cc1: all warnings being treated as errors Makefile:528: recipe for target 'elf.lo' failed make[3]: *** [elf.lo] Error 1