Hi,
We’re experiencing the following failure while building Node.js couchbase SDK 4.2.6 :
npm ci --omit=optional --no-audit
npm ERR! code 1
npm ERR! path /tmp/moncompte/mce-moncompte/npm-packages/mce-couchbase/node_modules/couchbase
npm ERR! command failed
npm ERR! command sh -c node ./scripts/install.js
npm ERR! Not searching for unused variables given on the command line.
npm ERR! -- NODEJS_INC_DIR=/tmp/moncompte/mce-moncompte/npm-packages/mce-couchbase/node_modules/couchbase/build/_deps/nodejs_headers-src/include/node;/tmp/moncompte/mce-moncompte/npm-packages/mce-couchbase/node_modules/node-api-headers/include;/tmp/moncompte/mce-moncompte/npm-packages/mce-couchbase/node_modules/node-addon-api
npm ERR! -- NODEJS_LIB=
npm ERR! -- CMake version 3.18.4
npm ERR! -- The CXX compiler identification is GNU 10.2.1
npm ERR! -- The C compiler identification is GNU 10.2.1
npm ERR! -- Detecting CXX compiler ABI info
npm ERR! -- Detecting CXX compiler ABI info - done
npm ERR! -- Check for working CXX compiler: /usr/bin/c++ - skipped
npm ERR! -- Detecting CXX compile features
npm ERR! -- Detecting CXX compile features - done
npm ERR! -- Detecting C compiler ABI info
npm ERR! -- Detecting C compiler ABI info - done
npm ERR! -- Check for working C compiler: /usr/bin/cc - skipped
npm ERR! -- Detecting C compile features
npm ERR! -- Detecting C compile features - done
npm ERR! -- Couchbase C++ client 1.0.0.0
npm ERR! -- CMAKE_SOURCE_DIR=/tmp/moncompte/mce-moncompte/npm-packages/mce-couchbase/node_modules/couchbase
npm ERR! -- CMAKE_BINARY_DIR=/tmp/moncompte/mce-moncompte/npm-packages/mce-couchbase/node_modules/couchbase/build
npm ERR! -- Looking for backtrace
npm ERR! -- Looking for backtrace - found
npm ERR! -- Looking for dladdr
npm ERR! -- Looking for dladdr - found
npm ERR! -- Looking for pthread.h
npm ERR! -- Looking for pthread.h - found
npm ERR! -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
npm ERR! -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
npm ERR! -- Looking for pthread_create in pthreads
npm ERR! -- Looking for pthread_create in pthreads - not found
npm ERR! -- Looking for pthread_create in pthread
npm ERR! -- Looking for pthread_create in pthread - found
npm ERR! -- Found Threads: TRUE
npm ERR! -- Adding PEGTL as submodule from external/PEGTL
npm ERR! -- Using std::filesystem
npm ERR! -- Module support is disabled.
npm ERR! -- Version: 8.0.1
npm ERR! -- Build type: Release
npm ERR! -- CXX_STANDARD: 17
npm ERR! -- Performing Test has_std_17_flag
npm ERR! -- Performing Test has_std_17_flag - Success
npm ERR! -- Performing Test has_std_1z_flag
npm ERR! -- Performing Test has_std_1z_flag - Success
npm ERR! -- Performing Test SUPPORTS_USER_DEFINED_LITERALS
npm ERR! -- Performing Test SUPPORTS_USER_DEFINED_LITERALS - Success
npm ERR! -- Performing Test FMT_HAS_VARIANT
npm ERR! -- Performing Test FMT_HAS_VARIANT - Success
npm ERR! -- Required features: cxx_variadic_templates
npm ERR! -- Looking for strtod_l
npm ERR! -- Looking for strtod_l - not found
npm ERR! -- Build spdlog: 1.9.2
npm ERR! -- Build type: Release
npm ERR! -- Check if the system is big endian
npm ERR! -- Searching 16 bit integer
npm ERR! -- Looking for sys/types.h
npm ERR! -- Looking for sys/types.h - found
npm ERR! -- Looking for stdint.h
npm ERR! -- Looking for stdint.h - found
npm ERR! -- Looking for stddef.h
npm ERR! -- Looking for stddef.h - found
npm ERR! -- Check size of unsigned short
npm ERR! -- Check size of unsigned short - done
npm ERR! -- Searching 16 bit integer - Using unsigned short
npm ERR! -- Check if the system is big endian - little endian
npm ERR! -- Looking for sys/mman.h
npm ERR! -- Looking for sys/mman.h - found
npm ERR! -- Looking for sys/resource.h
npm ERR! -- Looking for sys/resource.h - found
npm ERR! -- Looking for sys/time.h
npm ERR! -- Looking for sys/time.h - found
npm ERR! -- Looking for sys/uio.h
npm ERR! -- Looking for sys/uio.h - found
npm ERR! -- Looking for unistd.h
npm ERR! -- Looking for unistd.h - found
npm ERR! -- Looking for windows.h
npm ERR! -- Looking for windows.h - not found
npm ERR! -- Looking for zlibVersion in z
npm ERR! -- Looking for zlibVersion in z - not found
npm ERR! -- Looking for lzo1x_1_15_compress in lzo2
npm ERR! -- Looking for lzo1x_1_15_compress in lzo2 - not found
npm ERR! -- Looking for LZ4_compress_default in lz4
npm ERR! -- Looking for LZ4_compress_default in lz4 - not found
npm ERR! -- Performing Test HAVE_VISUAL_STUDIO_ARCH_AVX
npm ERR! -- Performing Test HAVE_VISUAL_STUDIO_ARCH_AVX - Failed
npm ERR! -- Performing Test HAVE_VISUAL_STUDIO_ARCH_AVX2
npm ERR! -- Performing Test HAVE_VISUAL_STUDIO_ARCH_AVX2 - Failed
npm ERR! -- Performing Test HAVE_CLANG_MAVX
npm ERR! -- Performing Test HAVE_CLANG_MAVX - Success
npm ERR! -- Performing Test HAVE_CLANG_MBMI2
npm ERR! -- Performing Test HAVE_CLANG_MBMI2 - Success
npm ERR! -- Performing Test SNAPPY_HAVE_NO_MISSING_FIELD_INITIALIZERS
npm ERR! -- Performing Test SNAPPY_HAVE_NO_MISSING_FIELD_INITIALIZERS - Success
npm ERR! -- Performing Test HAVE_BUILTIN_EXPECT
npm ERR! -- Performing Test HAVE_BUILTIN_EXPECT - Success
npm ERR! -- Performing Test HAVE_BUILTIN_CTZ
npm ERR! -- Performing Test HAVE_BUILTIN_CTZ - Success
npm ERR! -- Performing Test HAVE_ATTRIBUTE_ALWAYS_INLINE
npm ERR! -- Performing Test HAVE_ATTRIBUTE_ALWAYS_INLINE - Success
npm ERR! -- Performing Test SNAPPY_HAVE_SSSE3
npm ERR! -- Performing Test SNAPPY_HAVE_SSSE3 - Failed
npm ERR! -- Performing Test SNAPPY_HAVE_X86_CRC32
npm ERR! -- Performing Test SNAPPY_HAVE_X86_CRC32 - Failed
npm ERR! -- Performing Test SNAPPY_HAVE_NEON_CRC32
npm ERR! -- Performing Test SNAPPY_HAVE_NEON_CRC32 - Failed
npm ERR! -- Performing Test SNAPPY_HAVE_BMI2
npm ERR! -- Performing Test SNAPPY_HAVE_BMI2 - Failed
npm ERR! -- Performing Test SNAPPY_HAVE_NEON
npm ERR! -- Performing Test SNAPPY_HAVE_NEON - Failed
npm ERR! -- Looking for mmap
npm ERR! -- Looking for mmap - found
npm ERR! -- Looking for sysconf
npm ERR! -- Looking for sysconf - found
npm ERR! -- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
npm ERR! -- Looking for ceil in m
npm ERR! -- Looking for ceil in m - found
npm ERR! -- Looking for clock_gettime in rt
npm ERR! -- Looking for clock_gettime in rt - found
npm ERR! -- COUCHBASE_CXX_CLIENT_POST_LINKED_OPENSSL is set, assuming OpenSSL headers and symbols are available already
npm ERR! -- Configuring incomplete, errors occurred!
npm ERR! See also "/tmp/moncompte/mce-moncompte/npm-packages/mce-couchbase/node_modules/couchbase/build/CMakeFiles/CMakeOutput.log".
npm ERR! See also "/tmp/moncompte/mce-moncompte/npm-packages/mce-couchbase/node_modules/couchbase/build/CMakeFiles/CMakeError.log".
npm ERR! Not searching for unused variables given on the command line.
npm ERR! -- NODEJS_INC_DIR=/tmp/moncompte/mce-moncompte/npm-packages/mce-couchbase/node_modules/couchbase/build/_deps/nodejs_headers-src/include/node;/tmp/moncompte/mce-moncompte/npm-packages/mce-couchbase/node_modules/node-api-headers/include;/tmp/moncompte/mce-moncompte/npm-packages/mce-couchbase/node_modules/node-addon-api
npm ERR! -- NODEJS_LIB=
npm ERR! -- CMake version 3.18.4
npm ERR! -- The CXX compiler identification is GNU 10.2.1
npm ERR! -- The C compiler identification is GNU 10.2.1
npm ERR! -- Detecting CXX compiler ABI info
npm ERR! -- Detecting CXX compiler ABI info - done
npm ERR! -- Check for working CXX compiler: /usr/bin/c++ - skipped
npm ERR! -- Detecting CXX compile features
npm ERR! -- Detecting CXX compile features - done
npm ERR! -- Detecting C compiler ABI info
npm ERR! -- Detecting C compiler ABI info - done
npm ERR! -- Check for working C compiler: /usr/bin/cc - skipped
npm ERR! -- Detecting C compile features
npm ERR! -- Detecting C compile features - done
npm ERR! -- Couchbase C++ client 1.0.0.0
npm ERR! -- CMAKE_SOURCE_DIR=/tmp/moncompte/mce-moncompte/npm-packages/mce-couchbase/node_modules/couchbase
npm ERR! -- CMAKE_BINARY_DIR=/tmp/moncompte/mce-moncompte/npm-packages/mce-couchbase/node_modules/couchbase/build
npm ERR! -- Looking for backtrace
npm ERR! -- Looking for backtrace - found
npm ERR! -- Looking for dladdr
npm ERR! -- Looking for dladdr - found
npm ERR! -- Looking for pthread.h
npm ERR! -- Looking for pthread.h - found
npm ERR! -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
npm ERR! -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
npm ERR! -- Looking for pthread_create in pthreads
npm ERR! -- Looking for pthread_create in pthreads - not found
npm ERR! -- Looking for pthread_create in pthread
npm ERR! -- Looking for pthread_create in pthread - found
npm ERR! -- Found Threads: TRUE
npm ERR! -- Adding PEGTL as submodule from external/PEGTL
npm ERR! -- Using std::filesystem
npm ERR! -- Module support is disabled.
npm ERR! -- Version: 8.0.1
npm ERR! -- Build type: Release
npm ERR! -- CXX_STANDARD: 17
npm ERR! -- Performing Test has_std_17_flag
npm ERR! -- Performing Test has_std_17_flag - Success
npm ERR! -- Performing Test has_std_1z_flag
npm ERR! -- Performing Test has_std_1z_flag - Success
npm ERR! -- Performing Test SUPPORTS_USER_DEFINED_LITERALS
npm ERR! -- Performing Test SUPPORTS_USER_DEFINED_LITERALS - Success
npm ERR! -- Performing Test FMT_HAS_VARIANT
npm ERR! -- Performing Test FMT_HAS_VARIANT - Success
npm ERR! -- Required features: cxx_variadic_templates
npm ERR! -- Looking for strtod_l
npm ERR! -- Looking for strtod_l - not found
npm ERR! -- Build spdlog: 1.9.2
npm ERR! -- Build type: Release
npm ERR! -- Check if the system is big endian
npm ERR! -- Searching 16 bit integer
npm ERR! -- Looking for sys/types.h
npm ERR! -- Looking for sys/types.h - found
npm ERR! -- Looking for stdint.h
npm ERR! -- Looking for stdint.h - found
npm ERR! -- Looking for stddef.h
npm ERR! -- Looking for stddef.h - found
npm ERR! -- Check size of unsigned short
npm ERR! -- Check size of unsigned short - done
npm ERR! -- Searching 16 bit integer - Using unsigned short
npm ERR! -- Check if the system is big endian - little endian
npm ERR! -- Looking for sys/mman.h
npm ERR! -- Looking for sys/mman.h - found
npm ERR! -- Looking for sys/resource.h
npm ERR! -- Looking for sys/resource.h - found
npm ERR! -- Looking for sys/time.h
npm ERR! -- Looking for sys/time.h - found
npm ERR! -- Looking for sys/uio.h
npm ERR! -- Looking for sys/uio.h - found
npm ERR! -- Looking for unistd.h
npm ERR! -- Looking for unistd.h - found
npm ERR! -- Looking for windows.h
npm ERR! -- Looking for windows.h - not found
npm ERR! -- Looking for zlibVersion in z
npm ERR! -- Looking for zlibVersion in z - not found
npm ERR! -- Looking for lzo1x_1_15_compress in lzo2
npm ERR! -- Looking for lzo1x_1_15_compress in lzo2 - not found
npm ERR! -- Looking for LZ4_compress_default in lz4
npm ERR! -- Looking for LZ4_compress_default in lz4 - not found
npm ERR! -- Performing Test HAVE_VISUAL_STUDIO_ARCH_AVX
npm ERR! -- Performing Test HAVE_VISUAL_STUDIO_ARCH_AVX - Failed
npm ERR! -- Performing Test HAVE_VISUAL_STUDIO_ARCH_AVX2
npm ERR! -- Performing Test HAVE_VISUAL_STUDIO_ARCH_AVX2 - Failed
npm ERR! -- Performing Test HAVE_CLANG_MAVX
npm ERR! -- Performing Test HAVE_CLANG_MAVX - Success
npm ERR! -- Performing Test HAVE_CLANG_MBMI2
npm ERR! -- Performing Test HAVE_CLANG_MBMI2 - Success
npm ERR! -- Performing Test SNAPPY_HAVE_NO_MISSING_FIELD_INITIALIZERS
npm ERR! -- Performing Test SNAPPY_HAVE_NO_MISSING_FIELD_INITIALIZERS - Success
npm ERR! -- Performing Test HAVE_BUILTIN_EXPECT
npm ERR! -- Performing Test HAVE_BUILTIN_EXPECT - Success
npm ERR! -- Performing Test HAVE_BUILTIN_CTZ
npm ERR! -- Performing Test HAVE_BUILTIN_CTZ - Success
npm ERR! -- Performing Test HAVE_ATTRIBUTE_ALWAYS_INLINE
npm ERR! -- Performing Test HAVE_ATTRIBUTE_ALWAYS_INLINE - Success
npm ERR! -- Performing Test SNAPPY_HAVE_SSSE3
npm ERR! -- Performing Test SNAPPY_HAVE_SSSE3 - Failed
npm ERR! -- Performing Test SNAPPY_HAVE_X86_CRC32
npm ERR! -- Performing Test SNAPPY_HAVE_X86_CRC32 - Failed
npm ERR! -- Performing Test SNAPPY_HAVE_NEON_CRC32
npm ERR! -- Performing Test SNAPPY_HAVE_NEON_CRC32 - Failed
npm ERR! -- Performing Test SNAPPY_HAVE_BMI2
npm ERR! -- Performing Test SNAPPY_HAVE_BMI2 - Failed
npm ERR! -- Performing Test SNAPPY_HAVE_NEON
npm ERR! -- Performing Test SNAPPY_HAVE_NEON - Failed
npm ERR! -- Looking for mmap
npm ERR! -- Looking for mmap - found
npm ERR! -- Looking for sysconf
npm ERR! -- Looking for sysconf - found
npm ERR! -- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
npm ERR! -- Looking for ceil in m
npm ERR! -- Looking for ceil in m - found
npm ERR! -- Looking for clock_gettime in rt
npm ERR! -- Looking for clock_gettime in rt - found
npm ERR! -- COUCHBASE_CXX_CLIENT_POST_LINKED_OPENSSL is set, assuming OpenSSL headers and symbols are available already
npm ERR! -- Configuring incomplete, errors occurred!
npm ERR! See also "/tmp/moncompte/mce-moncompte/npm-packages/mce-couchbase/node_modules/couchbase/build/CMakeFiles/CMakeOutput.log".
npm ERR! See also "/tmp/moncompte/mce-moncompte/npm-packages/mce-couchbase/node_modules/couchbase/build/CMakeFiles/CMakeError.log".
npm ERR! info TOOL Using Unix Makefiles generator.
npm ERR! info CMD CONFIGURE
npm ERR! info RUN [
npm ERR! info RUN 'cmake',
npm ERR! info RUN '/tmp/moncompte/mce-moncompte/npm-packages/mce-couchbase/node_modules/couchbase',
npm ERR! info RUN '--no-warn-unused-cli',
npm ERR! info RUN '-G',
npm ERR! info RUN 'Unix Makefiles',
npm ERR! info RUN '-DCMAKE_JS_VERSION=7.2.1',
npm ERR! info RUN '-DCMAKE_BUILD_TYPE=Release',
npm ERR! info RUN '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/moncompte/mce-moncompte/npm-packages/mce-couchbase/node_modules/couchbase/build/Release',
npm ERR! info RUN '-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded$<$<CONFIG:Debug>:Debug>',
npm ERR! info RUN '-DCMAKE_JS_INC=/tmp/moncompte/mce-moncompte/npm-packages/mce-couchbase/node_modules/node-api-headers/include;/tmp/moncompte/mce-moncompte/npm-packages/mce-couchbase/node_modules/node-addon-api',
npm ERR! info RUN '-DCMAKE_JS_SRC=',
npm ERR! info RUN '-DNODE_RUNTIME=node',
npm ERR! info RUN '-DNODE_RUNTIMEVERSION=18.17.0',
npm ERR! info RUN '-DNODE_ARCH=x64',
npm ERR! info RUN '-DCMAKE_JS_LIB=',
npm ERR! info RUN '-DCMAKE_CXX_FLAGS=-DBUILDING_NODE_EXTENSION'
npm ERR! info RUN ]
npm ERR! Finding Node.js headers SHA for version: 18.17.0
npm ERR! Using SHA=7c47c07521f8be7693f3b0436d2ef0cb5a490d070d1d9a3606decc55c39c41c4
npm ERR! Downloading Node.js 18.17.0 headers...
npm ERR! Downloaded Node.js 18.17.0 headers to /tmp/moncompte/mce-moncompte/npm-packages/mce-couchbase/node_modules/couchbase/build/_deps/nodejs_headers-src
npm ERR! CMake Warning at deps/couchbase-cxx-client/cmake/Cache.cmake:28 (message):
npm ERR! ccache is enabled but was not found. Not using it
npm ERR! Call Stack (most recent call first):
npm ERR! deps/couchbase-cxx-client/CMakeLists.txt:37 (include)
npm ERR!
npm ERR!
npm ERR! CMake Error at deps/couchbase-cxx-client/cmake/OpenSSL.cmake:111 (string):
npm ERR! string sub-command REGEX, mode MATCH needs at least 5 arguments total to
npm ERR! command.
npm ERR! Call Stack (most recent call first):
npm ERR! deps/couchbase-cxx-client/CMakeLists.txt:70 (include)
npm ERR!
npm ERR!
npm ERR! CMake Error at deps/couchbase-cxx-client/cmake/OpenSSL.cmake:117 (message):
npm ERR! Failed to extract expected hash from file
npm ERR! Call Stack (most recent call first):
npm ERR! deps/couchbase-cxx-client/CMakeLists.txt:70 (include)
npm ERR!
npm ERR!
npm ERR! info REP Build has been failed, trying to do a full rebuild.
npm ERR! info CMD CLEAN
npm ERR! info RUN [
npm ERR! info RUN 'cmake',
npm ERR! info RUN '-E',
npm ERR! info RUN 'remove_directory',
npm ERR! info RUN '/tmp/moncompte/mce-moncompte/npm-packages/mce-couchbase/node_modules/couchbase/build'
npm ERR! info RUN ]
npm ERR! info CMD CONFIGURE
npm ERR! info RUN [
npm ERR! info RUN 'cmake',
npm ERR! info RUN '/tmp/moncompte/mce-moncompte/npm-packages/mce-couchbase/node_modules/couchbase',
npm ERR! info RUN '--no-warn-unused-cli',
npm ERR! info RUN '-G',
npm ERR! info RUN 'Unix Makefiles',
npm ERR! info RUN '-DCMAKE_JS_VERSION=7.2.1',
npm ERR! info RUN '-DCMAKE_BUILD_TYPE=Release',
npm ERR! info RUN '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/moncompte/mce-moncompte/npm-packages/mce-couchbase/node_modules/couchbase/build/Release',
npm ERR! info RUN '-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded$<$<CONFIG:Debug>:Debug>',
npm ERR! info RUN '-DCMAKE_JS_INC=/tmp/moncompte/mce-moncompte/npm-packages/mce-couchbase/node_modules/node-api-headers/include;/tmp/moncompte/mce-moncompte/npm-packages/mce-couchbase/node_modules/node-addon-api',
npm ERR! info RUN '-DCMAKE_JS_SRC=',
npm ERR! info RUN '-DNODE_RUNTIME=node',
npm ERR! info RUN '-DNODE_RUNTIMEVERSION=18.17.0',
npm ERR! info RUN '-DNODE_ARCH=x64',
npm ERR! info RUN '-DCMAKE_JS_LIB=',
npm ERR! info RUN '-DCMAKE_CXX_FLAGS=-DBUILDING_NODE_EXTENSION'
npm ERR! info RUN ]
npm ERR! Finding Node.js headers SHA for version: 18.17.0
npm ERR! Using SHA=7c47c07521f8be7693f3b0436d2ef0cb5a490d070d1d9a3606decc55c39c41c4
npm ERR! Downloading Node.js 18.17.0 headers...
npm ERR! Downloaded Node.js 18.17.0 headers to /tmp/moncompte/mce-moncompte/npm-packages/mce-couchbase/node_modules/couchbase/build/_deps/nodejs_headers-src
npm ERR! CMake Warning at deps/couchbase-cxx-client/cmake/Cache.cmake:28 (message):
npm ERR! ccache is enabled but was not found. Not using it
npm ERR! Call Stack (most recent call first):
npm ERR! deps/couchbase-cxx-client/CMakeLists.txt:37 (include)
npm ERR!
npm ERR!
npm ERR! CMake Error at deps/couchbase-cxx-client/cmake/OpenSSL.cmake:111 (string):
npm ERR! string sub-command REGEX, mode MATCH needs at least 5 arguments total to
npm ERR! command.
npm ERR! Call Stack (most recent call first):
npm ERR! deps/couchbase-cxx-client/CMakeLists.txt:70 (include)
npm ERR!
npm ERR!
npm ERR! CMake Error at deps/couchbase-cxx-client/cmake/OpenSSL.cmake:117 (message):
npm ERR! Failed to extract expected hash from file
npm ERR! Call Stack (most recent call first):
npm ERR! deps/couchbase-cxx-client/CMakeLists.txt:70 (include)
npm ERR!
npm ERR!
npm ERR! ERR! OMG Process terminated: 1
Can someone help ?
Regards,