Compile error in version 0.19
See original GitHub issueUsing Docker, I have Node 12.20.1 installed through NVM. I’ve installed ros2-web-bridge, which has rclnodejs 0.x.1 as a dependency. Just now I discovered this compile error, which wasn’t really ocurring 5 days ago.
> [build 15/15] RUN source /opt/ros/foxy/setup.bash && npm install --global --unsafe-perm ros2-web-bridge:
#22 8.559 /root/.nvm/versions/node/v12.20.1/bin/rosbridge -> /root/.nvm/versions/node/v12.20.1/lib/node_modules/ros2-web-bridge/bin/rosbridge.js
#22 8.564
#22 8.564 > int64-napi@1.0.1 install /root/.nvm/versions/node/v12.20.1/lib/node_modules/ros2-web-bridge/node_modules/int64-napi
#22 8.564 > node-gyp rebuild
#22 8.564
#22 9.662 make: Entering directory '/root/.nvm/versions/node/v12.20.1/lib/node_modules/ros2-web-bridge/node_modules/int64-napi/build'
#22 9.664 CC(target) Release/obj.target/int64/src/int64.o
#22 9.926 SOLINK_MODULE(target) Release/obj.target/int64.node
#22 9.954 COPY Release/int64.node
#22 9.964 make: Leaving directory '/root/.nvm/versions/node/v12.20.1/lib/node_modules/ros2-web-bridge/node_modules/int64-napi/build'
#22 9.972
#22 9.972 > ref-napi@3.0.2 install /root/.nvm/versions/node/v12.20.1/lib/node_modules/ros2-web-bridge/node_modules/ref-napi
#22 9.972 > node-gyp-build
#22 9.972
#22 10.04
#22 10.04 > rclnodejs@0.19.0 install /root/.nvm/versions/node/v12.20.1/lib/node_modules/ros2-web-bridge/node_modules/rclnodejs
#22 10.04 > node-gyp rebuild
#22 10.04
#22 10.59 make: Entering directory '/root/.nvm/versions/node/v12.20.1/lib/node_modules/ros2-web-bridge/node_modules/rclnodejs/build'
#22 10.60 CXX(target) Release/obj.target/rclnodejs/src/addon.o
#22 11.23 CXX(target) Release/obj.target/rclnodejs/src/executor.o
#22 11.96 CXX(target) Release/obj.target/rclnodejs/src/handle_manager.o
#22 12.83 CXX(target) Release/obj.target/rclnodejs/src/rcl_action_bindings.o
#22 14.10 CXX(target) Release/obj.target/rclnodejs/src/rcl_bindings.o
#22 15.94 CXX(target) Release/obj.target/rclnodejs/src/rcl_handle.o
#22 16.69 CXX(target) Release/obj.target/rclnodejs/src/rcl_lifecycle_bindings.o
#22 17.12 ../src/rcl_lifecycle_bindings.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE rclnodejs::CreateLifecycleStateMachine(Nan::NAN_METHOD_ARGS_TYPE)':
#22 17.12 ../src/rcl_lifecycle_bindings.cpp:76:3: error: 'rcl_lifecycle_state_machine_options_t' was not declared in this scope; did you mean 'rcl_lifecycle_state_machine_init'?
#22 17.12 76 | rcl_lifecycle_state_machine_options_t options =
#22 17.12 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#22 17.12 | rcl_lifecycle_state_machine_init
#22 17.12 In file included from ../src/rcl_lifecycle_bindings.cpp:29:
#22 17.12 ../src/rcl_lifecycle_bindings.cpp:83:33: error: 'options' was not declared in this scope; did you mean 'htons'?
#22 17.12 83 | &options),
#22 17.12 | ^~~~~~~
#22 17.12 ../src/macros.hpp:22:16: note: in definition of macro 'CHECK_OP_AND_THROW_ERROR_IF_NOT_TRUE'
#22 17.12 22 | if (lhs op rhs) { \
#22 17.12 | ^~~
#22 17.12 ../src/rcl_lifecycle_bindings.cpp:79:3: note: in expansion of macro 'THROW_ERROR_IF_NOT_EQUAL'
#22 17.12 79 | THROW_ERROR_IF_NOT_EQUAL(RCL_RET_OK,
#22 17.12 | ^~~~~~~~~~~~~~~~~~~~~~~~
#22 17.12 ../src/rcl_lifecycle_bindings.cpp: In lambda function:
#22 17.12 ../src/rcl_lifecycle_bindings.cpp:90:77: error: too few arguments to function 'rcl_ret_t rcl_lifecycle_state_machine_fini(rcl_lifecycle_state_machine_t*, rcl_node_t*, const rcl_allocator_t*)'
#22 17.12 90 | rcl_ret_t ret = rcl_lifecycle_state_machine_fini(state_machine, node);
#22 17.12 | ^
#22 17.12 In file included from ../src/rcl_lifecycle_bindings.cpp:18:
#22 17.12 /opt/ros/foxy/include/rcl_lifecycle/rcl_lifecycle.h:272:1: note: declared here
#22 17.12 272 | rcl_lifecycle_state_machine_fini(
#22 17.12 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#22 17.22 make: Leaving directory '/root/.nvm/versions/node/v12.20.1/lib/node_modules/ros2-web-bridge/node_modules/rclnodejs/build'
#22 17.22 make: *** [rclnodejs.target.mk:374: Release/obj.target/rclnodejs/src/rcl_lifecycle_bindings.o] Error 1
#22 17.23 gyp ERR! build error
#22 17.23 gyp ERR! stack Error: `make` failed with exit code: 2
#22 17.23 gyp ERR! stack at ChildProcess.onExit (/root/.nvm/versions/node/v12.20.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
#22 17.23 gyp ERR! stack at ChildProcess.emit (events.js:314:20)
#22 17.23 gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
#22 17.23 gyp ERR! System Linux 4.15.0-142-generic
#22 17.23 gyp ERR! command "/root/.nvm/versions/node/v12.20.1/bin/node" "/root/.nvm/versions/node/v12.20.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
#22 17.23 gyp ERR! cwd /root/.nvm/versions/node/v12.20.1/lib/node_modules/ros2-web-bridge/node_modules/rclnodejs
#22 17.23 gyp ERR! node -v v12.20.1
#22 17.23 gyp ERR! node-gyp -v v5.1.0
#22 17.23 gyp ERR! not ok
#22 17.38 npm ERR! code ELIFECYCLE
#22 17.38 npm ERR! errno 1
#22 17.38 npm ERR! rclnodejs@0.19.0 install: `node-gyp rebuild`
#22 17.38 npm ERR! Exit status 1
#22 17.38 npm ERR!
#22 17.38 npm ERR! Failed at the rclnodejs@0.19.0 install script.
#22 17.38 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
#22 17.39
#22 17.39 npm ERR! A complete log of this run can be found in:
#22 17.39 npm ERR! /root/.npm/_logs/2021-05-26T04_01_09_629Z-debug.log
------
failed to solve with frontend dockerfile.v0: failed to build LLB: executor failed running [/bin/bash --login -c source /opt/ros/foxy/setup.bash && npm install --global --unsafe-perm ros2-web-bridge]: runc did not terminate sucessfully
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Qtstalker / News: 0.19 compile errors - SourceForge
I have been getting alot of Qt compile error reports with the latest version (0.19) from users. Many people are trying to compile...
Read more >Getting new compile error for timex 0.19.2 on Elixir 1.3.0-rc.0
Expected behavior. I expected our project to compile OK given it compiled OK on Elixir 1.2.5 and I didn't think 1.3.0-rc.
Read more >Errors when build FreeCAD sourcecode 0.19_pre
So I hopes there is some method to deal problem,not by reinstall a English version OS. Now is 7:50, The error still comes...
Read more >Error while pip installing scipy 0.19.1 : "don't know how to ...
Imho, the core problem is, that there are no pre-built binaries for such an outdated version, which means, that you need to compile...
Read more >9. Release Notes — Numba 0.21.0-py3.4-macosx-10.5 ... - PyData |
Version 0.19.2; 9.4. ... Issue #1264: Fix compilation error in array expression ... CPU compilation will remain supported on 32-bit Linux and Windows ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’d like to have a new release (v0.19.1) that will support either Fox or Galactic, so users who use
ros2-web-bridge
don’t have to pin therclnodejs
to v0.18.x when running on Foxy release, thanks!The latest v0.19.0 is not compatible with Foxy release, it runs on Galactic.