Skip to content

Install Script stalls indefinitely, shows logs after terminating process #103

@FlacoJones

Description

@FlacoJones

Environment Information

  • OS [e.g. Mac, Arch, Windows 10]: Mac Sonoma 14.6.1
  • Node Version [e.g. 8.2.1]: v20.15.0
  • NPM Version [e.g. 5.4.2]: 10.7.0
  • PNPM Version [e.g. 5.4.2]: 8.13.1
  • C++ Toolchain [e.g. Visual Studio, llvm, g++]: unsure
  • confluent-kafka-javascript version [e.g. 2.3.3]: 0.2.0

Steps to Reproduce

  1. Add "@confluentinc/kafka-javascript": "^0.2.0" to package.json.
  2. Run pnpm install in the

confluent-kafka-javascript Configuration Settings
Only added to package.json.

Additional context

We are using PNPM and Turbo for our monorepo. When I run pnpm install in the workspace root, it stalls indefinitely on "Running install script.

Upon Ctrl+C to terminate the install, it shows these logs all at once:

Logs

nonode_modules/.pnpm/@confluentinc+kafka-javascript@0.2.0/node_modules/@confluentinc/kafka-javascript: Running install script, failed in 3m 47.3s
.../@confluentinc/kafka-javascript install$ node-pre-gyp install --fallback-to-build
│ node-pre-gyp info it worked if it ends with ok
│ node-pre-gyp info using node-pre-gyp@1.0.11
│ node-pre-gyp info using node@20.15.0 | darwin | x64
│ node-pre-gyp info check checked for "/Users/alo/OpenQ-Fullstack/OpenQ-DRM/node_modules/.pnpm/@confluentinc+kafka-javascript@0.2.0/node_modules/@con…
│ node-pre-gyp http GET https://github.com/confluentinc/confluent-kafka-javascript/releases/download/v0.2.0/confluent-kafka-javascript-v0.2.0-node-v1…
│ node-pre-gyp ERR! install response status 404 Not Found on https://github.com/confluentinc/confluent-kafka-javascript/releases/download/v0.2.0/conf…
│ node-pre-gyp WARN Pre-built binaries not installable for @confluentinc/kafka-javascript@v0.2.0 and node@20.15.0 (node-v115 ABI, unknown) (falling b…
│ node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/confluentinc/confluent-kafka-javascript/releases/download/v0.2.0/co…
│ gyp info it worked if it ends with ok
│ gyp info using node-gyp@9.4.1
│ gyp info using node@20.15.0 | darwin | x64
│ gyp info ok 
│ gyp info it worked if it ends with ok
│ gyp info using node-gyp@9.4.1
│ gyp info using node@20.15.0 | darwin | x64
│ gyp info find Python using Python version 3.7.9 found at "/usr/local/bin/python3"
│ gyp info spawn /usr/local/bin/python3
│ gyp info spawn args [
│ gyp info spawn args   '/usr/local/Cellar/pnpm/8.13.1/libexec/dist/node_modules/node-gyp/gyp/gyp_main.py',
│ gyp info spawn args   'binding.gyp',
│ gyp info spawn args   '-f',
│ gyp info spawn args   'make',
│ gyp info spawn args   '-I',
│ gyp info spawn args   '/Users/alo/OpenQ-Fullstack/OpenQ-DRM/node_modules/.pnpm/@confluentinc+kafka-javascript@0.2.0/node_modules/@confluentinc/kafk…
│ gyp info spawn args   '-I',
│ gyp info spawn args   '/usr/local/Cellar/pnpm/8.13.1/libexec/dist/node_modules/node-gyp/addon.gypi',
│ gyp info spawn args   '-I',
│ gyp info spawn args   '/Users/alo/Library/Caches/node-gyp/20.15.0/include/node/common.gypi',
│ gyp info spawn args   '-Dlibrary=shared_library',
│ gyp info spawn args   '-Dvisibility=default',
│ gyp info spawn args   '-Dnode_root_dir=/Users/alo/Library/Caches/node-gyp/20.15.0',
│ gyp info spawn args   '-Dnode_gyp_dir=/usr/local/Cellar/pnpm/8.13.1/libexec/dist/node_modules/node-gyp',
│ gyp info spawn args   '-Dnode_lib_file=/Users/alo/Library/Caches/node-gyp/20.15.0/<(target_arch)/node.lib',
│ gyp info spawn args   '-Dmodule_root_dir=/Users/alo/OpenQ-Fullstack/OpenQ-DRM/node_modules/.pnpm/@confluentinc+kafka-javascript@0.2.0/node_modules/…
│ gyp info spawn args   '-Dnode_engine=v8',
│ gyp info spawn args   '--depth=.',
│ gyp info spawn args   '--no-parallel',
│ gyp info spawn args   '--generator-output',
│ gyp info spawn args   'build',
│ gyp info spawn args   '-Goutput_dir=.'
│ gyp info spawn args ]
│ gyp info ok 
│ gyp info it worked if it ends with ok
│ gyp info using node-gyp@9.4.1
│ gyp info using node@20.15.0 | darwin | x64
│ gyp info spawn make
│ gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
│   ACTION deps_librdkafka_gyp_librdkafka_target_configure deps/librdkafka/config.h
│ checking for OS or distribution... ok (osx)
│ checking for C compiler from CC env... failed
│ checking for gcc (by command)... ok
│ checking for C++ compiler from CXX env... failed
│ checking for C++ compiler (g++)... ok
│ checking executable ld... ok
│ checking executable nm... ok
│ checking executable objdump... ok
│ checking executable strip... ok
│ checking executable libtool... ok
│ checking executable ranlib... ok
│ checking for debug symbols compiler flag (-g...)... ok
│ checking for pkgconfig (by command)... ok
│ checking for install (by command)... failed
│ checking for GNU ar... failed (disable)
│ checking for PIC (by compile)... ok
│ checking for GNU-compatible linker options... failed
│ checking for OSX linker options... ok
│ checking for GNU linker-script ld flag... failed
│ checking for Solaris linker-script ld flag... failed (ignore)
│ checking for __atomic_32 (by compile)... ok
│ checking for __atomic_64 (by compile)... ok
│ checking for socket (by compile)... ok
│ parsing version '0x020503ff'... ok (2.5.3)
│ checking for librt (by pkg-config)... failed
│ checking for librt (by compile)... failed
│ checking for libpthread (by pkg-config)... failed
│ checking for libpthread (by compile)... ok
│ checking for c11threads (by pkg-config)... failed
│ checking for c11threads (by compile)... failed (disable)
│ checking for libdl (by pkg-config)... failed
│ checking for libdl (by compile)... ok
│ building dependency zlib... ok (from source)
│ checking for zlib (by pkg-config)... failed (ignore)
│ checking for zlib (by compile)... ok
│ make: *** [deps/librdkafka/config.h] Interrupt: 2
│ building dependency libcrypto...
└─ Failed in 3m 47.3s at /Users/alo/OpenQ-Fullstack/OpenQ-DRM/node_modules/.pnpm/@confluentinc+kafka-javascript@0.2.0/node_modules/@confluentinc/kafka-javascript

It appears to fail on building dependency libcrypto... when i hit deps/librdkafka/config.h

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionA question is asked

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions