-
-
Notifications
You must be signed in to change notification settings - Fork 98
Closed
Description
Hi!
After updating the Xcode Command Line Tools from 16.2 to 16.3 on our macOS build machine, npm install (or npm ci respectively) fails to build node-argon2.
Full error trace
$ bash tools/run-with-retry.sh --retries 3 --delay 15 -- npm ci
==> Attempt 1: `npm ci`
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: This package is deprecated. Use the optional chaining (?.) operator instead.
npm warn deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated @humanwhocodes/[email protected]: Use @eslint/config-array instead
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated @humanwhocodes/[email protected]: Use @eslint/object-schema instead
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: This version is no longer supported. Please see https://eslint.org/version-support for other options.
npm error code 1
npm error git dep preparation failed
npm error command /Users/xyz/.nvm/versions/node/v20.19.0/bin/node /Users/xyz/.nvm/versions/node/v20.19.0/lib/node_modules/npm/bin/npm-cli.js install --force --cache=/Users/xyz/.npm --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only --no-dry-run
npm error > [email protected] install
npm error > node-gyp-build
npm error
npm error
npm error CC(target) Release/obj.target/libargon2/argon2/src/ref.o
npm error CC(target) Release/obj.target/libargon2/argon2/src/argon2.o
npm error CC(target) Release/obj.target/libargon2/argon2/src/blake2/blake2b.o
npm error CC(target) Release/obj.target/libargon2/argon2/src/core.o
npm error CC(target) Release/obj.target/libargon2/argon2/src/encoding.o
npm error CC(target) Release/obj.target/libargon2/argon2/src/thread.o
npm error LIBTOOL-STATIC Release/argon2.a
npm error CXX(target) Release/obj.target/argon2/argon2.o
npm error npm warn using --force Recommended protections disabled.
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] | darwin | arm64
npm error gyp info find Python using Python version 3.9.6 found at "/Applications/Xcode.app/Contents/Developer/usr/bin/python3"
npm error gyp info spawn /Applications/Xcode.app/Contents/Developer/usr/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args '/Users/xyz/.npm/_cacache/tmp/git-clonebSfyje/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 '/Users/xyz/.npm/_cacache/tmp/git-clonebSfyje/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/Users/xyz/.npm/_cacache/tmp/git-clonebSfyje/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/Users/xyz/Library/Caches/node-gyp/20.19.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=/Users/xyz/Library/Caches/node-gyp/20.19.0',
npm error gyp info spawn args '-Dnode_gyp_dir=/Users/xyz/.npm/_cacache/tmp/git-clonebSfyje/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/Users/xyz/Library/Caches/node-gyp/20.19.0/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/Users/xyz/.npm/_cacache/tmp/git-clonebSfyje',
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 spawn make
npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm error In file included from ../argon2.cpp:3:
npm error In file included from ../node_modules/node-addon-api/napi.h:14:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:552:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:27:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:325:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_bool.h:19:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_integral.h:21:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_output.h:22:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/parser_std_format_spec.h:39:
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string:821:42: error: implicit instantiation of undefined template 'std::char_traits<unsigned char>'
npm error 821 | static_assert(is_same<_CharT, typename traits_type::char_type>::value,
npm error | ^
npm error ../argon2.cpp:71:13: note: in instantiation of template class 'std::basic_string<unsigned char>' requested here
npm error 71 | ustring hash = {};
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
npm error 23 | struct _LIBCPP_TEMPLATE_VIS char_traits;
npm error | ^
npm error In file included from ../argon2.cpp:3:
npm error In file included from ../node_modules/node-addon-api/napi.h:14:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:552:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:27:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:325:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_bool.h:16:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/concepts.h:16:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/format_parse_context.h:16:
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string_view:300:42: error: implicit instantiation of undefined template 'std::char_traits<unsigned char>'
npm error 300 | static_assert(is_same<_CharT, typename traits_type::char_type>::value,
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_convertible.h:22:99: note: in instantiation of template class 'std::basic_string_view<unsigned char>' requested here
npm error 22 | struct _LIBCPP_TEMPLATE_VIS is_convertible : public integral_constant<bool, __is_convertible(_T1, _T2)> {};
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string:746:29: note: in instantiation of template class 'std::is_convertible<unsigned char *const &, std::basic_string_view<unsigned char>>' requested here
npm error 746 | : public _BoolConstant< is_convertible<const _Tp&, basic_string_view<_CharT, _Traits> >::value &&
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string:1162:27: note: in instantiation of template class 'std::__can_be_converted_to_string_view<unsigned char, std::char_traits<unsigned char>, unsigned char *>' requested here
npm error 1162 | __enable_if_t<__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value &&
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string:1166:42: note: while substituting prior template arguments into non-type template parameter [with _Tp = unsigned char *]
npm error 1166 | _LIBCPP_CONSTEXPR_SINCE_CXX20 explicit basic_string(const _Tp& __t, const allocator_type& __a)
npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error 1167 | : __r_(__default_init_tag(), __a) {
npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error 1168 | __self_view __sv = __t;
npm error | ~~~~~~~~~~~~~~~~~~~~~~~
npm error 1169 | __init(__sv.data(), __sv.size());
npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error 1170 | }
npm error | ~
npm error ../argon2.cpp:17:11: note: while substituting deduced template arguments into function template 'basic_string' [with _Tp = unsigned char *, $1 = (no value)]
npm error 17 | plain{plain.Data(), plain.ByteLength()},
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
npm error 23 | struct _LIBCPP_TEMPLATE_VIS char_traits;
npm error | ^
npm error In file included from ../argon2.cpp:3:
npm error In file included from ../node_modules/node-addon-api/napi.h:14:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:552:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:27:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:325:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_bool.h:19:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_integral.h:21:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_output.h:22:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/parser_std_format_spec.h:39:
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string:2344:3: error: implicit instantiation of undefined template 'std::char_traits<unsigned char>'
npm error 2344 | traits_type::copy(std::__to_address(__p), __s, __sz);
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string:1079:5: note: in instantiation of member function 'std::basic_string<unsigned char>::__init' requested here
npm error 1079 | __init(__s, __n);
npm error | ^
npm error ../argon2.cpp:17:11: note: in instantiation of member function 'std::basic_string<unsigned char>::basic_string' requested here
npm error 17 | plain{plain.Data(), plain.ByteLength()},
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
npm error 23 | struct _LIBCPP_TEMPLATE_VIS char_traits;
npm error | ^
npm error In file included from ../argon2.cpp:3:
npm error In file included from ../node_modules/node-addon-api/napi.h:14:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:552:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:27:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:325:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_bool.h:19:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_integral.h:21:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_output.h:22:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/parser_std_format_spec.h:39:
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string:2345:3: error: implicit instantiation of undefined template 'std::char_traits<unsigned char>'
npm error 2345 | traits_type::assign(__p[__sz], value_type());
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
npm error 23 | struct _LIBCPP_TEMPLATE_VIS char_traits;
npm error | ^
npm error In file included from ../argon2.cpp:3:
npm error In file included from ../node_modules/node-addon-api/napi.h:14:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:552:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:27:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:325:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_bool.h:19:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_integral.h:21:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_output.h:22:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/parser_std_format_spec.h:39:
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string:2862:5: error: implicit instantiation of undefined template 'std::char_traits<unsigned char>'
npm error 2862 | traits_type::assign(std::__to_address(__p) + __sz, __n, __c);
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string:3303:5: note: in instantiation of member function 'std::basic_string<unsigned char>::append' requested here
npm error 3303 | append(__n - __sz, __c);
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string:1304:84: note: in instantiation of member function 'std::basic_string<unsigned char>::resize' requested here
npm error 1304 | _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void resize(size_type __n) { resize(__n, value_type()); }
npm error | ^
npm error ../argon2.cpp:29:14: note: in instantiation of member function 'std::basic_string<unsigned char>::resize' requested here
npm error 29 | hash.resize(hash_length);
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
npm error 23 | struct _LIBCPP_TEMPLATE_VIS char_traits;
npm error | ^
npm error In file included from ../argon2.cpp:3:
npm error In file included from ../node_modules/node-addon-api/napi.h:14:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:552:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:27:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:325:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_bool.h:19:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_integral.h:21:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_output.h:22:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/parser_std_format_spec.h:39:
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string:2865:5: error: implicit instantiation of undefined template 'std::char_traits<unsigned char>'
npm error 2865 | traits_type::assign(__p[__sz], value_type());
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
npm error 23 | struct _LIBCPP_TEMPLATE_VIS char_traits;
npm error | ^
npm error In file included from ../argon2.cpp:3:
npm error In file included from ../node_modules/node-addon-api/napi.h:14:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:552:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:27:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:325:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_bool.h:19:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_integral.h:21:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_output.h:22:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/parser_std_format_spec.h:39:
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string:2536:5: error: implicit instantiation of undefined template 'std::char_traits<unsigned char>'
npm error 2536 | traits_type::copy(std::__to_address(__p), std::__to_address(__old_p), __n_copy);
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string:2557:3: note: in instantiation of member function 'std::basic_string<unsigned char>::__grow_by' requested here
npm error 2557 | __grow_by(__old_cap, __delta_cap, __old_sz, __n_copy, __n_del, __n_add);
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string:2859:7: note: in instantiation of member function 'std::basic_string<unsigned char>::__grow_by_without_replace' requested here
npm error 2859 | __grow_by_without_replace(__cap, __sz + __n - __cap, __sz, __sz, 0);
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string:3303:5: note: in instantiation of member function 'std::basic_string<unsigned char>::append' requested here
npm error 3303 | append(__n - __sz, __c);
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string:1304:84: note: in instantiation of member function 'std::basic_string<unsigned char>::resize' requested here
npm error 1304 | _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void resize(size_type __n) { resize(__n, value_type()); }
npm error | ^
npm error ../argon2.cpp:29:14: note: in instantiation of member function 'std::basic_string<unsigned char>::resize' requested here
npm error 29 | hash.resize(hash_length);
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
npm error 23 | struct _LIBCPP_TEMPLATE_VIS char_traits;
npm error | ^
npm error In file included from ../argon2.cpp:3:
npm error In file included from ../node_modules/node-addon-api/napi.h:14:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:552:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:27:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:325:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_bool.h:19:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_integral.h:21:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_output.h:22:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/parser_std_format_spec.h:39:
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string:2539:5: error: implicit instantiation of undefined template 'std::char_traits<unsigned char>'
npm error 2539 | traits_type::copy(
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
npm error 23 | struct _LIBCPP_TEMPLATE_VIS char_traits;
npm error | ^
npm error In file included from ../argon2.cpp:3:
npm error In file included from ../node_modules/node-addon-api/napi.h:14:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:552:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:27:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:325:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_bool.h:19:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_integral.h:21:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_output.h:22:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/parser_std_format_spec.h:39:
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string:2222:5: error: implicit instantiation of undefined template 'std::char_traits<unsigned char>'
npm error 2222 | traits_type::assign(__p[__newsz], value_type());
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string:2135:5: note: in instantiation of member function 'std::basic_string<unsigned char>::__null_terminate_at' requested here
npm error 2135 | __null_terminate_at(std::__to_address(__get_pointer()), __pos);
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string:3305:5: note: in instantiation of member function 'std::basic_string<unsigned char>::__erase_to_end' requested here
npm error 3305 | __erase_to_end(__n);
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string:1304:84: note: in instantiation of member function 'std::basic_string<unsigned char>::resize' requested here
npm error 1304 | _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void resize(size_type __n) { resize(__n, value_type()); }
npm error | ^
npm error ../argon2.cpp:29:14: note: in instantiation of member function 'std::basic_string<unsigned char>::resize' requested here
npm error 29 | hash.resize(hash_length);
npm error | ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
npm error 23 | struct _LIBCPP_TEMPLATE_VIS char_traits;
npm error | ^
npm error 9 errors generated.
npm error make: *** [Release/obj.target/argon2/argon2.o] 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> (/Users/xyz/.npm/_cacache/tmp/git-clonebSfyje/node_modules/node-gyp/lib/build.js:216:23)
npm error gyp ERR! System Darwin 24.4.0
npm error gyp ERR! command "/Users/xyz/.nvm/versions/node/v20.19.0/bin/node" "/Users/xyz/.npm/_cacache/tmp/git-clonebSfyje/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm error gyp ERR! cwd /Users/xyz/.npm/_cacache/tmp/git-clonebSfyje
npm error gyp ERR! node -v v20.19.0
npm error gyp ERR! node-gyp -v v10.2.0
npm error gyp ERR! not ok
npm error npm error code 1
npm error npm error path /Users/xyz/.npm/_cacache/tmp/git-clonebSfyje
npm error npm error command failed
npm error npm error command sh -c node-gyp-build
npm error npm error A complete log of this run can be found in: /Users/xyz/.npm/_logs/2025-04-03T13_00_19_778Z-debug-0.log
npm error A complete log of this run can be found in: /Users/xyz/.npm/_logs/2025-04-03T13_00_17_008Z-debug-0.log
==> Command failed with exit code 1
==> No known error detected. Aborting.
Cleaning up project directory and file based variables
00:01
ERROR: Job failed: exit status 1It was still building fine before the Xcode Command Line Tools upgrade, and a downgrade to 16.2 fixes it. According to Apple's Xcode 16.3 Release Notes there were quite a few updates in relation to the Clang compiler.
Side note: React Native seemed to have similar issues due to Xcode 16.3, see: Xcode 16.3 and undefined template 'std::char_traits' prevent building the app. Seems like the issue in React Native has just been patched, see here.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels