Building mosh-chrome failing

10 views
Skip to first unread message

edso...@gmail.com

unread,
May 1, 2017, 5:43:33 PM5/1/17
to Mosh for Chrome Users
Hi,

I've got two errors building mosh-chrome:

1) What version of bazel are you using to build mosh-chrome? The current version of bazel is 0.4.5, but you have tagged io_bazel to 0.3.0 in the top level WORKSPACE fiile

If using bazel 0.4.5 you will get an error using the io_bazel tag 0.3.0 building protobuf.

I downgraded to bazel 0.3.2, and now get the following warnings instead of of a cryptic error in bazel 0.4.5.

WARNING: /home/edsouza/.cache/bazel/_bazel_edsouza/519fa9779a1f3bc07135a6b64620b0bf/external/io_bazel/third_party/protobuf/protobuf.bzl:95:19: Variables HOST_CFG and DATA_CFG are deprecated in favor of strings "host" and "data" correspondingly.
WARNING: /home/edsouza/.cache/bazel/_bazel_edsouza/519fa9779a1f3bc07135a6b64620b0bf/external/io_bazel/third_party/protobuf/protobuf.bzl:101:28: Variables HOST_CFG and DATA_CFG are deprecated in favor of strings "host" and "data" correspondingly.

2) The second error I have no idea how to get around this. I run the following command:

bazel build //:mosh_chrome_dev --config=pnacl

The following error gets printed out. looks like the header files are not downloaded/extracted? bazel complains about different source files each time, but the headers are pretty much are the same.


ERROR: /home/edsouza/.cache/bazel/_bazel_edsouza/519fa9779a1f3bc07135a6b64620b0bf/external/libssh/BUILD:8:1: undeclared inclusion(s) in rule '@libssh//:libssh':
this rule is missing dependency declarations for the following files included by 'external/libssh/src/packet_crypt.c':
'/home/edsouza/.cache/bazel/_bazel_edsouza/519fa9779a1f3bc07135a6b64620b0bf/bazel-sandbox/5f078b5d-edc7-4b8c-a3eb-244f6775b450-17/execroot/mosh-chrome/external/nacl_sdk/toolchain/linux_pnacl/le32-nacl/include/assert.h'
...

ERROR: /home/edsouza/.cache/bazel/_bazel_edsouza/519fa9779a1f3bc07135a6b64620b0bf/external/libssh/BUILD:8:1: undeclared inclusion(s) in rule '@libssh//:libssh':
this rule is missing dependency declarations for the following files included by 'external/libssh/src/external/curve25519_ref.c':
'/home/edsouza/.cache/bazel/_bazel_edsouza/519fa9779a1f3bc07135a6b64620b0bf/bazel-sandbox/35eff48a-4124-4d15-a02f-0aaf713d2ab2-5/execroot/mosh-chrome/external/nacl_sdk/toolchain/linux_pnacl/le32-nacl/include/unistd.h'


Any help would be greatly appreciated.
--
Ellery D'Souza

edso...@gmail.com

unread,
May 1, 2017, 5:58:26 PM5/1/17
to Mosh for Chrome Users, edso...@gmail.com

I was able to successfully build mosh-chrome using the following, but this disables the sandbox:
bazel build //:mosh_chrome_dev --config=pnacl --verbose_failures --local_resources 4096,1.0,1.0 --spawn_strategy=standalone

Richard Woodbury

unread,
May 1, 2017, 11:32:10 PM5/1/17
to Mosh for Chrome Users, edso...@gmail.com
I've managed to forget the details (I thought I wrote it down somewhere in the project, but now I can't find it), but I was not able to get anything past Bazel 0.3.1 to work. I have pinned that version on my build machine so it won't upgrade.

I sorta remember thinking there was a Bazel bug that caused problems. But maybe that's fixed in the latest version. They often do things which are not backward-compatible, so surely there will be a few things that need to be tweaked. 

Ellery D'Souza

unread,
May 2, 2017, 1:11:45 PM5/2/17
to Richard Woodbury, Mosh for Chrome Users
Hi Richard,

Thanks.  bazel 0.3.1 without an specific extra command line flags.  You might want to update the README.md with the version of bazel used to build mosh-chrome.
 

--
You received this message because you are subscribed to a topic in the Google Groups "Mosh for Chrome Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mosh-chrome-users/4tFmuFgz1Hk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mosh-chrome-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Richard Woodbury

unread,
May 12, 2017, 2:39:20 AM5/12/17
to Ellery D'Souza, Mosh for Chrome Users
Done. And I dug up the bug documenting why this is necessary. If I can find some time, I'll look to see if I can remove this restriction with a (hopefully improved) recent Bazel version.
To unsubscribe from this group and all its topics, send an email to mosh-chrome-us...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages