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

DEBUG build of Node.js 8.11.2 fails due to nghttp2 changes #20806

Closed
sgallagher opened this issue May 17, 2018 · 2 comments
Closed

DEBUG build of Node.js 8.11.2 fails due to nghttp2 changes #20806

sgallagher opened this issue May 17, 2018 · 2 comments

Comments

@sgallagher
Copy link
Contributor

  • Version: 8.11.2
  • Platform: Fedora Linux
  • Subsystem: Buildsystem
  g++ '-DNODE_OPENSSL_CERT_STORE' '-DNODE_ARCH="x64"' '-DNODE_PLATFORM="linux"' '-DNODE_WANT_INTERNALS=1' '-DV8_DEPRECATION_WARNINGS=1' '-DNODE_OPENSSL_SYSTEM_CERT_PATH=""' '-DHAVE_INSPECTOR=1' '-D__POSIX__' '-DHAVE_DTRACE=1' '-DNODE_USE_V8_PLATFORM=1' '-DNODE_DEBUG_HTTP2=1' '-DNODE_HAVE_I18N_SUPPORT=1' '-DNODE_HAVE_SMALL_ICU=1' '-DHAVE_OPENSSL=1' '-DUCONFIG_NO_SERVICE=1' '-DUCONFIG_NO_REGULAR_EXPRESSIONS=1' '-DU_ENABLE_DYLOAD=0' '-DU_STATIC_IMPLEMENTATION=1' '-DU_HAVE_STD_STRING=0' '-DUCONFIG_NO_BREAK_ITERATION=0' '-DDEBUG' '-D_DEBUG' '-DV8_ENABLE_CHECKS' -I../src -I/builddir/build/BUILD/node-v8.11.2/out/Debug/obj/gen -I/builddir/build/BUILD/node-v8.11.2/out/Debug/obj/gen/include -I../deps/v8/include -I../deps/icu-small/source/i18n -I../deps/icu-small/source/common -I../deps/cares/include  -pthread -Wall -Wextra -Wno-unused-parameter -m64 -g -O0 -fno-rtti -fno-exceptions -std=gnu++0x -MMD -MF /builddir/build/BUILD/node-v8.11.2/out/Debug/.deps//builddir/build/BUILD/node-v8.11.2/out/Debug/obj.target/node_lib/src/node_platform.o.d.raw  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -g   -D_LARGEFILE_SOURCE   -D_FILE_OFFSET_BITS=64   -DZLIB_CONST   -fno-delete-null-pointer-checks  -c -o /builddir/build/BUILD/node-v8.11.2/out/Debug/obj.target/node_lib/src/node_platform.o ../src/node_platform.cc
In file included from ../src/node_http2.cc:4:
../src/node_http2.cc: In static member function 'static void node::http2::Http2Session::OnStreamReadImpl(ssize_t, const uv_buf_t*, uv_handle_type, void*)':
../src/node_http2.cc:1690:27: error: 'this' is unavailable for static member functions
       DEBUG_HTTP2SESSION2(this, "fatal error receiving data: %d", ret);
                           ^~~~
../src/node_http2.h:50:9: note: in definition of macro 'DEBUG_HTTP2SESSION2'
     if (session != nullptr) {                                                 \
         ^~~~~~~
../src/node_http2.cc:1690:27: error: 'this' is unavailable for static member functions
       DEBUG_HTTP2SESSION2(this, "fatal error receiving data: %d", ret);
                           ^~~~
../src/node_http2.h:39:41: note: in definition of macro 'DEBUG_HTTP2'
 #define DEBUG_HTTP2(...) debug_vfprintf(__VA_ARGS__);
                                         ^~~~~~~~~~~
../src/node_http2.cc:1690:7: note: in expansion of macro 'DEBUG_HTTP2SESSION2'
       DEBUG_HTTP2SESSION2(this, "fatal error receiving data: %d", ret);
       ^~~~~~~~~~~~~~~~~~~
../src/node_http2.cc:1690:27: error: 'this' is unavailable for static member functions
       DEBUG_HTTP2SESSION2(this, "fatal error receiving data: %d", ret);
                           ^~~~
../src/node_http2.h:39:41: note: in definition of macro 'DEBUG_HTTP2'
 #define DEBUG_HTTP2(...) debug_vfprintf(__VA_ARGS__);
                                         ^~~~~~~~~~~
../src/node_http2.cc:1690:7: note: in expansion of macro 'DEBUG_HTTP2SESSION2'
       DEBUG_HTTP2SESSION2(this, "fatal error receiving data: %d", ret);

The build was performed with GCC 8.1.1 against nghttp2 1.32.0.
Configure flags:

./configure --prefix=/usr \
           --shared-openssl \
           --shared-zlib \
           --shared-libuv \
           --shared-http-parser \
           --shared-nghttp2 \
           --with-dtrace \
           --with-intl=system-icu \
           --debug-http2 \
           --debug-nghttp2 \
           --openssl-use-def-ca-store
@MylesBorins
Copy link
Contributor

/cc @nodejs/http2

danbev added a commit to danbev/node that referenced this issue May 18, 2018
When configure with --debug-http2 --debug-nghttp2 the following
compilation error is generated:

DEBUG_HTTP2SESSION2(this, "fatal error receiving data: %d", ret);
                          ^
../src/node_http2.cc:1690:27:
error: invalid use of 'this' outside of a non-static member function

1 errors generated.

OnStreamReadImpl is static and I think the intention was to pass in the
session variable here.

Refs: nodejs#20806
MylesBorins pushed a commit that referenced this issue May 22, 2018
When configure with --debug-http2 --debug-nghttp2 the following
compilation error is generated:

DEBUG_HTTP2SESSION2(this, "fatal error receiving data: %d", ret);
                          ^
../src/node_http2.cc:1690:27:
error: invalid use of 'this' outside of a non-static member function

1 errors generated.

OnStreamReadImpl is static and I think the intention was to pass in the
session variable here.

PR-URL: #20815
Refs: #20806
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Anatoli Papirovski <[email protected]>
MylesBorins pushed a commit that referenced this issue Jun 14, 2018
When configure with --debug-http2 --debug-nghttp2 the following
compilation error is generated:

DEBUG_HTTP2SESSION2(this, "fatal error receiving data: %d", ret);
                          ^
../src/node_http2.cc:1690:27:
error: invalid use of 'this' outside of a non-static member function

1 errors generated.

OnStreamReadImpl is static and I think the intention was to pass in the
session variable here.

PR-URL: #20815
Refs: #20806
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Anatoli Papirovski <[email protected]>
rvagg pushed a commit that referenced this issue Aug 16, 2018
When configure with --debug-http2 --debug-nghttp2 the following
compilation error is generated:

DEBUG_HTTP2SESSION2(this, "fatal error receiving data: %d", ret);
                          ^
../src/node_http2.cc:1690:27:
error: invalid use of 'this' outside of a non-static member function

1 errors generated.

OnStreamReadImpl is static and I think the intention was to pass in the
session variable here.

PR-URL: #20815
Refs: #20806
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Anatoli Papirovski <[email protected]>
@apapirovski
Copy link
Member

This was fixed.

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

No branches or pull requests

3 participants