General TC > General TC Talk

GMP 6.1.0 fails "make check" on t-locale

(1/1)

mikedev:
I have tried to compile gmp-6.1.0 from source according to gmp.build
./configure ... OK
./make -j4 ... OK
make check ... FAIL

Originally I compile it natively on Raspberry pi Zero, make check fail, retried couple times, still fail.
If I run the .../gmp-6.1.0/tests/cxx/t-locale directly, it shows the error is "Segmentation fault".
I thought the error maybe related to Raspberry pi platform.
I compile the source again on x86 platform, yields SAME ERRORS, fail on make check, t-locale.
It seems like t-locale is locale related, do I need any "locale" packages in order to compile gmp 6.1.0?

Anyone pass ALL the "make check" with gmp-6.1.0 ?

Thanks!


quote from some screenshots:
...
PASS: t-binary
PASS: t-cast
PASS: t-cxx11
PASS: t-headers
PASS: t-iostream
PASS: t-istream
FAIL: t-locale
PASS: t-misc
PASS: t-mix
PASS: t-ops
PASS: t-ops2
PASS: t-ops3
PASS: t-ostream
PASS: t-prec
PASS: t-ternary
PASS: t-unary
PASS: t-do-exceptions-work-at-all-with-this-compiler
PASS: t-assign
PASS: t-constr
PASS: t-rand
============================================================================
Testsuite summary for GNU MP 6.1.0
============================================================================
# TOTAL: 20
# PASS:  19
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See tests/cxx/test-suite.log
Please report to gmp-bugs@gmplib.org, see https://gmplib.org/manual/Reporting-Bugs.html
============================================================================
make[5]: *** [test-suite.log] Error 1
make[5]: Leaving directory `/mnt/tmp/gmp/gmp-6.1.0/tests/cxx'
make[4]: *** [check-TESTS] Error 2
make[4]: Leaving directory `/mnt/tmp/gmp/gmp-6.1.0/tests/cxx'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory `/mnt/tmp/gmp/gmp-6.1.0/tests/cxx'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `/mnt/tmp/gmp/gmp-6.1.0/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/mnt/tmp/gmp/gmp-6.1.0'
make: *** [check] Error 2

nimday:
Just curious, is  that with --enable-cxx ?

170 passed from my machine without that and i think i didn't install locale stuff

nimday:
This is with cxx


--- Code: ---tc@box:/tmp/gmp-6.1.0$ ./configure --enable-cxx --disable-static
...
tc@box:/tmp/gmp-6.1.0$ awk '/# PASS:/{total+=$3} ; END{print total}' gmp-check-l
og
190

--- End code ---

Maybe you can check the output of configure for missing stuff,not sure

mikedev:
Yes, --enable-cxx flag is used.
./configure --prefix=/usr/local --enable-shared --enable-static --enable-cxx --enable-assembly=no

Found the bug...

"-fno-rtti"  should NOT be used in CXXFLAGS:

http://distro.ibiblio.org/tinycorelinux/8.x/armv6/tcz/src/gmp/gmp.build
http://distro.ibiblio.org/tinycorelinux/7.x/armv6/tcz/src/gmp/gmp.build

Then "make check" can pass all tests, on either RPi or x86 platforms.

Not sure why "-fno-rtti" is necessary.

bmarkus:

--- Quote from: mikedev on June 08, 2016, 07:00:56 AM ---Yes, --enable-cxx flag is used.
./configure --prefix=/usr/local --enable-shared --enable-static --enable-cxx --enable-assembly=no

Found the bug...

"-fno-rtti"  should NOT be used in CXXFLAGS:

http://distro.ibiblio.org/tinycorelinux/8.x/armv6/tcz/src/gmp/gmp.build
http://distro.ibiblio.org/tinycorelinux/7.x/armv6/tcz/src/gmp/gmp.build

Then "make check" can pass all tests, on either RPi or x86 platforms.

Not sure why "-fno-rtti" is necessary.

--- End quote ---

gmp built -fno-rtti is used since years without any problems just as it is. It is more important than to change just to pass one test when all others passed. I keep gmp as it is. If you feel more secure to have it passed, use your own build.

Navigation

[0] Message Index

Go to full version