public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Problem building gcc 4.3.3 on a YDL ppc64 machine
@ 2009-03-19 16:47 David Saada
  2009-03-19 18:52 ` Tim Prince
  0 siblings, 1 reply; 4+ messages in thread
From: David Saada @ 2009-03-19 16:47 UTC (permalink / raw)
  To: gcc-help

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem building gcc 4.3.3 on a YDL ppc64 machine
  2009-03-19 16:47 Problem building gcc 4.3.3 on a YDL ppc64 machine David Saada
@ 2009-03-19 18:52 ` Tim Prince
  2009-03-21  5:10   ` David Saada
  0 siblings, 1 reply; 4+ messages in thread
From: Tim Prince @ 2009-03-19 18:52 UTC (permalink / raw)
  To: David Saada; +Cc: gcc-help

David Saada wrote:
> .
> /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
>   
______________________
Wouldn't the 64-bit libraries go in a /lib64/ directory?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Problem building gcc 4.3.3 on a YDL ppc64 machine
  2009-03-19 18:52 ` Tim Prince
@ 2009-03-21  5:10   ` David Saada
  2009-03-21  5:32     ` Tim Prince
  0 siblings, 1 reply; 4+ messages in thread
From: David Saada @ 2009-03-21  5:10 UTC (permalink / raw)
  To: tprince; +Cc: gcc-help

Well, I've simply installed mpfr on a separate location (prior to installing gcc of course) with the --prefix=/u/lni/mpfr/2.4.1/powerpc-unknown-linux-gnu/ option. Did I miss anything?
David.

________________________________________
From: Tim Prince [TimothyPrince@sbcglobal.net]
Sent: Thursday, March 19, 2009 8:52 PM
To: David Saada
Cc: gcc-help@gcc.gnu.org
Subject: Re: Problem building gcc 4.3.3 on a YDL ppc64 machine

David Saada wrote:
> .
> /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
>
______________________
Wouldn't the 64-bit libraries go in a /lib64/ directory?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem building gcc 4.3.3 on a YDL ppc64 machine
  2009-03-21  5:10   ` David Saada
@ 2009-03-21  5:32     ` Tim Prince
  0 siblings, 0 replies; 4+ messages in thread
From: Tim Prince @ 2009-03-21  5:32 UTC (permalink / raw)
  To: David Saada; +Cc: tprince, gcc-help

David Saada wrote:
> Well, I've simply installed mpfr on a separate location (prior to installing gcc of course) with the --prefix=/u/lni/mpfr/2.4.1/powerpc-unknown-linux-gnu/ option. Did I miss anything?

It looks like, for example, you are trying to use 32-bit libraries in a
64-bit build.  mpfr originally didn't pay any attention to those issues of
keeping 32/64 things straight; if it hasn't improved for your target, it's
up to you to sort this out.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-03-21  5:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-19 16:47 Problem building gcc 4.3.3 on a YDL ppc64 machine David Saada
2009-03-19 18:52 ` Tim Prince
2009-03-21  5:10   ` David Saada
2009-03-21  5:32     ` Tim Prince

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).