0

I have a very small test C program, in a file called test.c:

#include <math.h>

int main() { return 0; }

If I try to compile this using icc test.c, I get the following errors, that seem to be complaining about math.h:

In file included from /usr/include/math.h(420),
                 from     /admin/apps/rhel7/intel/compilers_and_libraries_2017.4.196/linux/compiler/include/math.h(95),
             from test.c(1):
/usr/include/bits/mathcalls-helper-functions.h(21): error: identifier "_Float128" is undefined
  __MATHDECL_1 (int, __fpclassify,, (_Mdouble_ __value))
  ^

In file included from /usr/include/math.h(420), from /admin/apps/rhel7/intel/compilers_and_libraries_2017.4.196/linux/compiler/include/math.h(95), from test.c(1): /usr/include/bits/mathcalls-helper-functions.h(25): error: identifier "Float128" is undefined __MATHDECL_1 (int, __signbit,, (_Mdouble __value)) ^

In file included from /usr/include/math.h(420), from /admin/apps/rhel7/intel/compilers_and_libraries_2017.4.196/linux/compiler/include/math.h(95), from test.c(1): /usr/include/bits/mathcalls-helper-functions.h(30): error: identifier "Float128" is undefined __MATHDECL_1 (int, __isinf,, (_Mdouble value)) __attribute ((const)); ^

In file included from /usr/include/math.h(420), from /admin/apps/rhel7/intel/compilers_and_libraries_2017.4.196/linux/compiler/include/math.h(95), from test.c(1): /usr/include/bits/mathcalls-helper-functions.h(33): error: identifier "Float128" is undefined __MATHDECL_1 (int, __finite,, (_Mdouble value)) __attribute ((const)); ^

In file included from /usr/include/math.h(420), from /admin/apps/rhel7/intel/compilers_and_libraries_2017.4.196/linux/compiler/include/math.h(95), from test.c(1): /usr/include/bits/mathcalls-helper-functions.h(36): error: identifier "Float128" is undefined __MATHDECL_1 (int, __isnan,, (_Mdouble value)) __attribute ((const)); ^

In file included from /usr/include/math.h(420), from /admin/apps/rhel7/intel/compilers_and_libraries_2017.4.196/linux/compiler/include/math.h(95), from test.c(1): /usr/include/bits/mathcalls-helper-functions.h(39): error: identifier "Float128" is undefined __MATHDECL_1 (int, __iseqsig,, (_Mdouble __x, Mdouble __y)); ^

In file included from /usr/include/math.h(420), from /admin/apps/rhel7/intel/compilers_and_libraries_2017.4.196/linux/compiler/include/math.h(95), from test.c(1): /usr/include/bits/mathcalls-helper-functions.h(39): error: identifier "Float128" is undefined __MATHDECL_1 (int, __iseqsig,, (_Mdouble __x, Mdouble __y)); ^

In file included from /usr/include/math.h(420), from /admin/apps/rhel7/intel/compilers_and_libraries_2017.4.196/linux/compiler/include/math.h(95), from test.c(1): /usr/include/bits/mathcalls-helper-functions.h(42): error: identifier "Float128" is undefined __MATHDECL_1 (int, __issignaling,, (_Mdouble __value)) ^

In file included from test.c(1): /admin/apps/rhel7/intel/compilers_and_libraries_2017.4.196/linux/compiler/include/math.h(1300): error: identifier "_LIB_VERSION_TYPE" is undefined _LIBIMF_EXT _LIB_VERSIONIMF_TYPE _LIBIMF_PUBVAR _LIB_VERSIONIMF; ^

compilation aborted for test.c (code 2)

I'm using icc (ICC) 17.0.4 20170411. This was not a problem before, but I'm not sure if the system admins changed the version of the Intel compilers. Either way, something as simple as math.h should work, no? How do I make sense of this error?

0 Answers0