https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68347
--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- > I'm not sure if this can affect something, but I was using tmux on top > of ssh session... Can you try again without tmx? I am not that familiar with sequences such as "^[[01;31m^[[K^[[m^[[K", but I associate them to output "styles" to the terminal. The file kind.h is generated by /bin/sh ../../../work/libgfortran/mk-kinds-h.sh '/opt/gcc/build_w/./gcc/gfortran -B/opt/gcc/build_w/./gcc/ -B/opt/gcc/gcc6w/x86_64-apple-darwin14.5.0/bin/ -B/opt/gcc/gcc6w/x86_64-apple-darwin14.5.0/lib/ -isystem /opt/gcc/gcc6w/x86_64-apple-darwin14.5.0/include -isystem /opt/gcc/gcc6w/x86_64-apple-darwin14.5.0/sys-include -I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring -g -O2' > kinds.h || rm kinds.h where /opt/gcc/build_w , /opt/gcc/work, and /opt/gcc/gcc6w are respectively my build, source, and install directories. What is the output of /bin/sh /opt/gcc/work/libgfortran/mk-kinds-h.sh '/opt/gcc/build_w/gcc/gfortran -B/opt/gcc/build_w/gcc/ -B/opt/gcc/gcc6w/x86_64-apple-darwin14.5.0/bin/ -B/opt/gcc/gcc6w/x86_64-apple-darwin14.5.0/lib/ -I/opt/gcc/build_w/x86_64-apple-darwin14.5.0/libgfortran -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring -g -O2' (with suitable replacements of /opt/gcc/work/ and /opt/gcc/build_w).