Skip to content
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

Impossible to build with vs2022 #46300

Closed
PaTiToMaSteR opened this issue Jan 21, 2023 · 5 comments
Closed

Impossible to build with vs2022 #46300

PaTiToMaSteR opened this issue Jan 21, 2023 · 5 comments
Labels
build Issues and PRs related to build files or the CI. v8 engine Issues and PRs related to the V8 dependency. windows Issues and PRs related to the Windows platform.

Comments

@PaTiToMaSteR
Copy link

Version

19.4.0 and 19.4.3

Platform

Microsoft Windows NT 10.0.22621.0 x64

Subsystem

No response

What steps will reproduce the bug?

.\vcbuild release vs2022 x64

How often does it reproduce? Is there a required condition?

Always

What is the expected behavior?

Have no errors

What do you see instead?

  libnode.vcxproj -> out\Release\lib\libnode.lib
  v8_base_without_compiler.vcxproj -> ..\..\out\Release\lib\v8_base_without_compiler.lib
  v8_initializers.vcxproj -> ..\..\out\Release\lib\v8_initializers.lib
     Creating library ..\..\out\Release\mksnapshot.lib and object ..\..\out\Release\mksnapshot.exp
mksnapshot.obj : error LNK2001: unresolved external symbol "public: class v8::internal::Object __cdecl v8::internal::Fixed
Array::get(int)const " (?get@FixedArray@internal@v8@@QEBA?AVObject@23@H@Z) [C:\Git\node-19.4.0\tools\v8_gypfiles\mksnapsho
t.vcxproj]
platform-embedded-file-writer-aix.obj : error LNK2001: unresolved external symbol "public: class v8::internal::Object __cd
ecl v8::internal::FixedArray::get(int)const " (?get@FixedArray@internal@v8@@QEBA?AVObject@23@H@Z) [C:\Git\node-19.4.0\tool
s\v8_gypfiles\mksnapshot.vcxproj]
platform-embedded-file-writer-generic.obj : error LNK2001: unresolved external symbol "public: class v8::internal::Object
__cdecl v8::internal::FixedArray::get(int)const " (?get@FixedArray@internal@v8@@QEBA?AVObject@23@H@Z) [C:\Git\node-19.4.0\
tools\v8_gypfiles\mksnapshot.vcxproj]
platform-embedded-file-writer-mac.obj : error LNK2001: unresolved external symbol "public: class v8::internal::Object __cd
ecl v8::internal::FixedArray::get(int)const " (?get@FixedArray@internal@v8@@QEBA?AVObject@23@H@Z) [C:\Git\node-19.4.0\tool
s\v8_gypfiles\mksnapshot.vcxproj]
platform-embedded-file-writer-win.obj : error LNK2001: unresolved external symbol "public: class v8::internal::Object __cd
ecl v8::internal::FixedArray::get(int)const " (?get@FixedArray@internal@v8@@QEBA?AVObject@23@H@Z) [C:\Git\node-19.4.0\tool
s\v8_gypfiles\mksnapshot.vcxproj]
..\..\out\Release\mksnapshot.exe : fatal error LNK1120: 1 unresolved externals [C:\Git\node-19.4.0\tools\v8_gypfiles\mksna
pshot.vcxproj]

Additional information

It's only possible to build with vs2019, I tried some alternatives in other issues posts with no luck I'm afraid.

@PaTiToMaSteR
Copy link
Author

Just as a note aside .\vcbuild debug vs2022 x64 works, not release

@VoltrexKeyva VoltrexKeyva added the build Issues and PRs related to build files or the CI. label Jan 22, 2023
@bnoordhuis
Copy link
Member

Possibly already fixed by (not yet released) commit nodejs/node-v8@691f1c4.

@bnoordhuis bnoordhuis added windows Issues and PRs related to the Windows platform. v8 engine Issues and PRs related to the V8 dependency. labels Jan 22, 2023
@StefanStojanovic
Copy link
Contributor

There are also 2 opened PRs that address this issue #46228 and #46231

@StefanStojanovic
Copy link
Contributor

#46228 landed, building with VS 2022 should work now.

@bnoordhuis
Copy link
Member

Nice. I'll go ahead and close this then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues and PRs related to build files or the CI. v8 engine Issues and PRs related to the V8 dependency. windows Issues and PRs related to the Windows platform.
Projects
None yet
Development

No branches or pull requests

4 participants