- Version:v16.0.0
- Platform:Darwin 20.3.0 arm64 (Apple Silicon)
What steps will reproduce the bug?
When building node-sass@5.0.0, the error occurred.
How often does it reproduce? Is there a required condition?
ALWAYS, arm64 (Apple Silicon)
What is the expected behavior?
NO error
What do you see instead?
/Users/***/Library/Caches/node-gyp/16.0.0/include/node/v8-internal.h:452:38: error: no template named 'remove_cv_t' in namespace 'std'; did you mean 'remove_cv'?
!std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
~~~~~^~~~~~~~~~~
remove_cv
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:697:50: note: 'remove_cv' declared here
template <class _Tp> struct _LIBCPP_TEMPLATE_VIS remove_cv
^
1 error generated.
make: *** [Release/obj.target/binding/src/binding.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/***/*/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (node:events:365:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
gyp ERR! System Darwin 20.3.0
gyp ERR! command "/opt/homebrew/Cellar/node/16.0.0/bin/node" "/Users/***/*/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/***/*/node_modules/node-sass
gyp ERR! node -v v16.0.0
Additional information
Here is the ref link:
|
V8_INLINE void PerformCastCheck(T* data) { |
|
CastCheck<std::is_base_of<Data, T>::value && |
|
!std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data); |
|
} |
When replacing remove_cv_t with remove_cv, it seems to work well.
What steps will reproduce the bug?
When building
node-sass@5.0.0, the error occurred.How often does it reproduce? Is there a required condition?
ALWAYS, arm64 (Apple Silicon)
What is the expected behavior?
NO error
What do you see instead?
Additional information
Here is the ref link:
node/deps/v8/include/v8-internal.h
Lines 450 to 453 in e46c680
When replacing
remove_cv_twithremove_cv, it seems to work well.