Unfortunately no this is still not working for me, although now I get different errors:
make[2]: Entering directory '/home/drifter/dev/build-8.2.0/lto-plugin'
make all-am
make[3]: Entering directory '/home/drifter/dev/build-8.2.0/lto-plugin'
/bin/sh ./libtool --tag=CC --tag=disable-static --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../gcc-8.2.0+gm2-git-latest/gm2/gcc-versionno/lto-plugin -I../../gcc-8.2.0+gm2-git-latest/gm2/gcc-versionno/lto-plugin/../include -DHAVE_CONFIG_H -Wall -g -c -o lto-plugin.lo ../../gcc-8.2.0+gm2-git-latest/gm2/gcc-versionno/lto-plugin/lto-plugin.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../gcc-8.2.0+gm2-git-latest/gm2/gcc-versionno/lto-plugin -I../../gcc-8.2.0+gm2-git-latest/gm2/gcc-versionno/lto-plugin/../include -DHAVE_CONFIG_H -Wall -g -c ../../gcc-8.2.0+gm2-git-latest/gm2/gcc-versionno/lto-plugin/lto-plugin.c -fPIC -DPIC -o .libs/lto-plugin.o
/bin/sh ./libtool --tag=CC --tag=disable-static --mode=link gcc -Wall -g -Wc,-static-libgcc -module -bindir /home/drifter/opt/lib/gcc/x86_64-pc-linux-gnu/8.2.0 -Xcompiler '-static-libstdc++' -Xcompiler '-static-libgcc' -o
liblto_plugin.la -rpath /home/drifter/opt/lib/gcc/x86_64-pc-linux-gnu/8.2.0 lto-plugin.lo -Wc,../libiberty/pic/libiberty.a
libtool: link: gcc -shared -fPIC -DPIC .libs/lto-plugin.o -static-libgcc -static-libstdc++ -static-libgcc ../libiberty/pic/libiberty.a -Wl,-soname -Wl,liblto_plugin.so.0 -o .libs/liblto_plugin.so.0.0.0
libtool: link: (cd ".libs" && rm -f "liblto_plugin.so.0" && ln -s "liblto_plugin.so.0.0.0" "liblto_plugin.so.0")
libtool: link: (cd ".libs" && rm -f "liblto_plugin.so" && ln -s "liblto_plugin.so.0.0.0" "liblto_plugin.so")
libtool: link: ( cd ".libs" && rm -f "
liblto_plugin.la" && ln -s "../
liblto_plugin.la" "
liblto_plugin.la" )
libtool: install: /usr/bin/install -c .libs/liblto_plugin.so.0.0.0 /home/drifter/dev/build-8.2.0/lto-plugin/../gcc/liblto_plugin.so.0.0.0
libtool: install: (cd /home/drifter/dev/build-8.2.0/lto-plugin/../gcc && { ln -s -f liblto_plugin.so.0.0.0 liblto_plugin.so.0 || { rm -f liblto_plugin.so.0 && ln -s liblto_plugin.so.0.0.0 liblto_plugin.so.0; }; })
libtool: install: (cd /home/drifter/dev/build-8.2.0/lto-plugin/../gcc && { ln -s -f liblto_plugin.so.0.0.0 liblto_plugin.so || { rm -f liblto_plugin.so && ln -s liblto_plugin.so.0.0.0 liblto_plugin.so; }; })
libtool: install: /usr/bin/install -c .libs/liblto_plugin.lai /home/drifter/dev/build-8.2.0/lto-plugin/../gcc/
liblto_plugin.lalibtool: install: warning: remember to run `libtool --finish /home/drifter/opt/lib/gcc/x86_64-pc-linux-gnu/8.2.0'
make[3]: Leaving directory '/home/drifter/dev/build-8.2.0/lto-plugin'
make[2]: Leaving directory '/home/drifter/dev/build-8.2.0/lto-plugin'
Configuring in ./gcc
configure: loading cache ./config.cache
configure: error: `GMPLIBS' has changed since the previous run:
configure: former value: `-lmpc -lmpfr -lgmp'
configure: current value: `-L/home/drifter/dev/build-8.2.0/./gmp/.libs -L/home/drifter/dev/build-8.2.0/./mpfr/src/.libs -L/home/drifter/dev/build-8.2.0/./mpc/src/.libs -lmpc -lmpfr -lgmp'
configure: error: `GMPINC' has changed since the previous run:
configure: former value: `'
configure: current value: `-I/home/drifter/dev/build-8.2.0/./gmp -I/home/drifter/dev/gcc-8.2.0+gm2-git-latest/gm2/gcc-versionno/gmp -I/home/drifter/dev/build-8.2.0/./mpfr/src -I/home/drifter/dev/gcc-8.2.0+gm2-git-latest/gm2/gcc-versionno/mpfr/src -I/home/drifter/dev/gcc-8.2.0+gm2-git-latest/gm2/gcc-versionno/mpc/src '
configure: error: `ISLLIBS' has changed since the previous run:
configure: former value: `-lisl'
configure: current value: `-L/home/drifter/dev/build-8.2.0/./isl/.libs -lisl'
configure: error: `ISLINC' has changed since the previous run:
configure: former value: `'
configure: current value: `-I/home/drifter/dev/build-8.2.0/./isl/include -I/home/drifter/dev/gcc-8.2.0+gm2-git-latest/gm2/gcc-versionno/isl/include'
configure: error: in `/home/drifter/dev/build-8.2.0/gcc':
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm ./config.cache' and start over
make[1]: *** [Makefile:4256: configure-gcc] Error 1
make[1]: Leaving directory '/home/drifter/dev/build-8.2.0'
make: *** [Makefile:926: all] Error 2
I did run make distclean , re did configure and then make, but still get the above.