Node-rdkafka: Can't build on nodejs 16.0.0

Created on 22 Apr 2021  Â·  5Comments  Â·  Source: Blizzard/node-rdkafka

Environment Information

  • OS ubuntu 20.04:
  • Node Version 16.0.0:
  • NPM Version 7.0.0:
  • C++ Toolchain g++:
  • node-rdkafka version 2.1.0:

Steps to Reproduce

Just install package

node-rdkafka Configuration Settings
No context. Just can't build it coz in nodejs 16 new ver of v8.

Additional context
npm ERR! /home/resation/.cache/node-gyp/16.0.0/include/node/v8-internal.h: In function ‘void v8::internal::PerformCastCheck(T*)’: npm ERR! /home/resation/.cache/node-gyp/16.0.0/include/node/v8-internal.h:452:38: error: ‘remove_cv_t’ is not a member of ‘std’; did you mean ‘remove_cv’?
2021-04-22T16_45_22_674Z-debug.log

bug

Most helpful comment

I have the same problem but on macOS Big Sur 11.3.1

  • Node v16.1.0

All 5 comments

I also tried to change the version of std = c ++ 11 to std = c ++ 14 in bindings.gyp, but unfortunately this prevented the project from building.

I have the same problem...

Environment Information

  • OS ubuntu 20.04:
  • Node Version 16.0.0:
  • NPM Version 7.11.0:
  • C++ Toolchain g++:
  • node-rdkafka version 2.10.0
  • node-gyp 8.0.0

Steps to Reproduce

Just install package

node-rdkafka Configuration Settings
No context. Just can't build it coz in nodejs 16 new ver of v8.

Additional context
npm ERR! /home/resation/.cache/node-gyp/16.0.0/include/node/v8-internal.h:452:38: error: ‘remove_cv_t’ is not a member of ‘std’; did you mean ‘remove_cv’?

I have the same problem but on macOS Big Sur 11.3.1

  • Node v16.1.0

Is anyone working on this?

My C++ experience is a bit low, but maybe I can try to work a bit on this on my spare time

Using -std=c++14 with gcc 10, the project builds. Should build using something newer than gcc 8.3 that has support for c++14, which IIRC is what V8 now requires too.

Had some timeouts using a kafka I already had up, but those don't happen with the kafka raised by run_docker.sh script.

Both make test and make e2e pass

Was this page helpful?
0 / 5 - 0 ratings

Related issues

klalafaryan picture klalafaryan  Â·  5Comments

mjafarpour picture mjafarpour  Â·  6Comments

idangozlan picture idangozlan  Â·  3Comments

ivomirra picture ivomirra  Â·  3Comments

loganhuskins picture loganhuskins  Â·  3Comments