-
Notifications
You must be signed in to change notification settings - Fork 462
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 fails with gcc 11 / C++20 #1007
Comments
Hi @urp , I am able to replicate this issue the example in the readme. Start container on gcc-11.1:
And run these commands:
I have noticed that using c++20 on my Mac (Apple clang version 12.0.0 (clang-1200.0.32.29)) does work. Not sure exactly how to proceed. We can discuss in the Node-API weekly meeting cc: @mhdawson |
FWIW C++20 support in gcc 11 is marked experimental: https://gcc.gnu.org/onlinedocs/gcc-11.1.0/gcc/C-Dialect-Options.html#C-Dialect-Options |
Thanks @richardlau for the insight! I am in the process of reporting the bug to GCC compiler team, currently waiting account creation. @urp, unfortunately I think we will have to go with "known incompatibility" until GCC updates their compiler; since other c++20 compilers work, it is strictly an issue with GCC. I will keep this issue open until I can link the GCC bug report in this ticket and our setup documentation page. Thanks, Kevin |
This issue will be fixed when the associated PR is merged. Thanks for reporting! Edit: Please see the not-a-bug bug report comment for more information. |
Fixes: nodejs#1007 PR-URL: nodejs#1009 Reviewed-By: Michael Dawson <midawson@redhat.com>
Fixes: nodejs#1007 PR-URL: nodejs#1009 Reviewed-By: Michael Dawson <midawson@redhat.com>
Fixes: nodejs/node-addon-api#1007 PR-URL: nodejs/node-addon-api#1009 Reviewed-By: Michael Dawson <midawson@redhat.com>
Fixes: nodejs/node-addon-api#1007 PR-URL: nodejs/node-addon-api#1009 Reviewed-By: Michael Dawson <midawson@redhat.com>
Fixes: nodejs/node-addon-api#1007 PR-URL: nodejs/node-addon-api#1009 Reviewed-By: Michael Dawson <midawson@redhat.com>
Fixes: nodejs/node-addon-api#1007 PR-URL: nodejs/node-addon-api#1009 Reviewed-By: Michael Dawson <midawson@redhat.com>
Problem
Compiler error when including
node.h
withNAPI_VERSION=8
:Workarounds:
The text was updated successfully, but these errors were encountered: