error: script 'install' in '@serialport/bindings@8.0.8' failed with exit code 1
stdout:
CXX(target) Release/obj.target/bindings/src/serialport.o
stderr:
prebuild-install WARN install No prebuilt binaries found (target=22.14.0 runtime=node arch=arm64 libc= platform=darwin)
gyp info it worked if it ends with ok
gyp info using node-gyp@11.2.0
gyp info using node@22.14.0 | darwin | arm64
gyp info find Python using Python version 3.12.9 found at "/opt/miniconda3/bin/python3"
gyp info spawn /opt/miniconda3/bin/python3
gyp info spawn args [
gyp info spawn args '/Users/kay/Desktop/johnnytest/node_modules/.deno/node-gyp@11.2.0/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/Users/kay/Desktop/johnnytest/node_modules/.deno/@serialport+bindings@8.0.8/node_modules/@serialport/bindings/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/kay/Desktop/johnnytest/node_modules/.deno/node-gyp@11.2.0/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/kay/Library/Caches/node-gyp/22.14.0',
gyp info spawn args '-Dnode_gyp_dir=/Users/kay/Desktop/johnnytest/node_modules/.deno/node-gyp@11.2.0/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/kay/Library/Caches/node-gyp/22.14.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/kay/Desktop/johnnytest/node_modules/.deno/@serialport+bindings@8.0.8/node_modules/@serialport/bindings',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
In file included from ../src/serialport.cpp:1:
In file included from ../src/./serialport.h:6:
In file included from ../../../../../nan@2.22.2/node_modules/nan/nan.h:62:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/node.h:73:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8.h:24:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-array-buffer.h:12:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-local-handle.h:13:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-handle-base.h:8:
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:490:30: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
490 | SHARED_EXTERNAL_POINTER_TAGS(CHECK_SHARED_EXTERNAL_POINTER_TAGS)
| ^
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:490:30: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:490:30: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:490:30: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:490:30: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:491:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
491 | PER_ISOLATE_EXTERNAL_POINTER_TAGS(CHECK_NON_SHARED_EXTERNAL_POINTER_TAGS)
| ^
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:491:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:491:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:491:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:491:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:491:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:491:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:491:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:491:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:491:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:491:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:491:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:491:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:596:42: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
596 | static_assert(kCodePointerHandleShift > 0);
| ^
| , ""
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:597:45: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
597 | static_assert(kTrustedPointerHandleShift > 0);
| ^
| , ""
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:889:61: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
889 | static_assert(kJSObjectType + 1 == kFirstJSApiObjectType);
| ^
| , ""
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:890:55: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
890 | static_assert(kJSObjectType < kLastJSApiObjectType);
| ^
| , ""
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:891:63: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
891 | static_assert(kFirstJSApiObjectType < kLastJSApiObjectType);
| ^
| , ""
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:1159:13: error: no template named 'is_void_v' in namespace 'std'; did you mean 'is_void'?
1159 | !std::is_void_v<ElementType> ||
| ~~~~~^~~~~~~~~
| is_void
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_void.h:22:29: note: 'is_void' declared here
22 | struct _LIBCPP_TEMPLATE_VIS is_void : _BoolConstant<__is_same(__remove_cv(_Tp), void)> {};
| ^
In file included from ../src/serialport.cpp:1:
In file included from ../src/./serialport.h:6:
In file included from ../../../../../nan@2.22.2/node_modules/nan/nan.h:62:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/node.h:73:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8.h:24:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-array-buffer.h:12:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-local-handle.h:13:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-handle-base.h:8:
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:1159:36: error: expected '(' for function-style cast or type construction
1159 | !std::is_void_v<ElementType> ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:1160:13: error: no template named 'is_convertible_v' in namespace 'std'; did you mean 'is_convertible'?
1160 | (std::is_convertible_v<typename std::iterator_traits<Iterator>::pointer,
| ~~~~~^~~~~~~~~~~~~~~~
| is_convertible
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_convertible.h:22:29: note: 'is_convertible' declared here
22 | struct _LIBCPP_TEMPLATE_VIS is_convertible : public integral_constant<bool, __is_convertible(_T1, _T2)> {};
| ^
In file included from ../src/serialport.cpp:1:
In file included from ../src/./serialport.h:6:
In file included from ../../../../../nan@2.22.2/node_modules/nan/nan.h:62:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/node.h:73:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8.h:24:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-array-buffer.h:12:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-local-handle.h:13:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-handle-base.h:8:
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:1162:13: error: no template named 'is_convertible_v' in namespace 'std'; did you mean 'is_convertible'?
1162 | std::is_convertible_v<typename std::iterator_traits<Iterator>::reference,
| ~~~~~^~~~~~~~~~~~~~~~
| is_convertible
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_convertible.h:22:29: note: 'is_convertible' declared here
22 | struct _LIBCPP_TEMPLATE_VIS is_convertible : public integral_constant<bool, __is_convertible(_T1, _T2)> {};
| ^
In file included from ../src/serialport.cpp:1:
In file included from ../src/./serialport.h:6:
In file included from ../../../../../nan@2.22.2/node_modules/nan/nan.h:62:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/node.h:73:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8.h:24:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-array-buffer.h:12:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-local-handle.h:13:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-handle-base.h:8:
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:1162:8: error: expected ')'
1162 | std::is_convertible_v<typename std::iterator_traits<Iterator>::reference,
| ^
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:1160:7: note: to match this '('
1160 | (std::is_convertible_v<typename std::iterator_traits<Iterator>::pointer,
| ^
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:1163:44: error: expected expression
1163 | ElementType&>));
| ^
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:1170:31: error: no template named 'is_void_v' in namespace 'std'; did you mean 'is_void'?
1170 | std::conditional_t<std::is_void_v<ElementType>,
| ~~~~~^~~~~~~~~
| is_void
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_void.h:22:29: note: 'is_void' declared here
22 | struct _LIBCPP_TEMPLATE_VIS is_void : _BoolConstant<__is_same(__remove_cv(_Tp), void)> {};
| ^
In file included from ../src/serialport.cpp:1:
In file included from ../src/./serialport.h:6:
In file included from ../../../../../nan@2.22.2/node_modules/nan/nan.h:62:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/node.h:73:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8.h:24:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-array-buffer.h:12:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-local-handle.h:13:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-handle-base.h:8:
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:1170:26: error: template argument for non-type template parameter must be an expression
1170 | std::conditional_t<std::is_void_v<ElementType>,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/conditional.h:48:16: note: template parameter is declared here
48 | template <bool _Bp, class _IfRes, class _ElseRes>
| ^
In file included from ../src/serialport.cpp:1:
In file included from ../src/./serialport.h:6:
In file included from ../../../../../nan@2.22.2/node_modules/nan/nan.h:62:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/node.h:73:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8.h:24:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-array-buffer.h:12:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-local-handle.h:13:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-handle-base.h:8:
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:1174:31: error: no template named 'is_void_v' in namespace 'std'; did you mean 'is_void'?
1174 | std::conditional_t<std::is_void_v<ElementType>,
| ~~~~~^~~~~~~~~
| is_void
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_void.h:22:29: note: 'is_void' declared here
22 | struct _LIBCPP_TEMPLATE_VIS is_void : _BoolConstant<__is_same(__remove_cv(_Tp), void)> {};
| ^
In file included from ../src/serialport.cpp:1:
In file included from ../src/./serialport.h:6:
In file included from ../../../../../nan@2.22.2/node_modules/nan/nan.h:62:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/node.h:73:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8.h:24:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-array-buffer.h:12:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-local-handle.h:13:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-handle-base.h:8:
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:1174:26: error: template argument for non-type template parameter must be an expression
1174 | std::conditional_t<std::is_void_v<ElementType>,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/conditional.h:48:16: note: template parameter is declared here
48 | template <bool _Bp, class _IfRes, class _ElseRes>
| ^
In file included from ../src/serialport.cpp:1:
In file included from ../src/./serialport.h:6:
In file included from ../../../../../nan@2.22.2/node_modules/nan/nan.h:62:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/node.h:73:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8.h:24:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-array-buffer.h:12:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-local-handle.h:13:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-handle-base.h:8:
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:1178:31: error: no template named 'is_void_v' in namespace 'std'; did you mean 'is_void'?
1178 | std::conditional_t<std::is_void_v<ElementType>,
| ~~~~~^~~~~~~~~
| is_void
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_void.h:22:29: note: 'is_void' declared here
22 | struct _LIBCPP_TEMPLATE_VIS is_void : _BoolConstant<__is_same(__remove_cv(_Tp), void)> {};
| ^
In file included from ../src/serialport.cpp:1:
In file included from ../src/./serialport.h:6:
In file included from ../../../../../nan@2.22.2/node_modules/nan/nan.h:62:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/node.h:73:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8.h:24:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-array-buffer.h:12:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-local-handle.h:13:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-handle-base.h:8:
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:1178:26: error: template argument for non-type template parameter must be an expression
1178 | std::conditional_t<std::is_void_v<ElementType>,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/conditional.h:48:16: note: template parameter is declared here
48 | template <bool _Bp, class _IfRes, class _ElseRes>
| ^
In file included from ../src/serialport.cpp:1:
In file included from ../src/./serialport.h:6:
In file included from ../../../../../nan@2.22.2/node_modules/nan/nan.h:62:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/node.h:73:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8.h:24:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-array-buffer.h:12:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-local-handle.h:13:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-handle-base.h:8:
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:1186:35: error: no template named 'is_convertible_v' in namespace 'std'; did you mean 'is_convertible'?
1186 | std::enable_if_t<std::is_convertible_v<OtherIterator, Iterator>,
| ~~~~~^~~~~~~~~~~~~~~~
| is_convertible
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_convertible.h:22:29: note: 'is_convertible' declared here
22 | struct _LIBCPP_TEMPLATE_VIS is_convertible : public integral_constant<bool, __is_convertible(_T1, _T2)> {};
| ^
In file included from ../src/serialport.cpp:1:
In file included from ../src/./serialport.h:6:
In file included from ../../../../../nan@2.22.2/node_modules/nan/nan.h:62:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/node.h:73:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8.h:24:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-array-buffer.h:12:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-local-handle.h:13:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-handle-base.h:8:
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:1186:30: error: template argument for non-type template parameter must be an expression
1186 | std::enable_if_t<std::is_convertible_v<OtherIterator, Iterator>,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/enable_if.h:31:16: note: template parameter is declared here
31 | template <bool _Bp, class _Tp = void>
| ^
In file included from ../src/serialport.cpp:1:
In file included from ../src/./serialport.h:6:
In file included from ../../../../../nan@2.22.2/node_modules/nan/nan.h:62:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/node.h:73:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8.h:24:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-array-buffer.h:12:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-local-handle.h:13:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-handle-base.h:8:
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:1192:13: error: unknown type name 'reference'
1192 | constexpr reference operator*() const noexcept { return *it_; }
| ^
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:1193:13: error: unknown type name 'pointer'; did you mean 'pointer_t'?
1193 | constexpr pointer operator->() const noexcept { return it_.operator->(); }
| ^~~~~~~
| pointer_t
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/vm_types.h:43:33: note: 'pointer_t' declared here
43 | typedef vm_offset_t pointer_t __kernel_ptr_semantics;
| ^
In file included from ../src/serialport.cpp:1:
In file included from ../src/./serialport.h:6:
In file included from ../../../../../nan@2.22.2/node_modules/nan/nan.h:62:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/node.h:73:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8.h:24:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-array-buffer.h:12:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-local-handle.h:13:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-handle-base.h:8:
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:1230:13: error: unknown type name 'reference'
1230 | constexpr reference operator[](difference_type n) const noexcept {
| ^
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-internal.h:1329:51: warning: template template parameter using 'typename' is a C++17 extension [-Wc++17-extensions]
1329 | template <template <typename T, typename... Ms> typename H, typename T,
| ^~~~~~~~
| class
In file included from ../src/serialport.cpp:1:
In file included from ../src/./serialport.h:6:
In file included from ../../../../../nan@2.22.2/node_modules/nan/nan.h:62:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/node.h:73:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8.h:24:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-array-buffer.h:12:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-local-handle.h:13:
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-handle-base.h:10:13: warning: nested namespace definition is a C++17 extension; define each namespace separately [-Wc++17-extensions]
10 | namespace v8::api_internal {
| ^~~~~~~~~~~~~~
| { namespace api_internal
In file included from ../src/serialport.cpp:1:
In file included from ../src/./serialport.h:6:
In file included from ../../../../../nan@2.22.2/node_modules/nan/nan.h:62:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/node.h:73:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8.h:24:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-array-buffer.h:13:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-object.h:9:
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-maybe.h:106:45: error: no template named 'is_lvalue_reference_v' in namespace 'std'; did you mean 'is_lvalue_reference'?
106 | template <class U, std::enable_if_t<!std::is_lvalue_reference_v<U>>*>
| ~~~~~^~~~~~~~~~~~~~~~~~~~~
| is_lvalue_reference
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_reference.h:32:29: note: 'is_lvalue_reference' declared here
32 | struct _LIBCPP_TEMPLATE_VIS is_lvalue_reference : _BoolConstant<__is_lvalue_reference(_Tp)> {};
| ^
In file included from ../src/serialport.cpp:1:
In file included from ../src/./serialport.h:6:
In file included from ../../../../../nan@2.22.2/node_modules/nan/nan.h:62:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/node.h:73:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8.h:24:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-array-buffer.h:13:
In file included from /Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-object.h:9:
/Users/kay/Library/Caches/node-gyp/22.14.0/include/node/v8-maybe.h:106:69: error: expected '(' for function-style cast or type construction
106 | template <class U, std::enable_if_t<!std::is_lvalue_reference_v<U>>*>
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
25 warnings and 20 errors generated.
make: *** [Release/obj.target/bindings/src/serialport.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.<anonymous> (file:///Users/kay/Desktop/johnnytest/node_modules/.deno/node-gyp@11.2.0/node_modules/node-gyp/lib/build.js:219:23)
gyp ERR! stack at eventLoopTick (ext:core/01_core.js:178:7)
gyp ERR! System Darwin 24.4.0
gyp ERR! command "node-gyp" "/Users/kay/Desktop/johnnytest/node_modules/.deno/node-gyp@11.2.0/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/kay/Desktop/johnnytest/node_modules/.deno/@serialport+bindings@8.0.8/node_modules/@serialport/bindings
gyp ERR! node -v v22.14.0
gyp ERR! node-gyp -v v11.2.0
gyp ERR! not ok