Bug#812275: bitcoin: FTBFS with GCC 6: test suite failures

2016-08-05 Thread Anthony Towns
Source: bitcoin
Followup-For: Bug #812275

> This package fails to build with GCC 6.

FWIW, this bug seems to be fixed upstream somewhere between 0.12.1 and
0.13.0rc2. I ran a git bisect, and the commit that fixes the issue seems
to be:

https://github.com/bitcoin/bitcoin/commit/89f71c68c0fecf63059f6055ebdd25f1eba4c982

Cheers,
aj



Bug#812275: bitcoin: FTBFS with GCC 6: test suite failures

2016-01-21 Thread Martin Michlmayr
Package: bitcoin
Version: 0.11.1-1
Severity: normal
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-unknown

This package fails to build with GCC 6.  GCC 6 has not been released
yet, but it's expected that GCC 6 will become the default compiler for
stretch.

Unfortunately, it's not clear from the log why the build failed.
It's possible there's a bug in this package or in GCC.  It's also
possible I reported a non-issue, although I tried to avoid that.
I apologize in advance if this is the case.

If you have some time to look into this issue, that'd be great.  If
not, I can re-test the package with GCC 6 in a few weeks time.

You can find a snapshot of GCC 6 in experimental.  To build with
GCC 6, you can set CC=gcc-6 CXX=g++-6 explicitly.

You may be able to find out more about this issue at
https://gcc.gnu.org/gcc-6/changes.html

> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> make[8]: Entering directory '/<>/src/secp256k1'
> FAIL: test/test_bitcoin
> 
> Testsuite summary for Bitcoin Core 0.11.1
> 
> # TOTAL: 2
> # PASS:  1
> # SKIP:  0
> # XFAIL: 0
> # FAIL:  1
> # XPASS: 0
> # ERROR: 0
> 
> See src/test-suite.log
> Please report to https://github.com/bitcoin/bitcoin/issues
> 
> Makefile:6577: recipe for target 'test-suite.log' failed
> make[6]: *** [test-suite.log] Error 1
> make[6]: Leaving directory '/<>/src'
> Makefile:6683: recipe for target 'check-TESTS' failed
> make[5]: *** [check-TESTS] Error 2
> make[5]: *** Waiting for unfinished jobs
> PASS: tests
> 
> Testsuite summary for libsecp256k1 0.1
> 
> # TOTAL: 1
> # PASS:  1
> # SKIP:  0
> # XFAIL: 0
> # FAIL:  0
> # XPASS: 0
> # ERROR: 0
> 
> make[8]: Leaving directory '/<>/src/secp256k1'
> make[7]: Leaving directory '/<>/src/secp256k1'
> make[6]: Leaving directory '/<>/src/secp256k1'
> make[5]: Leaving directory '/<>/src'
> Makefile:6789: recipe for target 'check-am' failed
> make[4]: *** [check-am] Error 2
> make[4]: Leaving directory '/<>/src'
> Makefile:6470: recipe for target 'check-recursive' failed
> make[3]: *** [check-recursive] Error 1
> make[3]: Leaving directory '/<>/src'
> Makefile:633: recipe for target 'check-recursive' failed
> make[2]: *** [check-recursive] Error 1
> make[2]: Leaving directory '/<>'
> dh_auto_test: make -j30 check returned exit code 2
> =
>Bitcoin Core 0.11.1: src/test-suite.log
> =
> 
> # TOTAL: 2
> # PASS:  1
> # SKIP:  0
> # XFAIL: 0
> # FAIL:  1
> # XPASS: 0
> # ERROR: 0
> 
> .. contents:: :depth: 2
> 
> FAIL: test/test_bitcoin
> ===
> 
> terminate called without an active exception
> Running 158 test cases...
> unknown location(0): fatal error in "reverselock_errors": signal: SIGABRT 
> (application abort requested)
> test/reverselock_tests.cpp(50): last checkpoint
> test_bitcoin: key.cpp:198: void ECC_Start(): Assertion `secp256k1_context == 
> __null' failed.
> unknown location(0): fatal error in "rpc_rawparams": signal: SIGABRT 
> (application abort requested)
> test/reverselock_tests.cpp(50): last checkpoint
> test_bitcoin: key.cpp:198: void ECC_Start(): Assertion `secp256k1_context == 
> __null' failed.
> unknown location(0): fatal error in "rpc_rawsign": signal: SIGABRT 
> (application abort requested)
> test/reverselock_tests.cpp(50): last checkpoint
> test_bitcoin: key.cpp:198: void ECC_Start(): Assertion `secp256k1_context == 
> __null' failed.
> unknown location(0): fatal error in "rpc_format_monetary_values": signal: 
> SIGABRT (application abort requested)
> test/reverselock_tests.cpp(50): last checkpoint
> test_bitcoin: key.cpp:198: void ECC_Start(): Assertion `secp256k1_context == 
> __null' failed.
> unknown location(0): fatal error in "rpc_parse_monetary_values": signal: 
> SIGABRT (application abort requested)
> test/reverselock_tests.cpp(50): last checkpoint
> test_bitcoin: key.cpp:198: void ECC_Start(): Assertion `secp256k1_context == 
> __null' failed.
> unknown location(0): fatal error in "json_parse_errors": signal: SIGABRT 
> (application abort requested)
> test/reverselock_tests.cpp(50): last checkpoint
> test_bitcoin: key.cpp:198: void ECC_Start(): Assertion `secp256k1_context == 
> __null' failed.
> unknown location(0): fatal error in "rpc_boostasiotocnetaddr": signal: 
> SIGABRT (application abort requested)
> test/reverselock_tests.cpp(50): last checkpoint
> test_bitcoin: key.cpp:198: void ECC_Start():