configure:7878: checking for the correct version of the gmp/mpfr/mpc libraries
configure:7909: gcc -o conftest -g -O2 -I/usr/local/gmp/include -I/usr/local/mpfr-4.1.0/include -I/usr/local/mpc-1.0.3/include conftest.c -L/usr/local/gmp/lib -L/usr/local/mpfr-4.1.0/lib -L/usr/local/mpc-1.0.3/lib -lmpc -lmpfr -lgmp >&5
/usr/local/mpc-1.0.3/lib/libmpc.so: undefined reference to `mpfr_add_one_ulp'
/usr/local/mpc-1.0.3/lib/libmpc.so: undefined reference to `mpfr_sub_one_ulp'
collect2: error: ld returned 1 exit status
configure:7909: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h. */
| #include <mpc.h>
| int
| main ()
| {
|
| mpfr_t n;
| mpfr_t x;
| mpc_t c;
| int t;
| mpfr_init (n);
| mpfr_init (x);
| mpfr_atan2 (n, n, x, MPFR_RNDN);
| mpfr_erfc (n, x, MPFR_RNDN);
| mpfr_subnormalize (x, t, MPFR_RNDN);
| mpfr_clear(n);
| mpfr_clear(x);
| mpc_init2 (c, 53);
| mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
| mpc_cosh (c, c, MPC_RNDNN);
| mpc_pow (c, c, c, MPC_RNDNN);
| mpc_acosh (c, c, MPC_RNDNN);
| mpc_clear (c);
|
| ;
| return 0;
| }
configure:7913: result: no
configure:7926: error: Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
【 在 ArchLinux 的大作中提到: 】
: 建议你遇到 configure 错误的时候先找到 config.log 看看具体是哪里错了。
:
--
FROM 144.168.63.*