Kibana bootstrap fails 8.7.1

Trying to build kibana 8.7.1 and I am getting this error I was not getting when I build 8.6.2

yarn kbn bootstrap
yarn run v1.22.19
$ node scripts/kbn bootstrap
[bazel] INFO: Invocation ID: ff0c547e-d7a4-489e-a5ac-693642c82792
[bazel] $ node ./preinstall_check
[bazel] [1/5] Validating package.json...
[bazel] [2/5] Resolving packages...
[bazel] warning Resolution field "typescript@4.6.3" is incompatible with requested version "typescript@^3.3.3333"
[bazel] warning Resolution field "@types/node@16.11.68" is incompatible with requested version "@types/node@^10.1.0"
[bazel] warning Resolution field "typescript@4.6.3" is incompatible with requested version "typescript@^4.8.4"
[bazel] warning Resolution field "trim@1.0.1" is incompatible with requested version "trim@0.0.1"
[bazel] warning Resolution field "@types/node@16.11.68" is incompatible with requested version "@types/node@^14.14.31"
[bazel] warning Resolution field "typescript@4.6.3" is incompatible with requested version "typescript@^3.5.3"
[bazel] [3/5] Fetching packages...
[bazel] [4/5] Linking dependencies...
[bazel] warning " > @elastic/eui@74.0.2" has incorrect peer dependency "typescript@~4.5.3".
[bazel] warning " > @mapbox/mapbox-gl-rtl-text@0.2.3" has unmet peer dependency "mapbox-gl@>=0.32.1 <2.0.0".
[bazel] warning " > react-ace@7.0.5" has incorrect peer dependency "react@^0.13.0 || ^0.14.0 || ^15.0.1 || ^16.0.0".
[bazel] warning " > react-ace@7.0.5" has incorrect peer dependency "react-dom@^0.13.0 || ^0.14.0 || ^15.0.1 || ^16.0.0".
[bazel] warning " > react-intl@2.8.0" has incorrect peer dependency "react@^0.14.9 || ^15.0.0 || ^16.0.0".
[bazel] warning " > react-shortcuts@2.1.0" has incorrect peer dependency "react@^0.14.8 || ^15 || ^16".
[bazel] warning " > react-shortcuts@2.1.0" has incorrect peer dependency "react-dom@^0.14.8 || ^15 || ^16".
[bazel] warning " > react-tiny-virtual-list@2.2.0" has incorrect peer dependency "react@15.x || 16.x".
[bazel] warning " > react-virtualized@9.22.3" has incorrect peer dependency "react@^15.3.0 || ^16.0.0-alpha".
[bazel] warning " > react-virtualized@9.22.3" has incorrect peer dependency "react-dom@^15.3.0 || ^16.0.0-alpha".
[bazel] warning " > react-vis@1.8.2" has incorrect peer dependency "react@0.14.x - 16.x".
[bazel] warning " > recompose@0.30.0" has incorrect peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0".
[bazel] warning " > @bazel/typescript@4.6.2" has incorrect peer dependency "typescript@>=3.0.0 <4.4.0".
[bazel] warning " > @elastic/eslint-plugin-eui@0.0.2" has incorrect peer dependency "eslint@>=5, <7".
[bazel] warning "@octokit/rest > @octokit/plugin-request-log@1.0.4" has unmet peer dependency "@octokit/core@>=3".
[bazel] warning "@storybook/addon-storyshots > preact-render-to-string@5.1.19" has unmet peer dependency "preact@>=10".
[bazel] warning " > @storybook/react@6.5.16" has unmet peer dependency "require-from-string@^2.0.2".
[bazel] warning Workspaces can only be enabled in private projects.
[bazel] [5/5] Building fresh packages...
[bazel] warning Error running install script for optional dependency: "/localdisk/designer/kbujold/starlingx-0-wra2/cgcs-root/wrs/analytics/git/elastic/kibana/node_modules/nice-napi: Command failed.
[bazel] Exit code: 1
[bazel] Command: node-gyp-build
[bazel] Arguments:
[bazel] Directory: /localdisk/designer/kbujold/starlingx-0-wra2/cgcs-root/wrs/analytics/git/elastic/kibana/node_modules/nice-napi
[bazel] Output:
[bazel] gyp info it worked if it ends with ok
[bazel] gyp info using node-gyp@9.1.0
[bazel] gyp info using node@16.19.1 | linux | x64
[bazel] gyp info find Python using Python version 3.6.8 found at \"/usr/bin/python3\"
[bazel] gyp info spawn /usr/bin/python3
[bazel] gyp info spawn args [
[bazel] gyp info spawn args   '/localdisk/designer/kbujold/.cache/bazel/_bazel_kbujold/2f09f7cad5e193478b062c31b84f2d12/external/nodejs_linux_amd64/bin/nodejs/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
[bazel] gyp info spawn args   'binding.gyp',
[bazel] gyp info spawn args   '-f',
[bazel] gyp info spawn args   'make',
[bazel] gyp info spawn args   '-I',
[bazel] gyp info spawn args   '/localdisk/designer/kbujold/starlingx-0-wra2/cgcs-root/wrs/analytics/git/elastic/kibana/node_modules/nice-napi/build/config.gypi',
[bazel] gyp info spawn args   '-I',
[bazel] gyp info spawn args   '/localdisk/designer/kbujold/.cache/bazel/_bazel_kbujold/2f09f7cad5e193478b062c31b84f2d12/external/nodejs_linux_amd64/bin/nodejs/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
[bazel] gyp info spawn args   '-I',
[bazel] gyp info spawn args   '/folk/kbujold/.cache/node-gyp/16.19.1/include/node/common.gypi',
[bazel] gyp info spawn args   '-Dlibrary=shared_library',
[bazel] gyp info spawn args   '-Dvisibility=default',
[bazel] gyp info spawn args   '-Dnode_root_dir=/folk/kbujold/.cache/node-gyp/16.19.1',
[bazel] gyp info spawn args   '-Dnode_gyp_dir=/localdisk/designer/kbujold/.cache/bazel/_bazel_kbujold/2f09f7cad5e193478b062c31b84f2d12/external/nodejs_linux_amd64/bin/nodejs/lib/node_modules/npm/node_modules/node-gyp',
[bazel] gyp info spawn args   '-Dnode_lib_file=/folk/kbujold/.cache/node-gyp/16.19.1/<(target_arch)/node.lib',
[bazel] gyp info spawn args   '-Dmodule_root_dir=/localdisk/designer/kbujold/starlingx-0-wra2/cgcs-root/wrs/analytics/git/elastic/kibana/node_modules/nice-napi',
[bazel] gyp info spawn args   '-Dnode_engine=v8',
[bazel] gyp info spawn args   '--depth=.',
[bazel] gyp info spawn args   '--no-parallel',
[bazel] gyp info spawn args   '--generator-output',
[bazel] gyp info spawn args   'build',
[bazel] gyp info spawn args   '-Goutput_dir=.'
[bazel] gyp info spawn args ]
[bazel] gyp info spawn make
[bazel] gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
[bazel] make: Entering directory `/localdisk/designer/kbujold/starlingx-0-wra2/cgcs-root/wrs/analytics/git/elastic/kibana/node_modules/nice-napi/build'
[bazel]   CC(target) Release/obj.target/nothing/../node-addon-api/nothing.o
[bazel]   AR(target) Release/obj.target/../node-addon-api/nothing.a
[bazel]   COPY Release/nothing.a
[bazel]   CXX(target) Release/obj.target/nice_napi/binding.o
[bazel] make: g++: Command not found
[bazel] make: *** [Release/obj.target/nice_napi/binding.o] Error 127
[bazel] make: Leaving directory `/localdisk/designer/kbujold/starlingx-0-wra2/cgcs-root/wrs/analytics/git/elastic/kibana/node_modules/nice-napi/build'
[bazel] gyp ERR! build error
[bazel] gyp ERR! stack Error: `make` failed with exit code: 2
[bazel] gyp ERR! stack     at ChildProcess.onExit (/localdisk/designer/kbujold/.cache/bazel/_bazel_kbujold/2f09f7cad5e193478b062c31b84f2d12/external/nodejs_linux_amd64/bin/nodejs/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:201:23)
[bazel] gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
[bazel] gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)
[bazel] gyp ERR! System Linux 3.10.0-693.5.2.el7.x86_64
[bazel] gyp ERR! command \"/localdisk/designer/kbujold/.cache/bazel/_bazel_kbujold/2f09f7cad5e193478b062c31b84f2d12/external/nodejs_linux_amd64/bin/nodejs/bin/node\" \"/localdisk/designer/kbujold/.cache/bazel/_bazel_kbujold/2f09f7cad5e193478b062c31b84f2d12/external/nodejs_linux_amd64/bin/nodejs/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"
[bazel] gyp ERR! cwd /localdisk/designer/kbujold/starlingx-0-wra2/cgcs-root/wrs/analytics/git/elastic/kibana/node_modules/nice-napi
[bazel] gyp ERR! node -v v16.19.1
[bazel] gyp ERR! node-gyp -v v9.1.0
[bazel] gyp ERR! not ok"
[bazel] info This module is OPTIONAL, you can safely ignore this error
[bazel] info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
[bazel] error /localdisk/designer/kbujold/starlingx-0-wra2/cgcs-root/wrs/analytics/git/elastic/kibana/node_modules/native-hdr-histogram: Command failed.
[bazel] Exit code: 1
[bazel] Command: node-gyp-build
[bazel] Arguments:
[bazel] Directory: /localdisk/designer/kbujold/starlingx-0-wra2/cgcs-root/wrs/analytics/git/elastic/kibana/node_modules/native-hdr-histogram
[bazel] Output:
[bazel] gyp info it worked if it ends with ok
[bazel] gyp info using node-gyp@9.1.0
[bazel] gyp info using node@16.19.1 | linux | x64
[bazel] gyp info find Python using Python version 3.6.8 found at "/usr/bin/python3"
[bazel] gyp info spawn /usr/bin/python3
[bazel] gyp info spawn args [
[bazel] gyp info spawn args   '/localdisk/designer/kbujold/.cache/bazel/_bazel_kbujold/2f09f7cad5e193478b062c31b84f2d12/external/nodejs_linux_amd64/bin/nodejs/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
[bazel] gyp info spawn args   'binding.gyp',
[bazel] gyp info spawn args   '-f',
[bazel] gyp info spawn args   'make',
[bazel] gyp info spawn args   '-I',
[bazel] gyp info spawn args   '/localdisk/designer/kbujold/starlingx-0-wra2/cgcs-root/wrs/analytics/git/elastic/kibana/node_modules/native-hdr-histogram/build/config.gypi',
[bazel] gyp info spawn args   '-I',
[bazel] gyp info spawn args   '/localdisk/designer/kbujold/.cache/bazel/_bazel_kbujold/2f09f7cad5e193478b062c31b84f2d12/external/nodejs_linux_amd64/bin/nodejs/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
[bazel] gyp info spawn args   '-I',
[bazel] gyp info spawn args   '/folk/kbujold/.cache/node-gyp/16.19.1/include/node/common.gypi',
[bazel] gyp info spawn args   '-Dlibrary=shared_library',
[bazel] gyp info spawn args   '-Dvisibility=default',
[bazel] gyp info spawn args   '-Dnode_root_dir=/folk/kbujold/.cache/node-gyp/16.19.1',
[bazel] gyp info spawn args   '-Dnode_gyp_dir=/localdisk/designer/kbujold/.cache/bazel/_bazel_kbujold/2f09f7cad5e193478b062c31b84f2d12/external/nodejs_linux_amd64/bin/nodejs/lib/node_modules/npm/node_modules/node-gyp',
[bazel] gyp info spawn args   '-Dnode_lib_file=/folk/kbujold/.cache/node-gyp/16.19.1/<(target_arch)/node.lib',
[bazel] gyp info spawn args   '-Dmodule_root_dir=/localdisk/designer/kbujold/starlingx-0-wra2/cgcs-root/wrs/analytics/git/elastic/kibana/node_modules/native-hdr-histogram',
[bazel] gyp info spawn args   '-Dnode_engine=v8',
[bazel] gyp info spawn args   '--depth=.',
[bazel] gyp info spawn args   '--no-parallel',
[bazel] gyp info spawn args   '--generator-output',
[bazel] gyp info spawn args   'build',
[bazel] gyp info spawn args   '-Goutput_dir=.'
[bazel] gyp info spawn args ]
[bazel] gyp info spawn make
[bazel] gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
[bazel] make: Entering directory `/localdisk/designer/kbujold/starlingx-0-wra2/cgcs-root/wrs/analytics/git/elastic/kibana/node_modules/native-hdr-histogram/build'
[bazel]   CC(target) Release/obj.target/nothing/../node-addon-api/nothing.o
[bazel]   AR(target) Release/obj.target/../node-addon-api/nothing.a
[bazel]   COPY Release/nothing.a
[bazel]   CC(target) Release/obj.target/zlib/zlib/adler32.o
[bazel]   CC(target) Release/obj.target/zlib/zlib/compress.o
[bazel]   CC(target) Release/obj.target/zlib/zlib/crc32.o
[bazel]   CC(target) Release/obj.target/zlib/zlib/deflate.o
[bazel]   CC(target) Release/obj.target/zlib/zlib/gzclose.o
[bazel]   CC(target) Release/obj.target/zlib/zlib/gzlib.o
[bazel]   CC(target) Release/obj.target/zlib/zlib/gzread.o
[bazel]   CC(target) Release/obj.target/zlib/zlib/gzwrite.o
[bazel]   CC(target) Release/obj.target/zlib/zlib/infback.o
[bazel]   CC(target) Release/obj.target/zlib/zlib/inffast.o
[bazel]   CC(target) Release/obj.target/zlib/zlib/inflate.o
[bazel]   CC(target) Release/obj.target/zlib/zlib/inftrees.o
[bazel]   CC(target) Release/obj.target/zlib/zlib/trees.o
[bazel]   CC(target) Release/obj.target/zlib/zlib/uncompr.o
[bazel]   CC(target) Release/obj.target/zlib/zlib/zutil.o
[bazel]   AR(target) Release/obj.target/zlib/zlib.a
[bazel]   COPY Release/zlib.a
[bazel]   CXX(target) Release/obj.target/histogram/binding-src/binding.o
[bazel] make: g++: Command not found
[bazel] make: *** [Release/obj.target/histogram/binding-src/binding.o] Error 127
[bazel] make: Leaving directory `/localdisk/designer/kbujold/starlingx-0-wra2/cgcs-root/wrs/analytics/git/elastic/kibana/node_modules/native-hdr-histogram/build'
[bazel] gyp ERR! build error
[bazel] gyp ERR! stack Error: `make` failed with exit code: 2
[bazel] gyp ERR! stack     at ChildProcess.onExit (/localdisk/designer/kbujold/.cache/bazel/_bazel_kbujold/2f09f7cad5e193478b062c31b84f2d12/external/nodejs_linux_amd64/bin/nodejs/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:201:23)
[bazel] gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
[bazel] gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)
[bazel] gyp ERR! System Linux 3.10.0-693.5.2.el7.x86_64
[bazel] gyp ERR! command "/localdisk/designer/kbujold/.cache/bazel/_bazel_kbujold/2f09f7cad5e193478b062c31b84f2d12/external/nodejs_linux_amd64/bin/nodejs/bin/node" "/localdisk/designer/kbujold/.cache/bazel/_bazel_kbujold/2f09f7cad5e193478b062c31b84f2d12/external/nodejs_linux_amd64/bin/nodejs/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
[bazel] gyp ERR! cwd /localdisk/designer/kbujold/starlingx-0-wra2/cgcs-root/wrs/analytics/git/elastic/kibana/node_modules/native-hdr-histogram
[bazel] gyp ERR! node -v v16.19.1
[bazel] gyp ERR! node-gyp -v v9.1.0
[bazel] gyp ERR! not ok
[bazel] INFO: Repository npm instantiated at:
[bazel]   /localdisk/designer/kbujold/starlingx-0-wra2/cgcs-root/wrs/analytics/git/elastic/kibana/WORKSPACE.bazel:47:13: in <toplevel>
[bazel]   /localdisk/designer/kbujold/.cache/bazel/_bazel_kbujold/2f09f7cad5e193478b062c31b84f2d12/external/build_bazel_rules_nodejs/index.bzl:83:18: in yarn_install
[bazel] Repository rule yarn_install defined at:
[bazel]   /localdisk/designer/kbujold/.cache/bazel/_bazel_kbujold/2f09f7cad5e193478b062c31b84f2d12/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl:956:31: in <toplevel>
[bazel] ERROR: An error occurred during the fetch of repository 'npm':
[bazel]    Traceback (most recent call last):
[bazel]         File "/localdisk/designer/kbujold/.cache/bazel/_bazel_kbujold/2f09f7cad5e193478b062c31b84f2d12/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl", line 949, column 13, in _yarn_install_impl
[bazel]                 fail("yarn_install failed: %s (%s)" % (result.stdout, result.stderr))
[bazel] Error in fail: yarn_install failed: $ node ./preinstall_check

<snip>

[bazel] gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
[bazel] make: Entering directory `/localdisk/designer/kbujold/starlingx-0-wra2/cgcs-root/wrs/analytics/git/elastic/kibana/node_modules/native-hdr-histogram/build'
[bazel]   CC(target) Release/obj.target/nothing/../node-addon-api/nothing.o
[bazel]   AR(target) Release/obj.target/../node-addon-api/nothing.a
[bazel]   COPY Release/nothing.a
[bazel]   CC(target) Release/obj.target/zlib/zlib/adler32.o
[bazel]   CC(target) Release/obj.target/zlib/zlib/compress.o
[bazel]   CC(target) Release/obj.target/zlib/zlib/crc32.o
[bazel]   CC(target) Release/obj.target/zlib/zlib/deflate.o
[bazel]   CC(target) Release/obj.target/zlib/zlib/gzclose.o
[bazel]   CC(target) Release/obj.target/zlib/zlib/gzlib.o
[bazel]   CC(target) Release/obj.target/zlib/zlib/gzread.o
[bazel]   CC(target) Release/obj.target/zlib/zlib/gzwrite.o
[bazel]   CC(target) Release/obj.target/zlib/zlib/infback.o
[bazel]   CC(target) Release/obj.target/zlib/zlib/inffast.o
[bazel]   CC(target) Release/obj.target/zlib/zlib/inflate.o
[bazel]   CC(target) Release/obj.target/zlib/zlib/inftrees.o
[bazel]   CC(target) Release/obj.target/zlib/zlib/trees.o
[bazel]   CC(target) Release/obj.target/zlib/zlib/uncompr.o
[bazel]   CC(target) Release/obj.target/zlib/zlib/zutil.o
[bazel]   AR(target) Release/obj.target/zlib/zlib.a
[bazel]   COPY Release/zlib.a
[bazel]   CXX(target) Release/obj.target/histogram/binding-src/binding.o
[bazel] make: g++: Command not found
[bazel] make: *** [Release/obj.target/histogram/binding-src/binding.o] Error 127
[bazel] make: Leaving directory `/localdisk/designer/kbujold/starlingx-0-wra2/cgcs-root/wrs/analytics/git/elastic/kibana/node_modules/native-hdr-histogram/build'
[bazel] gyp ERR! build error
[bazel] gyp ERR! stack Error: `make` failed with exit code: 2
[bazel] gyp ERR! stack     at ChildProcess.onExit (/localdisk/designer/kbujold/.cache/bazel/_bazel_kbujold/2f09f7cad5e193478b062c31b84f2d12/external/nodejs_linux_amd64/bin/nodejs/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:201:23)
[bazel] gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
[bazel] gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)
[bazel] gyp ERR! System Linux 3.10.0-693.5.2.el7.x86_64
[bazel] gyp ERR! command "/localdisk/designer/kbujold/.cache/bazel/_bazel_kbujold/2f09f7cad5e193478b062c31b84f2d12/external/nodejs_linux_amd64/bin/nodejs/bin/node" "/localdisk/designer/kbujold/.cache/bazel/_bazel_kbujold/2f09f7cad5e193478b062c31b84f2d12/external/nodejs_linux_amd64/bin/nodejs/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
[bazel] gyp ERR! cwd /localdisk/designer/kbujold/starlingx-0-wra2/cgcs-root/wrs/analytics/git/elastic/kibana/node_modules/native-hdr-histogram
[bazel] gyp ERR! node -v v16.19.1
[bazel] gyp ERR! node-gyp -v v9.1.0
[bazel] gyp ERR! not ok
[bazel] )
[bazel] INFO: Elapsed time: 39.757s
[bazel] INFO: 0 processes.
[bazel]
 HINT
 HINT If experiencing problems with node_modules try `yarn kbn bootstrap --force-install` or as last resort `yarn kbn reset && yarn kbn bootstrap`
 HINT
 ERROR  [bootstrap] failed: [bazel] exited with code [1]
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

We were missing packages in our env. This resolved our issues in Centos7

sudo yum install centos-release-scl
sudo yum install devtoolset-7-gcc*
npm link @angular/cli
scl enable devtoolset-7 bash

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.