'make check' fails on PPC64

Fuzzy Logic fuzzymo at gmail.com
Mon Feb 19 05:32:10 CET 2007


Yes, that helped.

rpm -q binutils returns:
binutils-2.15.90.0.1.1-32.17

FYI: I am subscribed to the list, so you needn't copy me in addition
to the list.

Fuzzy

On 16 Feb 2007 09:23:12 +0100, Torbjorn Granlund <@swox.com> wrote:

> We saw similar problems for a x86 fat build, then due to references
> from the orphaned object mpn/generic/addsub_n.c.  I think newer
> binutils works better, at least for x86.  If it is the same bug, this
> patch should make binutils happier:
>
> http://swox.com/gmp/patches/x86-fat.diff
>
> If this helps for you, I am curious what binutils version you're
> using.
>
> "Fuzzy Logic" <fuzzymo at gmail.com> writes:
>
> > Okay, I tried again, but with:
> >
> > configure --enable-cxx --build=none-unknown-linux-gnu
> >
> > to build with just the plain vanilla.
> >
> > make succeeds.
> >
> > make check fails with an ld error.
> >
> > last few lines:
> >
> > ranlib .libs/libtests.a
> > creating libtests.la
> > (cd .libs && rm -f libtests.la && ln -s ../libtests.la libtests.la)
> > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..  -DNO_ASM  -O3 -c t-bswap.c
> > /bin/sh ../libtool --mode=link gcc  -O3   -o t-bswap  t-bswap.o
> > libtests.la ../libgmp.la
> > gcc -O3 -o .libs/t-bswap t-bswap.o  ./.libs/libtests.a
> > /root/updates/gmp-4.2.1/.libs/libgmp.so ../.libs/libgmp.so
> > /root/updates/gmp-4.2.1/.libs/libgmp.so: undefined reference to `__gmpn_add_nc'
> > /root/updates/gmp-4.2.1/.libs/libgmp.so: undefined reference to `__gmpn_sub_nc'
> > collect2: ld returned 1 exit status
> > make[4]: *** [t-bswap] Error 1
> > make[4]: Leaving directory `/root/updates/gmp-4.2.1/tests'
> > make[3]: *** [check-am] Error 2
> > make[3]: Leaving directory `/root/updates/gmp-4.2.1/tests'
> > make[2]: *** [check-recursive] Error 1
> > make[2]: Leaving directory `/root/updates/gmp-4.2.1/tests'
> > make[1]: *** [check-recursive] Error 1
> > make[1]: Leaving directory `/root/updates/gmp-4.2.1'
> > make: *** [check] Error 2
> >
> > This doesn't seem like a compiler bug. Same everything except the
> > option I used for the configure script.


More information about the gmp-bugs mailing list