Gridcoin-Research: Tests fail on x86

Bug Report

Current behavior

When building on x86 (32 bit, not x86_64), the test suit fails with "117 failures are detected in the test module “Gridcoin Test Suite”. This happens both on master as well as on the current development branch. Running the tests on x86_64 works as expected.

Expected behavior

Expected behaviour would be for the test suite to succeed on x86.

Steps to reproduce:

I run the following on an x86 Linux:

./autogen.sh
./configure --disable-bench --with-miniupnpc --with-qrencode --with-gui=qt5
make -j8 && VERBOSE=1 make check

This results in the following (shortened) output:

============================================================================
Testsuite summary for Gridcoin 5.4.5
============================================================================
# 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/gridcoin/Gridcoin-Research/issues
============================================================================

I have attached a copy of the test-suite.log

You can reproduce the issue on an x86_64 host by using the attached Dockerfile and running the build with the x86 arch explicitly selected:

podman build --arch 386  -f Dockerfile .

Gridcoin version

  • master @ 5.4.5.0
  • development @ d614a0fa

Machine specs

  • OS: Linux
  • CPU: x86

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 25 (25 by maintainers)

Most upvoted comments

See https://github.com/jamescowens/Gridcoin-Research/commit/32da8166b80ce3ca68e4039aefd5e08491c968d5 and the log:

output_fix_wallet_tests_gcc13_3.log

Notice that the changeover in integer arithmetic in that particular spot cleared the error. There are remaining ones.

All of these are conversions to/from floating point, and these are properly coded.

I think we really must be looking at a compiler issue.