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

theia build fails on s390x: keytar, drivelist ?

    XMLWordPrintable

Details

    • 3
    • False
    • False

    Description

      Well, we had a good run. crw-theia (based on che-theia from main branch) was building clean for exactly 2 days last week... and now it's broken again.

      But at least it's ONLY on s390x, which suggests a BigEndian problem (keytar, drivelist) ?

      Some failing builds to review, which are using node@12.22.5 | linux | s390x – would moving to latest node12 (12.22.10) or newer yarn help?

      error /home/theia-dev/theia-source-code/node_modules/keytar: Command failed.
      Exit code: 1
      Command: prebuild-install || npm run build
      Arguments:
      Directory: /home/theia-dev/theia-source-code/node_modules/keytar
      Output:
      prebuild-install WARN install getaddrinfo ENOTFOUND github.com
      npm WARN lifecycle The node binary used for scripts is /tmp/yarn--1643782610925-0.7740436775259367/node but npm is using /usr/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
      INFO -
      > keytar@7.2.0 build /home/theia-dev/theia-source-code/node_modules/keytar
      > node-gyp rebuild
      INFO -
      make: Entering directory '/home/theia-dev/theia-source-code/node_modules/keytar/build'
        ACTION Regenerating Makefile
      /bin/sh: /usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py: Permission denied
      make: *** [Makefile:313: Makefile] Error 126
      make: Leaving directory '/home/theia-dev/theia-source-code/node_modules/keytar/build'
      gyp ERR! build error
      gyp ERR! stack Error: `make` failed with exit code: 2
      gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/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:276:12)
      gyp ERR! System Linux 3.10.0-1062.1.2.el7.s390x
      gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
      gyp ERR! cwd /home/theia-dev/theia-source-code/node_modules/keytar
      error /home/theia-dev/theia-source-code/packages/core/node_modules/drivelist: Command failed.
      Exit code: 1
      Command: prebuild-install || node-gyp rebuild
      Arguments:
      Directory: /home/theia-dev/theia-source-code/packages/core/node_modules/drivelist
      Output:
      prebuild-install WARN install getaddrinfo ENOTFOUND github.com
      gyp info it worked if it ends with ok
      gyp info using node-gyp@6.1.0
      gyp info using node@12.22.5 | linux | s390x
      gyp info find Python using Python version 3.6.8 found at "/usr/bin/python3"
      gyp info spawn /usr/bin/python3
      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/packages/core/node_modules/drivelist/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.22.5/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.22.5',
      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.22.5/<(target_arch)/node.lib',
      gyp info spawn args   '-Dmodule_root_dir=/home/theia-dev/theia-source-code/packages/core/node_modules/drivelist',
      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 infomake: Entering directory '/home/theia-dev/theia-source-code/packages/core/node_modules/drivelist/build'
       spawn make
      gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
        CXX(target) Release/obj.target/drivelist/src/drivelist.o
      In file included from /home/theia-dev/.cache/node-gyp/12.22.5/include/node/node.h:67,
                       from ../../../../../node_modules/nan/nan.h:58,
                       from ../src/drivelist.cpp:17:
      /home/theia-dev/.cache/node-gyp/12.22.5/include/node/v8.h:15: error: unterminated #ifndef
      

       

      Attachments

        Activity

          People

            azatsary Artem Zatsarynnyi
            nickboldt Nick Boldt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: