Hello all.... I´m pretty new in this group, Please help me if it is possible;
I tried to compile ONOS 2.4.0 using "bazel build onos", BUT some ERROR is happening.,
What is the cause of the ERROR? How can I fix it?
Tks
Regards,
Luciano
Starting local Bazel server and connecting to it...
INFO: Call stack for the definition of repository 'gui1_npm' which is a npm_install (rule definition at /root/.cache/bazel/_bazel_root/dd0d7d6de3db96ee4fc706dc83456f9b/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl:309:15):
- <builtin>
- /root/.cache/bazel/_bazel_root/dd0d7d6de3db96ee4fc706dc83456f9b/external/build_bazel_rules_nodejs/index.bzl:80:5
- /opt/onos/WORKSPACE:179:1
ERROR: An error occurred during the fetch of repository 'gui1_npm':
npm_install failed:
> phantomjs...@2.1.16 install /opt/onos/tools/gui/node_modules/karma-phantomjs-launcher/node_modules/phantomjs-prebuilt
> node install.js
(sh: 1: node: Permission denied
npm WARN onos-gu...@2.3.0 No description
npm WARN onos-gu...@2.3.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsev...@1.2.9 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsev...@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsev...@2.1.2 (node_modules/karma/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsev...@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! phantomjs...@2.1.16 install: `node install.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the phantomjs...@2.1.16 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-08-07T17_24_46_175Z-debug.log
)
ERROR: /opt/onos/web/gui/BUILD:98:1: //web/gui:_onos-gui-npm-install depends on @gui1_npm//:node_modules in repository @gui1_npm which failed to fetch. no such package '@gui1_npm//': npm_install failed:
> phantomjs...@2.1.16 install /opt/onos/tools/gui/node_modules/karma-phantomjs-launcher/node_modules/phantomjs-prebuilt
> node install.js
(sh: 1: node: Permission denied
npm WARN onos-gu...@2.3.0 No description
npm WARN onos-gu...@2.3.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsev...@1.2.9 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsev...@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsev...@2.1.2 (node_modules/karma/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsev...@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! phantomjs...@2.1.16 install: `node install.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the phantomjs...@2.1.16 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-08-07T17_24_46_175Z-debug.log
)
ERROR: Analysis of target '//:onos' failed; build aborted: no such package '@gui1_npm//': npm_install failed:
> phantomjs...@2.1.16 install /opt/onos/tools/gui/node_modules/karma-phantomjs-launcher/node_modules/phantomjs-prebuilt
> node install.js
(sh: 1: node: Permission denied
npm WARN onos-gu...@2.3.0 No description
npm WARN onos-gu...@2.3.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsev...@1.2.9 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsev...@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsev...@2.1.2 (node_modules/karma/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsev...@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! phantomjs...@2.1.16 install: `node install.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the phantomjs...@2.1.16 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-08-07T17_24_46_175Z-debug.log
)
INFO: Elapsed time: 306.084s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (1025 packages loaded, 28821 targets configured)
root@Ubuntu-Base-100G:/opt/onos# root@Ubuntu-Base-100G:/opt/onos# bazel build onos
bash: root@Ubuntu-Base-100G:/opt/onos#: No such file or directory
Starting local Bazel server and connecting to it...
INFO: Call stack for the definition of repository 'gui1_npm' which is a npm_install (rule definition at /root/.cache/bazel/_bazel_root/dd0d7d6de3db96ee4fc706dc83456f9b/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl:309:15):
- <builtin>
- /root/.cache/bazel/_bazel_root/dd0d7d6de3db96ee4fc706dc83456f9b/external/build_bazel_rules_nodejs/index.bzl:80:5
- /opt/onos/WORKSPACE:179:1
ERROR: An error occurred during the fetch of repository 'gui1_npm':
npm_install failed:
> phantomjs...@2.1.16 install /opt/onos/tools/gui/node_modules/karma-phantomjs-launcher/node_modules/phantomjs-prebuilt
> node install.js
(sh: 1: node: Permission denied
npm WARN onos-gu...@2.3.0 No description
npm WARN onos-gu...@2.3.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsev...@1.2.9 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsev...@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsev...@2.1.2 (node_modules/karma/node_modules/fsevents):
root@Ubuntu-Base-100G:/opt/onos# Starting local Bazel server and connecting to it...
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsev...@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! phantomjs...@2.1.16 install: `node install.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the phantomjs...@2.1.16 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-08-07T17_24_46_175Z-debug.log
)
ERROR: /opt/onos/web/gui/BUILD:98:1: //web/gui:_onos-gui-npm-install depends on @gui1_npm//:node_modules in repository @gui1_npm which failed to fetch. no such package '@gui1_npm//': npm_install failed:
> phantomjs...@2.1.16 install /opt/onos/tools/gui/node_modules/karma-phantomjs-launcher/node_modules/phantomjs-prebuilt
> node install.js
(sh: 1: node: Permission denied
npm WARN onos-gu...@2.3.0 No description
npm WARN onos-gu...@2.3.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsev...@1.2.9 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsev...@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsev...@2.1.2 (node_modules/karma/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsev...@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! phantomjs...@2.1.16 install: `node install.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the phantomjs...@2.1.16 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-08-07T17_24_46_175Z-debug.log
)
ERROR: Analysis of target '//:onos' failed; build aborted: no such package '@gui1_npm//': npm_install failed:
> phantomjs...@2.1.16 install /opt/onos/tools/gui/node_modules/karma-phantomjs-launcher/node_modules/phantomjs-prebuilt
> node install.js
(sh: 1: node: Permission denied
npm WARN onos-gu...@2.3.0 No description
npm WARN onos-gu...@2.3.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsev...@1.2.9 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsev...@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsev...@2.1.2 (node_modules/karma/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsev...@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"oStarting: command not found
--