Repository navigation
Build error on Windows (arm64) #240
Description
Activity
The first error is considered "not a bug" by Microsoft. What should we do?
@nodejs/platform-windows-arm
It seems like a workaround was given by Microsoft (using .128_u8).
It it's working, would that be possible to simply add an ifdef for that compiler (vs gcc/clang)?We probably should upstream a patch to V8 as well to fix the same issue with MSVC.
Yes, please send a patch upstream if possible!
I'll look at it :)
If we integrate that in v8, can you easily update to latest version (including current trunk)?Yes, the canary branch in this repository is updated automatically every day.
Reacted by Pierrick Bouvier@targos After investigation, it is indeed not a bug in msvc, but simply the C++ standard dictating this (and gcc having an extension that accepts it). The way to initialize those variables must be changed specifically for msvc.
In more, there is another problem appearing with a conflict between two template specialization.
Quick and dirty details and patch are available here: https://github.com/pbo-linaro/node/commit/7586c64749459e238023834dc0ab8b0d941c819b.
I'll try to upstream that in V8 directly (so nodejs and other projects can benefit from it).
If that's not ready for next nodejs release, you can still use that patch 👍Amazing!
- added a commit that references this issue
on Sep 23, 2022 @targos Patches are now merged upstream, v8 canary should be able to compile for windows from now.
Don't hesitate to ping me if you need help in the future 👍
Reacted by Michaël ZassoReacted by Michaël ZassoCherry-picked all patches to nodejs/node#44741.
- added a commit that references this issue
on Sep 25, 2022 6 remaining items
- added 7 commits that reference this issue
on Oct 4, 2022 - added 2 commits that reference this issue
on Oct 10, 2022
https://ci.nodejs.org/job/node-compile-windows/46957/nodes=win-vs2019-arm64/console