Problem building gcc 4.3.3 on a YDL ppc64 machine

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

 



Hello,
I have problems building gcc 4.3.3 on a YDL ppc64 (Mac) machine. Problems are probably related to the mpfr library.
I have installed latest gmp (4.2.4) and mpfr (2.4.1) libraries on the same machine, and configured gcc to use them as following:

./configure --prefix=/u/lni/gcc/4.3.3/powerpc-unknown-linux-gnu/ --with-mpfr=/u/lni/mpfr/2.4.1/powerpc-unknown-linux-gnu/ --with-gmp=/u/lni/gmp/4.2.4/powerpc-unknown-linux-gnu/

then ran make, and got the following:

.
.
.
/usr/bin/ld: skipping incompatible /u/lni/mpfr/2.4.1/powerpc-unknown-linux-gnu//lib/libmpfr.so when searching for -lmpfr
/usr/bin/ld: skipping incompatible /u/lni/mpfr/2.4.1/powerpc-unknown-linux-gnu//lib/libmpfr.a when searching for -lmpfr
libbackend.a(builtins.o): In function `do_mpfr_arg2':
../.././gcc/builtins.c:12741: undefined reference to `mpfr_inits2'
../.././gcc/builtins.c:12747: undefined reference to `mpfr_clears'
libbackend.a(builtins.o): In function `do_mpfr_sincos':
../.././gcc/builtins.c:12835: undefined reference to `mpfr_inits2'
../.././gcc/builtins.c:12841: undefined reference to `mpfr_clears'
libbackend.a(builtins.o): In function `do_mpfr_remquo':
../.././gcc/builtins.c:12953: undefined reference to `mpfr_inits2'
../.././gcc/builtins.c:12957: undefined reference to `mpfr_remquo'
../.././gcc/builtins.c:12961: undefined reference to `mpfr_clears'
libbackend.a(builtins.o): In function `do_mpfr_arg3':
../.././gcc/builtins.c:12789: undefined reference to `mpfr_inits2'
../.././gcc/builtins.c:12796: undefined reference to `mpfr_clears'
libbackend.a(builtins.o): In function `do_mpfr_lgamma_r':
../.././gcc/builtins.c:13035: undefined reference to `mpfr_lgamma'
libbackend.a(builtins.o):(.toc+0xb0): undefined reference to `mpfr_exp10'
libbackend.a(builtins.o):(.toc+0x368): undefined reference to `mpfr_cbrt'
libbackend.a(builtins.o):(.toc+0x3d8): undefined reference to `mpfr_erf'
libbackend.a(builtins.o):(.toc+0x3e0): undefined reference to `mpfr_erfc'
libbackend.a(builtins.o):(.toc+0x3e8): undefined reference to `mpfr_gamma'
libbackend.a(builtins.o):(.toc+0x400): undefined reference to `mpfr_j0'
libbackend.a(builtins.o):(.toc+0x408): undefined reference to `mpfr_j1'
libbackend.a(builtins.o):(.toc+0x410): undefined reference to `mpfr_y0'
libbackend.a(builtins.o):(.toc+0x418): undefined reference to `mpfr_y1'
libbackend.a(builtins.o):(.toc+0x438): undefined reference to `mpfr_jn'
libbackend.a(builtins.o):(.toc+0x440): undefined reference to `mpfr_yn'
libbackend.a(builtins.o):(.toc+0x448): undefined reference to `mpfr_remainder'
libbackend.a(builtins.o):(.toc+0x450): undefined reference to `mpfr_atan2'
libbackend.a(real.o): In function `real_from_mpfr':
../.././gcc/real.c:4697: undefined reference to `mpfr_free_str'
../.././gcc/real.c:4670: undefined reference to `mpfr_set_erangeflag'
libbackend.a(toplev.o): In function `print_version':
../.././gcc/toplev.c:1220: undefined reference to `mpfr_get_version'
../.././gcc/toplev.c:1221: undefined reference to `mpfr_get_version'
collect2: ld returned 1 exit status
make[3]: *** [cc1-dummy] Error 1
make[3]: Leaving directory `/auto/tnd_cesr/tnd_cesr/Users/DavidSa/gcc-4.3.3/host-powerpc64-unknown-linux-gnu/gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory `/auto/tnd_cesr/tnd_cesr/Users/DavidSa/gcc-4.3.3'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/auto/tnd_cesr/tnd_cesr/Users/DavidSa/gcc-4.3.3'
make: *** [all] Error 2


Native gcc is 4.1.1, and binutils version is 2.16.91.
I've also tried adding lib directories under gmp and mpfr directories to the beginning of the LD_LIBRARY_PATH environment, but results were the same.

Any idea?
Cheers,
David.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux