[Coin-ipopt] Problem with Intel compilers on linux

Andreas Waechter andreasw at watson.ibm.com
Mon Dec 5 19:07:02 EST 2005


Hi Yohan,

There might be a problem with the Intel compiler on your system.  The
configure scirpt output says that it was trying to compile the program:

> | /* confdefs.h.  */
> |
> | #define PACKAGE_NAME "Ipopt"
> | #define PACKAGE_TARNAME "ipopt"
> | #define PACKAGE_VERSION "3.0.0"
> | #define PACKAGE_STRING "Ipopt 3.0.0"
> | #define PACKAGE_BUGREPORT "coin-ipopt at www-124.ibm.com"
> | #ifdef __cplusplus
> | extern "C" void exit (int) throw ();
> | #endif
> | #define F77_FUNC(name,NAME) name ## _
> | #define F77_FUNC_(name,NAME) name ## _
> | #define PACKAGE "ipopt"
> | #define VERSION "3.0.0"
> | #define STDC_HEADERS 1
> | #define HAVE_SYS_TYPES_H 1
> | #define HAVE_SYS_STAT_H 1
> | #define HAVE_STDLIB_H 1
> | #define HAVE_STRING_H 1
> | #define HAVE_MEMORY_H 1
> | #define HAVE_STRINGS_H 1
> | #define HAVE_INTTYPES_H 1
> | #define HAVE_STDINT_H 1
> | #define HAVE_UNISTD_H 1
> | /* end confdefs.h.  */
> | #include <stdio.h>
> | #if HAVE_SYS_TYPES_H
> | # include <sys/types.h>
> | #endif
> | #if HAVE_SYS_STAT_H
> | # include <sys/stat.h>
> | #endif
> | #if STDC_HEADERS
> | # include <stdlib.h>
> | # include <stddef.h>
> | #else
> | # if HAVE_STDLIB_H
> | #  include <stdlib.h>
> | # endif
> | #endif
> | #if HAVE_STRING_H
> | # if !STDC_HEADERS && HAVE_MEMORY_H
> | #  include <memory.h>
> | # endif
> | # include <string.h>
> | #endif
> | #if HAVE_STRINGS_H
> | # include <strings.h>
> | #endif
> | #if HAVE_INTTYPES_H
> | # include <inttypes.h>
> | #else
> | # if HAVE_STDINT_H
> | #  include <stdint.h>
> | # endif
> | #endif
> | #if HAVE_UNISTD_H
> | # include <unistd.h>
> | #endif
> | #include <cmath>

and got this output from the compiler:

> configure:6293: checking cmath usability
> configure:6305: icpc -c -O3 -ip -mp -pc64  conftest.cc >&5
> /usr/include/c++/4.0.2/cmath(353): error: identifier "__builtin_powi" is
> undefined
>     { return __builtin_powi(__x, __i); }
>              ^
>
> /usr/include/c++/4.0.2/cmath(357): error: identifier "__builtin_powif"
> is undefined
>     { return __builtin_powif(__x, __n); }
>              ^
>
> /usr/include/c++/4.0.2/cmath(361): error: identifier "__builtin_powil"
> is undefined
>     { return __builtin_powil(__x, __n); }
>              ^
>
> compilation aborted for conftest.cc (code 2)

Please try if you have problems compiling a simply C++ program with the
Intel compiler that includes <cmath> and uses it, for example,

#include <cmath>
main () {
  double x;
  x = sin(2.);
}

If that doesn't work, something with your compiler installation is not
working.

Regards,

Andreas




More information about the Coin-ipopt mailing list