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

npm install fails on Mac OS 13.4.1 (Apple Silicon CPU - M2) #137

Open
mreis1 opened this issue Aug 23, 2023 · 0 comments
Open

npm install fails on Mac OS 13.4.1 (Apple Silicon CPU - M2) #137

mreis1 opened this issue Aug 23, 2023 · 0 comments

Comments

@mreis1
Copy link

mreis1 commented Aug 23, 2023

Any idea on how to fix this error?

marcio@MBP-de-Marcio node-firebird % npm install firebird --verbose
npm verb cli /Users/marcio/.nvm/versions/node/v18.17.1/bin/node /Users/marcio/.nvm/versions/node/v18.17.1/bin/npm
npm info using [email protected]
npm info using [email protected]
npm verb title npm install firebird
npm verb argv "install" "firebird" "--loglevel" "verbose"
npm verb logfile logs-max:10 dir:/Users/marcio/.npm/_logs/2023-08-23T21_18_15_052Z-
npm verb logfile /Users/marcio/.npm/_logs/2023-08-23T21_18_15_052Z-debug-0.log
npm http fetch GET 200 https://registry.npmjs.org/firebird 815ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/nan 48ms (cache revalidated)
npm info run [email protected] install node_modules/firebird node-gyp rebuild
npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 187ms
npm info run [email protected] install { code: 1, signal: null }
npm verb stack Error: command failed
npm verb stack     at ChildProcess.<anonymous> (/Users/marcio/.nvm/versions/node/v18.17.1/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:53:27)
npm verb stack     at ChildProcess.emit (node:events:514:28)
npm verb stack     at maybeClose (node:internal/child_process:1091:16)
npm verb stack     at ChildProcess._handle.onexit (node:internal/child_process:302:5)
npm verb pkgid [email protected]
npm verb cwd /Users/marcio/DevExperiments/node-firebird
npm verb Darwin 22.5.0
npm verb node v18.17.1
npm verb npm  v9.6.7
npm ERR! code 1
npm ERR! path /Users/marcio/DevExperiments/node-firebird/node_modules/firebird
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! c++ -o Release/obj.target/binding/src/fb-bindings.o ../src/fb-bindings.cc '-DNODE_GYP_MODULE_NAME=binding' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DBUILDING_NODE_EXTENSION' -I/Users/marcio/Library/Caches/node-gyp/18.17.1/include/node -I/Users/marcio/Library/Caches/node-gyp/18.17.1/src -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/openssl/config -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/openssl/openssl/include -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/uv/include -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/zlib -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/v8/include -I/Users/marcio/DevExperiments/node-firebird/node_modules/firebird/fb/include -I../../nan  -O3 -gdwarf-2 -mmacosx-version-min=10.15 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++17 -stdlib=libc++ -fno-rtti -fno-exceptions -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/binding/src/fb-bindings.o.d.raw   -c
npm ERR!   c++ -o Release/obj.target/binding/src/fb-bindings-blob.o ../src/fb-bindings-blob.cc '-DNODE_GYP_MODULE_NAME=binding' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DBUILDING_NODE_EXTENSION' -I/Users/marcio/Library/Caches/node-gyp/18.17.1/include/node -I/Users/marcio/Library/Caches/node-gyp/18.17.1/src -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/openssl/config -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/openssl/openssl/include -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/uv/include -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/zlib -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/v8/include -I/Users/marcio/DevExperiments/node-firebird/node_modules/firebird/fb/include -I../../nan  -O3 -gdwarf-2 -mmacosx-version-min=10.15 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++17 -stdlib=libc++ -fno-rtti -fno-exceptions -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/binding/src/fb-bindings-blob.o.d.raw   -c
npm ERR!   c++ -o Release/obj.target/binding/src/fb-bindings-fbresult.o ../src/fb-bindings-fbresult.cc '-DNODE_GYP_MODULE_NAME=binding' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DBUILDING_NODE_EXTENSION' -I/Users/marcio/Library/Caches/node-gyp/18.17.1/include/node -I/Users/marcio/Library/Caches/node-gyp/18.17.1/src -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/openssl/config -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/openssl/openssl/include -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/uv/include -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/zlib -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/v8/include -I/Users/marcio/DevExperiments/node-firebird/node_modules/firebird/fb/include -I../../nan  -O3 -gdwarf-2 -mmacosx-version-min=10.15 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++17 -stdlib=libc++ -fno-rtti -fno-exceptions -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/binding/src/fb-bindings-fbresult.o.d.raw   -c
npm ERR!   c++ -o Release/obj.target/binding/src/fb-bindings-connection.o ../src/fb-bindings-connection.cc '-DNODE_GYP_MODULE_NAME=binding' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DBUILDING_NODE_EXTENSION' -I/Users/marcio/Library/Caches/node-gyp/18.17.1/include/node -I/Users/marcio/Library/Caches/node-gyp/18.17.1/src -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/openssl/config -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/openssl/openssl/include -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/uv/include -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/zlib -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/v8/include -I/Users/marcio/DevExperiments/node-firebird/node_modules/firebird/fb/include -I../../nan  -O3 -gdwarf-2 -mmacosx-version-min=10.15 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++17 -stdlib=libc++ -fno-rtti -fno-exceptions -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/binding/src/fb-bindings-connection.o.d.raw   -c
npm ERR!   c++ -o Release/obj.target/binding/src/fb-bindings-eventblock.o ../src/fb-bindings-eventblock.cc '-DNODE_GYP_MODULE_NAME=binding' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DBUILDING_NODE_EXTENSION' -I/Users/marcio/Library/Caches/node-gyp/18.17.1/include/node -I/Users/marcio/Library/Caches/node-gyp/18.17.1/src -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/openssl/config -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/openssl/openssl/include -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/uv/include -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/zlib -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/v8/include -I/Users/marcio/DevExperiments/node-firebird/node_modules/firebird/fb/include -I../../nan  -O3 -gdwarf-2 -mmacosx-version-min=10.15 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++17 -stdlib=libc++ -fno-rtti -fno-exceptions -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/binding/src/fb-bindings-eventblock.o.d.raw   -c
npm ERR!   c++ -o Release/obj.target/binding/src/fb-bindings-fbeventemitter.o ../src/fb-bindings-fbeventemitter.cc '-DNODE_GYP_MODULE_NAME=binding' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DBUILDING_NODE_EXTENSION' -I/Users/marcio/Library/Caches/node-gyp/18.17.1/include/node -I/Users/marcio/Library/Caches/node-gyp/18.17.1/src -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/openssl/config -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/openssl/openssl/include -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/uv/include -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/zlib -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/v8/include -I/Users/marcio/DevExperiments/node-firebird/node_modules/firebird/fb/include -I../../nan  -O3 -gdwarf-2 -mmacosx-version-min=10.15 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++17 -stdlib=libc++ -fno-rtti -fno-exceptions -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/binding/src/fb-bindings-fbeventemitter.o.d.raw   -c
npm ERR!   c++ -o Release/obj.target/binding/src/fb-bindings-statement.o ../src/fb-bindings-statement.cc '-DNODE_GYP_MODULE_NAME=binding' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DBUILDING_NODE_EXTENSION' -I/Users/marcio/Library/Caches/node-gyp/18.17.1/include/node -I/Users/marcio/Library/Caches/node-gyp/18.17.1/src -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/openssl/config -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/openssl/openssl/include -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/uv/include -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/zlib -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/v8/include -I/Users/marcio/DevExperiments/node-firebird/node_modules/firebird/fb/include -I../../nan  -O3 -gdwarf-2 -mmacosx-version-min=10.15 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++17 -stdlib=libc++ -fno-rtti -fno-exceptions -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/binding/src/fb-bindings-statement.o.d.raw   -c
npm ERR!   c++ -o Release/obj.target/binding/src/fb-bindings-transaction.o ../src/fb-bindings-transaction.cc '-DNODE_GYP_MODULE_NAME=binding' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DBUILDING_NODE_EXTENSION' -I/Users/marcio/Library/Caches/node-gyp/18.17.1/include/node -I/Users/marcio/Library/Caches/node-gyp/18.17.1/src -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/openssl/config -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/openssl/openssl/include -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/uv/include -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/zlib -I/Users/marcio/Library/Caches/node-gyp/18.17.1/deps/v8/include -I/Users/marcio/DevExperiments/node-firebird/node_modules/firebird/fb/include -I../../nan  -O3 -gdwarf-2 -mmacosx-version-min=10.15 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++17 -stdlib=libc++ -fno-rtti -fno-exceptions -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/binding/src/fb-bindings-transaction.o.d.raw   -c
npm ERR!   c++ -bundle -undefined dynamic_lookup -Wl,-search_paths_first -mmacosx-version-min=10.15 -arch arm64 -L./Release -stdlib=libc++  -o Release/binding.node Release/obj.target/binding/src/fb-bindings.o Release/obj.target/binding/src/fb-bindings-blob.o Release/obj.target/binding/src/fb-bindings-fbresult.o Release/obj.target/binding/src/fb-bindings-connection.o Release/obj.target/binding/src/fb-bindings-eventblock.o Release/obj.target/binding/src/fb-bindings-fbeventemitter.o Release/obj.target/binding/src/fb-bindings-statement.o Release/obj.target/binding/src/fb-bindings-transaction.o -L/Library/Frameworks/Firebird.framework/Libraries/ -lfbclient
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp verb cli [
npm ERR! gyp verb cli   '/Users/marcio/.nvm/versions/node/v18.17.1/bin/node',
npm ERR! gyp verb cli   '/Users/marcio/.nvm/versions/node/v18.17.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js',
npm ERR! gyp verb cli   'rebuild'
npm ERR! gyp verb cli ]
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | darwin | arm64
npm ERR! gyp verb command rebuild []
npm ERR! gyp verb command clean []
npm ERR! gyp verb clean removing "build" directory
npm ERR! gyp verb command configure []
npm ERR! gyp verb find Python Python is not set from command line or npm configuration
npm ERR! gyp verb find Python Python is not set from environment variable PYTHON
npm ERR! gyp verb find Python checking if "python3" can be used
npm ERR! gyp verb find Python - executing "python3" to get executable path
npm ERR! gyp verb find Python - executable path is "/Users/marcio/.pyenv/versions/3.9.1/bin/python3"
npm ERR! gyp verb find Python - executing "/Users/marcio/.pyenv/versions/3.9.1/bin/python3" to get version
npm ERR! gyp verb find Python - version is "3.9.1"
npm ERR! gyp info find Python using Python version 3.9.1 found at "/Users/marcio/.pyenv/versions/3.9.1/bin/python3"
npm ERR! gyp verb get node dir no --target version specified, falling back to host node version: 18.17.1
npm ERR! gyp verb command install [ '18.17.1' ]
npm ERR! gyp verb install input version string "18.17.1"
npm ERR! gyp verb install installing version: 18.17.1
npm ERR! gyp verb install --ensure was passed, so won't reinstall if already installed
npm ERR! gyp verb install version is already installed, need to check "installVersion"
npm ERR! gyp verb got "installVersion" 9
npm ERR! gyp verb needs "installVersion" 9
npm ERR! gyp verb install version is good
npm ERR! gyp verb get node dir target node version installed: 18.17.1
npm ERR! gyp verb build dir attempting to create "build" dir: /Users/marcio/DevExperiments/node-firebird/node_modules/firebird/build
npm ERR! gyp verb build dir "build" dir needed to be created? Yes
npm ERR! gyp verb python symlink creating symlink to "/Users/marcio/.pyenv/versions/3.9.1/bin/python3" at "/Users/marcio/DevExperiments/node-firebird/node_modules/firebird/build/node_gyp_bins/python3"
npm ERR! gyp verb build/config.gypi creating config file
npm ERR! gyp verb build/config.gypi writing out config file: /Users/marcio/DevExperiments/node-firebird/node_modules/firebird/build/config.gypi
npm ERR! gyp verb config.gypi checking for gypi file: /Users/marcio/DevExperiments/node-firebird/node_modules/firebird/config.gypi
npm ERR! gyp verb common.gypi checking for gypi file: /Users/marcio/DevExperiments/node-firebird/node_modules/firebird/common.gypi
npm ERR! gyp verb gyp gyp format was not specified; forcing "make"
npm ERR! gyp info spawn /Users/marcio/.pyenv/versions/3.9.1/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/Users/marcio/.nvm/versions/node/v18.17.1/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/marcio/DevExperiments/node-firebird/node_modules/firebird/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/marcio/.nvm/versions/node/v18.17.1/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/marcio/Library/Caches/node-gyp/18.17.1/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/Users/marcio/Library/Caches/node-gyp/18.17.1',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/Users/marcio/.nvm/versions/node/v18.17.1/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/Users/marcio/Library/Caches/node-gyp/18.17.1/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/Users/marcio/DevExperiments/node-firebird/node_modules/firebird',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp verb command build []
npm ERR! gyp verb build type Release
npm ERR! gyp verb architecture arm64
npm ERR! gyp verb node dev dir /Users/marcio/Library/Caches/node-gyp/18.17.1
npm ERR! gyp verb `which` succeeded for `make` /usr/bin/make
npm ERR! gyp verb bin symlinks adding symlinks (such as Python), at "/Users/marcio/DevExperiments/node-firebird/node_modules/firebird/build/node_gyp_bins", to PATH
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! ../src/fb-bindings-fbresult.cc:159:3: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
npm ERR!   sprintf(buf,msg,arg);
npm ERR!   ^
npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
npm ERR! __deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
npm ERR! ^
npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
npm ERR!         #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
npm ERR!                                                       ^
npm ERR! ../src/fb-bindings-fbresult.cc:165:3: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
npm ERR!   sprintf(buf,msg,arg1,arg2);
npm ERR!   ^
npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
npm ERR! __deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
npm ERR! ^
npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
npm ERR!         #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
npm ERR!                                                       ^
npm ERR! ../src/fb-bindings-fbresult.cc:884:17: warning: implicit conversion of NULL constant to 'isc_stmt_handle' (aka 'unsigned int') [-Wnull-conversion]
npm ERR!            else stmt = NULL;
npm ERR!                      ~ ^~~~
npm ERR!                        0
npm ERR! 3 warnings generated.
npm ERR! ../src/fb-bindings-connection.cc:113:12: warning: implicit conversion of NULL constant to 'isc_db_handle' (aka 'unsigned int') [-Wnull-conversion]
npm ERR!       db = NULL;
npm ERR!          ~ ^~~~
npm ERR!            0
npm ERR! ../src/fb-bindings-connection.cc:116:10: warning: implicit conversion of NULL constant to 'isc_db_handle' (aka 'unsigned int') [-Wnull-conversion]
npm ERR!     db = NULL;
npm ERR!        ~ ^~~~
npm ERR!          0
npm ERR! ../src/fb-bindings-connection.cc:649:28: warning: implicit conversion of NULL constant to 'isc_stmt_handle' (aka 'unsigned int') [-Wnull-conversion]
npm ERR!     isc_stmt_handle stmt = NULL;
npm ERR!                     ~~~~   ^~~~
npm ERR!                            0
npm ERR! ../src/fb-bindings-connection.cc:788:19: warning: implicit conversion of NULL constant to 'isc_stmt_handle' (aka 'unsigned int') [-Wnull-conversion]
npm ERR!     q_req->stmt = NULL;
npm ERR!                 ~ ^~~~
npm ERR!                   0
npm ERR! ../src/fb-bindings-connection.cc:853:28: warning: implicit conversion of NULL constant to 'isc_stmt_handle' (aka 'unsigned int') [-Wnull-conversion]
npm ERR!     isc_stmt_handle stmt = NULL;
npm ERR!                     ~~~~   ^~~~
npm ERR!                            0
npm ERR! ../src/fb-bindings-connection.cc:897:10: warning: implicit conversion of NULL constant to 'isc_db_handle' (aka 'unsigned int') [-Wnull-conversion]
npm ERR!     db = NULL;
npm ERR!        ~ ^~~~
npm ERR!          0
npm ERR! ../src/fb-bindings-connection.cc:906:7: warning: comparison between NULL and non-pointer ('isc_db_handle' (aka 'unsigned int') and NULL) [-Wnull-arithmetic]
npm ERR!         if(db!=NULL) Close();
npm ERR!            ~~^ ~~~~
npm ERR! ../src/fb-bindings-connection.cc:911:15: warning: comparison between NULL and non-pointer ('isc_db_handle' (aka 'unsigned int') and NULL) [-Wnull-arithmetic]
npm ERR!     assert(db == NULL);
npm ERR!            ~~ ^  ~~~~
npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/assert.h:99:25: note: expanded from macro 'assert'
npm ERR!     (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __ASSERT_FILE_NAME, __LINE__, #e) : (void)0)
npm ERR!                         ^
npm ERR! 8 warnings generated.
npm ERR! ../src/fb-bindings-transaction.cc:210:10: warning: implicit conversion of NULL constant to 'isc_tr_handle' (aka 'unsigned int') [-Wnull-conversion]
npm ERR!         trans = NULL;
npm ERR!               ~ ^~~~
npm ERR!                 0
npm ERR! 1 warning generated.
npm ERR! ld: warning: directory not found for option '-L/Library/Frameworks/Firebird.framework/Libraries/'
npm ERR! ld: library not found for -lfbclient
npm ERR! clang: error: linker command failed with exit code 1 (use -v to see invocation)
npm ERR! make: *** [Release/binding.node] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/Users/marcio/.nvm/versions/node/v18.17.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:514:28)
npm ERR! gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Darwin 22.5.0
npm ERR! gyp ERR! command "/Users/marcio/.nvm/versions/node/v18.17.1/bin/node" "/Users/marcio/.nvm/versions/node/v18.17.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /Users/marcio/DevExperiments/node-firebird/node_modules/firebird
npm ERR! gyp ERR! node -v v18.17.1
npm ERR! gyp ERR! node-gyp -v v9.3.1
npm ERR! gyp ERR! not ok
npm verb exit 1
npm verb unfinished npm timer reify 1692825495128
npm verb unfinished npm timer reify:build 1692825496051
npm verb unfinished npm timer build 1692825496051
npm verb unfinished npm timer build:deps 1692825496051
npm verb unfinished npm timer build:run:install 1692825496052
npm verb unfinished npm timer build:run:install:node_modules/firebird 1692825496052
npm verb code 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