Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--build-from-source is broken on Rocky 9, node 20 #622

Open
bhainesnexxen opened this issue Jun 26, 2024 · 0 comments
Open

--build-from-source is broken on Rocky 9, node 20 #622

bhainesnexxen opened this issue Jun 26, 2024 · 0 comments

Comments

@bhainesnexxen
Copy link

Repro:

  • Install Rocky 9 & development tools
  • Install nvm
  • nvm install 20
  • npm install aerospike --build-from-source
npm error code 1
npm error path /home/brian/src/aerospike/node_modules/aerospike
npm error command failed
npm error command sh -c npm-run-all removeExtraBinaries build
npm error > [email protected] removeExtraBinaries
npm error > node ./scripts/prebuiltBinding.js
npm error
npm error
npm error > [email protected] build
npm error > node-pre-gyp install --fallback-to-build
npm error
npm error
npm error make: Entering directory '/home/brian/src/aerospike/node_modules/aerospike/build'
npm error   TOUCH 39c4865288f8571e3f2c338327483d8ac58e40d4.intermediate
npm error   ACTION binding_gyp_aerospike_core_client_target_Validating_Aerospike_C_Client_dependency 39c4865288f8571e3f2c338327483d8ac58e40d4.intermediate
npm error
npm error CHECK
npm error
npm error    [✗] /home/brian/src/aerospike/node_modules/aerospike/aerospike-client-c/target/Linux-x86_64/lib/libaerospike.a
npm error    [✗] /home/brian/src/aerospike/node_modules/aerospike/aerospike-client-c/target/Linux-x86_64/include/aerospike/aerospike.h
npm error
npm error rm 39c4865288f8571e3f2c338327483d8ac58e40d4.intermediate
npm error make: Leaving directory '/home/brian/src/aerospike/node_modules/aerospike/build'
npm error Failed to execute '/home/brian/.nvm/versions/node/v20.15.0/bin/node /home/brian/.nvm/versions/node/v20.15.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/brian/src/aerospike/node_modules/aerospike/lib/binding/node-v115-linux-x64/aerospike.node --module_name=aerospike --module_path=/home/brian/src/aerospike/node_modules/aerospike/lib/binding/node-v115-linux-x64 --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v115' (1)
npm error node-pre-gyp info it worked if it ends with ok
npm error node-pre-gyp info using [email protected]
npm error node-pre-gyp info using [email protected] | linux | x64
npm error node-pre-gyp info build requesting source compile
npm error gyp info it worked if it ends with ok
npm error gyp info using [email protected]
npm error gyp info using [email protected] | linux | x64
npm error gyp info ok 
npm error gyp info it worked if it ends with ok
npm error gyp info using [email protected]
npm error gyp info using [email protected] | linux | x64
npm error gyp info find Python using Python version 3.9.18 found at "/usr/bin/python3"
npm error gyp info spawn /usr/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args '/home/brian/.nvm/versions/node/v20.15.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'make',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/home/brian/src/aerospike/node_modules/aerospike/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/home/brian/.nvm/versions/node/v20.15.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/home/brian/.cache/node-gyp/20.15.0/include/node/common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=/home/brian/.cache/node-gyp/20.15.0',
npm error gyp info spawn args '-Dnode_gyp_dir=/home/brian/.nvm/versions/node/v20.15.0/lib/node_modules/npm/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/home/brian/.cache/node-gyp/20.15.0/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/home/brian/src/aerospike/node_modules/aerospike',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error gyp info ok 
npm error gyp info it worked if it ends with ok
npm error gyp info using [email protected]
npm error gyp info using [email protected] | linux | x64
npm error gyp info spawn make
npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm error make: *** [aerospike-core-client.target.mk:17: 39c4865288f8571e3f2c338327483d8ac58e40d4.intermediate] Error 1
npm error gyp ERR! build error 
npm error gyp ERR! stack Error: `make` failed with exit code: 2
npm error gyp ERR! stack at ChildProcess.<anonymous> (/home/brian/.nvm/versions/node/v20.15.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23)
npm error gyp ERR! System Linux 5.14.0-427.13.1.el9_4.x86_64
npm error gyp ERR! command "/home/brian/.nvm/versions/node/v20.15.0/bin/node" "/home/brian/.nvm/versions/node/v20.15.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/brian/src/aerospike/node_modules/aerospike/lib/binding/node-v115-linux-x64/aerospike.node" "--module_name=aerospike" "--module_path=/home/brian/src/aerospike/node_modules/aerospike/lib/binding/node-v115-linux-x64" "--napi_version=9" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v115"
npm error gyp ERR! cwd /home/brian/src/aerospike/node_modules/aerospike
npm error gyp ERR! node -v v20.15.0
npm error gyp ERR! node-gyp -v v10.1.0
npm error gyp ERR! not ok 
npm error node-pre-gyp ERR! build error 
npm error node-pre-gyp ERR! stack Error: Failed to execute '/home/brian/.nvm/versions/node/v20.15.0/bin/node /home/brian/.nvm/versions/node/v20.15.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/brian/src/aerospike/node_modules/aerospike/lib/binding/node-v115-linux-x64/aerospike.node --module_name=aerospike --module_path=/home/brian/src/aerospike/node_modules/aerospike/lib/binding/node-v115-linux-x64 --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v115' (1)
npm error node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/brian/src/aerospike/node_modules/aerospike/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
npm error node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:519:28)
npm error node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1105:16)
npm error node-pre-gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:305:5)
npm error node-pre-gyp ERR! System Linux 5.14.0-427.13.1.el9_4.x86_64
npm error node-pre-gyp ERR! command "/home/brian/.nvm/versions/node/v20.15.0/bin/node" "/home/brian/src/aerospike/node_modules/aerospike/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
npm error node-pre-gyp ERR! cwd /home/brian/src/aerospike/node_modules/aerospike
npm error node-pre-gyp ERR! node -v v20.15.0
npm error node-pre-gyp ERR! node-pre-gyp -v v1.0.11
npm error node-pre-gyp ERR! not ok 
npm error ERROR: "build" exited with 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant