From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27576 invoked by alias); 19 Mar 2009 16:47:51 -0000 Received: (qmail 27525 invoked by uid 22791); 19 Mar 2009 16:47:49 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from ilptiron01.ecitele.com (HELO ilptiron01.ecitele.com) (147.234.242.161) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 19 Mar 2009 16:47:34 +0000 Received: from unknown (HELO ILPTAM01.ecitele.com) ([147.234.244.44]) by ilptiron01.ecitele.com with ESMTP; 19 Mar 2009 18:45:50 +0200 Received: from ILPTEXCH02.ecitele.com ([147.234.245.181]) by ILPTAM01.ecitele.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 19 Mar 2009 18:47:30 +0200 Received: from ILPTMAIL02.ecitele.com ([147.234.244.213]) by ILPTEXCH02.ecitele.com ([147.234.245.181]) with mapi; Thu, 19 Mar 2009 18:47:29 +0200 From: David Saada To: "gcc-help@gcc.gnu.org" Date: Thu, 19 Mar 2009 16:47:00 -0000 Subject: Problem building gcc 4.3.3 on a YDL ppc64 machine Message-ID: <3026DA9FE767E2418FA2C568FE4F5CB1B1EB13B9D9@ILPTMAIL02.ecitele.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2009-03/txt/msg00230.txt.bz2 Hello, I have problems building gcc 4.3.3 on a YDL ppc64 (Mac) machine. Problems a= re 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=3D/u/lni/gcc/4.3.3/powerpc-unknown-linux-gnu/ --with-m= pfr=3D/u/lni/mpfr/2.4.1/powerpc-unknown-linux-gnu/ --with-gmp=3D/u/lni/gmp/= 4.2.4/powerpc-unknown-linux-gnu/ then ran make, and got the following: =2E =2E =2E /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_remaind= er' 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 th= e beginning of the LD_LIBRARY_PATH environment, but results were the same. Any idea? Cheers, David.