Title: ngtcp2 update breaks gcc builds with `--experimental-quic` · Issue #63860 · nodejs/node · GitHub
Open Graph Title: ngtcp2 update breaks gcc builds with `--experimental-quic` · Issue #63860 · nodejs/node
X Title: ngtcp2 update breaks gcc builds with `--experimental-quic` · Issue #63860 · nodejs/node
Description: The latest ngtcp2 update in #63777 introduces the use of _Generic within ngtcp2, which is not a C++ language feature, but we include the ngtcp2 headers in our node_quic C++ source. clang supports _Generic in all language modes as a non-s...
Open Graph Description: The latest ngtcp2 update in #63777 introduces the use of _Generic within ngtcp2, which is not a C++ language feature, but we include the ngtcp2 headers in our node_quic C++ source. clang supports _...
X Description: The latest ngtcp2 update in #63777 introduces the use of _Generic within ngtcp2, which is not a C++ language feature, but we include the ngtcp2 headers in our node_quic C++ source. clang supports _...
Opengraph URL: https://github.com/nodejs/node/issues/63860
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ngtcp2 update breaks gcc builds with `--experimental-quic`","articleBody":"The latest ngtcp2 update in #63777 introduces the use of `_Generic` within ngtcp2, which is not a C++ language feature, but we include the ngtcp2 headers in our node\\_quic C++ source.\n\nclang supports `_Generic` in all language modes as a non-standard extension, but gcc does not, so this hard-breaks gcc builds.\n\n```console\n$ g++-14 -o /opt/node/out/Release/obj.target/node_base/src/quic/http3.o ../src/quic/http3.cc '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_FILE_OFFSET_BITS=64' '-DNODE_OPENSSL_CONF_NAME=nodejs_conf' '-DICU_NO_USER_DATA_OVERRIDE' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DNODE_ARCH=\"x64\"' '-DNODE_PLATFORM=\"linux\"' '-DNODE_WANT_INTERNALS=1' '-DNAPI_EXPERIMENTAL=1' '-DNODE_API_EXPERIMENTAL_NO_WARNING=1' '-DV8_DEPRECATION_WARNINGS=1' '-DNODE_OPENSSL_SYSTEM_CERT_PATH=\"\"' '-DSQLITE_ENABLE_SESSION' '-DHAVE_INSPECTOR=1' '-DHAVE_LIEF=1' '-DNODE_ENABLE_LARGE_CODE_PAGES=1' '-D__POSIX__' '-DNODE_USE_V8_PLATFORM=1' '-DNODE_HAVE_I18N_SUPPORT=1' '-DNODE_BUNDLED_ZLIB' '-DNODE_BUNDLED_ZSTD' '-DHAVE_OPENSSL=1' '-DOPENSSL_API_COMPAT=0x10100000L' '-DHAVE_AMARO=1' '-DHAVE_SQLITE=1' '-DHAVE_FFI=1' '-DNODE_SHARED_FFI=0' '-DHAVE_QUIC=1' '-DXXH_NAMESPACE=ZSTD_' '-DZSTD_MULTITHREAD' '-DZSTD_DISABLE_ASM' '-DFFI_STATIC_BUILD' '-DNCRYPTO_BSSL_LIBDECREPIT_MISSING=1' '-DUCONFIG_NO_SERVICE=1' '-DU_ENABLE_DYLOAD=0' '-DU_STATIC_IMPLEMENTATION=1' '-DU_HAVE_STD_STRING=1' '-DUCONFIG_NO_BREAK_ITERATION=0' '-D_LARGEFILE_SOURCE' '-D_POSIX_C_SOURCE=200112' '-DNGHTTP2_STATICLIB' '-DNDEBUG' '-DOPENSSL_USE_NODELETE' '-DL_ENDIAN' '-DOPENSSL_BUILDING_OPENSSL' '-DAES_ASM' '-DBSAES_ASM' '-DCMLL_ASM' '-DECP_NISTZ256_ASM' '-DGHASH_ASM' '-DKECCAK1600_ASM' '-DMD5_ASM' '-DOPENSSL_BN_ASM_GF2m' '-DOPENSSL_BN_ASM_MONT' '-DOPENSSL_BN_ASM_MONT5' '-DOPENSSL_CPUID_OBJ' '-DOPENSSL_IA32_SSE2' '-DPADLOCK_ASM' '-DPOLY1305_ASM' '-DRC4_ASM' '-DSHA1_ASM' '-DSHA256_ASM' '-DSHA512_ASM' '-DVPAES_ASM' '-DWHIRLPOOL_ASM' '-DX25519_ASM' '-DOPENSSL_PIC' '-DNGTCP2_STATICLIB' '-DQUIC_NGTCP2_USE_OPENSSL_3_5' '-DNGHTTP3_STATICLIB' -I../src -I../deps/postject -I/opt/dev/node/out/Release/obj/gen -I/home/renegade/dev/node/out/Release/obj/gen/include -I/home/renegade/dev/node/out/Release/obj/gen/src -I../deps/v8/third_party/fp16/src/include -I../deps/v8/third_party/highway/src -I../deps/v8/third_party/abseil-cpp -I../deps/googletest/include -I../deps/histogram/src -I../deps/histogram/include -I../deps/nbytes/include -I../deps/libffi/include -I/home/renegade/dev/node/out/Release/obj/gen/libffi -I../deps/inspector_protocol -I/home/renegade/dev/node/out/Release/obj/gen/inspector-generated-output-root/include -I../deps/ncrypto -I../deps/LIEF/include -I../deps/v8/include -I../deps/icu-small/source/i18n -I../deps/icu-small/source/common -I../deps/zlib -I../deps/llhttp/include -I../deps/cares/include -I../deps/uv/include -I../deps/uvwasi/include -I../deps/nghttp2/lib/includes -I../deps/ada -I../deps/merve -I../deps/simdjson -I../deps/v8/third_party/simdutf -I../deps/brotli/c/include -I../deps/sqlite -I../deps/zstd/lib -I../deps/openssl/openssl/include -I../deps/openssl/openssl/crypto/include -I../deps/openssl/config/archs/linux-x86_64/asm/include -I../deps/openssl/config/archs/linux-x86_64/asm -I../deps/ngtcp2 -I../deps/ngtcp2/ngtcp2/lib/includes -I../deps/ngtcp2/ngtcp2/crypto/includes -I../deps/ngtcp2/ngtcp2/crypto -I../deps/ngtcp2/nghttp3/lib/includes -Wall -Wextra -Wno-unused-parameter -Wno-restrict -pthread -Wall -Wextra -Wno-unused-parameter -Werror=unused-result -Wno-error=deprecated-declarations -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -fno-strict-aliasing -std=gnu++20 -MMD -MF /home/renegade/dev/node/out/Release/.deps//home/renegade/dev/node/out/Release/obj.target/node_base/src/quic/http3.o.d.raw -c\nIn file included from ../deps/ngtcp2/nghttp3/lib/nghttp3_objalloc.h:37,\n from ../deps/ngtcp2/nghttp3/lib/nghttp3_ksl.h:37,\n from ../deps/ngtcp2/nghttp3/lib/nghttp3_qpack.h:40,\n from ../deps/ngtcp2/nghttp3/lib/nghttp3_stream.h:39,\n from ../deps/ngtcp2/nghttp3/lib/nghttp3_conn.h:34,\n from ../src/quic/http3.cc:1:\n../deps/ngtcp2/nghttp3/lib/nghttp3_ksl.h: In function ‘int nghttp3_ksl_range_exclusive_compar(const nghttp3_ksl_key*, const nghttp3_ksl_key*)’:\n../deps/ngtcp2/nghttp3/lib/nghttp3_macro.h:73:5: error: expected primary-expression before ‘long’\n 73 | long long int: nghttp3_max_long_long_int, \\\n | ^~~~\n../deps/ngtcp2/nghttp3/lib/nghttp3_ksl.h:391:12: note: in expansion of macro ‘nghttp3_max’\n 391 | !(nghttp3_max(a-\u003ebegin, b-\u003ebegin) \u003c nghttp3_min(a-\u003eend, b-\u003eend));\n | ^~~~~~~~~~~\n../deps/ngtcp2/nghttp3/lib/nghttp3_macro.h:74:5: error: expected primary-expression before ‘long’\n 74 | long int: nghttp3_max_long_int, \\\n | ^~~~\n../deps/ngtcp2/nghttp3/lib/nghttp3_ksl.h:391:12: note: in expansion of macro ‘nghttp3_max’\n 391 | !(nghttp3_max(a-\u003ebegin, b-\u003ebegin) \u003c nghttp3_min(a-\u003eend, b-\u003eend));\n | ^~~~~~~~~~~\n../deps/ngtcp2/nghttp3/lib/nghttp3_macro.h:75:5: error: expected primary-expression before ‘int’\n 75 | int: _Generic((B), \\\n | ^~~\n../deps/ngtcp2/nghttp3/lib/nghttp3_ksl.h:391:12: note: in expansion of macro ‘nghttp3_max’\n 391 | !(nghttp3_max(a-\u003ebegin, b-\u003ebegin) \u003c nghttp3_min(a-\u003eend, b-\u003eend));\n | ^~~~~~~~~~~\n../deps/ngtcp2/nghttp3/lib/nghttp3_macro.h:87:5: error: expected primary-expression before ‘short’\n 87 | short int: nghttp3_max_short_int, \\\n | ^~~~~\n../deps/ngtcp2/nghttp3/lib/nghttp3_ksl.h:391:12: note: in expansion of macro ‘nghttp3_max’\n 391 | !(nghttp3_max(a-\u003ebegin, b-\u003ebegin) \u003c nghttp3_min(a-\u003eend, b-\u003eend));\n | ^~~~~~~~~~~\n../deps/ngtcp2/nghttp3/lib/nghttp3_macro.h:88:5: error: expected primary-expression before ‘signed’\n 128 | signed char: nghttp3_min_signed_char, \\\n | ^~~~~~\n../deps/ngtcp2/nghttp3/lib/nghttp3_ksl.h:391:46: note: in expansion of macro ‘nghttp3_min’\n 391 | !(nghttp3_max(a-\u003ebegin, b-\u003ebegin) \u003c nghttp3_min(a-\u003eend, b-\u003eend));\n | ^~~~~~~~~~~\n../deps/ngtcp2/nghttp3/lib/nghttp3_macro.h:129:5: error: expected primary-expression before ‘char’\n 129 | char: nghttp3_min_char, \\\n | ^~~~\n../deps/ngtcp2/nghttp3/lib/nghttp3_ksl.h:391:46: note: in expansion of macro ‘nghttp3_min’\n 391 | !(nghttp3_max(a-\u003ebegin, b-\u003ebegin) \u003c nghttp3_min(a-\u003eend, b-\u003eend));\n | ^~~~~~~~~~~\n../deps/ngtcp2/nghttp3/lib/nghttp3_macro.h:130:5: error: expected primary-expression before ‘unsigned’\n 130 | unsigned long long int: nghttp3_min_unsigned_long_long_int, \\\n | ^~~~~~~~\n../deps/ngtcp2/nghttp3/lib/nghttp3_ksl.h:391:46: note: in expansion of macro ‘nghttp3_min’\n 391 | !(nghttp3_max(a-\u003ebegin, b-\u003ebegin) \u003c nghttp3_min(a-\u003eend, b-\u003eend));\n | ^~~~~~~~~~~\n../deps/ngtcp2/nghttp3/lib/nghttp3_macro.h:131:5: error: expected primary-expression before ‘unsigned’\n 131 | unsigned long int: nghttp3_min_unsigned_long_int, \\\n | ^~~~~~~~\n../deps/ngtcp2/nghttp3/lib/nghttp3_ksl.h:391:46: note: in expansion of macro ‘nghttp3_min’\n 391 | !(nghttp3_max(a-\u003ebegin, b-\u003ebegin) \u003c nghttp3_min(a-\u003eend, b-\u003eend));\n | ^~~~~~~~~~~\n../deps/ngtcp2/nghttp3/lib/nghttp3_macro.h:132:5: error: expected primary-expression before ‘unsigned’\n 132 | unsigned int: nghttp3_min_unsigned_int, \\\n | ^~~~~~~~\n../deps/ngtcp2/nghttp3/lib/nghttp3_ksl.h:391:46: note: in expansion of macro ‘nghttp3_min’\n 391 | !(nghttp3_max(a-\u003ebegin, b-\u003ebegin) \u003c nghttp3_min(a-\u003eend, b-\u003eend));\n | ^~~~~~~~~~~\n../deps/ngtcp2/nghttp3/lib/nghttp3_macro.h:133:5: error: expected primary-expression before ‘unsigned’\n 133 | unsigned short int: nghttp3_min_unsigned_short_int, \\\n | ^~~~~~~~\n../deps/ngtcp2/nghttp3/lib/nghttp3_ksl.h:391:46: note: in expansion of macro ‘nghttp3_min’\n 391 | !(nghttp3_max(a-\u003ebegin, b-\u003ebegin) \u003c nghttp3_min(a-\u003eend, b-\u003eend));\n | ^~~~~~~~~~~\n../deps/ngtcp2/nghttp3/lib/nghttp3_macro.h:134:5: error: expected primary-expression before ‘unsigned’\n 134 | unsigned char: nghttp3_min_unsigned_char)((A), (B))\n | ^~~~~~~~\n../deps/ngtcp2/nghttp3/lib/nghttp3_ksl.h:391:46: note: in expansion of macro ‘nghttp3_min’\n 391 | !(nghttp3_max(a-\u003ebegin, b-\u003ebegin) \u003c nghttp3_min(a-\u003eend, b-\u003eend));\n |\n```","author":{"url":"https://github.com/Renegade334","@type":"Person","name":"Renegade334"},"datePublished":"2026-06-11T21:58:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/63860/node/issues/63860"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3a8c8894-20e1-a716-4773-b496d6ed2a45 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BECC:16CB32:157D77B:1D3330F:6A4C8265 |
| html-safe-nonce | e4238050184e88dd813637921446ec996a2fb52be58fc4d437e9c293aa60c3aa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRUNDOjE2Q0IzMjoxNTdENzdCOjFEMzMzMEY6NkE0QzgyNjUiLCJ2aXNpdG9yX2lkIjoiMjQxNDYyNzc5Njk2Njc3NDc3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 99564577f8a2e679a76fbb4d0d7bf86e64c23be0671c40d05cbd426e04ff21d0 |
| hovercard-subject-tag | issue:4644501204 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/63860/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b09407a92e1d98859edaff2fd2985e76957d7eadaed23e4ee35e322c0abc6638/nodejs/node/issues/63860 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b09407a92e1d98859edaff2fd2985e76957d7eadaed23e4ee35e322c0abc6638/nodejs/node/issues/63860 |
| og:image:alt | The latest ngtcp2 update in #63777 introduces the use of _Generic within ngtcp2, which is not a C++ language feature, but we include the ngtcp2 headers in our node_quic C++ source. clang supports _... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Renegade334 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cd470457e909b9d062f8002cf438ba870e6acff6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width