Build failing on Ubuntu 22.04 #25534

issue IMPranshu opened this issue on July 3, 2022
  1. IMPranshu commented at 7:23 AM on July 3, 2022: none

    <!-- This issue tracker is only for technical issues related to Bitcoin Core. General bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange at https://bitcoin.stackexchange.com. For reporting security issues, please read instructions at https://bitcoincore.org/en/contact/. If the node is "stuck" during sync or giving "block checksum mismatch" errors, please ensure your hardware is stable by running memtest and observe CPU temperature with a load-test tool such as linpack before creating an issue! -->

    <!-- Describe the issue -->

    Expected behavior To run bitcoin-core in Ubuntu 22.04 after following all the steps in build-unix.md

    Actual behavior

    Even after carefully following all the steps the build is failing in Ubuntu 22.04 version but by following the same steps again in Ubuntu 20.04 and 18.04 I am able to successfully run bitcoin-core.

    To reproduce

    To verify this first follow all the instructions in the build-unix.md in Ubuntu 22.04 and then try to run the following command:

    python3 test/functional/feature_taproot.py
    

    You will be met with the following error of some sort:

     2022-06-11T19:04:12.075000Z TestFramework (INFO): Initializing test directory /tmp/bitcoin_func_test_2wz38651
    2022-06-11T19:04:16.476000Z TestFramework (INFO): Post-activation tests...
    2022-06-11T19:04:16.832000Z TestFramework (ERROR): Unexpected exception caught during testing
    Traceback (most recent call last):
      File "/usr/lib/python3.10/hashlib.py", line 160, in __hash_new
        return _hashlib.new(name, data, **kwargs)
    ValueError: [digital envelope routines] unsupported
    

    This error is not in particular for running tests but shows a problem with the installation of bitcoin-core in general.

    I searched for the issues and came across a few articles and conversations regarding this particular issue in Ubuntu 22.04. Will be providing links to them.

  2. IMPranshu added the label Bug on Jul 3, 2022
  3. MarcoFalke commented at 7:47 AM on July 3, 2022: member

    Which commit are you compiling?

  4. IMPranshu commented at 8:09 AM on July 3, 2022: none
    git checkout v0.21.2rc2
    
  5. MarcoFalke commented at 12:04 PM on July 3, 2022: member

    This will need d2e0c27e45abd802849e3bf6006f495fc6055adb backported

  6. MarcoFalke commented at 10:41 AM on July 4, 2022: member

    There is no 0.21 milestone, so I think this can be closed? cc @fanquake

    Maybe we could still push a backport to the branch nonetheless? @IMPranshu According to https://bitcoincore.org/en/lifecycle/ 0.21 will be EOL by end of this year, so if possible, use a more recent version.

  7. IMPranshu commented at 11:40 AM on July 4, 2022: none

    @MarcoFalke thanks for addressing this issue. I already switched to Ubuntu 20.04 as I had to run and write some tests for taproot at that time.

    Will surely try and run the recent version on the latest version of Ubuntu and see if the issue arises.

  8. MarcoFalke referenced this in commit ec0a4ad677 on Jul 6, 2022
  9. MarcoFalke closed this on Jul 6, 2022

  10. DrahtBot locked this on Jul 6, 2023

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-14 21:13 UTC

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