Skip Menu |

This queue is for tickets about the Math-BigInt-GMP CPAN distribution.

Report information
The Basics
Id: 64121
Status: resolved
Priority: 0/
Queue: Math-BigInt-GMP

People
Owner: Nobody in particular
Requestors: steve [...] silug.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.32
Fixed in: (no value)



Math::Bigint::GMP 1.32 builds but fails tests on current Fedora (14 or development). I've attached a build log from a build on the current development tree as an example, but the failure is the same on Fedora 14.
Subject: build.log
Mock Version: 1.1.6 ENTER do(['bash', '--login', '-c', 'rpmbuild -bs --target x86_64 --nodeps builddir/build/SPECS/perl-Set-Infinite.spec'], False, '/var/lib/mock/fedora-rawhide-x86_64/root/', None, 0, True, 0, 405, 422, None, logger=<mock.trace_decorator.getLog object at 0x216fc10>) Executing command: ['bash', '--login', '-c', 'rpmbuild -bs --target x86_64 --nodeps builddir/build/SPECS/perl-Set-Infinite.spec'] Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/perl-Set-Infinite-0.65-1.fc15.src.rpm Child returncode was: 0 LEAVE do --> ENTER do(['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/perl-Set-Infinite.spec'], False, '/var/lib/mock/fedora-rawhide-x86_64/root/', None, 0, True, 0, 405, 422, None, logger=<mock.trace_decorator.getLog object at 0x216fc10>) Executing command: ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/perl-Set-Infinite.spec'] Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.HWf0Fs + umask 022 + cd /builddir/build/BUILD + LANG=C + export LANG + unset DISPLAY + cd /builddir/build/BUILD + rm -rf Set-Infinite-0.65 + /usr/bin/gzip -dc /builddir/build/SOURCES/Set-Infinite-0.65.tar.gz + /bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd Set-Infinite-0.65 + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.BRlfYA + umask 022 + cd /builddir/build/BUILD + cd Set-Infinite-0.65 + LANG=C + export LANG + unset DISPLAY + /usr/bin/perl Makefile.PL INSTALLDIRS=vendor Checking if your kit is complete... Looks good Writing Makefile for Set::Infinite + make -j4 cp lib/Set/Infinite.pm blib/lib/Set/Infinite.pm cp lib/Set/Infinite/Arithmetic.pm blib/lib/Set/Infinite/Arithmetic.pm cp lib/Set/Infinite/Basic.pm blib/lib/Set/Infinite/Basic.pm Manifying blib/man3/Set::Infinite::Arithmetic.3pm Manifying blib/man3/Set::Infinite.3pm Manifying blib/man3/Set::Infinite::Basic.3pm + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.vDYpiK + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/perl-Set-Infinite-0.65-1.fc15.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/perl-Set-Infinite-0.65-1.fc15.x86_64 ++ dirname /builddir/build/BUILDROOT/perl-Set-Infinite-0.65-1.fc15.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/perl-Set-Infinite-0.65-1.fc15.x86_64 + cd Set-Infinite-0.65 + LANG=C + export LANG + unset DISPLAY + rm -rf /builddir/build/BUILDROOT/perl-Set-Infinite-0.65-1.fc15.x86_64 + make pure_install PERL_INSTALL_ROOT=/builddir/build/BUILDROOT/perl-Set-Infinite-0.65-1.fc15.x86_64 Manifying blib/man3/Set::Infinite::Arithmetic.3pm Manifying blib/man3/Set::Infinite.3pm Manifying blib/man3/Set::Infinite::Basic.3pm Installing /builddir/build/BUILDROOT/perl-Set-Infinite-0.65-1.fc15.x86_64/usr/share/perl5/vendor_perl/Set/Infinite.pm Installing /builddir/build/BUILDROOT/perl-Set-Infinite-0.65-1.fc15.x86_64/usr/share/perl5/vendor_perl/Set/Infinite/Arithmetic.pm Installing /builddir/build/BUILDROOT/perl-Set-Infinite-0.65-1.fc15.x86_64/usr/share/perl5/vendor_perl/Set/Infinite/Basic.pm Installing /builddir/build/BUILDROOT/perl-Set-Infinite-0.65-1.fc15.x86_64/usr/share/man/man3/Set::Infinite::Arithmetic.3pm Installing /builddir/build/BUILDROOT/perl-Set-Infinite-0.65-1.fc15.x86_64/usr/share/man/man3/Set::Infinite.3pm Installing /builddir/build/BUILDROOT/perl-Set-Infinite-0.65-1.fc15.x86_64/usr/share/man/man3/Set::Infinite::Basic.3pm + find /builddir/build/BUILDROOT/perl-Set-Infinite-0.65-1.fc15.x86_64 -type f -name .packlist -exec rm -f '{}' ';' + find /builddir/build/BUILDROOT/perl-Set-Infinite-0.65-1.fc15.x86_64 -depth -type d -exec rmdir '{}' ';' + /bin/chmod -Rf a+rX,u+w,g-w,o-w /builddir/build/BUILDROOT/perl-Set-Infinite-0.65-1.fc15.x86_64/usr + /usr/lib/rpm/find-debuginfo.sh --strict-build-id /builddir/build/BUILD/Set-Infinite-0.65 + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.0kJGtV + umask 022 + cd /builddir/build/BUILD + cd Set-Infinite-0.65 + unset DISPLAY + make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/backtrack.t ......... ok t/basic_intersects.t .. ok t/first.t ............. ok t/infinite.t .......... ok t/last.t .............. ok t/quantize.t .......... ok t/select.t ............ ok t/select_offset.t ..... ok t/size.t .............. ok t/union.t ............. ok t/until.t ............. ok All tests successful. Files=11, Tests=446, 1 wallclock secs ( 0.07 usr 0.02 sys + 1.03 cusr 0.06 csys = 1.18 CPU) Result: PASS + exit 0 Processing files: perl-Set-Infinite-0.65-1.fc15.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.SKYwDa + umask 022 + cd /builddir/build/BUILD + cd Set-Infinite-0.65 + DOCDIR=/builddir/build/BUILDROOT/perl-Set-Infinite-0.65-1.fc15.x86_64/usr/share/doc/perl-Set-Infinite-0.65 + export DOCDIR + rm -rf /builddir/build/BUILDROOT/perl-Set-Infinite-0.65-1.fc15.x86_64/usr/share/doc/perl-Set-Infinite-0.65 + /bin/mkdir -p /builddir/build/BUILDROOT/perl-Set-Infinite-0.65-1.fc15.x86_64/usr/share/doc/perl-Set-Infinite-0.65 + cp -pr Changes LICENSE README TODO /builddir/build/BUILDROOT/perl-Set-Infinite-0.65-1.fc15.x86_64/usr/share/doc/perl-Set-Infinite-0.65 + exit 0 Provides: perl(Set::Infinite) = 0.65 perl(Set::Infinite::Arithmetic) perl(Set::Infinite::Basic) Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(VersionedDependencies) <= 3.0.3-1 Requires: perl >= 0:5.005_03 perl(Carp) perl(Data::Dumper) perl(Exporter) perl(POSIX) perl(Set::Infinite::Arithmetic) perl(Time::Local) perl(base) perl(constant) perl(strict) perl(vars) Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/perl-Set-Infinite-0.65-1.fc15.x86_64 Wrote: /builddir/build/RPMS/perl-Set-Infinite-0.65-1.fc15.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.RSuRZF + umask 022 + cd /builddir/build/BUILD + cd Set-Infinite-0.65 + rm -rf /builddir/build/BUILDROOT/perl-Set-Infinite-0.65-1.fc15.x86_64 + exit 0 Child returncode was: 0 LEAVE do -->
Argh. Attached the wrong file. Let me try that again.
Subject: build.log
Mock Version: 1.1.6 ENTER do(['bash', '--login', '-c', 'rpmbuild -bs --target x86_64 --nodeps builddir/build/SPECS/perl-Math-BigInt-GMP.spec'], False, '/var/lib/mock/fedora-rawhide-x86_64/root/', None, 0, True, 0, 405, 422, None, logger=<mock.trace_decorator.getLog object at 0xa5dc10>) Executing command: ['bash', '--login', '-c', 'rpmbuild -bs --target x86_64 --nodeps builddir/build/SPECS/perl-Math-BigInt-GMP.spec'] Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/perl-Math-BigInt-GMP-1.32-1.fc15.src.rpm Child returncode was: 0 LEAVE do --> ENTER do(['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/perl-Math-BigInt-GMP.spec'], False, '/var/lib/mock/fedora-rawhide-x86_64/root/', None, 0, True, 0, 405, 422, None, logger=<mock.trace_decorator.getLog object at 0xa5dc10>) Executing command: ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/perl-Math-BigInt-GMP.spec'] Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.WV5xUP + umask 022 + cd /builddir/build/BUILD + LANG=C + export LANG + unset DISPLAY + cd /builddir/build/BUILD + rm -rf Math-BigInt-GMP-1.32 + /usr/bin/gzip -dc /builddir/build/SOURCES/Math-BigInt-GMP-1.32.tar.gz + /bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd Math-BigInt-GMP-1.32 + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ubi6Iy + umask 022 + cd /builddir/build/BUILD + cd Math-BigInt-GMP-1.32 + LANG=C + export LANG + unset DISPLAY + /usr/bin/perl Makefile.PL INSTALLDIRS=vendor 'OPTIMIZE=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' Warning: prerequisite Math::BigInt 1.9 not found. We have 1.8901. Checking if your kit is complete... Looks good YAML not installed, make dist will not override metafile at Makefile.PL line 22. Writing Makefile for Math::BigInt::GMP + make -j4 /usr/bin/perl /usr/share/perl5/ExtUtils/xsubpp -typemap /usr/share/perl5/ExtUtils/typemap -typemap typemap GMP.xs > GMP.xsc && mv GMP.xsc GMP.c Running Mkbootstrap for Math::BigInt::GMP () chmod 644 GMP.bs cp GMP.bs blib/arch/auto/Math/BigInt/GMP/GMP.bs chmod 644 blib/arch/auto/Math/BigInt/GMP/GMP.bs cp lib/Math/BigInt/GMP.pm blib/lib/Math/BigInt/GMP.pm gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"1.32\" -DXS_VERSION=\"1.32\" -fPIC "-I/usr/lib64/perl5/CORE" GMP.c GMP.xs: In function 'XS_Math__BigInt__GMP__len': GMP.xs:367:12: warning: pointer targets in assignment differ in signedness GMP.xs: In function 'XS_Math__BigInt__GMP__zeros': GMP.xs:419:7: warning: pointer targets in assignment differ in signedness rm -f blib/arch/auto/Math/BigInt/GMP/GMP.so gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic GMP.o -o blib/arch/auto/Math/BigInt/GMP/GMP.so \ -lgmp \ chmod 755 blib/arch/auto/Math/BigInt/GMP/GMP.so Manifying blib/man3/Math::BigInt::GMP.3pm + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Yo1GSl + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/perl-Math-BigInt-GMP-1.32-1.fc15.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/perl-Math-BigInt-GMP-1.32-1.fc15.x86_64 ++ dirname /builddir/build/BUILDROOT/perl-Math-BigInt-GMP-1.32-1.fc15.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/perl-Math-BigInt-GMP-1.32-1.fc15.x86_64 + cd Math-BigInt-GMP-1.32 + LANG=C + export LANG + unset DISPLAY + rm -rf /builddir/build/BUILDROOT/perl-Math-BigInt-GMP-1.32-1.fc15.x86_64 + make pure_install PERL_INSTALL_ROOT=/builddir/build/BUILDROOT/perl-Math-BigInt-GMP-1.32-1.fc15.x86_64 Files found in blib/arch: installing files in blib/lib into architecture dependent library tree Installing /builddir/build/BUILDROOT/perl-Math-BigInt-GMP-1.32-1.fc15.x86_64/usr/lib64/perl5/vendor_perl/auto/Math/BigInt/GMP/GMP.bs Installing /builddir/build/BUILDROOT/perl-Math-BigInt-GMP-1.32-1.fc15.x86_64/usr/lib64/perl5/vendor_perl/auto/Math/BigInt/GMP/GMP.so Installing /builddir/build/BUILDROOT/perl-Math-BigInt-GMP-1.32-1.fc15.x86_64/usr/lib64/perl5/vendor_perl/Math/BigInt/GMP.pm Installing /builddir/build/BUILDROOT/perl-Math-BigInt-GMP-1.32-1.fc15.x86_64/usr/share/man/man3/Math::BigInt::GMP.3pm + find /builddir/build/BUILDROOT/perl-Math-BigInt-GMP-1.32-1.fc15.x86_64 -type f -name .packlist -exec rm -f '{}' ';' + find /builddir/build/BUILDROOT/perl-Math-BigInt-GMP-1.32-1.fc15.x86_64 -type f -name '*.bs' -size 0 -exec rm -f '{}' ';' + find /builddir/build/BUILDROOT/perl-Math-BigInt-GMP-1.32-1.fc15.x86_64 -depth -type d -exec rmdir '{}' ';' + /bin/chmod -Rf a+rX,u+w,g-w,o-w /builddir/build/BUILDROOT/perl-Math-BigInt-GMP-1.32-1.fc15.x86_64/usr + /usr/lib/rpm/find-debuginfo.sh --strict-build-id /builddir/build/BUILD/Math-BigInt-GMP-1.32 extracting debug info from /builddir/build/BUILDROOT/perl-Math-BigInt-GMP-1.32-1.fc15.x86_64/usr/lib64/perl5/vendor_perl/auto/Math/BigInt/GMP/GMP.so 117 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.TQRaud + umask 022 + cd /builddir/build/BUILD + cd Math-BigInt-GMP-1.32 + unset DISPLAY + make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/bigfltpm.t .. ok t/bigintg.t ... ok # Test 2553 got: "1" (bigintpm.inc at line 200 fail #1396) # Expected: "7" # Test 2559 got: "3" (bigintpm.inc at line 200 fail #1399) # Expected: "1" # Test 2561 got: "8" (bigintpm.inc at line 200 fail #1400) # Expected: "1" # Test 2563 got: "1" (bigintpm.inc at line 200 fail #1401) # Expected: "2" t/bigintpm.t .. Failed 4/3049 subtests t/biglog.t .... ok t/bigroot.t ... ok t/pod.t ....... ok t/pod_cov.t ... ok t/storable.t .. ok t/threads.t ... ok Test Summary Report ------------------- t/bigintpm.t (Wstat: 0 Tests: 3049 Failed: 4) Failed tests: 2553, 2559, 2561, 2563 Files=9, Tests=5559, 3 wallclock secs ( 0.45 usr 0.03 sys + 2.52 cusr 0.10 csys = 3.10 CPU) Result: FAIL Failed 1/9 test programs. 4/5559 subtests failed. make: *** [test_dynamic] Error 255 error: Bad exit status from /var/tmp/rpm-tmp.TQRaud (%check) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.TQRaud (%check) Child returncode was: 1 EXCEPTION: Command failed. See logs for output. # ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/perl-Math-BigInt-GMP.spec'] Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/mock/trace_decorator.py", line 70, in trace result = func(*args, **kw) File "/usr/lib/python2.7/site-packages/mock/util.py", line 345, in do raise mock.exception.Error, ("Command failed. See logs for output.\n # %s" % (command,), child.returncode) Error: Command failed. See logs for output. # ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/perl-Math-BigInt-GMP.spec'] LEAVE do --> EXCEPTION RAISED
Subject: Test failure
Same issue on mandriva cooker, 32 bits, with perl 5.12.2 and gmp 5.0.1. Here are the failing tests: # Test 2553 got: "1" (bigintpm.inc at line 200 fail #1396) # Expected: "7" # Test 2559 got: "3" (bigintpm.inc at line 200 fail #1399) # Expected: "1" # Test 2561 got: "8" (bigintpm.inc at line 200 fail #1400) # Expected: "1" # Test 2563 got: "1" (bigintpm.inc at line 200 fail #1401) # Expected: "2"
I think this is due to recent changes in Math::BigInt, and Math::BigInt::GMP being bundled with test files expecting the old behaviour of Math::BigInt. Please try to install Math::BigInt v1.991 and Math::BigInt::GMP v1.33 and see if the problem exists.
Indeed, Math::BigInt 1.991 fix the issue.
Fixed in Math::BigInt v1.991 and Math::BigInt::GMP v1.33.