WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: GMP 6.1.0 fails "make check" on t-locale  (Read 12457 times)

Offline mikedev

  • Newbie
  • *
  • Posts: 25
GMP 6.1.0 fails "make check" on t-locale
« on: June 07, 2016, 01:43:21 PM »
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
« Last Edit: June 07, 2016, 01:45:28 PM by mikedev »

Offline nimday

  • Jr. Member
  • **
  • Posts: 75
Re: GMP 6.1.0 fails "make check" on t-locale
« Reply #1 on: June 07, 2016, 04:15:21 PM »
Just curious, is  that with --enable-cxx ?

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

Offline nimday

  • Jr. Member
  • **
  • Posts: 75
Re: GMP 6.1.0 fails "make check" on t-locale
« Reply #2 on: June 07, 2016, 05:14:12 PM »
This is with cxx

Code: [Select]
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

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

Offline mikedev

  • Newbie
  • *
  • Posts: 25
Re: GMP 6.1.0 fails "make check" on t-locale
« Reply #3 on: June 08, 2016, 10: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.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: GMP 6.1.0 fails "make check" on t-locale
« Reply #4 on: June 08, 2016, 10:05:46 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.

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.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."