NTL: Trouble-shooting guide
This is a guide to working around known problems.
-
If using the Intel C++ compiler icpc, you should
use the compiler flag -fp-model strict
to ensure that the compiler actually adheres to the C++ standard
when it comes to floating point aithmetic.
-
Even though recent versions of NTL should work even without this flag,
it is still recommended.
-
Code that compiles against NTL should not need this flag, however.
-
If using gcc version 4.9 or above, you must also use GMP version 6.0 or above.
-
If you want thread safety:
-
you must build NTL with GMP (which is the default for the Unix distribution)
-
you should not use the gf2x library (current version is
not thread safe, but that may change in the future)
-
with gcc, you will need version 4.8 or higher
-
on Mac OSX, you will need OSX version 10.10 or higher
-
On Mac OSX:
I have reports of the clang compiler crashing on OSX 10.10 with the following error message:
fatal error: error in backend: Do not know how to split the result of this operator!
Workaround: configure NTL with NATIVE=off
(but you will lose some performance)
A better workaround: upgrade to OSX 10.11
Back to the NTL Page
Back to Victor Shoup's Home Page