https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88856
--- Comment #3 from Andreas Krebbel <krebbel at gcc dot gnu.org> --- I've tried building scipy 1.1.0 from github on a Fedora installation. The build already uses -funroll-loops. But I couldn't reproduce the problem with the resulting binary. gcc version 8.0.1 20180324 Aurelien already tracked it down to a miscompilation of scipy/optimize/minpack/qrsolv.f This source file appears to contain just a single function (qrsolv) which is not too big. I think I can work with that after being able to reproduce the problem. As Jakub mentioned the exact compiler cmdline would be good.