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

build: fix V8 build with pointer compression #39664

Closed
wants to merge 1 commit into from

Conversation

targos
Copy link
Member

@targos targos commented Aug 5, 2021

@targos
Copy link
Member Author

targos commented Aug 5, 2021

@richardlau @asciidisco

The build succeeds and all tests pass, but it has a lot of warnings like this one:

[2057/3383] CXX obj/deps/v8/src/strings/v8_base_without_compiler.string-stream.o
In file included from ../../deps/v8/src/strings/string-stream.cc:11:
In file included from ../../deps/v8/src/objects/js-array-inl.h:10:
In file included from ../../deps/v8/src/objects/objects-inl.h:22:
In file included from ../../deps/v8/src/heap/heap-write-barrier-inl.h:15:
In file included from ../../deps/v8/src/objects/compressed-slots-inl.h:10:
../../deps/v8/src/common/ptr-compr-inl.h:25:35: warning: requested alignment must be 536870912 bytes or smaller; maximum alignment assumed [-Wbuiltin-assume-aligned-alignment]
  ret = reinterpret_cast<Address>(V8_ASSUME_ALIGNED(
                                  ^~~~~~~~~~~~~~~~~~
../../deps/v8/include/v8config.h:379:3: note: expanded from macro 'V8_ASSUME_ALIGNED'
  __builtin_assume_aligned((ptr), (alignment))
  ^                               ~~~~~~~~~~~
1 warning generated.

@targos
Copy link
Member Author

targos commented Aug 5, 2021

I'm porting this part of BUILD.gn:

node/deps/v8/BUILD.gn

Lines 615 to 622 in 58316e2

if (v8_enable_pointer_compression) {
enabled_external_v8_defines += [ "V8_COMPRESS_POINTERS" ]
if (v8_enable_pointer_compression_shared_cage) {
enabled_external_v8_defines += [ "V8_COMPRESS_POINTERS_IN_SHARED_CAGE" ]
} else {
enabled_external_v8_defines += [ "V8_COMPRESS_POINTERS_IN_ISOLATE_CAGE" ]
}
}

Setting V8_COMPRESS_POINTERS_IN_ISOLATE_CAGE unconditionally because we haven't ported the v8_enable_pointer_compression_shared_cage option to gyp.

@targos targos added build Issues and PRs related to build files or the CI. dont-land-on-v12.x v8 engine Issues and PRs related to the V8 dependency. labels Aug 5, 2021
@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. tools Issues and PRs related to the tools directory. labels Aug 5, 2021
@targos targos added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 5, 2021
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 5, 2021
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

nodejs-github-bot commented Aug 6, 2021

@nodejs-github-bot
Copy link
Collaborator

@targos targos added the commit-queue Add this label to land a pull request using GitHub Actions. label Aug 7, 2021
@github-actions github-actions bot added commit-queue-failed An error occurred while landing this pull request using GitHub Actions. and removed commit-queue Add this label to land a pull request using GitHub Actions. labels Aug 7, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Aug 7, 2021

Commit Queue failed
- Loading data for nodejs/node/pull/39664
✔  Done loading data for nodejs/node/pull/39664
----------------------------------- PR info ------------------------------------
Title      build: fix V8 build with pointer compression (#39664)
Author     Michaël Zasso  (@targos)
Branch     targos:fix-pointer-compression -> nodejs:master
Labels     build, v8 engine, tools, needs-ci, dont-land-on-v12.x, dont-land-on-v14.x
Commits    1
 - build: fix V8 build with pointer compression
Committers 1
 - Michaël Zasso 
PR-URL: https://github.com/nodejs/node/pull/39664
Reviewed-By: Richard Lau 
Reviewed-By: James M Snell 
Reviewed-By: Colin Ihrig 
Reviewed-By: Mary Marchini 
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/39664
Reviewed-By: Richard Lau 
Reviewed-By: James M Snell 
Reviewed-By: Colin Ihrig 
Reviewed-By: Mary Marchini 
--------------------------------------------------------------------------------
   ℹ  This PR was created on Thu, 05 Aug 2021 14:31:48 GMT
   ✔  Approvals: 4
   ✔  - Richard Lau (@richardlau): https://github.com/nodejs/node/pull/39664#pullrequestreview-723459767
   ✔  - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/39664#pullrequestreview-723554439
   ✔  - Colin Ihrig (@cjihrig) (TSC): https://github.com/nodejs/node/pull/39664#pullrequestreview-724757725
   ✔  - Mary Marchini (@mmarchini) (TSC): https://github.com/nodejs/node/pull/39664#pullrequestreview-724801993
   ✖  This PR needs to wait 1 more hours to land
   ✖  Last GitHub CI failed
   ℹ  Last Full PR CI on 2021-08-07T04:30:37Z: https://ci.nodejs.org/job/node-test-pull-request/39492/
   ℹ  Last V8 CI on 2021-08-06T16:30:55Z: https://ci.nodejs.org/job/node-test-commit-v8-linux/4194/
- Querying data for job/node-test-pull-request/39492/
✔  Build data downloaded
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/1108009843

@targos targos added commit-queue Add this label to land a pull request using GitHub Actions. and removed commit-queue-failed An error occurred while landing this pull request using GitHub Actions. labels Aug 7, 2021
@github-actions github-actions bot added commit-queue-failed An error occurred while landing this pull request using GitHub Actions. and removed commit-queue Add this label to land a pull request using GitHub Actions. labels Aug 7, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Aug 7, 2021

Commit Queue failed
- Loading data for nodejs/node/pull/39664
✔  Done loading data for nodejs/node/pull/39664
----------------------------------- PR info ------------------------------------
Title      build: fix V8 build with pointer compression (#39664)
Author     Michaël Zasso  (@targos)
Branch     targos:fix-pointer-compression -> nodejs:master
Labels     build, v8 engine, tools, needs-ci, dont-land-on-v12.x, dont-land-on-v14.x
Commits    1
 - build: fix V8 build with pointer compression
Committers 1
 - Michaël Zasso 
PR-URL: https://github.com/nodejs/node/pull/39664
Reviewed-By: Richard Lau 
Reviewed-By: James M Snell 
Reviewed-By: Colin Ihrig 
Reviewed-By: Mary Marchini 
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/39664
Reviewed-By: Richard Lau 
Reviewed-By: James M Snell 
Reviewed-By: Colin Ihrig 
Reviewed-By: Mary Marchini 
--------------------------------------------------------------------------------
   ℹ  This PR was created on Thu, 05 Aug 2021 14:31:48 GMT
   ✔  Approvals: 4
   ✔  - Richard Lau (@richardlau): https://github.com/nodejs/node/pull/39664#pullrequestreview-723459767
   ✔  - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/39664#pullrequestreview-723554439
   ✔  - Colin Ihrig (@cjihrig) (TSC): https://github.com/nodejs/node/pull/39664#pullrequestreview-724757725
   ✔  - Mary Marchini (@mmarchini) (TSC): https://github.com/nodejs/node/pull/39664#pullrequestreview-724801993
   ✖  Last GitHub CI failed
   ℹ  Last Full PR CI on 2021-08-07T13:25:47Z: https://ci.nodejs.org/job/node-test-pull-request/39492/
   ℹ  Last V8 CI on 2021-08-07T13:25:47Z: https://ci.nodejs.org/job/node-test-commit-v8-linux/4194/
- Querying data for job/node-test-pull-request/39492/
✔  Build data downloaded
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/1108229017

targos added a commit that referenced this pull request Aug 7, 2021
Refs: nodejs/TSC#790 (comment)

PR-URL: #39664
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Mary Marchini <oss@mmarchini.me>
@targos
Copy link
Member Author

targos commented Aug 7, 2021

Landed in df25424

@targos targos closed this Aug 7, 2021
@targos targos deleted the fix-pointer-compression branch August 7, 2021 18:27
danielleadams pushed a commit that referenced this pull request Aug 16, 2021
Refs: nodejs/TSC#790 (comment)

PR-URL: #39664
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Mary Marchini <oss@mmarchini.me>
@targos targos removed the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label Sep 5, 2021
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. tools Issues and PRs related to the tools directory. v8 engine Issues and PRs related to the V8 dependency.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants