Компиляторы Intel терпят неудачу, когда включен math.h

У меня очень маленький тестCпрограмма в файле с именемtest.c:

      #include <math.h>

int main()
{
    return 0;
}

Если я попытаюсь скомпилировать это, используяicc test.c, я получаю следующие ошибки, на которые, похоже, жалуются:

      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)

я используюicc (ICC) 17.0.4 20170411. Раньше такой проблемы не было, но я не уверен, что сисадмины меняли версию компиляторов Intel. В любом случае, что-то простое, какmath.hдолжно работать, нет? Как мне понять эту ошибку?

0 ответов

Другие вопросы по тегам