https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83297
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c |target --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- /u/suhubdyd/frameworks/pytorch/torch/lib/TH/THMath.h:10:3: internal compiler error: Illegal instruction return 1.0 / (1.0 + exp(-value)); I am 99% sure this is an issue with your GMP and/or MPFR.