make check failed

Thomas D. Dean tomdean at speakeasy.org
Thu Dec 29 18:05:03 CET 2011


On Thu, 2011-12-29 at 10:55 +0100, Marc Glisse wrote:

> You could try to reduce that testcase. My guess is that there is a bug in 
> your compiler that fails to catch the exception.
> 
I tested this with gcc46

# cd /usr/ports/math/gmp
# rm -Rf work
# env make CC=gcc46 CXX=g++46 check
...
> make  check-TESTS
> PASS: t-assign
> PASS: t-binary
> PASS: t-cast
> terminate called after throwing an instance of 'std::invalid_argument'
>  what():  mpq_set_str
> Abort trap (core dumped)
> FAIL: t-constr

This is the same failure I initially reported.

# rm -Rf work
# gcc --version
gcc (GCC) 4.2.1 20070831 patched [FreeBSD]
# make CC=gcc CXX=g++ check

and, all tests passed.

Looks like the gcc46 port to FreeBSD 9.0 AMD64 has a bug

Thanks for the reply, I will take it up with the port maintainer.

tomdean



More information about the gmp-bugs mailing list