Problems with __gmpn_add_nc and __gmpn_sub_nc

Michael Abshoff Michael.Abshoff at fsmath.mathematik.uni-dortmund.de
Sun May 14 20:12:25 CEST 2006


> "Alan McFarlane" <alan.mcfarlane at gmail.com> writes:
>
<SNIP>
> If you are using an unmodified gmp-4.1.2, please report this as a bug,
> as described in the GMP manual:
>
>   http://swox.com/gmp/manual/Reporting-Bugs.html
>
> If you're using a GMP patches by FreeBSD's ports collection,
> you should report this to FreeBSD.
>
> --
> Torbjörn

Hello,

I caught the same issue with an unmodified gmp-4.2.1-rc.

The failed test is t-bswap.c:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..    -m32 -O2 -fomit-frame-pointer
-mcpu=pentium3 -march=pentium3 -c t-bswap.c
/bin/sh ../libtool --mode=link gcc  -m32 -O2 -fomit-frame-pointer
-mcpu=pentium3 -march=pentium3   -o t-bswap  t-bswap.o libtests.la
../libgmp.la
gcc -m32 -O2 -fomit-frame-pointer -mcpu=pentium3 -march=pentium3 -o
.libs/t-bswap t-bswap.o  ./.libs/libtests.a
/tmp/gmp-4.2.1-rc/.libs/libgmp.so ../.libs/libgmp.so -Wl,--rpath
-Wl,/usr/local/gmp-4.2.1-rc/lib
/tmp/gmp-4.2.1-rc/.libs/libgmp.so: undefined reference to `__gmpn_add_nc'
/tmp/gmp-4.2.1-rc/.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 `/tmp/gmp-4.2.1-rc/tests'

options for configure were --prefix=/usr/local/gmp-4.2.1-rc
--enable-alloca=no --enable-fat

The problem goes away if I remove "--enable-fat" from the configure-options.

/tmp/gmp-4.2.1-rc> uname -a
Linux emil 2.4.21-243-default #1 Thu Aug 12 15:22:14 UTC 2004 i686 i686
i386 GNU/Linux

(I know, it is a little old :))

mabshoff at emil:/tmp/gmp-4.2.1-rc> gcc -v
Reading specs from /usr/lib/gcc-lib/i586-suse-linux/3.3.1/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr
--with-local-prefix=/usr/local --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib
--enable-languages=c,c++,f77,objc,java,ada --disable-checking
--enable-libgcj --with-gxx-include-dir=/usr/include/g++
--with-slibdir=/lib --with-system-zlib --enable-shared
--enable-__cxa_atexit i586-suse-linux
Thread model: posix
gcc version 3.3.1 (SuSE Linux)

Cheers,

Michael



More information about the gmp-discuss mailing list