node icon indicating copy to clipboard operation
node copied to clipboard

deps: update V8 to 10.7

Open targos opened this issue 2 years ago • 1 comments

WIP.

This includes 4 temporary commits to fix known issues. Those still need to be upstreamed or landed on main

Closes: https://github.com/nodejs/node/issues/44650

targos avatar Sep 21 '22 13:09 targos

Review requested:

  • [ ] @nodejs/gyp
  • [ ] @nodejs/v8-update

nodejs-github-bot avatar Sep 21 '22 13:09 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/46771/

nodejs-github-bot avatar Sep 25 '22 16:09 nodejs-github-bot

There's a lot of CI failures but I don't understand how I broke it.

targos avatar Sep 25 '22 16:09 targos

At least one of the machines is failing with this error:

12:11:57 error: The last gc run reported the following. Please correct the root cause
12:11:57 and remove .git/gc.log.

I.e., infrastructure error.

bnoordhuis avatar Sep 25 '22 22:09 bnoordhuis

Other errors seem to be https://github.com/nodejs/build/issues/3037

targos avatar Sep 26 '22 06:09 targos

CI: https://ci.nodejs.org/job/node-test-pull-request/46811/ V8: https://ci.nodejs.org/job/node-test-commit-v8-linux/4876/

nodejs-github-bot avatar Sep 26 '22 08:09 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/46823/

nodejs-github-bot avatar Sep 26 '22 16:09 nodejs-github-bot

Rebased to update to patch version 11 (see https://github.com/v8/v8/commits/10.7-lkgr)

targos avatar Sep 28 '22 06:09 targos

CI: https://ci.nodejs.org/job/node-test-pull-request/46887/

nodejs-github-bot avatar Sep 28 '22 06:09 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/46888/

nodejs-github-bot avatar Sep 28 '22 11:09 nodejs-github-bot

V8 CI: https://ci.nodejs.org/job/node-test-commit-v8-linux/4881/ (with changes to use the new converter for JUnit output https://github.com/nodejs/node/pull/44049#issuecomment-1261117494)

richardlau avatar Sep 28 '22 15:09 richardlau

@pbo-linaro I'm seeing linker errors on arm64 Windows

14:53:29 v8_base_without_compiler_host.lib(api.obj) : error LNK2019: unresolved external symbol "bool __cdecl v8::internal::trap_handler::TryHandleWasmTrap(struct _EXCEPTION_POINTERS *)" (?TryHandleWasmTrap@trap_handler@internal@v8@@YA_NPEAU_EXCEPTION_POINTERS@@@Z) referenced in function "bool __cdecl v8::TryHandleWebAssemblyTrapWindows(struct _EXCEPTION_POINTERS *)" (?TryHandleWebAssemblyTrapWindows@v8@@YA_NPEAU_EXCEPTION_POINTERS@@@Z) [C:\workspace\node-compile-windows\node\tools\v8_gypfiles\mksnapshot_host.vcxproj]
14:53:31 v8_base_without_compiler_host.lib(handler-outside.obj) : error LNK2019: unresolved external symbol "bool __cdecl v8::internal::trap_handler::RegisterDefaultTrapHandler(void)" (?RegisterDefaultTrapHandler@trap_handler@internal@v8@@YA_NXZ) referenced in function "bool __cdecl v8::internal::trap_handler::EnableTrapHandler(bool)" (?EnableTrapHandler@trap_handler@internal@v8@@YA_N_N@Z) [C:\workspace\node-compile-windows\node\tools\v8_gypfiles\mksnapshot_host.vcxproj]
14:53:31 v8_base_without_compiler_host.lib(simulator-arm64.obj) : error LNK2019: unresolved external symbol ProbeMemory referenced in function "protected: void __cdecl v8::internal::Simulator::LoadStoreHelper(class v8::internal::Instruction *,__int64,enum v8::internal::AddrMode)" (?LoadStoreHelper@Simulator@internal@v8@@IEAAXPEAVInstruction@23@_JW4AddrMode@23@@Z) [C:\workspace\node-compile-windows\node\tools\v8_gypfiles\mksnapshot_host.vcxproj]
14:53:31     Hint on symbols that are defined and could potentially match:
14:53:31       "protected: bool __cdecl v8::internal::Simulator::ProbeMemory(unsigned __int64,unsigned __int64)" (?ProbeMemory@Simulator@internal@v8@@IEAA_N_K0@Z)
14:53:31 ..\..\out\Release\mksnapshot_host.exe : fatal error LNK1120: 3 unresolved externals [C:\workspace\node-compile-windows\node\tools\v8_gypfiles\mksnapshot_host.vcxproj]

Should I still float the patch from https://github.com/nodejs/node-v8/commit/26c8df37b3b665780f8c28a10cb4c5eb3ddc5303 ?

targos avatar Sep 28 '22 16:09 targos

Those functions were implemented in this patch (merged upstream).

Patch you mention can probably be deleted (with updated v8), as functions are now implemented.

pbo-linaro avatar Sep 28 '22 16:09 pbo-linaro

Those functions were implemented in this patch (merged upstream).

Patch you mention can probably be deleted (with updated v8), as functions are now implemented.

That's what I did (delete the patch). This PR contains the V8 change: image

targos avatar Sep 29 '22 04:09 targos

It was my bad. I forgot to update v8.gyp (the files defining the missing symbols were not included in the build).

targos avatar Sep 29 '22 04:09 targos

Fixed (I hope) in https://github.com/nodejs/node/pull/44741/commits/d21c398826546661acce7d60cc33d1b73a2abd4f

targos avatar Sep 29 '22 04:09 targos

CI: https://ci.nodejs.org/job/node-test-pull-request/46917/ V8: https://ci.nodejs.org/job/node-test-commit-v8-linux/4887/

nodejs-github-bot avatar Sep 29 '22 04:09 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/46931/

nodejs-github-bot avatar Sep 29 '22 12:09 nodejs-github-bot

It looks like there is an issue with native addons on Windows?

targos avatar Sep 29 '22 16:09 targos

It looks like there is an issue with native addons on Windows?

https://ci.nodejs.org/job/node-test-binary-windows-native-suites/14819/nodes=win2012r2-vs2015-COMPILED_BY-vs2019-x86/console

13:16:10     "c:\\workspace\\node-test-binary-windows-native-suites\\node\\deps\\v8\\include\\v8-internal.h(461): error C2143: syntax error: missing ',' before ')' [C:\\workspace\\node-test-binary-windows-native-suites\\node\\test\\addons\\01_worker_support\\build\\addon.vcxproj]\r\n" +

richardlau avatar Sep 29 '22 17:09 richardlau

Maybe we should consider dropping support for VS 2015...

targos avatar Sep 29 '22 17:09 targos

CI: https://ci.nodejs.org/job/node-test-pull-request/47044/ V8: https://ci.nodejs.org/job/node-test-commit-v8-linux/4894/

nodejs-github-bot avatar Oct 03 '22 17:10 nodejs-github-bot

[Error: ENOSPC: no space left on device, ftruncate] {

🤦

The VS 2015 add-on build issue still exists. I'm okay with dropping VS 2015 support, that's seven years old now.

bnoordhuis avatar Oct 04 '22 18:10 bnoordhuis

CI: https://ci.nodejs.org/job/node-test-pull-request/47152/ V8: https://ci.nodejs.org/job/node-test-commit-v8-linux/4903/

nodejs-github-bot avatar Oct 10 '22 14:10 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/47160/

nodejs-github-bot avatar Oct 10 '22 18:10 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/47164/

nodejs-github-bot avatar Oct 10 '22 20:10 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/47172/

nodejs-github-bot avatar Oct 11 '22 03:10 nodejs-github-bot

Landed in 624dadb00706...36805e852471

targos avatar Oct 11 '22 05:10 targos