pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: MPFR



Joerg Sonnenberger a écrit :
On Tue, Mar 22, 2016 at 10:44:55AM +0100, BERTRAND Joël wrote:
	I'm trying to update my PWS500a. Last current NetBSD/alpha runs fine but I
have some troubles with mpfr from pkgsrc. Configure script aborts with :

What exactly does config.log say for this test?

Joerg


configure:15780: checking for double-to-integer conversion bug
configure:15818: gcc -o conftest -O2 -mcpu=ev56 -mieee -I/usr/pkg/include -I/usr/include -mfp-rounding-mode=d -mieee-with-inexact -I/usr/pkg/include -I/usr/include -L/usr/pkg/gcc49/lib/gcc/alpha--netbsd/4.9.2 -Wl,-R/usr/pkg/gcc49/lib/gcc/alpha--netbsd/4.9.2 -L/usr/pkg/gcc49/lib -Wl,-R/usr/pkg/gcc49/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib conftest.c -lgmp >&5
configure:15818: $? = 0
configure:15818: ./conftest
configure:15818: $? = 191
configure: program exited with status 191
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MPFR"
| #define PACKAGE_TARNAME "mpfr"
| #define PACKAGE_VERSION "3.1.4"
| #define PACKAGE_STRING "MPFR 3.1.4"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define TIME_WITH_SYS_TIME 1
| #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
| #define HAVE_LOCALE_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_STDARG 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
| #define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
| #define HAVE_ALLOCA 1
| #define HAVE_STDINT_H 1
| #define HAVE_VA_COPY 1
| #define HAVE_MEMMOVE 1
| #define HAVE_MEMSET 1
| #define HAVE_SETLOCALE 1
| #define HAVE_STRTOL 1
| #define HAVE_GETTIMEOFDAY 1
| #define HAVE_LONG_LONG 1
| #define HAVE_INTMAX_T 1
| #define MPFR_HAVE_INTMAX_MAX 1
| #define HAVE_DENORMS 1
| #define HAVE_SIGNEDZ 1
| #define HAVE_ROUND 1
| #define HAVE_TRUNC 1
| #define HAVE_FLOOR 1
| #define HAVE_CEIL 1
| #define HAVE_NEARBYINT 1
| #define HAVE_LONG_DOUBLE 1
| #define MPFR_USE_THREAD_SAFE 1
| #define HAVE_CLOCK_GETTIME 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_ATTRIBUTE_MODE 1
| /* end confdefs.h.  */
|
| #include <gmp.h>
|
| int
| main (void)
| {
|
|   double d;
|   mp_limb_t u;
|   int i;
|
|   d = 1.0;
|   for (i = 0; i < GMP_NUMB_BITS - 1; i++)
|     d = d + d;
|   u = (mp_limb_t) d;
|   for (; i > 0; i--)
|     {
|       if (u & 1)
|         break;
|       u = u >> 1;
|     }
|   return (i == 0 && u == 1UL) ? 0 : 254 - i;
|
|   ;
|   return 0;
| }
configure:15829: result: yes or failed to exec (exit status is 191)
configure:15834: error: double-to-integer conversion is incorrect.
You need to use another compiler (or lower the optimization level).

	Regards,

	JKB


Home | Main Index | Thread Index | Old Index