contrib/install_db4.sh script fails on OpenBSD 7.2 (RPi 3) (error: Unable to find a mutex implementation) #26860

issue m-kubik openend this issue on January 9, 2023
  1. m-kubik commented at 6:01 pm on January 9, 2023: none

    When trying to compile Bitcoin Core with legacy wallet on OpenBSD 7.2 stable running on RPI3, the process fails while running

    install_db4.sh script

    checking for getopt optreset variable… yes checking for mutexes… UNIX/fcntl configure: WARNING: NO SHARED LATCH IMPLEMENTATION FOUND FOR THIS PLATFORM. configure: error: Unable to find a mutex implementation

  2. m-kubik added the label Bug on Jan 9, 2023
  3. jonatack commented at 7:56 pm on January 9, 2023: contributor

    The install_db4.sh script looks like it may be removed in the near future, see #26772 (comment) and particularly #26834 that also describes a workaround in its description that might resolve your issue.

    Other potential workarounds might be:

  4. fanquake commented at 4:49 pm on January 11, 2023: member

    configure: WARNING: NO SHARED LATCH IMPLEMENTATION FOUND FOR THIS PLATFORM.

    You can likely workaround this using: CFLAGS=-Wno-error=implicit-function-declaration ./install_db4.sh.

  5. m-kubik commented at 6:14 pm on January 11, 2023: none

    configure: WARNING: NO SHARED LATCH IMPLEMENTATION FOUND FOR THIS PLATFORM.

    You can likely workaround this using: CFLAGS=-Wno-error=implicit-function-declaration ./install_db4.sh.

    thank you, unfortunately it does not help

  6. m-kubik commented at 6:15 pm on January 11, 2023: none

    The install_db4.sh script looks like it may be removed in the near future, see #26772 (comment) and particularly #26834 that also describes a workaround in its description that might resolve your issue.

    Other potential workarounds might be:

    i was not able to go even with newer db4 version. I don’t think I can go with descriptor wallet, as Electrum Personal Server does not support it

  7. fanquake commented at 9:38 am on January 12, 2023: member

    thank you, unfortunately it does not help

    In that case, you’ll have to provide the config.log that contains the details of what is failing.

  8. m-kubik commented at 5:09 pm on January 25, 2023: none

    Hello, sorry for delay with this one, I was out for few days. Attaching the config.log config.log

  9. fanquake commented at 5:15 pm on January 25, 2023: member

    Attaching the config.log configure:19488: cc -o conftest -O3 conftest.c >&5 conftest.c:50:2: warning: implicit declaration of function ‘_spin_lock_try’ is invalid in C99 [-Wimplicit-function-declaration] _spin_lock_try(&x); ^ conftest.c:51:2: warning: implicit declaration of function ‘_spin_unlock’ is invalid in C99 [-Wimplicit-function-declaration] _spin_unlock(&x); ^

    Are you sure that this > You can likely workaround this using: CFLAGS=-Wno-error=implicit-function-declaration ./install_db4.sh.

    doesn’t work? Passing -Wno-error=implicit-function-declaration will prevent the configure check from failing as it is in your log.

  10. m-kubik commented at 5:28 pm on January 25, 2023: none

    Attaching the config.log configure:19488: cc -o conftest -O3 conftest.c >&5 conftest.c:50:2: warning: implicit declaration of function ‘_spin_lock_try’ is invalid in C99 [-Wimplicit-function-declaration] _spin_lock_try(&x); ^ conftest.c:51:2: warning: implicit declaration of function ‘_spin_unlock’ is invalid in C99 [-Wimplicit-function-declaration] _spin_unlock(&x); ^

    Are you sure that this > You can likely workaround this using: CFLAGS=-Wno-error=implicit-function-declaration ./install_db4.sh.

    doesn’t work? Passing -Wno-error=implicit-function-declaration will prevent the configure check from failing as it is in your log.

    well, hopefully I’m not doing it incorrectly. Just run again with these flags having same error. In the config.log I see some errors around it. Attaching config.log

  11. fanquake commented at 4:38 pm on February 24, 2023: member
    @m-kubik were you compiling the master branch? We have since removed this script, in favour of using depends. You can see the updated OpenBSD build instructions here: https://github.com/bitcoin/bitcoin/blob/master/doc/build-openbsd.md.
  12. willcl-ark commented at 9:20 pm on March 22, 2023: contributor
    @m-kubik were you able to get this working with depends? If so I think we can probably close this issue.
  13. maflcko added the label Build system on Mar 23, 2023
  14. maflcko commented at 8:39 am on March 23, 2023: member
    Closing for now. Let us know if this is still an issue and should be reopened.
  15. maflcko closed this on Mar 23, 2023

  16. bitcoin locked this on Mar 22, 2024

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: 2024-06-29 10:13 UTC

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