GMP test failure from arm gcc toolchain

Jeong YunWon jeong at youknowone.org
Wed Aug 12 16:25:53 UTC 2020


Source: https://developer.arm.com/-/media/Files/downloads/gnu-a/9.2-2019.12/srcrel/gcc-arm-src-snapshot-9.2-2019.12.tar.xz?revision=90d3618d-8136-44f2-aeef-42015dd0669a&la=en&hash=00A97AA1ECF0B96A65F831AD719CA04053FBC61E <https://developer.arm.com/-/media/Files/downloads/gnu-a/9.2-2019.12/srcrel/gcc-arm-src-snapshot-9.2-2019.12.tar.xz?revision=90d3618d-8136-44f2-aeef-42015dd0669a&la=en&hash=00A97AA1ECF0B96A65F831AD719CA04053FBC61E>
Envrionment: https://hub.docker.com/layers/ubuntu/library/ubuntu/20.04/images/sha256-d5b40885539615b9aeb7119516427959a158386af13e00d79a7da43ad1b3fb87?context=explore <https://hub.docker.com/layers/ubuntu/library/ubuntu/20.04/images/sha256-d5b40885539615b9aeb7119516427959a158386af13e00d79a7da43ad1b3fb87?context=explore>
Build:
apt update && apt install -y build-essential m4 && ./configure --disable-shared --enable-static --prefix=/tmp/gcc && make && make check

Error log:

/opt/gcc-arm-src/gmp# make check
make  check-recursive
make[1]: Entering directory '/opt/gcc-arm-src/gmp'
Making check in tests
make[2]: Entering directory '/opt/gcc-arm-src/gmp/tests'
Making check in .
make[3]: Entering directory '/opt/gcc-arm-src/gmp/tests'
make  libtests.la t-bswap t-constants t-count_zeros t-gmpmax t-hightomask t-modlinv t-popc t-parity t-sub
make[4]: Entering directory '/opt/gcc-arm-src/gmp/tests'
make[4]: 'libtests.la' is up to date.
make[4]: 't-bswap' is up to date.
make[4]: 't-constants' is up to date.
make[4]: 't-count_zeros' is up to date.
make[4]: 't-gmpmax' is up to date.
make[4]: 't-hightomask' is up to date.
make[4]: 't-modlinv' is up to date.
make[4]: 't-popc' is up to date.
make[4]: 't-parity' is up to date.
make[4]: 't-sub' is up to date.
make[4]: Leaving directory '/opt/gcc-arm-src/gmp/tests'
make  check-TESTS
make[4]: Entering directory '/opt/gcc-arm-src/gmp/tests'
PASS: t-bswap
PASS: t-constants
PASS: t-count_zeros
PASS: t-gmpmax
PASS: t-hightomask
PASS: t-modlinv
PASS: t-popc
PASS: t-parity
PASS: t-sub
==================
All 9 tests passed
==================
make[4]: Leaving directory '/opt/gcc-arm-src/gmp/tests'
make[3]: Leaving directory '/opt/gcc-arm-src/gmp/tests'
Making check in devel
make[3]: Entering directory '/opt/gcc-arm-src/gmp/tests/devel'
make[3]: Nothing to be done for 'check'.
make[3]: Leaving directory '/opt/gcc-arm-src/gmp/tests/devel'
Making check in mpn
make[3]: Entering directory '/opt/gcc-arm-src/gmp/tests/mpn'
make  t-asmtype t-aors_1 t-divrem_1 t-fat t-get_d t-instrument t-iord_u t-mp_bases t-perfsqr t-scan t-hgcd t-matrix22
make[4]: Entering directory '/opt/gcc-arm-src/gmp/tests/mpn'
make[4]: 't-asmtype' is up to date.
make[4]: 't-aors_1' is up to date.
make[4]: 't-divrem_1' is up to date.
make[4]: 't-fat' is up to date.
make[4]: 't-get_d' is up to date.
make[4]: 't-instrument' is up to date.
make[4]: 't-iord_u' is up to date.
make[4]: 't-mp_bases' is up to date.
make[4]: 't-perfsqr' is up to date.
make[4]: 't-scan' is up to date.
make[4]: 't-hgcd' is up to date.
make[4]: 't-matrix22' is up to date.
make[4]: Leaving directory '/opt/gcc-arm-src/gmp/tests/mpn'
make  check-TESTS
make[4]: Entering directory '/opt/gcc-arm-src/gmp/tests/mpn'
PASS: t-asmtype
PASS: t-aors_1
PASS: t-divrem_1
PASS: t-fat
PASS: t-get_d
PASS: t-instrument
PASS: t-iord_u
PASS: t-mp_bases
PASS: t-perfsqr
PASS: t-scan
PASS: t-hgcd
PASS: t-matrix22
===================
All 12 tests passed
===================
make[4]: Leaving directory '/opt/gcc-arm-src/gmp/tests/mpn'
make[3]: Leaving directory '/opt/gcc-arm-src/gmp/tests/mpn'
Making check in mpz
make[3]: Entering directory '/opt/gcc-arm-src/gmp/tests/mpz'
make  t-addsub t-cmp t-mul t-mul_i t-tdiv t-tdiv_ui t-fdiv t-fdiv_ui t-cdiv_ui t-gcd t-gcd_ui t-lcm dive dive_ui t-sqrtrem convert io t-inp_str logic bit t-powm t-powm_ui t-pow t-div_2exp reuse t-root t-perfsqr t-perfpow t-jac t-bin t-get_d t-get_d_2exp t-get_si t-set_d t-set_si t-fac_ui t-fib_ui t-lucnum_ui t-scan t-fits t-divis t-divis_2exp t-cong t-cong_2exp t-sizeinbase t-set_str t-aorsmul t-cmp_d t-cmp_si t-hamdist t-oddeven t-popcount t-set_f t-io_raw t-import t-export t-pprime_p t-nextprime
make[4]: Entering directory '/opt/gcc-arm-src/gmp/tests/mpz'
make[4]: 't-addsub' is up to date.
make[4]: 't-cmp' is up to date.
make[4]: 't-mul' is up to date.
make[4]: 't-mul_i' is up to date.
make[4]: 't-tdiv' is up to date.
make[4]: 't-tdiv_ui' is up to date.
make[4]: 't-fdiv' is up to date.
make[4]: 't-fdiv_ui' is up to date.
make[4]: 't-cdiv_ui' is up to date.
make[4]: 't-gcd' is up to date.
make[4]: 't-gcd_ui' is up to date.
make[4]: 't-lcm' is up to date.
make[4]: 'dive' is up to date.
make[4]: 'dive_ui' is up to date.
make[4]: 't-sqrtrem' is up to date.
make[4]: 'convert' is up to date.
make[4]: 'io' is up to date.
make[4]: 't-inp_str' is up to date.
make[4]: 'logic' is up to date.
make[4]: 'bit' is up to date.
make[4]: 't-powm' is up to date.
make[4]: 't-powm_ui' is up to date.
make[4]: 't-pow' is up to date.
make[4]: 't-div_2exp' is up to date.
make[4]: 'reuse' is up to date.
make[4]: 't-root' is up to date.
make[4]: 't-perfsqr' is up to date.
make[4]: 't-perfpow' is up to date.
make[4]: 't-jac' is up to date.
make[4]: 't-bin' is up to date.
make[4]: 't-get_d' is up to date.
make[4]: 't-get_d_2exp' is up to date.
make[4]: 't-get_si' is up to date.
make[4]: 't-set_d' is up to date.
make[4]: 't-set_si' is up to date.
make[4]: 't-fac_ui' is up to date.
make[4]: 't-fib_ui' is up to date.
make[4]: 't-lucnum_ui' is up to date.
make[4]: 't-scan' is up to date.
make[4]: 't-fits' is up to date.
make[4]: 't-divis' is up to date.
make[4]: 't-divis_2exp' is up to date.
make[4]: 't-cong' is up to date.
make[4]: 't-cong_2exp' is up to date.
make[4]: 't-sizeinbase' is up to date.
make[4]: 't-set_str' is up to date.
make[4]: 't-aorsmul' is up to date.
make[4]: 't-cmp_d' is up to date.
make[4]: 't-cmp_si' is up to date.
make[4]: 't-hamdist' is up to date.
make[4]: 't-oddeven' is up to date.
make[4]: 't-popcount' is up to date.
make[4]: 't-set_f' is up to date.
make[4]: 't-io_raw' is up to date.
make[4]: 't-import' is up to date.
make[4]: 't-export' is up to date.
make[4]: 't-pprime_p' is up to date.
make[4]: 't-nextprime' is up to date.
make[4]: Leaving directory '/opt/gcc-arm-src/gmp/tests/mpz'
make  check-TESTS
make[4]: Entering directory '/opt/gcc-arm-src/gmp/tests/mpz'
PASS: t-addsub
PASS: t-cmp
PASS: t-mul
PASS: t-mul_i
PASS: t-tdiv
PASS: t-tdiv_ui
PASS: t-fdiv
PASS: t-fdiv_ui
PASS: t-cdiv_ui
PASS: t-gcd
PASS: t-gcd_ui
PASS: t-lcm
PASS: dive
PASS: dive_ui
PASS: t-sqrtrem
PASS: convert
PASS: io
PASS: t-inp_str
PASS: logic
PASS: bit
PASS: t-powm
PASS: t-powm_ui
PASS: t-pow
PASS: t-div_2exp
PASS: reuse
PASS: t-root
PASS: t-perfsqr
PASS: t-perfpow
PASS: t-jac
PASS: t-bin
PASS: t-get_d
PASS: t-get_d_2exp
PASS: t-get_si
PASS: t-set_d
PASS: t-set_si
PASS: t-fac_ui
PASS: t-fib_ui
PASS: t-lucnum_ui
/bin/bash: line 4: 74280 Segmentation fault      ${dir}$tst
FAIL: t-scan
PASS: t-fits
PASS: t-divis
PASS: t-divis_2exp
PASS: t-cong
PASS: t-cong_2exp
PASS: t-sizeinbase
PASS: t-set_str
PASS: t-aorsmul
PASS: t-cmp_d
PASS: t-cmp_si
PASS: t-hamdist
PASS: t-oddeven
PASS: t-popcount
PASS: t-set_f
PASS: t-io_raw
PASS: t-import
PASS: t-export
PASS: t-pprime_p
PASS: t-nextprime
====================================
1 of 58 tests failed
Please report to gmp-bugs at gmplib.org
====================================
make[4]: *** [Makefile:1004: check-TESTS] Error 1
make[4]: Leaving directory '/opt/gcc-arm-src/gmp/tests/mpz'
make[3]: *** [Makefile:1105: check-am] Error 2
make[3]: Leaving directory '/opt/gcc-arm-src/gmp/tests/mpz'
make[2]: *** [Makefile:505: check-recursive] Error 1
make[2]: Leaving directory '/opt/gcc-arm-src/gmp/tests'
make[1]: *** [Makefile:925: check-recursive] Error 1
make[1]: Leaving directory '/opt/gcc-arm-src/gmp'
make: *** [Makefile:1183: check] Error 2


More information about the gmp-bugs mailing list