Uploaded image for project: 'Libmongocrypt'
  1. Libmongocrypt
  2. MONGOCRYPT-594

Failed to build release from source code

    • Not Needed

      I am building libmongocrypt on Arch Linux with AUR package [libmongocrypt|https://aur.archlinux.org/packages/libmongocrypt.] When calling cmake to start build, cmake throws an error and fails:

      {{-- The C compiler identification is GNU 13.2.1
      – Detecting C compiler ABI info
      – Detecting C compiler ABI info - done
      – Check for working C compiler: /usr/bin/cc - skipped
      – Detecting C compile features
      – Detecting C compile features - done
      – The CXX compiler identification is GNU 13.2.1
      – Detecting CXX compiler ABI info
      – Detecting CXX compiler ABI info - done
      – Check for working CXX compiler: /usr/bin/c++ - skipped
      – Detecting CXX compile features
      – Detecting CXX compile features - done
      – Performing Test HAVE_SYSTEM_LIBBSON
      – Performing Test HAVE_SYSTEM_LIBBSON - Success
      – Performing Test SYSTEM_LIBBSON_IS_EXTRA_ALIGNED
      – Performing Test SYSTEM_LIBBSON_IS_EXTRA_ALIGNED - Success
      – NOTE: Using system-wide libbson library. This is intended only for package maintainers.
      CMake Warning (dev) at /usr/share/cmake/Modules/FetchContent.cmake:1316 (message):
        The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is
        not set.  The policy's OLD behavior will be used.  When using a URL
        download, the timestamps of extracted files should preferably be that of
        the time of extraction, otherwise code that depends on the extracted
        contents might not be rebuilt if the URL changes.  The OLD behavior
        preserves the timestamps from the archive instead, but this is usually not
        what you want.  Update your project to the NEW behavior or specify the
        DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this
        robustness issue.
      Call Stack (most recent call first):
        cmake/IntelDFP.cmake:36 (FetchContent_Declare)
        cmake/ImportDFP.cmake:46 (include)
        CMakeLists.txt:53 (include)
      This warning is for project developers.  Use -Wno-dev to suppress it.

      – Obtaining Intel Decimal FP library: /build/libmongocrypt/src/libmongocrypt-1.8.2/third-party/IntelRDFPMathLib20U2.tar.xz
      [ 11%] Creating directories for 'intel_dfp-populate'
      [ 22%] Performing download step (verify and extract) for 'intel_dfp-populate'
      – verifying file...
           file='/build/libmongocrypt/src/libmongocrypt-1.8.2/third-party/IntelRDFPMathLib20U2.tar.xz'
      – verifying file... done
      – extracting...
           src='/build/libmongocrypt/src/libmongocrypt-1.8.2/third-party/IntelRDFPMathLib20U2.tar.xz'
           dst='/build/libmongocrypt/src/libmongocrypt-1.8.2/build/_deps/intel_dfp-src'
      – extracting... [tar xfz]
      – extracting... [analysis]
      – extracting... [rename]
      – extracting... [clean up]
      – extracting... done
      [ 33%] No update step for 'intel_dfp-populate'
      [ 44%] Performing patch step for 'intel_dfp-populate'
      /usr/bin/patch: /build/libmongocrypt/src/libmongocrypt-1.8.2/etc/mongo-inteldfp-libmongocrypt-pr-625.patch: extra operand
      /usr/bin/patch: Try '/usr/bin/patch --help' for more information.
      make[2]: *** [CMakeFiles/intel_dfp-populate.dir/build.make:116: intel_dfp-populate-prefix/src/intel_dfp-populate-stamp/intel_dfp-populate-patch] Error 2
      make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/intel_dfp-populate.dir/all] Error 2
      make: *** [Makefile:91: all] Error 2

      CMake Error at /usr/share/cmake/Modules/FetchContent.cmake:1662 (message):
        Build step for intel_dfp failed: 2
      Call Stack (most recent call first):
        /usr/share/cmake/Modules/FetchContent.cmake:1802:EVAL:2 (__FetchContent_directPopulate)
        /usr/share/cmake/Modules/FetchContent.cmake:1802 (cmake_language)
        cmake/IntelDFP.cmake:52 (FetchContent_Populate)
        cmake/ImportDFP.cmake:46 (include)
        CMakeLists.txt:53 (include)

      – Configuring incomplete, errors occurred!

      }}
      It seems that the way you call patch is not correct.

            Assignee:
            roberto.sanchez@mongodb.com Roberto Sanchez
            Reporter:
            zhanghuadedn@gmail.com Hua Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: