bug-gmp
[Top][All Lists]
Advanced

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

Re: GMP 4.1 on Solaris, HP-UX ... hppa1.1


From: Albert Chin
Subject: Re: GMP 4.1 on Solaris, HP-UX ... hppa1.1
Date: Mon, 3 Jun 2002 07:20:38 -0500
User-agent: Mutt/1.2.5i

On Mon, Jun 03, 2002 at 06:39:20AM -0500, Albert Chin wrote:
> On Sat, Jun 01, 2002 at 09:01:21AM +1000, Kevin Ryde wrote:
> > Albert Chin <address@hidden> writes:
> > >
> > > Ok, the patch below fixes 13 of the failures. The patch forces ".level
> > > 1.1" in the ASM files.
> > 
> > What's the reason for that?
> 
> Because of the following error when using (unpatched copy of GMP 4.1):
>   $ uname -a
>   HP-UX flash B.10.20 A 9000/782 2013055757 two-user license
>   $ ABI=standard CC=cc CFLAGS="-g -Ae +DAportable" \
>   ./configure --enable-shared --enable-static \
>   --disable-dependency-tracking --host=hppa1.1-hp-hpux10.20
>   /bin/sh ../libtool --mode=compile --tag=CC ../mpn/m4-ccas --m4="m4" cc
>   -c -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I..
>   -DOPERATION_`echo submul_1 | sed 's/_$//'`    -g -Ae +DAportable `test
>   -f submul_1.asm || echo './'`submul_1.asm
>   ../mpn/m4-ccas --m4=m4 cc -c -DHAVE_CONFIG_H -I. -I. -I..
>   -D__GMP_WITHIN_GMP -I.. -DOPERATION_submul_1 -g -Ae +DAportable
>   submul_1.asm  +Z -DPIC -o .libs/submul_1.o
>   m4  -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_submul_1 -DPIC
>   submul_1.asm >tmp-submul_1.s
>    cc -c -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I..
>   -DOPERATION_submul_1 -g -Ae +DAportable tmp-submul_1.s +Z -DPIC -o
>   .libs/submul_1.o
>   as: "tmp-submul_1.s", line 70: warning 36: Use of %fr31R is incorrect
>   for the current LEVEL of 1.0
>   as: "tmp-submul_1.s", line 83: warning 36: Use of %fr31R is incorrect
>   for the current LEVEL of 1.0
>   as: "tmp-submul_1.s", line 83: warning 36: Use of XMPYU is incorrect
>   for the current LEVEL of 1.0
>   as: "tmp-submul_1.s", line 97: warning 36: Use of %fr31R is incorrect
>   for the current LEVEL of 1.0
>   ...
>   $ cd mpn
>   $ ls -ld submul_1.asm
>   lrwxrwxr-x   1 china      src             41 Jun  3 06:34 submul_1.asm
>   -> .././mpn/pa32/hppa1_1/pa7100/submul_1.asm
> 
> So, even though this is a PA-RISC 2.0 machine, I bumped .level to 1.1
> thinking of the "1.1" in hppa1.1-hp-hpux10.20.

Without any of my patches, GMP 4.1 builds fine on HP-UX 10.20 and
11.00 (--host=hppa1.1-hp-hpux10.20) with one error. So, ignore my
configure.in patch. If you want to remove the errors above, the
".level 1.1" patch to the asm files needs to be added.

> 
> > > The remaining failure is the coredump in
> > > t-sizeinbase. A GDB backtrace follows:
> > >   #0  0xc07979e4 in __gmpz_sizeinbase (x=0x7b03a908, base=2)
> > >       at sizeinbase.c:32
> > >   #1  0x296c in mpz_fake_bits (z=0x7b03a908, totbits=198096465)
> > >       at t-sizeinbase.c:45
> > >   #2  0x2a0c in check_sample () at t-sizeinbase.c:64
> > >   #3  0x2b0c in main () at t-sizeinbase.c:83
> > 
> > Hmm.  That mpz_fake_bits in the test program doesn't do normal mpz
> > stuff, but is supposed to be enough to satisfy the accesses
> > mpz_sizeinbase makes.

This test passes when I don't force --host (i.e. building a PA-RISC
2.0 binary -- hppa2.0n-hp-hpux10.20).

-- 
albert chin (address@hidden)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]