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

New build warnings #33389

Closed
richardlau opened this issue May 13, 2020 · 1 comment · Fixed by #33373
Closed

New build warnings #33389

richardlau opened this issue May 13, 2020 · 1 comment · Fixed by #33373

Comments

@richardlau
Copy link
Member

  • Version: master
  • Platform: macOS/Linux
  • Subsystem:

What steps will reproduce the bug?

Build with the --error-on-warn configure option.

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

Always.

What is the expected behavior?

Build succeeds.

What do you see instead?

Build errors on warning:

../src/api/environment.cc: In function 'void node::SetIsolateMiscHandlers(v8::Isolate*, const node::IsolateSettings&)':
../src/api/environment.cc:265:67: error: 'void v8::Isolate::SetHostCleanupFinalizationGroupCallback(v8::HostCleanupFinalizationGroupCallback)' is deprecated: FinalizationRegistry cleanup is automatic if HostCleanupFinalizationGroupCallback is not set [-Werror=deprecated-declarations]
   isolate->SetHostCleanupFinalizationGroupCallback(host_cleanup_cb);
                                                                   ^
In file included from ../src/node.h:67,
                 from ../src/api/environment.cc:1:
../deps/v8/include/v8.h:8560:8: note: declared here
   void SetHostCleanupFinalizationGroupCallback(
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [libnode.target.mk:343: /home/iojs/build/workspace/node-test-commit-linux-containered/out/Release/obj.target/libnode/src/api/environment.o] Error 1
make[2]: *** Waiting for unfinished jobs....
../src/env.cc: In member function 'void node::Environment::CleanupFinalizationGroups()':
../src/env.cc:1170:29: error: 'static v8::Maybe<bool> v8::FinalizationGroup::Cleanup(v8::Local<v8::FinalizationGroup>)' is deprecated: FinalizationGroup cleanup is automatic if HostCleanupFinalizationGroupCallback is not set [-Werror=deprecated-declarations]
     if (!FinalizationGroup::Cleanup(fg).FromMaybe(false)) {
                             ^~~~~~~
In file included from ../src/util.h:31,
                 from ../src/util-inl.h:29,
                 from ../src/aliased_buffer.h:7,
                 from ../src/env.h:27,
                 from ../src/env.cc:1:
../deps/v8/include/v8.h:5965:44: note: declared here
   static V8_WARN_UNUSED_RESULT Maybe<bool> Cleanup(
                                            ^~~~~~~
../src/env.cc:1170:39: error: 'static v8::Maybe<bool> v8::FinalizationGroup::Cleanup(v8::Local<v8::FinalizationGroup>)' is deprecated: FinalizationGroup cleanup is automatic if HostCleanupFinalizationGroupCallback is not set [-Werror=deprecated-declarations]
     if (!FinalizationGroup::Cleanup(fg).FromMaybe(false)) {
                                       ^
In file included from ../src/util.h:31,
                 from ../src/util-inl.h:29,
                 from ../src/aliased_buffer.h:7,
                 from ../src/env.h:27,
                 from ../src/env.cc:1:
../deps/v8/include/v8.h:5965:44: note: declared here
   static V8_WARN_UNUSED_RESULT Maybe<bool> Cleanup(
                                            ^~~~~~~
../src/env.cc:1170:39: error: 'static v8::Maybe<bool> v8::FinalizationGroup::Cleanup(v8::Local<v8::FinalizationGroup>)' is deprecated: FinalizationGroup cleanup is automatic if HostCleanupFinalizationGroupCallback is not set [-Werror=deprecated-declarations]
     if (!FinalizationGroup::Cleanup(fg).FromMaybe(false)) {
                                       ^
In file included from ../src/util.h:31,
                 from ../src/util-inl.h:29,
                 from ../src/aliased_buffer.h:7,
                 from ../src/env.h:27,
                 from ../src/env.cc:1:
../deps/v8/include/v8.h:5965:44: note: declared here
   static V8_WARN_UNUSED_RESULT Maybe<bool> Cleanup(
                                            ^~~~~~~
cc1plus: all warnings being treated as errors

Additional information

Something has landed within the last day or so that has introduced some new warnings which is failing the builds that have the --error-on-warn configure flag on. e.g. GitHub actions (after #33357 landed) and the UBI 8.1 containered build, e.g. from today's daily: https://ci.nodejs.org/job/node-test-commit-linux-containered/20158/nodes=ubi81_sharedlibs_openssl111fips_x64/console

I'd guess it might be the V8 8.3 update (#32831) whose CI runs were from before we enabled the flag.

@devsnek
Copy link
Member

devsnek commented May 13, 2020

#33373

codebytere pushed a commit that referenced this issue May 16, 2020
PR-URL: #33373
Fixes: #33389
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants