installing libmongocrypt from brew tap fails on macOS

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL
    • Hide

      1. Using brew, run `VERBOSE=1 brew install mongodb/brew/libmongocrypt`

      Show
      1. Using brew, run `VERBOSE=1 brew install mongodb/brew/libmongocrypt`
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Apologies if this is the wrong project to report the issue under. The affected product is the mongodb/homebrew-brew tap

      Description

      Attempting to install libmongocrypt from brew tap results in an error on macOS 15.7.1 (24G231)

      "Target "_mongocrypt-libbson_for_static" contains relative path in its
        INTERFACE_INCLUDE_DIRECTORIES"

      ➜  ~ VERBOSE=1 brew install mongodb/brew/libmongocrypt 
      ==> Fetching downloads for: libmongocrypt
      ==> Fetching dependencies for mongodb/brew/libmongocrypt: cmake, openssl@3 and mongo-c-driver
      ==> Downloading https://ghcr.io/v2/homebrew/core/cmake/manifests/4.1.2
      ############################################################################################################################################ 100.0%
      ==> Fetching cmake
      ==> Downloading https://ghcr.io/v2/homebrew/core/cmake/blobs/sha256:a9a87dd3bdc0751b398eb60ca9bbbdb35a494478423af6b5a1ecc3594df48f6a
      ############################################################################################################################################ 100.0%
      ==> Downloading https://ghcr.io/v2/homebrew/core/openssl/3/manifests/3.6.0
      ############################################################################################################################################ 100.0%
      ==> Fetching openssl@3
      ==> Downloading https://ghcr.io/v2/homebrew/core/openssl/3/blobs/sha256:932329036867164c28752b7b35f7808530b8cd79b72246bf122f36219a79d388
      ############################################################################################################################################ 100.0%
      ==> Downloading https://ghcr.io/v2/homebrew/core/mongo-c-driver/manifests/2.1.2
      ############################################################################################################################################ 100.0%
      ==> Fetching mongo-c-driver
      ==> Downloading https://ghcr.io/v2/homebrew/core/mongo-c-driver/blobs/sha256:3540bc4ef97a6e41214eaaea4b7365605b5107c387466bd566d5cd0caedfdfbb
      ############################################################################################################################################ 100.0%
      ==> Fetching mongodb/brew/libmongocrypt
      ==> Downloading https://github.com/mongodb/libmongocrypt/archive/1.16.0.tar.gz
      ==> Downloading from https://codeload.github.com/mongodb/libmongocrypt/tar.gz/refs/tags/1.16.0
       #-=O#-   #     #                                                                                                                                  
      ==> Installing libmongocrypt from mongodb/brew
      ==> Installing dependencies for mongodb/brew/libmongocrypt: cmake, openssl@3 and mongo-c-driver
      ==> Installing mongodb/brew/libmongocrypt dependency: cmake
      ==> Downloading https://ghcr.io/v2/homebrew/core/cmake/manifests/4.1.2
      Already downloaded: /Users/jm/Library/Caches/Homebrew/downloads/c73c2cc9b6e440e49f54b0a41bc64688de91fbd35088eae551fd595bfa744290--cmake-4.1.2.bottle_manifest.json
      ==> Pouring cmake--4.1.2.arm64_tahoe.bottle.tar.gz
      🍺  /opt/homebrew/Cellar/cmake/4.1.2: 3,913 files, 58.2MB
      ==> Installing mongodb/brew/libmongocrypt dependency: openssl@3
      ==> Downloading https://ghcr.io/v2/homebrew/core/openssl/3/manifests/3.6.0
      Already downloaded: /Users/jm/Library/Caches/Homebrew/downloads/403c903e557d19d801f4c6b4f635c9553af72a487024139a5773e636c884ef9e--openssl@3-3.6.0.bottle_manifest.json
      ==> Pouring openssl@3--3.6.0.arm64_tahoe.bottle.tar.gz
      🍺  /opt/homebrew/Cellar/openssl@3/3.6.0: 7,609 files, 35.9MB
      ==> Installing mongodb/brew/libmongocrypt dependency: mongo-c-driver
      ==> Downloading https://ghcr.io/v2/homebrew/core/mongo-c-driver/manifests/2.1.2
      Already downloaded: /Users/jm/Library/Caches/Homebrew/downloads/279e741ccb7a632193bd7d7c3ea95243f9fb9efae27e76ed483b95ae746493c0--mongo-c-driver-2.1.2.bottle_manifest.json
      ==> Pouring mongo-c-driver--2.1.2.arm64_tahoe.bottle.tar.gz
      🍺  /opt/homebrew/Cellar/mongo-c-driver/2.1.2: 190 files, 5.2MB
      ==> Installing mongodb/brew/libmongocrypt
      ==> cmake . -DBUILD_VERSION=1.16.0 -DMONGOCRYPT_MONGOC_DIR=USE-SYSTEM -DUSE_SHARED_LIBBSON=ON -DENABLE_ONLINE_TESTS=OFF -DHOMEBREW_ALLOW_FETCHCONTE
      Last 15 lines from /Users/jm/Library/Logs/Homebrew/libmongocrypt/01.cmake.log:
        Target "_mongocrypt-libbson_for_shared" contains relative path in its
        INTERFACE_INCLUDE_DIRECTORIES:    "_MONGOCRYPT_SYSTEM_LIBBSON_INCLUDE_DIR-NOTFOUND"
      CMake Error in CMakeLists.txt:
        Target "_mongocrypt-libbson_for_static" contains relative path in its
        INTERFACE_INCLUDE_DIRECTORIES:    "_MONGOCRYPT_SYSTEM_LIBBSON_INCLUDE_DIR-NOTFOUND"
      -- Generating done (0.1s)
      CMake Generate step failed.  Build files cannot be regenerated correctly.If reporting this issue please do so at (not Homebrew/* repositories):
        https://github.com/mongodb/homebrew-brew/issuesWarning: Unable to query GitHub for recent issues on the tap
      Validation Failed: [{"message" => "The listed users and repositories cannot be searched either because the resources do not exist or you do not have permission to view them.", "resource" => "Search", "field" => "q", "code" => "invalid"}]
      

       

       

       

            Assignee:
            Unassigned
            Reporter:
            John McCambridge
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: