-
-
Notifications
You must be signed in to change notification settings - Fork 49
Error: node-gyp failed to rebuild 'xxxxx/@serialport\bindings-cpp' #199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
+1, this issue is also reproducible in my project using |
+1 |
I think this is fixed by #208. Not sure why it broke in the first place, though. |
Facing the same issue, and downgraded from v13 to v12 as @artus9033 said, and it worked. |
same error +1 |
Having the same error right now, and I was pushed to upgrade due to incompatibility issues of the old process with the newer CPP version installed on the ubuntu machines that github actions provide, so I cannot go back, do you know any way around this issue? issue when compiling v12 with node 20 and 22
|
When building Bazecor with @serialport/bindincs-cpp, an error happens on windows (same as this one : prebuild/node-gyp-build#70), also commented on serialport#199
SerialPort Bindings Version
13.0.0
Node Version
v22.2.0
Electron Version
33.2.1
Platform
Microsoft Windows NT 10.0.26100.0 x64
Architecture
x64
Hardware or chipset of serialport
No response
What steps will reproduce the bug?
npm install
What happens?
• electron-builder version=25.1.8
• executing @electron/rebuild electronVersion=33.2.1 arch=x64 buildFromSource=false appDir=./
• installing native dependencies arch=x64
• preparing moduleName=@serialport/bindings-cpp arch=x64
⨯ (node:16496) [DEP0060] DeprecationWarning: The
util._extend
API is deprecated. Please use Object.assign() instead.(Use
node --trace-deprecation ...
to show where the warning was created)serialport.cpp
C:\Users\86132.electron-gyp\33.2.1\include\node\v8-internal.h(125,67): warning C4003: 类函数宏的调用“max”参数不足 [D:\new\gbk_electron\node_modules@serialport\bindings-cpp\build\bindings.vcxproj]
(编译源文件“../src/serialport.cpp”)
C:\Users\86132.electron-gyp\33.2.1\include\node\v8-internal.h(139,66): warning C4003: 类函数宏的调用“max”参数不足 [D:\new\gbk_electron\node_modules@serialport\bindings-cpp\build\bindings.vcxproj]
(编译源文件“../src/serialport.cpp”)
C:\Users\86132.electron-gyp\33.2.1\include\node\v8-internal.h(125,67): error C2589: “(”:“::”右边的非法标记 [D:\new\gbk_electron\node_modules@serialport\bindings-cpp\build\bindings.vcxproj]
(编译源文件“../src/serialport.cpp”)
C:\Users\86132.electron-gyp\33.2.1\include\node\v8-internal.h(124,35):
此诊断出现在编译器生成的函数“bool v8::internal::SmiTagging<4>::IsValidSmi(T)”中
C:\Users\86132.electron-gyp\33.2.1\include\node\v8-internal.h(125,67): error C2760: 语法错误: 此处出现意外的“)”;应为“表达式” [D:\new\gbk_electron\node_modules@serialport\bindings-cpp\build\bindings.vcxproj]
(编译源文件“../src/serialport.cpp”)
C:\Users\86132.electron-gyp\33.2.1\include\node\v8-internal.h(124,35):
此诊断出现在编译器生成的函数“bool v8::internal::SmiTagging<4>::IsValidSmi(T)”中
C:\Users\86132.electron-gyp\33.2.1\include\node\v8-internal.h(125,67): error C2760: 语法错误: 此处出现意外的“)”;应为“;” [D:\new\gbk_electron\node_modules@serialport\bindings-cpp\build\bindings.vcxproj]
(编译源文件“../src/serialport.cpp”)
C:\Users\86132.electron-gyp\33.2.1\include\node\v8-internal.h(124,35):
此诊断出现在编译器生成的函数“bool v8::internal::SmiTagging<4>::IsValidSmi(T)”中
C:\Users\86132.electron-gyp\33.2.1\include\node\v8-internal.h(125,67): error C3878: 语法错误:“expression-statement”后出现意外标记“)” [D:\new\gbk_electron\node_modules@serialport\bindings-cpp\build\bindings.vcxproj]
(编译源文件“../src/serialport.cpp”)
C:\Users\86132.electron-gyp\33.2.1\include\node\v8-internal.h(124,35):
此诊断出现在编译器生成的函数“bool v8::internal::SmiTagging<4>::IsValidSmi(T)”中
What should have happened?
Additional information
No response
The text was updated successfully, but these errors were encountered: