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

Merge develop into release/connextdds/1.3.0 #186

Closed
wants to merge 5 commits into from

COMMUNITY-77: remove tag trigger to avoid accidental publications to …

7a9853c
Select commit
Loading
Failed to load commit list.
Closed

Merge develop into release/connextdds/1.3.0 #186

COMMUNITY-77: remove tag trigger to avoid accidental publications to …
7a9853c
Select commit
Loading
Failed to load commit list.
RTI Jenkins CI / Validation failed Feb 2, 2024 in 12m 37s

Build & Test/Matrix - NODE_VERSION = 'latest'/Downloading dependencies: error in 'sh' step

Build & Test / Matrix - NODE_VERSION = 'latest' / Matrix - NODE_VERSION = 'latest' / Downloading dependencies / Shell Script

Error in sh step, with arguments npm install.

script returned exit code 1
Build log
+ npm install
npm ERR! code 1
npm ERR! path /rti/jenkins/workspace/ci/connector-js/rticonnextdds-connector-js/develop/latest/node_modules/ffi-napi
npm ERR! command failed
npm ERR! command sh -c node-gyp-build
npm ERR! make: Entering directory '/rti/jenkins/workspace/ci/connector-js/rticonnextdds-connector-js/develop/latest/node_modules/ffi-napi/build'
npm ERR!   CC(target) Release/obj.target/nothing/../node-addon-api/src/nothing.o
npm ERR! rm -f Release/obj.target/../node-addon-api/src/nothing.a Release/obj.target/../node-addon-api/src/nothing.a.ar-file-list; mkdir -p `dirname Release/obj.target/../node-addon-api/src/nothing.a`
npm ERR! ar crs Release/obj.target/../node-addon-api/src/nothing.a @Release/obj.target/../node-addon-api/src/nothing.a.ar-file-list
npm ERR!   COPY Release/nothing.a
npm ERR!   CC(target) Release/obj.target/ffi/deps/libffi/src/prep_cif.o
npm ERR!   CC(target) Release/obj.target/ffi/deps/libffi/src/types.o
npm ERR!   CC(target) Release/obj.target/ffi/deps/libffi/src/raw_api.o
npm ERR!   CC(target) Release/obj.target/ffi/deps/libffi/src/java_raw_api.o
npm ERR!   CC(target) Release/obj.target/ffi/deps/libffi/src/closures.o
npm ERR!   CC(target) Release/obj.target/ffi/deps/libffi/src/x86/ffi.o
npm ERR!   CC(target) Release/obj.target/ffi/deps/libffi/src/x86/ffi64.o
npm ERR!   CC(target) Release/obj.target/ffi/deps/libffi/src/x86/unix64.o
npm ERR!   CC(target) Release/obj.target/ffi/deps/libffi/src/x86/sysv.o
npm ERR! rm -f Release/obj.target/deps/libffi/libffi.a Release/obj.target/deps/libffi/libffi.a.ar-file-list; mkdir -p `dirname Release/obj.target/deps/libffi/libffi.a`
npm ERR! ar crs Release/obj.target/deps/libffi/libffi.a @Release/obj.target/deps/libffi/libffi.a.ar-file-list
npm ERR!   COPY Release/libffi.a
npm ERR!   CXX(target) Release/obj.target/ffi_bindings/src/ffi.o
npm ERR! make: Leaving directory '/rti/jenkins/workspace/ci/connector-js/rticonnextdds-connector-js/develop/latest/node_modules/ffi-napi/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@10.0.1
npm ERR! gyp info using node@21.6.1 | linux | x64
npm ERR! gyp info find Python using Python version 3.11.2 found at "/opt/venv/bin/python3"
npm ERR! gyp http GET https://nodejs.org/download/release/v21.6.1/node-v21.6.1-headers.tar.gz
npm ERR! gyp http 200 https://nodejs.org/download/release/v21.6.1/node-v21.6.1-headers.tar.gz
npm ERR! gyp http GET https://nodejs.org/download/release/v21.6.1/SHASUMS256.txt
npm ERR! gyp http 200 https://nodejs.org/download/release/v21.6.1/SHASUMS256.txt
npm ERR! gyp info spawn /opt/venv/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/rti/jenkins/workspace/ci/connector-js/rticonnextdds-connector-js/develop/latest/node_modules/ffi-napi/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/jenkins/.cache/node-gyp/21.6.1/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/home/jenkins/.cache/node-gyp/21.6.1',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/home/jenkins/.cache/node-gyp/21.6.1/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/rti/jenkins/workspace/ci/connector-js/rticonnextdds-connector-js/develop/latest/node_modules/ffi-napi',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! ../deps/libffi/src/x86/ffi64.c: In function 'classify_argument':
npm ERR! ../deps/libffi/src/x86/ffi64.c:181:25: warning: suggest braces around empty body in an 'else' statement [-Wempty-body]
npm ERR!   181 |           FFI_ASSERT (0);
npm ERR!       |                         ^
npm ERR! ../deps/libffi/src/x86/ffi64.c:156:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   156 |       {
npm ERR!       |       ^
npm ERR! ../deps/libffi/src/x86/ffi64.c:183:5: note: here
npm ERR!   183 |     case FFI_TYPE_FLOAT:
npm ERR!       |     ^~~~
npm ERR! In file included from ../src/ffi.cc:5:
npm ERR! /rti/jenkins/workspace/ci/connector-js/rticonnextdds-connector-js/develop/latest/node_modules/get-uv-event-loop-napi-h/include/get-uv-event-loop-napi.h: In function 'uv_loop_t* get_uv_event_loop(napi_env)':
npm ERR! /rti/jenkins/workspace/ci/connector-js/rticonnextdds-connector-js/develop/latest/node_modules/get-uv-event-loop-napi-h/include/get-uv-event-loop-napi.h:26:30: error: invalid conversion from 'napi_status (*)(node_api_nogc_env, uv_loop_s**)' {aka 'napi_status (*)(const napi_env__*, uv_loop_s**)'} to 'get_uv_event_loop_fn' {aka 'napi_status (*)(napi_env__*, uv_loop_s**)'} [-fpermissive]
npm ERR!    26 |   napi_get_uv_event_loop__ = &napi_get_uv_event_loop;
npm ERR!       |                              ^~~~~~~~~~~~~~~~~~~~~~~
npm ERR!       |                              |
npm ERR!       |                              napi_status (*)(node_api_nogc_env, uv_loop_s**) {aka napi_status (*)(const napi_env__*, uv_loop_s**)}
npm ERR! In file included from /rti/jenkins/workspace/ci/connector-js/rticonnextdds-connector-js/develop/latest/node_modules/node-addon-api/napi.h:2171,
npm ERR!                  from ../src/ffi.h:2,
npm ERR!                  from ../src/ffi.cc:3:
npm ERR! /rti/jenkins/workspace/ci/connector-js/rticonnextdds-connector-js/develop/latest/node_modules/node-addon-api/napi-inl.h: In instantiation of 'napi_status Napi::details::AttachData(napi_env, napi_value, FreeType*, napi_finalize, void*) [with FreeType = CallbackData<Napi::Value (*)(const Napi::CallbackInfo&), Napi::Value>; napi_env = napi_env__*; napi_value = napi_value__*; napi_finalize = void (*)(napi_env__*, void*, void*)]':
npm ERR! /rti/jenkins/workspace/ci/connector-js/rticonnextdds-connector-js/develop/latest/node_modules/node-addon-api/napi-inl.h:1777:39:   required from 'napi_status Napi::CreateFunction(napi_env, const char*, napi_callback, CbData*, napi_value__**) [with CbData = details::CallbackData<Value (*)(const CallbackInfo&), Value>; napi_env = napi_env__*; napi_callback = napi_value__* (*)(napi_env__*, napi_callback_info__*); napi_value = napi_value__*]'
npm ERR! /rti/jenkins/workspace/ci/connector-js/rticonnextdds-connector-js/develop/latest/node_modules/node-addon-api/napi-inl.h:1793:38:   required from 'static Napi::Function Napi::Function::New(napi_env, Callable, const char*, void*) [with Callable = Napi::Value (*)(const Napi::CallbackInfo&); napi_env = napi_env__*]'
npm ERR! ../src/ffi.cc:58:41:   required from here
npm ERR! /rti/jenkins/workspace/ci/connector-js/rticonnextdds-connector-js/develop/latest/node_modules/node-addon-api/napi-inl.h:65:47: error: invalid conversion from 'napi_finalize' {aka 'void (*)(napi_env__*, void*, void*)'} to 'node_api_nogc_finalize' {aka 'void (*)(const napi_env__*, void*, void*)'} [-fpermissive]
npm ERR!    65 |   status = napi_add_finalizer(env, obj, data, finalizer, hint, nullptr);
npm ERR!       |                                               ^~~~~~~~~
npm ERR!       |                                               |
npm ERR!       |                                               napi_finalize {aka void (*)(napi_env__*, void*, void*)}
npm ERR! In file included from /home/jenkins/.cache/node-gyp/21.6.1/include/node/node_api.h:12,
npm ERR!                  from /rti/jenkins/workspace/ci/connector-js/rticonnextdds-connector-js/develop/latest/node_modules/node-addon-api/napi.h:4:
npm ERR! /home/jenkins/.cache/node-gyp/21.6.1/include/node/js_native_api.h:516:43: note:   initializing argument 4 of 'napi_status napi_add_finalizer(napi_env, napi_value, void*, node_api_nogc_finalize, void*, napi_ref__**)'
npm ERR!   516 |                    node_api_nogc_finalize finalize_cb,
npm ERR!       |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
npm ERR! /rti/jenkins/workspace/ci/connector-js/rticonnextdds-connector-js/develop/latest/node_modules/node-addon-api/napi-inl.h: In instantiation of 'napi_status Napi::details::AttachData(napi_env, napi_value, FreeType*, napi_finalize, void*) [with FreeType = CallbackData<void (*)(const Napi::CallbackInfo&), void>; napi_env = napi_env__*; napi_value = napi_value__*; napi_finalize = void (*)(napi_env__*, void*, void*)]':
npm ERR! /rti/jenkins/workspace/ci/connector-js/rticonnextdds-connector-js/develop/latest/node_modules/node-addon-api/napi-inl.h:1777:39:   required from 'napi_status Napi::CreateFunction(napi_env, const char*, napi_callback, CbData*, napi_value__**) [with CbData = details::CallbackData<void (*)(const CallbackInfo&), void>; napi_env = napi_env__*; napi_callback = napi_value__* (*)(napi_env__*, napi_callback_info__*); napi_value = napi_value__*]'
npm ERR! /rti/jenkins/workspace/ci/connector-js/rticonnextdds-connector-js/develop/latest/node_modules/node-addon-api/napi-inl.h:1793:38:   required from 'static Napi::Function Napi::Function::New(napi_env, Callable, const char*, void*) [with Callable = void (*)(const Napi::CallbackInfo&); napi_env = napi_env__*]'
npm ERR! ../src/ffi.cc:60:37:   required from here
npm ERR! /rti/jenkins/workspace/ci/connector-js/rticonnextdds-connector-js/develop/latest/node_modules/node-addon-api/napi-inl.h:65:47: error: invalid conversion from 'napi_finalize' {aka 'void (*)(napi_env__*, void*, void*)'} to 'node_api_nogc_finalize' {aka 'void (*)(const napi_env__*, void*, void*)'} [-fpermissive]
npm ERR!    65 |   status = napi_add_finalizer(env, obj, data, finalizer, hint, nullptr);
npm ERR!       |                                               ^~~~~~~~~
npm ERR!       |                                               |
npm ERR!       |                                               napi_finalize {aka void (*)(napi_env__*, void*, void*)}
npm ERR! /home/jenkins/.cache/node-gyp/21.6.1/include/node/js_native_api.h:516:43: note:   initializing argument 4 of 'napi_status napi_add_finalizer(napi_env, napi_value, void*, node_api_nogc_finalize, void*, napi_ref__**)'
npm ERR!   516 |                    node_api_nogc_finalize finalize_cb,
npm ERR!       |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
npm ERR! make: *** [ffi_bindings.target.mk:121: Release/obj.target/ffi_bindings/src/ffi.o] Error 1
npm ERR! gyp ERR! build error 
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23)
npm ERR! gyp ERR! System Linux 4.18.0-499.el8.x86_64
npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /rti/jenkins/workspace/ci/connector-js/rticonnextdds-connector-js/develop/latest/node_modules/ffi-napi
npm ERR! gyp ERR! node -v v21.6.1
npm ERR! gyp ERR! node-gyp -v v10.0.1
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in: /home/jenkins/.npm/_logs/2024-02-02T02_28_37_031Z-debug-0.log

Details

  • Build & Test (12 min)
    • Matrix - NODE_VERSION = '17' (3 ms)
      • Matrix - NODE_VERSION = '17' (6 min 52 sec)
        • Checkout repo (25 sec)
        • Downloading dependencies (4 min 12 sec)
        • Run tests (2 min 9 sec)
    • Matrix - NODE_VERSION = '18' (3 ms)
      • Matrix - NODE_VERSION = '18' (6 min 57 sec)
        • Checkout repo (26 sec)
        • Downloading dependencies (4 min 8 sec)
        • Run tests (2 min 14 sec)
    • Matrix - NODE_VERSION = '20' (4 ms)
      • Matrix - NODE_VERSION = '20' (7 min 2 sec)
        • Checkout repo (26 sec)
        • Downloading dependencies (4 min 5 sec)
        • Run tests (2 min 24 sec)
    • Matrix - NODE_VERSION = 'lts' (3 ms)
      • Matrix - NODE_VERSION = 'lts' (12 min)
        • Checkout repo (14 sec)
        • Downloading dependencies (3 min 12 sec)
        • Run tests (2 min 6 sec)
    • Matrix - NODE_VERSION = 'latest' (10 min)
      • Matrix - NODE_VERSION = 'latest' (10 min)
        • Checkout repo (14 sec)
        • Downloading dependencies (3 min 26 sec)
          Error: script returned exit code 1
        • Run tests (0.82 sec)
  • Declarative: Post Actions (0.89 sec)