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

Build on Fedora 30 with gcc (GCC) 9.2.1 20190827 (Red Hat 9.2.1-1) fails #695

Closed
gabrielschulhof opened this issue Apr 6, 2020 · 3 comments

Comments

@gabrielschulhof
Copy link
Contributor

make: Entering directory '/home/nix/node/node-addon-api/test/build'
  CXX(target) Release/obj.target/binding/arraybuffer.o
In file included from /home/nix/node/node-addon-api/napi.h:2404,
                 from ../arraybuffer.cc:1:
/home/nix/node/node-addon-api/napi-inl.h: In member function ‘void Napi::AsyncProgressWorker<T>::Signal() const’:
/home/nix/node/node-addon-api/napi-inl.h:4789:32: error: cannot convert ‘#‘addr_expr’ not supported by dump_type#<type error>’ to ‘Napi::AsyncProgressWorkerBase<void>*’
 4789 |   this->NonBlockingCall(nullptr);
      |                                ^
In file included from ../arraybuffer.cc:1:
/home/nix/node/node-addon-api/napi.h:2267:44: note:   initializing argument 'this' of ‘napi_status Napi::AsyncProgressWorkerBase<DataType>::NonBlockingCall(DataType*) [with DataType = void]’
 2267 |      napi_status NonBlockingCall(DataType* data);
      |                                  ~~~~~~~~~~^~~~
make: *** [binding.target.mk:174: Release/obj.target/binding/arraybuffer.o] Error 1
make: Leaving directory '/home/nix/node/node-addon-api/test/build'
@mhdawson
Copy link
Member

mhdawson commented Apr 6, 2020

Seems like the is failing, so not just that compiler. https://ci.nodejs.org/view/x%20-%20Abi%20stable%20module%20API/job/node-test-node-addon-api-LTS%20versions/700/

Seems to fail across versions.

gabrielschulhof pushed a commit to gabrielschulhof/node-addon-api that referenced this issue Apr 6, 2020
We need to cast the `nullptr` to the templated type of the
`AsyncProgressQueueWorker`.

Fixes: nodejs#695
PR-URL: nodejs#696
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
@legendecas
Copy link
Member

Seems gabriel submitted a fix on #696. I'm wondering that we have travis run gcc compilation on both Linux and macOS, it doesn't seem to be failed on the PR push checks 🤔. Is this only reproducible on specific gcc versions?

@richardlau
Copy link
Member

Seems gabriel submitted a fix on #696. I'm wondering that we have travis run gcc compilation on both Linux and macOS, it doesn't seem to be failed on the PR push checks 🤔. Is this only reproducible on specific gcc versions?

If you've not changed the default compiler on Travis then you'll probably be using either gcc 4.8.4 or 5 (depending on which Linux version you're running on). The Node.js CI will be using 6.3.0 at a minimum.

kevindavies8 added a commit to kevindavies8/node-addon-api-Develop that referenced this issue Aug 24, 2022
We need to cast the `nullptr` to the templated type of the
`AsyncProgressQueueWorker`.

Fixes: nodejs/node-addon-api#695
PR-URL: nodejs/node-addon-api#696
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
Marlyfleitas added a commit to Marlyfleitas/node-api-addon-Development that referenced this issue Aug 26, 2022
We need to cast the `nullptr` to the templated type of the
`AsyncProgressQueueWorker`.

Fixes: nodejs/node-addon-api#695
PR-URL: nodejs/node-addon-api#696
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
wroy7860 added a commit to wroy7860/addon-api-benchmark-node that referenced this issue Sep 19, 2022
We need to cast the `nullptr` to the templated type of the
`AsyncProgressQueueWorker`.

Fixes: nodejs/node-addon-api#695
PR-URL: nodejs/node-addon-api#696
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
johnfrench3 pushed a commit to johnfrench3/node-addon-api-git that referenced this issue Aug 11, 2023
We need to cast the `nullptr` to the templated type of the
`AsyncProgressQueueWorker`.

Fixes: nodejs/node-addon-api#695
PR-URL: nodejs/node-addon-api#696
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.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

No branches or pull requests

4 participants