GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — build: fix GCC warnings when building V8 with gnu++20 by joyeecheung · Pull Request #67279 · nodejs/node

Conversation

@joyeecheung

@joyeecheung joyeecheung commented Nov 5, 2026

Copy link
Copy Markdown
Member

This silences the following warning from GCC:

  • deps/v8/src/base/flags.h: call to non-constexpr function std::__atomic_base<unsigned char>::operator unsigned char() const in the defaulted constexpr Flags::operator== when instantiated with std::atomic<uint8_t> storage [-Winvalid-constexpr]
  • deps/v8/include/v8-wasm.h: call to non-constexpr function std::unique_ptr<const unsigned char[]>::get() const in constexpr OwnedBuffer::as_span() [-Winvalid-constexpr]
  • deps/v8/src/execution/simulator.h: ‘nodebug’ attribute directive ignored [-Wattributes]

Also move -fvisibility-inlines-hidden from cflags to cflags_cc in tools/v8_gypfiles/v8.gyp to fix the following warning.

cc1: warning: command-line option '-fvisibility-inlines-hidden' is
valid for C++/ObjC++ but not for C

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@nodejs-github-bot

nodejs-github-bot commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator

Review requested:

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot nodejs-github-bot added build Issues and PRs related to Node.js builds or CI infrastructure. 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. labels Nov 5, 2026
@joyeecheung
build: fix GCC warnings when building V8 with gnu++20
6f8984c
This silences the following warning from GCC:

- deps/v8/src/base/flags.h: call to non-constexpr function
  `std::__atomic_base<unsigned char>::operator unsigned char() const`
  in the defaulted `constexpr Flags::operator==` when instantiated
  with `std::atomic<uint8_t>` storage [-Winvalid-constexpr]
- deps/v8/include/v8-wasm.h: call to non-constexpr function
  `std::unique_ptr<const unsigned char[]>::get() const` in
  `constexpr OwnedBuffer::as_span()` [-Winvalid-constexpr]
- deps/v8/src/execution/simulator.h: ‘nodebug’ attribute directive
  ignored [-Wattributes]

Also move -fvisibility-inlines-hidden from cflags to cflags_cc in
tools/v8_gypfiles/v8.gyp to fix the following warning.

  cc1: warning: command-line option '-fvisibility-inlines-hidden' is
  valid for C++/ObjC++ but not for C

Signed-off-by: Joyee Cheung <[email protected]>
@joyeecheung
joyeecheung force-pushed the fix-warning branch from 43b3786 to 6f8984c Compare November 5, 2026 16:31
@joyeecheung

joyeecheung commented Nov 5, 2026

Copy link
Copy Markdown
Member Author

cc @nodejs/build @nodejs/v8-update

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

jasnell
jasnell approved these changes Nov 5, 2026
View reviewed changes
@joyeecheung joyeecheung added the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Nov 6, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Nov 6, 2026
@nodejs-github-bot

This comment was marked as outdated.

Sign in to view
@nodejs-github-bot

This comment was marked as outdated.

Sign in to view
@nodejs-github-bot

This comment was marked as outdated.

Sign in to view
@nodejs-github-bot

This comment was marked as outdated.

Sign in to view
lpinca
lpinca approved these changes Nov 6, 2026
View reviewed changes
@Renegade334 Renegade334 added the resume-ci Add this label to resume the latest eligible Jenkins CI run on a PR with an approving review. label Nov 9, 2026
@github-actions github-actions Bot removed the resume-ci Add this label to resume the latest eligible Jenkins CI run on a PR with an approving review. label Nov 9, 2026
@nodejs-github-bot

This comment was marked as outdated.

Sign in to view
legendecas
legendecas approved these changes Nov 10, 2026
View reviewed changes
@legendecas legendecas added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Nov 11, 2026
sxa
sxa approved these changes Nov 11, 2026
View reviewed changes
@nodejs-github-bot

This comment was marked as outdated.

Sign in to view
gurgunday
gurgunday approved these changes Nov 15, 2026
View reviewed changes
@nodejs-github-bot

nodejs-github-bot commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@legendecas legendecas added the commit-queue PRs queued for automated landing through the Commit Queue. label Nov 16, 2026
@nodejs-github-bot
nodejs-github-bot merged commit 658f68d into nodejs:main Nov 16, 2026
74 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot

nodejs-github-bot commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator

Landed in 658f68d

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot nodejs-github-bot removed the commit-queue PRs queued for automated landing through the Commit Queue. label Nov 16, 2026
aduh95 pushed a commit that referenced this pull request Nov 19, 2026
@joyeecheung @aduh95
build: fix GCC warnings when building V8 with gnu++20
6cd8f45
This silences the following warning from GCC:

- deps/v8/src/base/flags.h: call to non-constexpr function
  `std::__atomic_base<unsigned char>::operator unsigned char() const`
  in the defaulted `constexpr Flags::operator==` when instantiated
  with `std::atomic<uint8_t>` storage [-Winvalid-constexpr]
- deps/v8/include/v8-wasm.h: call to non-constexpr function
  `std::unique_ptr<const unsigned char[]>::get() const` in
  `constexpr OwnedBuffer::as_span()` [-Winvalid-constexpr]
- deps/v8/src/execution/simulator.h: ‘nodebug’ attribute directive
  ignored [-Wattributes]

Also move -fvisibility-inlines-hidden from cflags to cflags_cc in
tools/v8_gypfiles/v8.gyp to fix the following warning.

  cc1: warning: command-line option '-fvisibility-inlines-hidden' is
  valid for C++/ObjC++ but not for C

Signed-off-by: Joyee Cheung <[email protected]>
PR-URL: #67279
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Chengzhong Wu <[email protected]>
Reviewed-By: Stewart X Addison <[email protected]>
Reviewed-By: Gürgün Dayıoğlu <[email protected]>
@github-actions github-actions Bot mentioned this pull request Nov 24, 2026
2026-11-25, Version 27.0.0-alpha.0.2.0 (Alpha) #67757
Merged
gabylb pushed a commit to gabylb/node that referenced this pull request Nov 27, 2026
@joyeecheung @gabylb
build: fix GCC warnings when building V8 with gnu++20
025eb8e
This silences the following warning from GCC:

- deps/v8/src/base/flags.h: call to non-constexpr function
  `std::__atomic_base<unsigned char>::operator unsigned char() const`
  in the defaulted `constexpr Flags::operator==` when instantiated
  with `std::atomic<uint8_t>` storage [-Winvalid-constexpr]
- deps/v8/include/v8-wasm.h: call to non-constexpr function
  `std::unique_ptr<const unsigned char[]>::get() const` in
  `constexpr OwnedBuffer::as_span()` [-Winvalid-constexpr]
- deps/v8/src/execution/simulator.h: ‘nodebug’ attribute directive
  ignored [-Wattributes]

Also move -fvisibility-inlines-hidden from cflags to cflags_cc in
tools/v8_gypfiles/v8.gyp to fix the following warning.

  cc1: warning: command-line option '-fvisibility-inlines-hidden' is
  valid for C++/ObjC++ but not for C

Signed-off-by: Joyee Cheung <[email protected]>
PR-URL: nodejs#67279
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Chengzhong Wu <[email protected]>
Reviewed-By: Stewart X Addison <[email protected]>
Reviewed-By: Gürgün Dayıoğlu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@jasnell jasnell jasnell approved these changes
@lpinca lpinca lpinca approved these changes
@sxa sxa sxa approved these changes
@legendecas legendecas legendecas approved these changes
@gurgunday gurgunday gurgunday approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. build Issues and PRs related to Node.js builds or CI infrastructure. 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

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

8 participants

@joyeecheung @nodejs-github-bot @jasnell @lpinca @sxa @legendecas @gurgunday @Renegade334
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.