RobertIndie opened a new issue, #254: URL: https://github.com/apache/pulsar-client-node/issues/254
When I install the nodejs on my mac os, it failed with this output: ``` npm ERR! code 1 npm ERR! path /usr/local/lib/node_modules/pulsar-client npm ERR! command failed npm ERR! command sh -c node-gyp rebuild npm ERR! CC(target) Release/obj.target/nothing/node_modules/node-addon-api/nothing.o npm ERR! LIBTOOL-STATIC Release/nothing.a npm ERR! CXX(target) Release/obj.target/Pulsar/src/addon.o npm ERR! CXX(target) Release/obj.target/Pulsar/src/Message.o npm ERR! CXX(target) Release/obj.target/Pulsar/src/MessageId.o npm ERR! CXX(target) Release/obj.target/Pulsar/src/Authentication.o npm ERR! CXX(target) Release/obj.target/Pulsar/src/Client.o npm ERR! CXX(target) Release/obj.target/Pulsar/src/SchemaInfo.o npm ERR! CXX(target) Release/obj.target/Pulsar/src/Producer.o npm ERR! CXX(target) Release/obj.target/Pulsar/src/ProducerConfig.o npm ERR! CXX(target) Release/obj.target/Pulsar/src/Consumer.o npm ERR! CXX(target) Release/obj.target/Pulsar/src/ConsumerConfig.o npm ERR! CXX(target) Release/obj.target/Pulsar/src/Reader.o npm ERR! CXX(target) Release/obj.target/Pulsar/src/ReaderConfig.o npm ERR! CXX(target) Release/obj.target/Pulsar/src/ThreadSafeDeferred.o npm ERR! SOLINK_MODULE(target) Release/Pulsar.node npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using [email protected] npm ERR! gyp info using [email protected] | darwin | x64 npm ERR! gyp info find Python using Python version 3.10.8 found at "/Library/Frameworks/Python.framework/Versions/3.10/bin/python3" npm ERR! gyp info spawn /Library/Frameworks/Python.framework/Versions/3.10/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/usr/local/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 '/usr/local/lib/node_modules/pulsar-client/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/Users/aaronrobert/Library/Caches/node-gyp/16.16.0/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/aaronrobert/Library/Caches/node-gyp/16.16.0', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/aaronrobert/Library/Caches/node-gyp/16.16.0/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/usr/local/lib/node_modules/pulsar-client', 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 info spawn make npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm ERR! warning: /Library/Developer/CommandLineTools/usr/bin/libtool: archive library: Release/nothing.a the table of contents is empty (no object file members in the library define global symbols) npm ERR! In file included from ../src/addon.cc:23: npm ERR! In file included from ../src/Producer.h:24: npm ERR! In file included from /usr/local/include/pulsar/c/client.h:22: npm ERR! /usr/local/include/pulsar/c/client_configuration.h:168:15: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] npm ERR! PULSAR_PUBLIC const unsigned int pulsar_client_configuration_get_stats_interval_in_seconds( npm ERR! ^~~~~~ npm ERR! 1 warning generated. npm ERR! In file included from ../src/Client.cc:21: npm ERR! In file included from ../src/Client.h:24: npm ERR! In file included from /usr/local/include/pulsar/c/client.h:22: npm ERR! /usr/local/include/pulsar/c/client_configuration.h:168:15: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] npm ERR! PULSAR_PUBLIC const unsigned int pulsar_client_configuration_get_stats_interval_in_seconds( npm ERR! ^~~~~~ npm ERR! 1 warning generated. npm ERR! In file included from ../src/Producer.cc:20: npm ERR! In file included from ../src/Producer.h:24: npm ERR! In file included from /usr/local/include/pulsar/c/client.h:22: npm ERR! /usr/local/include/pulsar/c/client_configuration.h:168:15: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] npm ERR! PULSAR_PUBLIC const unsigned int pulsar_client_configuration_get_stats_interval_in_seconds( npm ERR! ^~~~~~ npm ERR! 1 warning generated. npm ERR! In file included from ../src/Consumer.cc:20: npm ERR! In file included from ../src/Consumer.h:24: npm ERR! In file included from /usr/local/include/pulsar/c/client.h:22: npm ERR! /usr/local/include/pulsar/c/client_configuration.h:168:15: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] npm ERR! PULSAR_PUBLIC const unsigned int pulsar_client_configuration_get_stats_interval_in_seconds( npm ERR! ^~~~~~ npm ERR! 1 warning generated. npm ERR! In file included from ../src/ConsumerConfig.cc:21: npm ERR! In file included from ../src/Consumer.h:24: npm ERR! In file included from /usr/local/include/pulsar/c/client.h:22: npm ERR! /usr/local/include/pulsar/c/client_configuration.h:168:15: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] npm ERR! PULSAR_PUBLIC const unsigned int pulsar_client_configuration_get_stats_interval_in_seconds( npm ERR! ^~~~~~ npm ERR! 1 warning generated. npm ERR! In file included from ../src/Reader.cc:21: npm ERR! In file included from ../src/Reader.h:24: npm ERR! In file included from /usr/local/include/pulsar/c/client.h:22: npm ERR! /usr/local/include/pulsar/c/client_configuration.h:168:15: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] npm ERR! PULSAR_PUBLIC const unsigned int pulsar_client_configuration_get_stats_interval_in_seconds( npm ERR! ^~~~~~ npm ERR! 1 warning generated. npm ERR! clang: error: no such file or directory: '/lib/libpulsar.dylib' npm ERR! make: *** [Release/Pulsar.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 (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:527:28) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) npm ERR! gyp ERR! System Darwin 21.6.0 npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /usr/local/lib/node_modules/pulsar-client npm ERR! gyp ERR! node -v v16.16.0 npm ERR! gyp ERR! node-gyp -v v9.3.0 npm ERR! gyp ERR! not ok npm ERR! A complete log of this run can be found in: npm ERR! /Users/aaronrobert/.npm/_logs/2022-12-02T09_26_18_539Z-debug-0.log ``` I think it should be the problem with the current compilation is not compatible with clang. But we need to fix it or provide some documentation for it. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
