Closed wayneparrott closed 2 years ago
This PR should be against the galactic branch where the build errors occur. Closing here. Will reopen against the galactic branch.
As nodejs v17 is not a LTS version yet, maybe we can drop this configuration for Windows platform (because it's not stable and appveyor fails sometimes)?
Even though window builds upto node16 are succeeding on appveyor I've identified an error. While testing on my window11 machine with nvm and node16 I encounter a repeatable error when running node-gyp rebuild
:
C:\dev\test\rclnodejs\node_modules\nan\nan.h(57,10): fatal error C1083: Cannot open include file: 'uv.h': No such file
or directory [C:\dev\tmp\x\rclnodejs\build\rclnodejs.vcxproj]
As an experiment, I uninstalled nvm and installed node 16 directly. This resulted in successful build. We need to identify why uv.h is not on the MS build include path when using nvm node 16.
update: Note-0: After removing nvm, installing node, rclnodejs builds and installs cleanly. Then uninstalling nodejs, installing nvm, installing node16 no longer produces the error of the missing uv.h header. At this time rclnode#develop builds cleanly on node 12, 14 & 16 on my windows 11 dev machine.
Note-1 While continuing to try and isolate the node-gyp/nvm/node16+ issue I observed a similar issue where when installing dependencies int64-napi failed to local a system header file as it ran node-gyp. I looked up the path to the include file and it was present leading me to wondering if there are race conditions arising where a compile process is running ahead of a download process? Just thinking out loud.
Need to get a dev machine back in the failing state and analyze why uv.h is not being located.
Based on @minggangw feedback I chose to remove node17 from the release scope. See commit 29e33f0
I think switching different versions of nodejs may have some problems on appveyor, considering you can build successfully on your local dev, we can move forward to push the new tag and release v0.21.0, this is really a big step 🎉
appveyor builds occasionally fail for node 16 & 17 I've been successfully running the appveyor build matrix over the past 36 hrs and now after merging a key PR appveyor builds are failing for node 16 & 17. A common error follows:
appveyor.yml - reversed the order of node versions to be in decending order, e.g., 17, 16, ... Doing this will speed up identifying build failures and debug-fix iterations.