Warning when linking libsecp256k1 exhaustive tests after building with depends #20225

issue fanquake opened this issue on October 23, 2020
  1. fanquake commented at 4:17 AM on October 23, 2020: member

    Just making a note of this, as I can't remember seeing it before. After building on macOS, when using depends, you may see:

      CC       src/exhaustive_tests-tests_exhaustive.o
      CCLD     exhaustive_tests
      CCLD     tests
    ld: warning: dylib (/usr/local/Cellar/openssl@1.1/1.1.1h/lib/libcrypto.dylib) was built for newer macOS version (10.15) than being linked (10.12)
    /Applications/Xcode.app/Contents/Developer/usr/bin/make  check-TESTS
    PASS: exhaustive_tests
    PASS: tests
    

    This is due to us passing -mmacosx-version-min=10.12 when building depends, and the libcrypto.dylib on my machine being built for macOS 10.15. I say may as this should depend on the version of the dylib on your machine, how it's been built by homebrew etc.

    Can otherwise be replicated with:

    int main() {
        return 0;
    }
    
    clang++ test.cpp -lcrypto -L/usr/local/opt/openssl@1.1/lib -mmacosx-version-min=10.12
    ld: warning: dylib (/usr/local/opt/openssl@1.1/lib/libcrypto.dylib) was built for newer macOS version (10.15) than being linked (10.12)
    

    Note that /usr/local/opt/openssl@1.1 is a symlink to /usr/local/Cellar/openssl@1.1/1.1.1h.

  2. fanquake added the label macOS on Oct 23, 2020
  3. fanquake added the label Build system on Oct 23, 2020
  4. willcl-ark commented at 8:27 AM on October 23, 2020: member

    @fanquake have you found this by building depends on 10.15? I just tried that and found a familiar error:

    checking for mutexes... UNIX/fcntl
    configure: WARNING: NO SHARED LATCH IMPLEMENTATION FOUND FOR THIS PLATFORM.
    configure: error: Unable to find a mutex implementation
    make: *** [/Users/will/src/bitcoin/depends/work/build/x86_64-apple-darwin20.1.0/bdb/4.8.30-8804e1a17bf/build_unix/.stamp_configured] Error 1
    

    Related: #20195

  5. willcl-ark referenced this in commit fff0ab008f on Oct 23, 2020
  6. willcl-ark referenced this in commit 2d2ba69836 on Oct 23, 2020
  7. fanquake commented at 1:49 AM on November 23, 2021: member

    OpenSSL has been removed from the tests upstream, https://github.com/bitcoin-core/secp256k1/pull/983, so we can close this.

  8. fanquake closed this on Nov 23, 2021

  9. DrahtBot locked this on Nov 23, 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-21 18:14 UTC

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