Closed junxiaogwu2024 closed 1 year ago
Hello @junxiaogwu2024 !
What is your current version of node
?
You can switch versions with nmv
, error may go away with a later/earlier version.
And I'm just wondering if this same error logs occurs when installing truffle
locally without the -g
flag ?
Hi @snwlprdgthb,
The npm is version 10.0.0. let me try with a different version of npm to give a try.
Thanks,
@junxiaogwu2024
I meant node version, not npm Thanks
Ah, sorry, the node version is v18.17.1.
Cheers,
I tried with a lower version, 16.20.1, but got the same error. I wonder if anything else I could try. Cheers.
@junxiaogwu2024
I got it. Try downgrading npm
to version 6
, it should work for you.
npm install -g npm@6
Ah, that worked, even though I still have this error.
Try 'libtool --help' for more information.
libtool: error: unrecognised option: '-static'
make: *** [Release/leveldb.a] Error 1
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/junxiao/.nvm/versions/node/v16.20.2/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (node:events:513:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)
gyp ERR! System Darwin 22.6.0
gyp ERR! command "/Users/junxiao/.nvm/versions/node/v16.20.2/bin/node" "/Users/junxiao/.nvm/versions/node/v16.20.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/junxiao/.nvm/versions/node/v16.20.2/lib/node_modules/truffle/node_modules/leveldown
gyp ERR! node -v v16.20.2
gyp ERR! node-gyp -v v5.1.1
gyp ERR! not ok
The truffle command worked.
truffle Truffle v5.11.3 - a development framework for Ethereum
Usage: truffle
Glad to see this is [mostly] sorted out... I think we can probably close this? That one error message seems like one that we can ignore.
Please open a new issue if you run into further problems. Thanks for reporting this!
Issue
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port_posix.h:47: npm ERR! ../deps/leveldb/leveldb-1.20/port/atomic_pointer.h:59:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from instead [-Wdeprecated-declarations]
Steps to Reproduce
Running on MacOS Terminal (Mac M2) version 13.5.1.
npm install -g truffle
Expected Behavior
What you expected to happen.
Actual Results
pm ERR! code 1 npm ERR! path /opt/homebrew/lib/node_modules/truffle/node_modules/leveldown npm ERR! command failed npm ERR! command sh -c node-gyp-build npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/builder.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/db_impl.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/db_iter.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/filename.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/dbformat.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/log_reader.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/log_writer.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/memtable.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/repair.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/table_cache.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/version_edit.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/version_set.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/write_batch.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/helpers/memenv/memenv.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/port/port_posix_sse.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/block.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/block_builder.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/filter_block.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/format.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/iterator.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/merger.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/table.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/table_builder.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/two_level_iterator.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/arena.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/bloom.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/cache.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/coding.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/comparator.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/crc32c.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/env.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/filter_policy.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/hash.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/logging.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/options.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/status.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/port/port_posix.o npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/env_posix.o npm ERR! LIBTOOL-STATIC Release/leveldb.a npm ERR! Usage: /Users/junxiao/opt/anaconda3/bin/libtool [OPTION]... [MODE-ARG]... npm ERR! Try 'libtool --help' for more information. npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@9.4.0 npm ERR! gyp info using node@20.5.1 | darwin | arm64 npm ERR! gyp info find Python using Python version 3.9.15 found at "/Users/junxiao/opt/anaconda3/bin/python3" npm ERR! gyp info spawn /Users/junxiao/opt/anaconda3/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/opt/homebrew/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 '/opt/homebrew/lib/node_modules/truffle/node_modules/leveldown/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/Users/junxiao/Library/Caches/node-gyp/20.5.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/junxiao/Library/Caches/node-gyp/20.5.1', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/junxiao/Library/Caches/node-gyp/20.5.1/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/opt/homebrew/lib/node_modules/truffle/node_modules/leveldown', 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! In file included from ../deps/leveldb/leveldb-1.20/db/builder.cc:7: npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/filename.h:14: npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port.h:16: npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port_posix.h:47: npm ERR! ../deps/leveldb/leveldb-1.20/port/atomic_pointer.h:59:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from instead [-Wdeprecated-declarations]
npm ERR! OSMemoryBarrier();
npm ERR! ^
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/OSAtomicDeprecated.h:750:9: note: 'OSMemoryBarrier' has been explicitly marked deprecated here
npm ERR! void OSMemoryBarrier( void );
npm ERR! ^
npm ERR! 1 warning generated.
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/db_impl.cc:5:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/db_impl.h:10:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/dbformat.h:14:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/util/coding.h:17:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port.h:16:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port_posix.h:47:
npm ERR! ../deps/leveldb/leveldb-1.20/port/atomic_pointer.h:59:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from instead [-Wdeprecated-declarations]
npm ERR! OSMemoryBarrier();
npm ERR! ^
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/OSAtomicDeprecated.h:750:9: note: 'OSMemoryBarrier' has been explicitly marked deprecated here
npm ERR! void OSMemoryBarrier( void );
npm ERR! ^
npm ERR! 1 warning generated.
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/db_iter.cc:5:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/db_iter.h:10:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/dbformat.h:14:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/util/coding.h:17:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port.h:16:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port_posix.h:47:
npm ERR! ../deps/leveldb/leveldb-1.20/port/atomic_pointer.h:59:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from instead [-Wdeprecated-declarations]
npm ERR! OSMemoryBarrier();
npm ERR! ^
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/OSAtomicDeprecated.h:750:9: note: 'OSMemoryBarrier' has been explicitly marked deprecated here
npm ERR! void OSMemoryBarrier( void );
npm ERR! ^
npm ERR! 1 warning generated.
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/filename.cc:7:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/filename.h:14:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port.h:16:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port_posix.h:47:
npm ERR! ../deps/leveldb/leveldb-1.20/port/atomic_pointer.h:59:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from instead [-Wdeprecated-declarations]
npm ERR! OSMemoryBarrier();
npm ERR! ^
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/OSAtomicDeprecated.h:750:9: note: 'OSMemoryBarrier' has been explicitly marked deprecated here
npm ERR! void OSMemoryBarrier( void );
npm ERR! ^
npm ERR! 1 warning generated.
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/dbformat.cc:6:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/dbformat.h:14:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/util/coding.h:17:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port.h:16:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port_posix.h:47:
npm ERR! ../deps/leveldb/leveldb-1.20/port/atomic_pointer.h:59:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from instead [-Wdeprecated-declarations]
npm ERR! OSMemoryBarrier();
npm ERR! ^
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/OSAtomicDeprecated.h:750:9: note: 'OSMemoryBarrier' has been explicitly marked deprecated here
npm ERR! void OSMemoryBarrier( void );
npm ERR! ^
npm ERR! 1 warning generated.
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/log_reader.cc:9:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/util/coding.h:17:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port.h:16:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port_posix.h:47:
npm ERR! ../deps/leveldb/leveldb-1.20/port/atomic_pointer.h:59:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from instead [-Wdeprecated-declarations]
npm ERR! OSMemoryBarrier();
npm ERR! ^
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/OSAtomicDeprecated.h:750:9: note: 'OSMemoryBarrier' has been explicitly marked deprecated here
npm ERR! void OSMemoryBarrier( void );
npm ERR! ^
npm ERR! 1 warning generated.
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/log_writer.cc:9:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/util/coding.h:17:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port.h:16:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port_posix.h:47:
npm ERR! ../deps/leveldb/leveldb-1.20/port/atomic_pointer.h:59:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from instead [-Wdeprecated-declarations]
npm ERR! OSMemoryBarrier();
npm ERR! ^
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/OSAtomicDeprecated.h:750:9: note: 'OSMemoryBarrier' has been explicitly marked deprecated here
npm ERR! void OSMemoryBarrier( void );
npm ERR! ^
npm ERR! 1 warning generated.
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/memtable.cc:5:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/memtable.h:10:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/dbformat.h:14:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/util/coding.h:17:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port.h:16:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port_posix.h:47:
npm ERR! ../deps/leveldb/leveldb-1.20/port/atomic_pointer.h:59:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from instead [-Wdeprecated-declarations]
npm ERR! OSMemoryBarrier();
npm ERR! ^
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/OSAtomicDeprecated.h:750:9: note: 'OSMemoryBarrier' has been explicitly marked deprecated here
npm ERR! void OSMemoryBarrier( void );
npm ERR! ^
npm ERR! 1 warning generated.
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/repair.cc:28:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/db_impl.h:10:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/dbformat.h:14:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/util/coding.h:17:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port.h:16:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port_posix.h:47:
npm ERR! ../deps/leveldb/leveldb-1.20/port/atomic_pointer.h:59:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from instead [-Wdeprecated-declarations]
npm ERR! OSMemoryBarrier();
npm ERR! ^
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/OSAtomicDeprecated.h:750:9: note: 'OSMemoryBarrier' has been explicitly marked deprecated here
npm ERR! void OSMemoryBarrier( void );
npm ERR! ^
npm ERR! 1 warning generated.
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/table_cache.cc:5:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/table_cache.h:12:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/dbformat.h:14:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/util/coding.h:17:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port.h:16:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port_posix.h:47:
npm ERR! ../deps/leveldb/leveldb-1.20/port/atomic_pointer.h:59:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from instead [-Wdeprecated-declarations]
npm ERR! OSMemoryBarrier();
npm ERR! ^
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/OSAtomicDeprecated.h:750:9: note: 'OSMemoryBarrier' has been explicitly marked deprecated here
npm ERR! void OSMemoryBarrier( void );
npm ERR! ^
npm ERR! 1 warning generated.
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/version_edit.cc:5:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/version_edit.h:11:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/dbformat.h:14:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/util/coding.h:17:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port.h:16:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port_posix.h:47:
npm ERR! ../deps/leveldb/leveldb-1.20/port/atomic_pointer.h:59:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from instead [-Wdeprecated-declarations]
npm ERR! OSMemoryBarrier();
npm ERR! ^
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/OSAtomicDeprecated.h:750:9: note: 'OSMemoryBarrier' has been explicitly marked deprecated here
npm ERR! void OSMemoryBarrier( void );
npm ERR! ^
npm ERR! 1 warning generated.
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/version_set.cc:5:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/version_set.h:21:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/dbformat.h:14:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/util/coding.h:17:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port.h:16:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port_posix.h:47:
npm ERR! ../deps/leveldb/leveldb-1.20/port/atomic_pointer.h:59:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from instead [-Wdeprecated-declarations]
npm ERR! OSMemoryBarrier();
npm ERR! ^
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/OSAtomicDeprecated.h:750:9: note: 'OSMemoryBarrier' has been explicitly marked deprecated here
npm ERR! void OSMemoryBarrier( void );
npm ERR! ^
npm ERR! 1 warning generated.
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/write_batch.cc:19:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/dbformat.h:14:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/util/coding.h:17:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port.h:16:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port_posix.h:47:
npm ERR! ../deps/leveldb/leveldb-1.20/port/atomic_pointer.h:59:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from instead [-Wdeprecated-declarations]
npm ERR! OSMemoryBarrier();
npm ERR! ^
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/OSAtomicDeprecated.h:750:9: note: 'OSMemoryBarrier' has been explicitly marked deprecated here
npm ERR! void OSMemoryBarrier( void );
npm ERR! ^
npm ERR! 1 warning generated.
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/helpers/memenv/memenv.cc:9:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port.h:16:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port_posix.h:47:
npm ERR! ../deps/leveldb/leveldb-1.20/port/atomic_pointer.h:59:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from instead [-Wdeprecated-declarations]
npm ERR! OSMemoryBarrier();
npm ERR! ^
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/OSAtomicDeprecated.h:750:9: note: 'OSMemoryBarrier' has been explicitly marked deprecated here
npm ERR! void OSMemoryBarrier( void );
npm ERR! ^
npm ERR! 1 warning generated.
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port_posix_sse.cc:14:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port.h:16:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port_posix.h:47:
npm ERR! ../deps/leveldb/leveldb-1.20/port/atomic_pointer.h:59:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from instead [-Wdeprecated-declarations]
npm ERR! OSMemoryBarrier();
npm ERR! ^
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/OSAtomicDeprecated.h:750:9: note: 'OSMemoryBarrier' has been explicitly marked deprecated here
npm ERR! void OSMemoryBarrier( void );
npm ERR! ^
npm ERR! 1 warning generated.
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/table/block.cc:13:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/util/coding.h:17:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port.h:16:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port_posix.h:47:
npm ERR! ../deps/leveldb/leveldb-1.20/port/atomic_pointer.h:59:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from instead [-Wdeprecated-declarations]
npm ERR! OSMemoryBarrier();
npm ERR! ^
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/OSAtomicDeprecated.h:750:9: note: 'OSMemoryBarrier' has been explicitly marked deprecated here
npm ERR! void OSMemoryBarrier( void );
npm ERR! ^
npm ERR! 1 warning generated.
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/table/block_builder.cc:35:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/util/coding.h:17:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port.h:16:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port_posix.h:47:
npm ERR! ../deps/leveldb/leveldb-1.20/port/atomic_pointer.h:59:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from instead [-Wdeprecated-declarations]
npm ERR! OSMemoryBarrier();
npm ERR! ^
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/OSAtomicDeprecated.h:750:9: note: 'OSMemoryBarrier' has been explicitly marked deprecated here
npm ERR! void OSMemoryBarrier( void );
npm ERR! ^
npm ERR! 1 warning generated.
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/table/filter_block.cc:8:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/util/coding.h:17:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port.h:16:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port_posix.h:47:
npm ERR! ../deps/leveldb/leveldb-1.20/port/atomic_pointer.h:59:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from instead [-Wdeprecated-declarations]
npm ERR! OSMemoryBarrier();
npm ERR! ^
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/OSAtomicDeprecated.h:750:9: note: 'OSMemoryBarrier' has been explicitly marked deprecated here
npm ERR! void OSMemoryBarrier( void );
npm ERR! ^
npm ERR! 1 warning generated.
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/table/format.cc:8:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port.h:16:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port_posix.h:47:
npm ERR! ../deps/leveldb/leveldb-1.20/port/atomic_pointer.h:59:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from instead [-Wdeprecated-declarations]
npm ERR! OSMemoryBarrier();
npm ERR! ^
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/OSAtomicDeprecated.h:750:9: note: 'OSMemoryBarrier' has been explicitly marked deprecated here
npm ERR! void OSMemoryBarrier( void );
npm ERR! ^
npm ERR! 1 warning generated.
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/table/table.cc:16:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/util/coding.h:17:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port.h:16:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port_posix.h:47:
npm ERR! ../deps/leveldb/leveldb-1.20/port/atomic_pointer.h:59:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from instead [-Wdeprecated-declarations]
npm ERR! OSMemoryBarrier();
npm ERR! ^
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/OSAtomicDeprecated.h:750:9: note: 'OSMemoryBarrier' has been explicitly marked deprecated here
npm ERR! void OSMemoryBarrier( void );
npm ERR! ^
npm ERR! 1 warning generated.
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/table/table_builder.cc:15:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/util/coding.h:17:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port.h:16:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port_posix.h:47:
npm ERR! ../deps/leveldb/leveldb-1.20/port/atomic_pointer.h:59:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from instead [-Wdeprecated-declarations]
npm ERR! OSMemoryBarrier();
npm ERR! ^
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/OSAtomicDeprecated.h:750:9: note: 'OSMemoryBarrier' has been explicitly marked deprecated here
npm ERR! void OSMemoryBarrier( void );
npm ERR! ^
npm ERR! 1 warning generated.
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/util/arena.cc:5:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/util/arena.h:12:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port.h:16:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port_posix.h:47:
npm ERR! ../deps/leveldb/leveldb-1.20/port/atomic_pointer.h:59:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from instead [-Wdeprecated-declarations]
npm ERR! OSMemoryBarrier();
npm ERR! ^
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/OSAtomicDeprecated.h:750:9: note: 'OSMemoryBarrier' has been explicitly marked deprecated here
npm ERR! void OSMemoryBarrier( void );
npm ERR! ^
npm ERR! 1 warning generated.
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/util/cache.cc:10:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port.h:16:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port_posix.h:47:
npm ERR! ../deps/leveldb/leveldb-1.20/port/atomic_pointer.h:59:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from instead [-Wdeprecated-declarations]
npm ERR! OSMemoryBarrier();
npm ERR! ^
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/OSAtomicDeprecated.h:750:9: note: 'OSMemoryBarrier' has been explicitly marked deprecated here
npm ERR! void OSMemoryBarrier( void );
npm ERR! ^
npm ERR! 1 warning generated.
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/util/coding.cc:5:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/util/coding.h:17:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port.h:16:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port_posix.h:47:
npm ERR! ../deps/leveldb/leveldb-1.20/port/atomic_pointer.h:59:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from instead [-Wdeprecated-declarations]
npm ERR! OSMemoryBarrier();
npm ERR! ^
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/OSAtomicDeprecated.h:750:9: note: 'OSMemoryBarrier' has been explicitly marked deprecated here
npm ERR! void OSMemoryBarrier( void );
npm ERR! ^
npm ERR! 1 warning generated.
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/util/comparator.cc:9:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port.h:16:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port_posix.h:47:
npm ERR! ../deps/leveldb/leveldb-1.20/port/atomic_pointer.h:59:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from instead [-Wdeprecated-declarations]
npm ERR! OSMemoryBarrier();
npm ERR! ^
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/OSAtomicDeprecated.h:750:9: note: 'OSMemoryBarrier' has been explicitly marked deprecated here
npm ERR! void OSMemoryBarrier( void );
npm ERR! ^
npm ERR! 1 warning generated.
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/util/crc32c.cc:12:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port.h:16:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port_posix.h:47:
npm ERR! ../deps/leveldb/leveldb-1.20/port/atomic_pointer.h:59:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from instead [-Wdeprecated-declarations]
npm ERR! OSMemoryBarrier();
npm ERR! ^
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/OSAtomicDeprecated.h:750:9: note: 'OSMemoryBarrier' has been explicitly marked deprecated here
npm ERR! void OSMemoryBarrier( void );
npm ERR! ^
npm ERR! 1 warning generated.
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/util/hash.cc:6:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/util/coding.h:17:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port.h:16:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port_posix.h:47:
npm ERR! ../deps/leveldb/leveldb-1.20/port/atomic_pointer.h:59:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from instead [-Wdeprecated-declarations]
npm ERR! OSMemoryBarrier();
npm ERR! ^
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/OSAtomicDeprecated.h:750:9: note: 'OSMemoryBarrier' has been explicitly marked deprecated here
npm ERR! void OSMemoryBarrier( void );
npm ERR! ^
npm ERR! 1 warning generated.
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/util/logging.cc:5:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/util/logging.h:14:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port.h:16:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port_posix.h:47:
npm ERR! ../deps/leveldb/leveldb-1.20/port/atomic_pointer.h:59:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from instead [-Wdeprecated-declarations]
npm ERR! OSMemoryBarrier();
npm ERR! ^
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/OSAtomicDeprecated.h:750:9: note: 'OSMemoryBarrier' has been explicitly marked deprecated here
npm ERR! void OSMemoryBarrier( void );
npm ERR! ^
npm ERR! 1 warning generated.
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/util/status.cc:6:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port.h:16:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port_posix.h:47:
npm ERR! ../deps/leveldb/leveldb-1.20/port/atomic_pointer.h:59:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from instead [-Wdeprecated-declarations]
npm ERR! OSMemoryBarrier();
npm ERR! ^
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/OSAtomicDeprecated.h:750:9: note: 'OSMemoryBarrier' has been explicitly marked deprecated here
npm ERR! void OSMemoryBarrier( void );
npm ERR! ^
npm ERR! 1 warning generated.
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port_posix.cc:5:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port_posix.h:47:
npm ERR! ../deps/leveldb/leveldb-1.20/port/atomic_pointer.h:59:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from instead [-Wdeprecated-declarations]
npm ERR! OSMemoryBarrier();
npm ERR! ^
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/OSAtomicDeprecated.h:750:9: note: 'OSMemoryBarrier' has been explicitly marked deprecated here
npm ERR! void OSMemoryBarrier( void );
npm ERR! ^
npm ERR! 1 warning generated.
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/util/env_posix.cc:24:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port.h:16:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/port/port_posix.h:47:
npm ERR! ../deps/leveldb/leveldb-1.20/port/atomic_pointer.h:59:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from instead [-Wdeprecated-declarations]
npm ERR! OSMemoryBarrier();
npm ERR! ^
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/OSAtomicDeprecated.h:750:9: note: 'OSMemoryBarrier' has been explicitly marked deprecated here
npm ERR! void OSMemoryBarrier( void );
npm ERR! ^
npm ERR! 1 warning generated.
npm ERR! libtool: error: unrecognised option: '-static'
npm ERR! make: *** [Release/leveldb.a] 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 (/opt/homebrew/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:294:12) npm ERR! gyp ERR! System Darwin 22.6.0 npm ERR! gyp ERR! command "/opt/homebrew/Cellar/node/20.5.1/bin/node" "/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /opt/homebrew/lib/node_modules/truffle/node_modules/leveldown npm ERR! gyp ERR! node -v v20.5.1 npm ERR! gyp ERR! node-gyp -v v9.4.0 npm ERR! gyp ERR! not oknpm ERR! A complete log of this run can be found in: /Users/junxiao/.npm/_logs/2023-09-03T09_02_10_166Z-debug-0.log
Environment
truffle version
):node --version
):npm --version
):