Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-1599

compilation failure in crw theia-dev build using 7.26.x che-theia branch

XMLWordPrintable

    • False
    • False
    • Undefined

      CRW theia build failed due to compilation error:

      + ./build.sh --nv 12.19.1 --cv 2.7 --ctb 7.26.x --tb master --tgr eclipse-theia/theia -d -t -b --no-cache --rmi:all --no-async-tests --tcs c9db9754
      
      [4/5] Linking dependencies...
      warning " > chai-string@1.5.0" has unmet peer dependency "chai@^4.1.2".
      warning " > eslint-plugin-sonarjs@0.5.0" has incorrect peer dependency "eslint@^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0".
      warning "workspace-aggregator-5e5e463a-4b2e-4985-8692-5876de0cca0d > @theia/application-manager > font-awesome-webpack@0.0.5-beta.2" has unmet peer dependency "font-awesome@>=4.3.0".
      warning "workspace-aggregator-5e5e463a-4b2e-4985-8692-5876de0cca0d > @theia/debug > requestretry@3.1.0" has unmet peer dependency "request@2.*.*".
      warning "workspace-aggregator-5e5e463a-4b2e-4985-8692-5876de0cca0d > @theia/messages > react-perfect-scrollbar@1.5.8" has unmet peer dependency "react@>=16.3.3".
      warning "workspace-aggregator-5e5e463a-4b2e-4985-8692-5876de0cca0d > @theia/messages > react-perfect-scrollbar@1.5.8" has unmet peer dependency "react-dom@>=16.3.3".
      warning "workspace-aggregator-5e5e463a-4b2e-4985-8692-5876de0cca0d > @theia/scm > react-autosize-textarea@7.1.0" has unmet peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0".
      warning "workspace-aggregator-5e5e463a-4b2e-4985-8692-5876de0cca0d > @theia/scm > react-autosize-textarea@7.1.0" has unmet peer dependency "react-dom@^0.14.0 || ^15.0.0 || ^16.0.0".
      warning "workspace-aggregator-5e5e463a-4b2e-4985-8692-5876de0cca0d > @eclipse-che/theia-assembly > html-webpack-plugin@3.2.0" has unmet peer dependency "webpack@^1.0.0 || ^2.0.0 || ^3.0.0 || ^4.0.0".
      warning "workspace-aggregator-5e5e463a-4b2e-4985-8692-5876de0cca0d > @theia/application-manager > font-awesome-webpack > less-loader@2.2.3" has incorrect peer dependency "less@^2.3.1".
      [5/5] Building fresh packages...
      info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
      error /home/theia-dev/theia-source-code/node_modules/deasync: Command failed.
      Exit code: 1
      Command: node ./build.js
      Arguments: 
      Directory: /home/theia-dev/theia-source-code/node_modules/deasync
      Output:
      gyp info it worked if it ends with ok
      gyp info using node-gyp@6.1.0
      gyp info using node@12.19.1 | linux | s390x
      gyp info find Python using Python version 2.7.17 found at "/usr/bin/python"
      gyp info spawn /usr/bin/python
      gyp info spawn args [
      gyp info spawn args   '/home/theia-dev/theia-source-code/node_modules/electron-rebuild/node_modules/node-gyp/gyp/gyp_main.py',
      gyp info spawn args   'binding.gyp',
      gyp info spawn args   '-f',
      gyp info spawn args   'make',
      gyp info spawn args   '-I',
      gyp info spawn args   '/home/theia-dev/theia-source-code/node_modules/deasync/build/config.gypi',
      gyp info spawn args   '-I',
      gyp info spawn args   '/home/theia-dev/theia-source-code/node_modules/electron-rebuild/node_modules/node-gyp/addon.gypi',
      gyp info spawn args   '-I',
      gyp info spawn args   '/home/theia-dev/.cache/node-gyp/12.19.1/include/node/common.gypi',
      gyp info spawn args   '-Dlibrary=shared_library',
      gyp info spawn args   '-Dvisibility=default',
      gyp info spawn args   '-Dnode_root_dir=/home/theia-dev/.cache/node-gyp/12.19.1',
      gyp info spawn args   '-Dnode_gyp_dir=/home/theia-dev/theia-source-code/node_modules/electron-rebuild/node_modules/node-gyp',
      gyp info spawn args   '-Dnode_lib_file=/home/theia-dev/.cache/node-gyp/12.19.1/<(target_arch)/node.lib',
      gyp info spawn args   '-Dmodule_root_dir=/home/theia-dev/theia-source-code/node_modules/deasync',
      gyp info spawn args   '-Dnode_engine=v8',
      gyp info spawn args   '--depth=.',
      gyp info spawn args   '--no-parallel',
      gyp info spawn args   '--generator-output',
      gyp info spawn args   'build',
      gyp info spawn args   '-Goutput_dir=.'
      gyp info spawn args ]
      gyp info spawn make
      gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
      make: Entering directory '/home/theia-dev/theia-source-code/node_modules/deasync/build'
        CXX(target) Release/obj.target/deasync/src/deasync.o
      In file included from ../src/deasync.cc:5:
      /home/theia-dev/.cache/node-gyp/12.19.1/include/node/node.h:185: error: unterminated argument list invoking macro "NODE_DEPRECATED"
                           v8::Local<v8::Object> recv,
       
      In file included from ../src/deasync.cc:5:
      /home/theia-dev/.cache/node-gyp/12.19.1/include/node/node.h:22: error: unterminated #ifndef
       #ifndef SRC_NODE_H_
       
      In file included from ../src/deasync.cc:5:
      /home/theia-dev/.cache/node-gyp/12.19.1/include/node/node.h:182:1: error: 'NODE_DEPRECATED' does not name a type
       NODE_DEPRECATED("Use MakeCallback(..., async_context)",
       ^~~~~~~~~~~~~~~
      ../src/deasync.cc: In function 'Napi::Object node::init(Napi::Env, Napi::Object)':
      ../src/deasync.cc:15:71: error: 'Run' was not declared in this scope
         exports.Set(Napi::String::New(env, "run"), Napi::Function::New(env, Run));
                                                                             ^~~
      In file included from /home/theia-dev/.cache/node-gyp/12.19.1/include/node/node_api.h:12,
                       from /home/theia-dev/theia-source-code/node_modules/node-addon-api/napi.h:4,
                       from ../src/deasync.cc:3:
      ../src/deasync.cc: At global scope:
      /home/theia-dev/.cache/node-gyp/12.19.1/include/node/js_native_api.h:43:22: error: expected '}' at end of input
       #define EXTERN_C_END }
                            ^
      /home/theia-dev/.cache/node-gyp/12.19.1/include/node/node_api.h:74:3: note: in expansion of macro 'EXTERN_C_END'
         EXTERN_C_END
         ^~~~~~~~~~~~
      /home/theia-dev/.cache/node-gyp/12.19.1/include/node/node_api.h:92:3: note: in expansion of macro 'NAPI_MODULE_X'
         NAPI_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
         ^~~~~~~~~~~~~
      /home/theia-dev/theia-source-code/node_modules/node-addon-api/napi-inl.h:247:3: note: in expansion of macro 'NAPI_MODULE'
         NAPI_MODULE(modname, __napi_ ## regfunc)
         ^~~~~~~~~~~
      ../src/deasync.cc:19:1: note: in expansion of macro 'NODE_API_MODULE'
       NODE_API_MODULE(deasync, init)
       ^~~~~~~~~~~~~~~
      In file included from ../src/deasync.cc:5:
      /home/theia-dev/.cache/node-gyp/12.19.1/include/node/node.h:116:16: note: to match this '{'
       namespace node {
                      ^
      make: *** [deasync.target.mk:107: Release/obj.target/deasync/src/deasync.o] Error 1
      make: Leaving directory '/home/theia-dev/theia-source-code/node_modules/deasync/build'
      gyp ERR! build error 
      gyp ERR! stack Error: `make` failed with exit code: 2
      gyp ERR! stack     at ChildProcess.onExit (/home/theia-dev/theia-source-code/node_modules/electron-rebuild/node_modules/node-gyp/lib/build.js:194:23)
      gyp ERR! stack     at ChildProcess.emit (events.js:314:20)
      gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
      gyp ERR! System Linux 4.18.0-193.el8.s390x
      gyp ERR! command "/usr/bin/node" "/home/theia-dev/theia-source-code/node_modules/.bin/node-gyp" "rebuild"
      gyp ERR! cwd /home/theia-dev/theia-source-code/node_modules/deasync
      gyp ERR! node -v v12.19.1
      gyp ERR! node-gyp -v v6.1.0
      gyp ERR! not ok 
      Build failed
      Error: error building at STEP "RUN if [ -z $GITHUB_TOKEN ]; then unset GITHUB_TOKEN; fi &&     yarn ${YARN_FLAGS}": error while running runtime: exit status 1
      + popd

      https://main-jenkins-csb-crwqe.apps.ocp4.prod.psi.redhat.com/job/CRW_CI/job/crw-theia-sources_2.7/5/console

      Is this a problem w/ node/yarn version?

      Jenkinsfile running the job:

      https://gitlab.cee.redhat.com/codeready-workspaces/crw-jenkins/-/blob/master/jobs/CRW_CI/crw-theia-sources_2.7.jenkinsfile

              nickboldt Nick Boldt
              nickboldt Nick Boldt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: