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

deps: update V8 to 11.1 #46445

Closed
wants to merge 7 commits into from
Closed

deps: update V8 to 11.1 #46445

wants to merge 7 commits into from

Conversation

targos
Copy link
Member

@targos targos commented Jan 31, 2023

Possibly easier to land than #46125

Major V8 updates are usually API/ABI incompatible with previous
versions. This commit adapts NODE_MODULE_VERSION for V8 11.1.

Refs: https://github.com/nodejs/CTC/blob/master/meetings/2016-09-28.md
dllexport introduces issues when compiling with MSVC.
PR-URL: nodejs#45579
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@targos targos added the semver-major PRs that contain breaking changes and should be released in the next major version. label Jan 31, 2023
@nodejs-github-bot
Copy link
Collaborator

Review requested:

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

@nodejs-github-bot nodejs-github-bot added build Issues and PRs related to build files or the CI. needs-ci PRs that need a full CI run. v8 engine Issues and PRs related to the V8 dependency. labels Jan 31, 2023
@targos targos added the request-ci Add this label to start a Jenkins CI on a PR. label Jan 31, 2023
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jan 31, 2023
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@targos
Copy link
Member Author

targos commented Feb 1, 2023

V8 test failure on ppc64le and s390x:

/home/iojs/build/workspace/node-test-commit-v8-linux/deps/v8/test/mjsunit/regress/regress-1320641.js:8: RangeError: Array buffer allocation failed
  const xs = new Uint16Array(3775336418);
             ^
RangeError: Array buffer allocation failed
    at new ArrayBuffer (<anonymous>)
    at new Uint16Array (<anonymous>)
    at foo (/home/iojs/build/workspace/node-test-commit-v8-linux/deps/v8/test/mjsunit/regress/regress-1320641.js:8:14)
    at /home/iojs/build/workspace/node-test-commit-v8-linux/deps/v8/test/mjsunit/regress/regress-1320641.js:12:1
Command: out.gn/ppc64.release/d8 --test test/mjsunit/mjsunit.js test/mjsunit/regress/regress-1320641.js --random-seed=-1674014384 --nohard-abort --testing-d8-test-runner --allow-natives-syntax

@nodejs/platform-ppc @nodejs/platform-s390

@targos
Copy link
Member Author

targos commented Feb 1, 2023

Windows 32-bit build failure:

17:03:48   setup-isolate-full.cc
17:03:51 C:\workspace\node-compile-windows\node\deps\v8\src\heap\spaces.h(345,35): error C2607: static assertion failed [C:\workspace\node-compile-windows\node\tools\v8_gypfiles\v8_init.vcxproj]
17:03:51 C:\workspace\node-compile-windows\node\deps\v8\src\heap\spaces.h(346,28): error C2607: static assertion failed [C:\workspace\node-compile-windows\node\tools\v8_gypfiles\v8_init.vcxproj]
17:03:51 C:\workspace\node-compile-windows\node\deps\v8\src\heap\large-spaces.h(60,33): error C2607: static assertion failed [C:\workspace\node-compile-windows\node\tools\v8_gypfiles\v8_init.vcxproj]

@nodejs/platform-windows

@gengjiawen
Copy link
Member

Windows 32-bit build failure:

17:03:48   setup-isolate-full.cc
17:03:51 C:\workspace\node-compile-windows\node\deps\v8\src\heap\spaces.h(345,35): error C2607: static assertion failed [C:\workspace\node-compile-windows\node\tools\v8_gypfiles\v8_init.vcxproj]
17:03:51 C:\workspace\node-compile-windows\node\deps\v8\src\heap\spaces.h(346,28): error C2607: static assertion failed [C:\workspace\node-compile-windows\node\tools\v8_gypfiles\v8_init.vcxproj]
17:03:51 C:\workspace\node-compile-windows\node\deps\v8\src\heap\large-spaces.h(60,33): error C2607: static assertion failed [C:\workspace\node-compile-windows\node\tools\v8_gypfiles\v8_init.vcxproj]

@nodejs/platform-windows

Similar to #45230 (comment)

cc @StefanStojanovic

@targos
Copy link
Member Author

targos commented Feb 1, 2023

Oh right, I forgot that we already had this error in the past. Don't know how it came back, but based on a bisect with canary, it seems to come from https://chromium-review.googlesource.com/c/v8/v8/+/4138254

@targos
Copy link
Member Author

targos commented Feb 1, 2023

There's also an issue with the coverage build:

[ RUN      ] InspectorSocketTest.HostIPv6NonRoutable
../test/cctest/test_inspector_socket.cc:323: Failure
Value of: (!expectation.read_expected)
  Actual: true
Expected: false
[  FAILED  ] InspectorSocketTest.HostIPv6NonRoutable (5000 ms)

Edit: looks like it was a flake

@gengjiawen
Copy link
Member

Oh right, I forgot that we already had this error in the past. Don't know how it came back, but based on a bisect with canary, it seems to come from chromium-review.googlesource.com/c/v8/v8/+/4138254

Is it possible v8 add a win32 CI ? or should we drop win 32bit too.

@targos
Copy link
Member Author

targos commented Feb 15, 2023

Is it possible v8 add a win32 CI ? or should we drop win 32bit too.

I don't believe it, they just did (opt-in)!

https://bugs.chromium.org/p/v8/issues/detail?id=8811

@targos
Copy link
Member Author

targos commented Feb 24, 2023

I'll open a new PR with 11.2 later today.

@targos targos closed this Feb 24, 2023
@targos targos deleted the v8-111 branch April 5, 2024 09:54
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. needs-ci PRs that need a full CI run. semver-major PRs that contain breaking changes and should be released in the next major version. v8 engine Issues and PRs related to the V8 dependency.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants