diff -up src/sage/libs/cypari2/paridecl.pxd.orig src/sage/libs/cypari2/paridecl.pxd --- src/sage/libs/cypari2/paridecl.pxd.orig 2017-04-18 07:41:28.165058343 -0400 +++ src/sage/libs/cypari2/paridecl.pxd 2017-04-18 07:45:56.847068632 -0400 @@ -84,7 +84,7 @@ cdef extern from *: # PARI headers a int PARI_SIGINT_block, PARI_SIGINT_pending void NEXT_PRIME_VIADIFF(long, byteptr) void PREC_PRIME_VIADIFF(long, byteptr) - int INIT_JMPm, INIT_SIGm, INIT_DFTm, INIT_noPRIMEm, INIT_noIMTm + int INIT_JMPm, INIT_SIGm, INIT_DFTm, INIT_noPRIMEm, INIT_noIMTm, INIT_noINTGMPm int new_galois_format, factor_add_primes, factor_proven int precdl # The "except 0" here is to ensure compatibility with diff -up src/sage/libs/cypari2/pari_instance.pyx.orig src/sage/libs/cypari2/pari_instance.pyx --- src/sage/libs/cypari2/pari_instance.pyx.orig 2017-04-18 07:46:04.924068941 -0400 +++ src/sage/libs/cypari2/pari_instance.pyx 2017-04-18 07:46:41.870070356 -0400 @@ -461,7 +461,7 @@ cdef class Pari(Pari_auto): # Take 1MB as minimal stack. Use maxprime=0, which PARI will # internally increase to some small value like 65537. - pari_init_opts(1000000, 0, INIT_DFTm) + pari_init_opts(1000000, 0, INIT_DFTm|INIT_noINTGMPm) # Disable PARI's stack overflow checking which is incompatible # with multi-threading.