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

code_3.x build fails on s390x (checode-compilation/node_modules/@parcel/watcher)

XMLWordPrintable

    • False
    • None
    • False

      Failing again.

      [1/2] STEP 12/15: RUN yarn install --force
      time="2023-03-02T23:09:14-05:00" level=warning msg="Failed to mount subscriptions, skipping entry in /usr/share/containers/mounts.conf: getting host subscription data: failed to read subscriptions from \"/usr/share/rhel/secrets\": open /usr/share/rhel/secrets/rhsm/rhsm.conf: permission denied"
      yarn install v1.22.17
      $ node build/npm/preinstall.js
      [1/4] Resolving packages...
      [2/4] Fetching packages...
      [3/4] Linking dependencies...
      warning "@microsoft/1ds-core-js > @microsoft/applicationinsights-core-js@2.8.3" has unmet peer dependency "tslib@*".
      warning " > gulp-postcss@9.0.0" has unmet peer dependency "postcss@^8.0.0".
      [4/4] Rebuilding all packages...
      info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
      error /checode-compilation/node_modules/@parcel/watcher: Command failed.
      Exit code: 1
      Command: node-gyp-build
      Arguments: 
      Directory: /checode-compilation/node_modules/@parcel/watcher
      Output:
      gyp info it worked if it ends with ok
      gyp info using node-gyp@9.1.0
      gyp info using node@16.18.1 | linux | s390x
      gyp info find Python using Python version 3.6.8 found at "/usr/bin/python3"
      gyp http GET https://electronjs.org/headers/v19.1.9/node-v19.1.9-headers.tar.gz
      gyp http 200 https://artifacts.electronjs.org/headers/v19.1.9/node-v19.1.9-headers.tar.gz?force_headers_dist=1
      gyp http GET https://electronjs.org/headers/v19.1.9/SHASUMS256.txt
      gyp http 200 https://artifacts.electronjs.org/headers/v19.1.9/SHASUMS256.txt?force_headers_dist=1
      gyp info spawn /usr/bin/python3
      gyp info spawn args [
      gyp info spawn args   '/usr/lib/node_modules/npm/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   '/checode-compilation/node_modules/@parcel/watcher/build/config.gypi',
      gyp info spawn args   '-I',
      gyp info spawn args   '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
      gyp info spawn args   '-I',
      gyp info spawn args   '/opt/app-root/src/.cache/node-gyp/19.1.9/include/node/common.gypi',
      gyp info spawn args   '-Dlibrary=shared_library',
      gyp info spawn args   '-Dvisibility=default',
      gyp info spawn args   '-Dnode_root_dir=/opt/app-root/src/.cache/node-gyp/19.1.9',
      gyp info spawn args   '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
      gyp info spawn args   '-Dnode_lib_file=/opt/app-root/src/.cache/node-gyp/19.1.9/<(target_arch)/node.lib',
      gyp info spawn args   '-Dmodule_root_dir=/checode-compilation/node_modules/@parcel/watcher',
      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 ]
      Traceback (most recent call last):
        File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 45, in <module>
          sys.exit(gyp.script_main())
        File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 662, in script_main
          return main(sys.argv[1:])
        File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 654, in main
          return gyp_main(args)
        File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 629, in gyp_main
          options.circular_check,
        File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 151, in Load
          params["root_targets"],
        File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 3010, in Load
          build_file, data, aux_data, variables, includes, depth, check, True
        File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 401, in LoadTargetBuildFile
          build_file_path, data, aux_data, includes, True, check
        File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 256, in LoadOneBuildFile
          build_file_data, build_file_path, data, aux_data, includes, check
        File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 299, in LoadBuildFileIncludesIntoDict
          LoadOneBuildFile(include, data, aux_data, None, False, check),
        File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 237, in LoadOneBuildFile
          build_file_data = eval(build_file_contents, {"__builtins__": {}}, None)
        File "/opt/app-root/src/.cache/node-gyp/19.1.9/include/node/common.gypi", line 0
          
          ^
      SyntaxError: unexpected EOF while parsing
      gyp ERR! configure error 
      gyp ERR! stack Error: `gyp` failed with exit code: 1
      gyp ERR! stack     at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:284:16)
      gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
      gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)
      gyp ERR! System Linux 4.18.0-425.3.1.el8.s390x
      gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
      gyp ERR! cwd /checode-compilation/node_modules/@parcel/watcher
      gyp ERR! node -v v16.18.1
      gyp ERR! node-gyp -v v9.1.0
      gyp ERR! not ok
      Error: error building at STEP "RUN yarn install --force": error while running runtime: exit status 1

            lzhan@redhat.com Lei Zhang
            nickboldt Nick Boldt
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: