https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88678
--- Comment #3 from Steve Kargl <sgk at troutmask dot apl.washington.edu> --- On Thu, Jan 03, 2019 at 06:39:05PM +0000, seurer at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88678 > > --- Comment #2 from seurer at gcc dot gnu.org --- > Program received signal SIGFPE: Floating-point exception - erroneous > arithmetic > operation. > > Backtrace for this error: > #0 0x3fffb17f0477 in ??? > #1 0x3fffb14f1694 in feenableexcept > at ../sysdeps/powerpc/fpu/feenablxcpt.c:44 > #2 0x3fffb1765e73 in __ieee_exceptions_MOD_ieee_support_halting > at /home/seurer/gcc/gcc-test2/libgfortran/ieee/ieee_exceptions.F90:193 > #3 0x3fffb176590f in __ieee_arithmetic_MOD_ieee_value_4 > at /home/seurer/gcc/gcc-test2/libgfortran/ieee/ieee_arithmetic.F90:972 > #4 0x10000aa7 in foo > at > /home/seurer/gcc/gcc-test2/gcc/testsuite/gfortran.dg/ieee/ieee_10.f90:12 > #5 0x10000aa7 in main > at > /home/seurer/gcc/gcc-test2/gcc/testsuite/gfortran.dg/ieee/ieee_10.f90:5 > FAIL: gfortran.dg/ieee/ieee_10.f90 -O3 -g execution test > Thanks for the backtrace. Frame #1 suggests that this is a glibc issue. gfortran will translate ieee_support_halting into _gfortrani_support_fpu_trap. % nm ieee_exceptions.o | grep _trap U _gfortrani_get_fpu_trap_exceptions U _gfortrani_set_fpu_trap_exceptions U _gfortrani_support_fpu_trap % nm fpu.o | grep _trap 0000000000000000 T _gfortrani_get_fpu_trap_exceptions 0000000000000000 T _gfortrani_set_fpu_trap_exceptions 0000000000000000 T _gfortrani_support_fpu_trap The code in libgfortran/runtime/fpu.c appears to pull in architecture dependent code via /* We include the platform-dependent code. */ #include "fpu-target.h" I don't know where or how powerpc64 sets up fpu-target.h.