util_tests/test_LockDirectory failure running tests in WSL guest #14219

issue dr-ngubo opened this issue on September 14, 2018
  1. dr-ngubo commented at 12:09 PM on September 14, 2018: none

    Please I need some help with this. Trying to this on Ubuntu 18.04

    $ make check && sudo make install
    Making check in src
    make[1]: Entering directory '/usr/src/bitcoin/src'
    make[2]: Entering directory '/usr/src/bitcoin/src'
    make[3]: Entering directory '/usr/src/bitcoin'
    make[3]: Leaving directory '/usr/src/bitcoin'
    make  check-TESTS check-local
    make[3]: Entering directory '/usr/src/bitcoin/src'
    make[4]: Entering directory '/usr/src/bitcoin/src'
    make[5]: Entering directory '/usr/src/bitcoin'
    make[5]: Leaving directory '/usr/src/bitcoin'
    FAIL: test/test_bitcoin
    PASS: qt/test/test_bitcoin-qt
    ============================================================================
    Testsuite summary for Bitcoin Core 0.16.2
    ============================================================================
    # 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:9587: recipe for target 'test-suite.log' failed
    make[4]: *** [test-suite.log] Error 1
    make[4]: Leaving directory '/usr/src/bitcoin/src'
    Makefile:9693: recipe for target 'check-TESTS' failed
    make[3]: *** [check-TESTS] Error 2
    make[3]: Leaving directory '/usr/src/bitcoin/src'
    Makefile:9799: recipe for target 'check-am' failed
    make[2]: *** [check-am] Error 2
    make[2]: Leaving directory '/usr/src/bitcoin/src'
    Makefile:9480: recipe for target 'check-recursive' failed
    make[1]: *** [check-recursive] Error 1
    make[1]: Leaving directory '/usr/src/bitcoin/src'
    Makefile:747: recipe for target 'check-recursive' failed
    make: *** [check-recursive] Error 1
    
  2. MarcoFalke commented at 12:30 PM on September 14, 2018: member

    Please upload src/test-suite.log

  3. dr-ngubo commented at 12:35 PM on September 14, 2018: none
    $ more src/test-suite.log
    =============================================
       Bitcoin Core 0.16.2: 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
    =======================
    
    Running 276 test cases...
    test/util_tests.cpp(695): error: in "util_tests/test_LockDirectory": check (bool)ch == false has failed [true != false]
    test/util_tests.cpp(708): error: in "util_tests/test_LockDirectory": check LockDirectory(dirname, lockname, true) == false has failed [true != false]
    Running 276 test cases...
    
    *** 2 failures are detected in the test module "Bitcoin Test Suite"
    FAIL test/test_bitcoin (exit status: 201)
    
  4. MarcoFalke commented at 12:45 PM on September 14, 2018: member

    Can you reproduce this issue in some way or provide details on how your setup looks like?

  5. dr-ngubo commented at 12:59 PM on September 14, 2018: none

    Ubuntu 18.04, running on windows 10, as a Linux subsystem. this is a history of commands so far, hope it helps... 2

  6. MarcoFalke commented at 1:05 PM on September 14, 2018: member

    Do you want to cross compile to windows and run on the host or run bitcoind only in the WSL guest?

  7. dr-ngubo commented at 1:09 PM on September 14, 2018: none

    in the WSL guest.

  8. MarcoFalke added the label Windows on Sep 14, 2018
  9. MarcoFalke commented at 1:11 PM on September 14, 2018: member

    Tagging with Windows, since this appears to be WSL specific.

  10. ken2812221 commented at 9:54 AM on September 15, 2018: contributor

    Can confirm this happens on WSL with clang and gcc.

  11. laanwj renamed this:
    FAIL: test/test_bitcoin
    util_tests/test_LockDirectory failure running tests in WSL guest
    on Sep 15, 2018
  12. ken2812221 commented at 6:04 PM on September 15, 2018: contributor

    Maybe related Microsoft/WSL#1927

  13. sipsorcery commented at 8:35 PM on September 21, 2018: member

    @naesar did you do a cd depends prior to the make HOST=x86_64-w64-mingw32 command? It's missing from your bash history.

    You should not need to install the dependencies manually using apt-get install libboost-system etc. If you do it indicates the dependencies were not correctly installed using the provided make configuration.

  14. MarcoFalke commented at 11:16 PM on May 8, 2020: member

    See #18700

  15. billygarrison commented at 3:04 PM on June 27, 2020: contributor

    Supposedly make check is not supported in WSL: #13207 (comment)

    You can run some tests (not sure if it is equivalent to make check or not, can anyone comment?) by opening the Windows Command Prompt and running test_bitcoin.exe, which will be in whatever location you used as DESTDIR in your make install command.

  16. dr-ngubo closed this on Jun 27, 2020

  17. DrahtBot locked this on Feb 15, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-17 03:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me