Closed Barborica-Alexandru closed 4 years ago
@lizan did you ever see something like this? @Barborica-Alexandru you can ask on bazel slack https://slack.bazel.build/
No, which version of bazel are you running? can you paste a full log?
I'm running bazelisk and when compiling envoy it downloads bazel-3.0.0. But it's not bazel, i tried multiple versions going back to 2.2.0, none of them work in LXC anymore. Or maybe a kernel issue on my proxmox machine? I am trying again on fresh lxc on different non proxmox host.
Ah finally. It is a proxmox related isssue. I am attaching output of proxmox LXC host fresh container vs generic LXC host fresh container. Probably AppArmor related? I am closing this issue as it's clear it has nothing to do with envoy or bazel.
The generic LXC host is running a privileged container... maybe this is the reason?
Proxmox:
login as: root
root@10.0.3.239's password:
Linux DebianEnvoy 5.3.18-3-pve #1 SMP PVE 5.3.18-3 (Tue, 17 Mar 2020 16:33:19 +0100) x86_64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
You have mail.
Last login: Fri May 1 01:38:23 2020
root@DebianEnvoy:~# sudo apt-get install \
> libtool \
> cmake \
> automake \
> autoconf \
> make \
> ninja-build \
> curl \
> unzip \
> virtualenv
-bash: sudo: command not found
root@DebianEnvoy:~# apt-get install libtool cmake automake autoconf
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
autotools-dev binutils binutils-common binutils-x86-64-linux-gnu cmake-data gc
linux-libc-dev m4 manpages-dev python-pip-whl python3-distutils python3-lib2to
Suggested packages:
autoconf-archive gnu-standards autoconf-doc gettext binutils-doc cmake-doc gcc
gfortran | fortran95-compiler gcj-jdk m4-doc make-doc zip
The following NEW packages will be installed:
autoconf automake autotools-dev binutils binutils-common binutils-x86-64-linux
libsigsegv2 libtool libtsan0 libubsan1 libuv1 linux-libc-dev m4 make manpages-
0 upgraded, 45 newly installed, 0 to remove and 0 not upgraded.
Need to get 12.5 MB/35.1 MB of archives.
After this operation, 145 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.debian.org/debian buster/main amd64 libsigsegv2 amd64 2.12-2 [3
Get:2 http://security.debian.org buster/updates/main amd64 libcurl4 amd64 7.64.0
Get:3 http://ftp.debian.org/debian buster/main amd64 m4 amd64 1.4.18-2 [203 kB]
Get:4 http://ftp.debian.org/debian buster/main amd64 autoconf all 2.69-11 [341 k
Get:5 http://security.debian.org buster/updates/main amd64 curl amd64 7.64.0-4+d
Get:6 http://ftp.debian.org/debian buster/main amd64 autotools-dev all 20180224.
Get:7 http://ftp.debian.org/debian buster/main amd64 automake all 1:1.16.1-4 [77
Get:8 http://security.debian.org buster/updates/main amd64 linux-libc-dev amd64
Get:9 http://ftp.debian.org/debian buster/main amd64 cmake-data all 3.13.4-1 [14
Get:10 http://ftp.debian.org/debian buster/main amd64 libarchive13 amd64 3.3.3-4
Get:11 http://ftp.debian.org/debian buster/main amd64 libjsoncpp1 amd64 1.7.4-3
Get:12 http://ftp.debian.org/debian buster/main amd64 librhash0 amd64 1.3.8-1 [1
Get:13 http://ftp.debian.org/debian buster/main amd64 libuv1 amd64 1.24.1-1 [110
Get:14 http://ftp.debian.org/debian buster/main amd64 cmake amd64 3.13.4-1 [3480
Get:15 http://ftp.debian.org/debian buster/main amd64 libltdl7 amd64 2.4.6-9 [39
Get:16 http://ftp.debian.org/debian buster/main amd64 libltdl-dev amd64 2.4.6-9
Get:17 http://ftp.debian.org/debian buster/main amd64 libtool all 2.4.6-9 [547 k
Get:18 http://ftp.debian.org/debian buster/main amd64 make amd64 4.2.1-1.2 [341
Get:19 http://ftp.debian.org/debian buster/main amd64 ninja-build amd64 1.8.2-1
Get:20 http://ftp.debian.org/debian buster/main amd64 python-pip-whl all 18.1-5
Get:21 http://ftp.debian.org/debian buster/main amd64 python3-lib2to3 all 3.7.3-
Get:22 http://ftp.debian.org/debian buster/main amd64 python3-distutils all 3.7.
Get:23 http://ftp.debian.org/debian buster/main amd64 python3-virtualenv all 15.
Get:24 http://ftp.debian.org/debian buster/main amd64 unzip amd64 6.0-23+deb10u1
Get:25 http://ftp.debian.org/debian buster/main amd64 virtualenv all 15.1.0+ds-2
Fetched 12.5 MB in 1s (15.0 MB/s)
Extracting templates from packages: 100%
Selecting previously unselected package libsigsegv2:amd64.
(Reading database ... 20531 files and directories currently installed.)
Preparing to unpack .../00-libsigsegv2_2.12-2_amd64.deb ...
Unpacking libsigsegv2:amd64 (2.12-2) ...
Selecting previously unselected package m4.
Preparing to unpack .../01-m4_1.4.18-2_amd64.deb ...
Unpacking m4 (1.4.18-2) ...
Selecting previously unselected package autoconf.
Preparing to unpack .../02-autoconf_2.69-11_all.deb ...
Unpacking autoconf (2.69-11) ...
Selecting previously unselected package autotools-dev.
Preparing to unpack .../03-autotools-dev_20180224.1_all.deb ...
Unpacking autotools-dev (20180224.1) ...
Selecting previously unselected package automake.
Preparing to unpack .../04-automake_1%3a1.16.1-4_all.deb ...
Unpacking automake (1:1.16.1-4) ...
Selecting previously unselected package binutils-common:amd64.
Preparing to unpack .../05-binutils-common_2.31.1-16_amd64.deb ...
Unpacking binutils-common:amd64 (2.31.1-16) ...
Selecting previously unselected package libbinutils:amd64.
Preparing to unpack .../06-libbinutils_2.31.1-16_amd64.deb ...
Unpacking libbinutils:amd64 (2.31.1-16) ...
Selecting previously unselected package binutils-x86-64-linux-gnu.
Preparing to unpack .../07-binutils-x86-64-linux-gnu_2.31.1-16_amd64.deb ...
Unpacking binutils-x86-64-linux-gnu (2.31.1-16) ...
Selecting previously unselected package binutils.
Preparing to unpack .../08-binutils_2.31.1-16_amd64.deb ...
Unpacking binutils (2.31.1-16) ...
Selecting previously unselected package cmake-data.
Preparing to unpack .../09-cmake-data_3.13.4-1_all.deb ...
Unpacking cmake-data (3.13.4-1) ...
Selecting previously unselected package libarchive13:amd64.
Preparing to unpack .../10-libarchive13_3.3.3-4+deb10u1_amd64.deb ...
Unpacking libarchive13:amd64 (3.3.3-4+deb10u1) ...
Selecting previously unselected package libcurl4:amd64.
Preparing to unpack .../11-libcurl4_7.64.0-4+deb10u1_amd64.deb ...
Unpacking libcurl4:amd64 (7.64.0-4+deb10u1) ...
Selecting previously unselected package libjsoncpp1:amd64.
Preparing to unpack .../12-libjsoncpp1_1.7.4-3_amd64.deb ...
Unpacking libjsoncpp1:amd64 (1.7.4-3) ...
Selecting previously unselected package librhash0:amd64.
Preparing to unpack .../13-librhash0_1.3.8-1_amd64.deb ...
Unpacking librhash0:amd64 (1.3.8-1) ...
Selecting previously unselected package libuv1:amd64.
Preparing to unpack .../14-libuv1_1.24.1-1_amd64.deb ...
Unpacking libuv1:amd64 (1.24.1-1) ...
Selecting previously unselected package cmake.
Preparing to unpack .../15-cmake_3.13.4-1_amd64.deb ...
Unpacking cmake (3.13.4-1) ...
Selecting previously unselected package curl.
Preparing to unpack .../16-curl_7.64.0-4+deb10u1_amd64.deb ...
Unpacking curl (7.64.0-4+deb10u1) ...
Selecting previously unselected package libcc1-0:amd64.
Preparing to unpack .../17-libcc1-0_8.3.0-6_amd64.deb ...
Unpacking libcc1-0:amd64 (8.3.0-6) ...
Selecting previously unselected package libgomp1:amd64.
Preparing to unpack .../18-libgomp1_8.3.0-6_amd64.deb ...
Unpacking libgomp1:amd64 (8.3.0-6) ...
Selecting previously unselected package libitm1:amd64.
Preparing to unpack .../19-libitm1_8.3.0-6_amd64.deb ...
Unpacking libitm1:amd64 (8.3.0-6) ...
Selecting previously unselected package libatomic1:amd64.
Preparing to unpack .../20-libatomic1_8.3.0-6_amd64.deb ...
Unpacking libatomic1:amd64 (8.3.0-6) ...
Selecting previously unselected package libasan5:amd64.
Preparing to unpack .../21-libasan5_8.3.0-6_amd64.deb ...
Unpacking libasan5:amd64 (8.3.0-6) ...
Selecting previously unselected package liblsan0:amd64.
Preparing to unpack .../22-liblsan0_8.3.0-6_amd64.deb ...
Unpacking liblsan0:amd64 (8.3.0-6) ...
Selecting previously unselected package libtsan0:amd64.
Preparing to unpack .../23-libtsan0_8.3.0-6_amd64.deb ...
Unpacking libtsan0:amd64 (8.3.0-6) ...
Selecting previously unselected package libubsan1:amd64.
Preparing to unpack .../24-libubsan1_8.3.0-6_amd64.deb ...
Unpacking libubsan1:amd64 (8.3.0-6) ...
Selecting previously unselected package libmpx2:amd64.
Preparing to unpack .../25-libmpx2_8.3.0-6_amd64.deb ...
Unpacking libmpx2:amd64 (8.3.0-6) ...
Selecting previously unselected package libquadmath0:amd64.
Preparing to unpack .../26-libquadmath0_8.3.0-6_amd64.deb ...
Unpacking libquadmath0:amd64 (8.3.0-6) ...
Selecting previously unselected package libgcc-8-dev:amd64.
Preparing to unpack .../27-libgcc-8-dev_8.3.0-6_amd64.deb ...
Unpacking libgcc-8-dev:amd64 (8.3.0-6) ...
Selecting previously unselected package gcc-8.
Preparing to unpack .../28-gcc-8_8.3.0-6_amd64.deb ...
Unpacking gcc-8 (8.3.0-6) ...
Selecting previously unselected package gcc.
Preparing to unpack .../29-gcc_4%3a8.3.0-1_amd64.deb ...
Unpacking gcc (4:8.3.0-1) ...
Selecting previously unselected package libc-dev-bin.
Preparing to unpack .../30-libc-dev-bin_2.28-10_amd64.deb ...
Unpacking libc-dev-bin (2.28-10) ...
Selecting previously unselected package linux-libc-dev:amd64.
Preparing to unpack .../31-linux-libc-dev_4.19.98-1+deb10u1_amd64.deb ...
Unpacking linux-libc-dev:amd64 (4.19.98-1+deb10u1) ...
Selecting previously unselected package libc6-dev:amd64.
Preparing to unpack .../32-libc6-dev_2.28-10_amd64.deb ...
Unpacking libc6-dev:amd64 (2.28-10) ...
Selecting previously unselected package libltdl7:amd64.
Preparing to unpack .../33-libltdl7_2.4.6-9_amd64.deb ...
Unpacking libltdl7:amd64 (2.4.6-9) ...
Selecting previously unselected package libltdl-dev:amd64.
Preparing to unpack .../34-libltdl-dev_2.4.6-9_amd64.deb ...
Unpacking libltdl-dev:amd64 (2.4.6-9) ...
Selecting previously unselected package libtool.
Preparing to unpack .../35-libtool_2.4.6-9_all.deb ...
Unpacking libtool (2.4.6-9) ...
Selecting previously unselected package make.
Preparing to unpack .../36-make_4.2.1-1.2_amd64.deb ...
Unpacking make (4.2.1-1.2) ...
Selecting previously unselected package manpages-dev.
Preparing to unpack .../37-manpages-dev_4.16-2_all.deb ...
Unpacking manpages-dev (4.16-2) ...
Selecting previously unselected package ninja-build.
Preparing to unpack .../38-ninja-build_1.8.2-1_amd64.deb ...
Unpacking ninja-build (1.8.2-1) ...
Selecting previously unselected package python-pip-whl.
Preparing to unpack .../39-python-pip-whl_18.1-5_all.deb ...
Unpacking python-pip-whl (18.1-5) ...
Selecting previously unselected package python3-lib2to3.
Preparing to unpack .../40-python3-lib2to3_3.7.3-1_all.deb ...
Unpacking python3-lib2to3 (3.7.3-1) ...
Selecting previously unselected package python3-distutils.
Preparing to unpack .../41-python3-distutils_3.7.3-1_all.deb ...
Unpacking python3-distutils (3.7.3-1) ...
Selecting previously unselected package python3-virtualenv.
Preparing to unpack .../42-python3-virtualenv_15.1.0+ds-2_all.deb ...
Unpacking python3-virtualenv (15.1.0+ds-2) ...
Selecting previously unselected package unzip.
Preparing to unpack .../43-unzip_6.0-23+deb10u1_amd64.deb ...
Unpacking unzip (6.0-23+deb10u1) ...
Selecting previously unselected package virtualenv.
Preparing to unpack .../44-virtualenv_15.1.0+ds-2_all.deb ...
Unpacking virtualenv (15.1.0+ds-2) ...
Setting up manpages-dev (4.16-2) ...
Setting up libarchive13:amd64 (3.3.3-4+deb10u1) ...
Setting up unzip (6.0-23+deb10u1) ...
Setting up binutils-common:amd64 (2.31.1-16) ...
Setting up linux-libc-dev:amd64 (4.19.98-1+deb10u1) ...
Setting up libgomp1:amd64 (8.3.0-6) ...
Setting up ninja-build (1.8.2-1) ...
Setting up libasan5:amd64 (8.3.0-6) ...
Setting up autotools-dev (20180224.1) ...
Setting up libuv1:amd64 (1.24.1-1) ...
Setting up make (4.2.1-1.2) ...
Setting up libsigsegv2:amd64 (2.12-2) ...
Setting up libquadmath0:amd64 (8.3.0-6) ...
Setting up libatomic1:amd64 (8.3.0-6) ...
Setting up libltdl7:amd64 (2.4.6-9) ...
Setting up libmpx2:amd64 (8.3.0-6) ...
Setting up libubsan1:amd64 (8.3.0-6) ...
Setting up librhash0:amd64 (1.3.8-1) ...
Setting up libcurl4:amd64 (7.64.0-4+deb10u1) ...
Setting up python-pip-whl (18.1-5) ...
Setting up cmake-data (3.13.4-1) ...
Setting up curl (7.64.0-4+deb10u1) ...
Setting up libbinutils:amd64 (2.31.1-16) ...
Setting up libc-dev-bin (2.28-10) ...
Setting up python3-lib2to3 (3.7.3-1) ...
Setting up libcc1-0:amd64 (8.3.0-6) ...
Setting up liblsan0:amd64 (8.3.0-6) ...
Setting up libitm1:amd64 (8.3.0-6) ...
Setting up libjsoncpp1:amd64 (1.7.4-3) ...
Setting up binutils-x86-64-linux-gnu (2.31.1-16) ...
Setting up libtsan0:amd64 (8.3.0-6) ...
Setting up python3-distutils (3.7.3-1) ...
Setting up python3-virtualenv (15.1.0+ds-2) ...
Setting up m4 (1.4.18-2) ...
Setting up binutils (2.31.1-16) ...
Setting up virtualenv (15.1.0+ds-2) ...
Setting up libgcc-8-dev:amd64 (8.3.0-6) ...
Setting up autoconf (2.69-11) ...
Setting up cmake (3.13.4-1) ...
Setting up libc6-dev:amd64 (2.28-10) ...
Setting up automake (1:1.16.1-4) ...
update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (
Setting up gcc-8 (8.3.0-6) ...
Setting up libtool (2.4.6-9) ...
Setting up gcc (4:8.3.0-1) ...
Setting up libltdl-dev:amd64 (2.4.6-9) ...
Processing triggers for libc-bin (2.28-10) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for mime-support (3.62) ...
root@DebianEnvoy:~# go get -u github.com/bazelbuild/buildtools/buildifier
-bash: go: command not found
root@DebianEnvoy:~# apt install git make wget golang
Reading package lists... Done
Building dependency tree
Reading state information... Done
make is already the newest version (4.2.1-1.2).
wget is already the newest version (1.20.1-1.1).
The following additional packages will be installed:
g++ g++-8 git-man golang-1.11 golang-1.11-doc golang-1.11-go golang-1.11-src g
Suggested packages:
g++-multilib g++-8-multilib gcc-8-doc libstdc++6-8-dbg git-daemon-run | git-da
The following NEW packages will be installed:
g++ g++-8 git git-man golang golang-1.11 golang-1.11-doc golang-1.11-go golang
0 upgraded, 22 newly installed, 0 to remove and 0 not upgraded.
Need to get 67.2 MB/80.9 MB of archives.
After this operation, 401 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://security.debian.org buster/updates/main amd64 git-man all 1:2.20.1-
Get:2 http://ftp.debian.org/debian buster/main amd64 golang-1.11-src amd64 1.11.
Get:3 http://security.debian.org buster/updates/main amd64 git amd64 1:2.20.1-2+
Get:4 http://ftp.debian.org/debian buster/main amd64 golang-1.11-go amd64 1.11.6
Get:5 http://ftp.debian.org/debian buster/main amd64 golang-1.11-doc all 1.11.6-
Get:6 http://ftp.debian.org/debian buster/main amd64 golang-1.11 all 1.11.6-1+de
Get:7 http://ftp.debian.org/debian buster/main amd64 libglib2.0-0 amd64 2.58.3-2
Get:8 http://ftp.debian.org/debian buster/main amd64 libglib2.0-data all 2.58.3-
Get:9 http://ftp.debian.org/debian buster/main amd64 patch amd64 2.7.6-3+deb10u1
Fetched 67.2 MB in 2s (28.7 MB/s)
Selecting previously unselected package libstdc++-8-dev:amd64.
(Reading database ... 27989 files and directories currently installed.)
Preparing to unpack .../00-libstdc++-8-dev_8.3.0-6_amd64.deb ...
Unpacking libstdc++-8-dev:amd64 (8.3.0-6) ...
Selecting previously unselected package g++-8.
Preparing to unpack .../01-g++-8_8.3.0-6_amd64.deb ...
Unpacking g++-8 (8.3.0-6) ...
Selecting previously unselected package g++.
Preparing to unpack .../02-g++_4%3a8.3.0-1_amd64.deb ...
Unpacking g++ (4:8.3.0-1) ...
Selecting previously unselected package liberror-perl.
Preparing to unpack .../03-liberror-perl_0.17027-2_all.deb ...
Unpacking liberror-perl (0.17027-2) ...
Selecting previously unselected package git-man.
Preparing to unpack .../04-git-man_1%3a2.20.1-2+deb10u3_all.deb ...
Unpacking git-man (1:2.20.1-2+deb10u3) ...
Selecting previously unselected package git.
Preparing to unpack .../05-git_1%3a2.20.1-2+deb10u3_amd64.deb ...
Unpacking git (1:2.20.1-2+deb10u3) ...
Selecting previously unselected package golang-1.11-src.
Preparing to unpack .../06-golang-1.11-src_1.11.6-1+deb10u3_amd64.deb ...
Unpacking golang-1.11-src (1.11.6-1+deb10u3) ...
Selecting previously unselected package golang-1.11-go.
Preparing to unpack .../07-golang-1.11-go_1.11.6-1+deb10u3_amd64.deb ...
Unpacking golang-1.11-go (1.11.6-1+deb10u3) ...
Selecting previously unselected package golang-1.11-doc.
Preparing to unpack .../08-golang-1.11-doc_1.11.6-1+deb10u3_all.deb ...
Unpacking golang-1.11-doc (1.11.6-1+deb10u3) ...
Selecting previously unselected package golang-1.11.
Preparing to unpack .../09-golang-1.11_1.11.6-1+deb10u3_all.deb ...
Unpacking golang-1.11 (1.11.6-1+deb10u3) ...
Selecting previously unselected package golang-src.
Preparing to unpack .../10-golang-src_2%3a1.11~1_amd64.deb ...
Unpacking golang-src (2:1.11~1) ...
Selecting previously unselected package golang-go.
Preparing to unpack .../11-golang-go_2%3a1.11~1_amd64.deb ...
Unpacking golang-go (2:1.11~1) ...
Selecting previously unselected package golang-doc.
Preparing to unpack .../12-golang-doc_2%3a1.11~1_all.deb ...
Unpacking golang-doc (2:1.11~1) ...
Selecting previously unselected package golang.
Preparing to unpack .../13-golang_2%3a1.11~1_amd64.deb ...
Unpacking golang (2:1.11~1) ...
Selecting previously unselected package libdpkg-perl.
Preparing to unpack .../14-libdpkg-perl_1.19.7_all.deb ...
Unpacking libdpkg-perl (1.19.7) ...
Selecting previously unselected package libfile-fcntllock-perl.
Preparing to unpack .../15-libfile-fcntllock-perl_0.22-3+b5_amd64.deb ...
Unpacking libfile-fcntllock-perl (0.22-3+b5) ...
Selecting previously unselected package libglib2.0-0:amd64.
Preparing to unpack .../16-libglib2.0-0_2.58.3-2+deb10u2_amd64.deb ...
Unpacking libglib2.0-0:amd64 (2.58.3-2+deb10u2) ...
Selecting previously unselected package libglib2.0-data.
Preparing to unpack .../17-libglib2.0-data_2.58.3-2+deb10u2_all.deb ...
Unpacking libglib2.0-data (2.58.3-2+deb10u2) ...
Selecting previously unselected package patch.
Preparing to unpack .../18-patch_2.7.6-3+deb10u1_amd64.deb ...
Unpacking patch (2.7.6-3+deb10u1) ...
Selecting previously unselected package pkg-config.
Preparing to unpack .../19-pkg-config_0.29-6_amd64.deb ...
Unpacking pkg-config (0.29-6) ...
Selecting previously unselected package shared-mime-info.
Preparing to unpack .../20-shared-mime-info_1.10-1_amd64.deb ...
Unpacking shared-mime-info (1.10-1) ...
Selecting previously unselected package xdg-user-dirs.
Preparing to unpack .../21-xdg-user-dirs_0.17-2_amd64.deb ...
Unpacking xdg-user-dirs (0.17-2) ...
Setting up xdg-user-dirs (0.17-2) ...
Setting up libfile-fcntllock-perl (0.22-3+b5) ...
Setting up libglib2.0-0:amd64 (2.58.3-2+deb10u2) ...
No schema files found: doing nothing.
Setting up golang-1.11-src (1.11.6-1+deb10u3) ...
Setting up golang-1.11-go (1.11.6-1+deb10u3) ...
Setting up liberror-perl (0.17027-2) ...
Setting up libglib2.0-data (2.58.3-2+deb10u2) ...
Setting up shared-mime-info (1.10-1) ...
Setting up patch (2.7.6-3+deb10u1) ...
Setting up libdpkg-perl (1.19.7) ...
Setting up git-man (1:2.20.1-2+deb10u3) ...
Setting up golang-src (2:1.11~1) ...
Setting up libstdc++-8-dev:amd64 (8.3.0-6) ...
Setting up golang-1.11-doc (1.11.6-1+deb10u3) ...
Setting up golang-go (2:1.11~1) ...
Setting up pkg-config (0.29-6) ...
Setting up golang-1.11 (1.11.6-1+deb10u3) ...
Setting up git (1:2.20.1-2+deb10u3) ...
Setting up g++-8 (8.3.0-6) ...
Setting up golang-doc (2:1.11~1) ...
Setting up golang (2:1.11~1) ...
Setting up g++ (4:8.3.0-1) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mo
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10) ...
root@DebianEnvoy:~# go get -u github.com/bazelbuild/buildtools/buildifier
# github.com/bazelbuild/buildtools/buildifier/utils
go/src/github.com/bazelbuild/buildtools/buildifier/utils/utils.go:163:14: undefi
root@DebianEnvoy:~# go get -u github.com/bazelbuild/buildtools/buildozer
root@DebianEnvoy:~# git clone https://github.com/envoyproxy/envoy.git
Cloning into 'envoy'...
remote: Enumerating objects: 46, done.
remote: Counting objects: 100% (46/46), done.
remote: Compressing objects: 100% (45/45), done.
remote: Total 149529 (delta 12), reused 2 (delta 1), pack-reused 149483
Receiving objects: 100% (149529/149529), 55.95 MiB | 13.38 MiB/s, done.
Resolving deltas: 18% (20241/112420)
Resolving deltas: 100% (112420/112420), done.
root@DebianEnvoy:~# ls
envoy go
root@DebianEnvoy:~# ls
envoy go
root@DebianEnvoy:~# cd envoy/
root@DebianEnvoy:~/envoy#
root@DebianEnvoy:~/envoy#
root@DebianEnvoy:~/envoy# bazel build //source/exe:envoy-static
-bash: bazel: command not found
root@DebianEnvoy:~/envoy# wget -O /usr/local/bin/bazel https://github.com/bazelb
--2020-05-01 01:44:18-- https://github.com/bazelbuild/bazelisk/releases/latest/
Resolving github.com (github.com)... 140.82.114.3
Connecting to github.com (github.com)|140.82.114.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github.com/bazelbuild/bazelisk/releases/download/v1.4.0/bazeli
--2020-05-01 01:44:18-- https://github.com/bazelbuild/bazelisk/releases/downloa
Reusing existing connection to github.com:443.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/14966173e041da4630652ebe84f8b07937d02248e36b11753f&X-Amz-SignedHeaders=host&actor_id=0
--2020-05-01 01:44:19-- https://github-production-release-asset-2e65be.s3.amazo06fb0eedaf46ac673e041da4630652ebe84f8b07937d02248e36b11753f&X-Amz-SignedHeaders=
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-produc
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-pr
HTTP request sent, awaiting response... 200 OK
Length: 6156385 (5.9M) [application/octet-stream]
Saving to: '/usr/local/bin/bazel'
/usr/local/bin/bazel
2020-05-01 01:44:21 (3.14 MB/s) - '/usr/local/bin/bazel' saved [6156385/6156385]
root@DebianEnvoy:~/envoy# chmod +x /usr/local/bin/bazel
root@DebianEnvoy:~/envoy# bazel build //source/exe:envoy-static
2020/05/01 01:44:29 Downloading https://releases.bazel.build/3.0.0/release/bazel
WARNING: The following rc files are no longer being read, please transfer their
/root/envoy/tools/bazel.rc
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
Server terminated abruptly (error code: 14, error message: 'Socket closed', log
root@DebianEnvoy:~/envoy#
Generic LXC host:
root@torrents:~# sudo wget -O /usr/local/bin/bazel https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-amd64
--2020-05-01 01:33:17-- https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-amd64
Resolving github.com (github.com)... 140.82.118.4
Connecting to github.com (github.com)|140.82.118.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github.com/bazelbuild/bazelisk/releases/download/v1.4.0/bazelisk-linux-amd64 [following]
--2020-05-01 01:33:17-- https://github.com/bazelbuild/bazelisk/releases/download/v1.4.0/bazelisk-linux-amd64
Reusing existing connection to github.com:443.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/149661467/603ce800-80bd-11ea-8bf4-628a2a6df9ac?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200501%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200501T013317Z&X-Amz-Expires=300&X-Amz-Signature=c1f5cafd4bbe52af172786b83899495450fee51901d3e05af57568627d36840a&X-Amz-SignedHeaders=host&actor_id=0&repo_id=149661467&response-content-disposition=attachment%3B%20filename%3Dbazelisk-linux-amd64&response-content-type=application%2Foctet-stream [following]
--2020-05-01 01:33:17-- https://github-production-release-asset-2e65be.s3.amazonaws.com/149661467/603ce800-80bd-11ea-8bf4-628a2a6df9ac?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200501%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200501T013317Z&X-Amz-Expires=300&X-Amz-Signature=c1f5cafd4bbe52af172786b83899495450fee51901d3e05af57568627d36840a&X-Amz-SignedHeaders=host&actor_id=0&repo_id=149661467&response-content-disposition=attachment%3B%20filename%3Dbazelisk-linux-amd64&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.217.37.188
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.217.37.188|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6156385 (5.9M) [application/octet-stream]
Saving to: ‘/usr/local/bin/bazel’
/usr/local/bin/bazel 100%[============================================================================>] 5.87M 5.48MB/s in 1.1s
2020-05-01 01:33:19 (5.48 MB/s) - ‘/usr/local/bin/bazel’ saved [6156385/6156385]
root@torrents:~# sudo apt-get install \
> libtool \
> cmake \
> automake \
> autoconf \
> make \
> ninja-build \
> curl \
> unzip \
> virtualenv
Reading package lists... Done
Building dependency tree
Reading state information... Done
autoconf is already the newest version (2.69-11).
automake is already the newest version (1:1.16.1-4).
automake set to manually installed.
make is already the newest version (4.2.1-1.2).
curl is already the newest version (7.64.0-4+deb10u1).
The following additional packages will be installed:
bzip2 cmake-data file libarchive13 libjsoncpp1 libltdl-dev libltdl7 libmagic-mgc libmagic1 libmpdec2 libpython3-stdlib libpython3.7-minimal
libpython3.7-stdlib librhash0 libxml2 mime-support python-pip-whl python3 python3-distutils python3-lib2to3 python3-minimal python3-pkg-resources
python3-virtualenv python3.7 python3.7-minimal xz-utils
Suggested packages:
bzip2-doc cmake-doc lrzip libtool-doc gfortran | fortran95-compiler gcj-jdk python3-doc python3-tk python3-venv python3-setuptools python3.7-venv
python3.7-doc binfmt-support zip
The following NEW packages will be installed:
bzip2 cmake cmake-data file libarchive13 libjsoncpp1 libltdl-dev libltdl7 libmagic-mgc libmagic1 libmpdec2 libpython3-stdlib libpython3.7-minimal
libpython3.7-stdlib librhash0 libtool libxml2 mime-support ninja-build python-pip-whl python3 python3-distutils python3-lib2to3 python3-minimal
python3-pkg-resources python3-virtualenv python3.7 python3.7-minimal unzip virtualenv xz-utils
0 upgraded, 31 newly installed, 0 to remove and 0 not upgraded.
Need to get 14.8 MB of archives.
After this operation, 65.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.debian.org/debian buster/main amd64 libpython3.7-minimal amd64 3.7.3-2+deb10u1 [589 kB]
Get:2 http://deb.debian.org/debian buster/main amd64 python3.7-minimal amd64 3.7.3-2+deb10u1 [1,736 kB]
Get:3 http://deb.debian.org/debian buster/main amd64 python3-minimal amd64 3.7.3-1 [36.6 kB]
Get:4 http://deb.debian.org/debian buster/main amd64 mime-support all 3.62 [37.2 kB]
Get:5 http://deb.debian.org/debian buster/main amd64 libmpdec2 amd64 2.4.2-2 [87.2 kB]
Get:6 http://deb.debian.org/debian buster/main amd64 libpython3.7-stdlib amd64 3.7.3-2+deb10u1 [1,734 kB]
Get:7 http://deb.debian.org/debian buster/main amd64 python3.7 amd64 3.7.3-2+deb10u1 [330 kB]
Get:8 http://deb.debian.org/debian buster/main amd64 libpython3-stdlib amd64 3.7.3-1 [20.0 kB]
Get:9 http://deb.debian.org/debian buster/main amd64 python3 amd64 3.7.3-1 [61.5 kB]
Get:10 http://deb.debian.org/debian buster/main amd64 bzip2 amd64 1.0.6-9.2~deb10u1 [48.4 kB]
Get:11 http://deb.debian.org/debian buster/main amd64 libmagic-mgc amd64 1:5.35-4+deb10u1 [242 kB]
Get:12 http://deb.debian.org/debian buster/main amd64 libmagic1 amd64 1:5.35-4+deb10u1 [117 kB]
Get:13 http://deb.debian.org/debian buster/main amd64 file amd64 1:5.35-4+deb10u1 [66.4 kB]
Get:14 http://deb.debian.org/debian buster/main amd64 xz-utils amd64 5.2.4-1 [183 kB]
Get:15 http://deb.debian.org/debian buster/main amd64 cmake-data all 3.13.4-1 [1,476 kB]
Get:16 http://deb.debian.org/debian buster/main amd64 libxml2 amd64 2.9.4+dfsg1-7+b3 [687 kB]
Get:17 http://deb.debian.org/debian buster/main amd64 libarchive13 amd64 3.3.3-4+deb10u1 [313 kB]
Get:18 http://deb.debian.org/debian buster/main amd64 libjsoncpp1 amd64 1.7.4-3 [75.6 kB]
Get:19 http://deb.debian.org/debian buster/main amd64 librhash0 amd64 1.3.8-1 [122 kB]
Get:20 http://deb.debian.org/debian buster/main amd64 cmake amd64 3.13.4-1 [3,480 kB]
Get:21 http://deb.debian.org/debian buster/main amd64 libltdl7 amd64 2.4.6-9 [390 kB]
Get:22 http://deb.debian.org/debian buster/main amd64 libltdl-dev amd64 2.4.6-9 [162 kB]
Get:23 http://deb.debian.org/debian buster/main amd64 libtool all 2.4.6-9 [547 kB]
Get:24 http://deb.debian.org/debian buster/main amd64 ninja-build amd64 1.8.2-1 [93.6 kB]
Get:25 http://deb.debian.org/debian buster/main amd64 python-pip-whl all 18.1-5 [1,591 kB]
Get:26 http://deb.debian.org/debian buster/main amd64 python3-lib2to3 all 3.7.3-1 [76.7 kB]
Get:27 http://deb.debian.org/debian buster/main amd64 python3-distutils all 3.7.3-1 [142 kB]
Get:28 http://deb.debian.org/debian buster/main amd64 python3-pkg-resources all 40.8.0-1 [153 kB]
Get:29 http://deb.debian.org/debian buster/main amd64 python3-virtualenv all 15.1.0+ds-2 [58.1 kB]
Get:30 http://deb.debian.org/debian buster/main amd64 unzip amd64 6.0-23+deb10u1 [172 kB]
Get:31 http://deb.debian.org/debian buster/main amd64 virtualenv all 15.1.0+ds-2 [20.1 kB]
Fetched 14.8 MB in 1s (19.2 MB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libpython3.7-minimal:amd64.
(Reading database ... 23685 files and directories currently installed.)
Preparing to unpack .../libpython3.7-minimal_3.7.3-2+deb10u1_amd64.deb ...
Unpacking libpython3.7-minimal:amd64 (3.7.3-2+deb10u1) ...
Selecting previously unselected package python3.7-minimal.
Preparing to unpack .../python3.7-minimal_3.7.3-2+deb10u1_amd64.deb ...
Unpacking python3.7-minimal (3.7.3-2+deb10u1) ...
Setting up libpython3.7-minimal:amd64 (3.7.3-2+deb10u1) ...
Setting up python3.7-minimal (3.7.3-2+deb10u1) ...
Selecting previously unselected package python3-minimal.
(Reading database ... 23926 files and directories currently installed.)
Preparing to unpack .../0-python3-minimal_3.7.3-1_amd64.deb ...
Unpacking python3-minimal (3.7.3-1) ...
Selecting previously unselected package mime-support.
Preparing to unpack .../1-mime-support_3.62_all.deb ...
Unpacking mime-support (3.62) ...
Selecting previously unselected package libmpdec2:amd64.
Preparing to unpack .../2-libmpdec2_2.4.2-2_amd64.deb ...
Unpacking libmpdec2:amd64 (2.4.2-2) ...
Selecting previously unselected package libpython3.7-stdlib:amd64.
Preparing to unpack .../3-libpython3.7-stdlib_3.7.3-2+deb10u1_amd64.deb ...
Unpacking libpython3.7-stdlib:amd64 (3.7.3-2+deb10u1) ...
Selecting previously unselected package python3.7.
Preparing to unpack .../4-python3.7_3.7.3-2+deb10u1_amd64.deb ...
Unpacking python3.7 (3.7.3-2+deb10u1) ...
Selecting previously unselected package libpython3-stdlib:amd64.
Preparing to unpack .../5-libpython3-stdlib_3.7.3-1_amd64.deb ...
Unpacking libpython3-stdlib:amd64 (3.7.3-1) ...
Setting up python3-minimal (3.7.3-1) ...
Selecting previously unselected package python3.
(Reading database ... 24362 files and directories currently installed.)
Preparing to unpack .../00-python3_3.7.3-1_amd64.deb ...
Unpacking python3 (3.7.3-1) ...
Selecting previously unselected package bzip2.
Preparing to unpack .../01-bzip2_1.0.6-9.2~deb10u1_amd64.deb ...
Unpacking bzip2 (1.0.6-9.2~deb10u1) ...
Selecting previously unselected package libmagic-mgc.
Preparing to unpack .../02-libmagic-mgc_1%3a5.35-4+deb10u1_amd64.deb ...
Unpacking libmagic-mgc (1:5.35-4+deb10u1) ...
Selecting previously unselected package libmagic1:amd64.
Preparing to unpack .../03-libmagic1_1%3a5.35-4+deb10u1_amd64.deb ...
Unpacking libmagic1:amd64 (1:5.35-4+deb10u1) ...
Selecting previously unselected package file.
Preparing to unpack .../04-file_1%3a5.35-4+deb10u1_amd64.deb ...
Unpacking file (1:5.35-4+deb10u1) ...
Selecting previously unselected package xz-utils.
Preparing to unpack .../05-xz-utils_5.2.4-1_amd64.deb ...
Unpacking xz-utils (5.2.4-1) ...
Selecting previously unselected package cmake-data.
Preparing to unpack .../06-cmake-data_3.13.4-1_all.deb ...
Unpacking cmake-data (3.13.4-1) ...
Selecting previously unselected package libxml2:amd64.
Preparing to unpack .../07-libxml2_2.9.4+dfsg1-7+b3_amd64.deb ...
Unpacking libxml2:amd64 (2.9.4+dfsg1-7+b3) ...
Selecting previously unselected package libarchive13:amd64.
Preparing to unpack .../08-libarchive13_3.3.3-4+deb10u1_amd64.deb ...
Unpacking libarchive13:amd64 (3.3.3-4+deb10u1) ...
Selecting previously unselected package libjsoncpp1:amd64.
Preparing to unpack .../09-libjsoncpp1_1.7.4-3_amd64.deb ...
Unpacking libjsoncpp1:amd64 (1.7.4-3) ...
Selecting previously unselected package librhash0:amd64.
Preparing to unpack .../10-librhash0_1.3.8-1_amd64.deb ...
Unpacking librhash0:amd64 (1.3.8-1) ...
Selecting previously unselected package cmake.
Preparing to unpack .../11-cmake_3.13.4-1_amd64.deb ...
Unpacking cmake (3.13.4-1) ...
Selecting previously unselected package libltdl7:amd64.
Preparing to unpack .../12-libltdl7_2.4.6-9_amd64.deb ...
Unpacking libltdl7:amd64 (2.4.6-9) ...
Selecting previously unselected package libltdl-dev:amd64.
Preparing to unpack .../13-libltdl-dev_2.4.6-9_amd64.deb ...
Unpacking libltdl-dev:amd64 (2.4.6-9) ...
Selecting previously unselected package libtool.
Preparing to unpack .../14-libtool_2.4.6-9_all.deb ...
Unpacking libtool (2.4.6-9) ...
Selecting previously unselected package ninja-build.
Preparing to unpack .../15-ninja-build_1.8.2-1_amd64.deb ...
Unpacking ninja-build (1.8.2-1) ...
Selecting previously unselected package python-pip-whl.
Preparing to unpack .../16-python-pip-whl_18.1-5_all.deb ...
Unpacking python-pip-whl (18.1-5) ...
Selecting previously unselected package python3-lib2to3.
Preparing to unpack .../17-python3-lib2to3_3.7.3-1_all.deb ...
Unpacking python3-lib2to3 (3.7.3-1) ...
Selecting previously unselected package python3-distutils.
Preparing to unpack .../18-python3-distutils_3.7.3-1_all.deb ...
Unpacking python3-distutils (3.7.3-1) ...
Selecting previously unselected package python3-pkg-resources.
Preparing to unpack .../19-python3-pkg-resources_40.8.0-1_all.deb ...
Unpacking python3-pkg-resources (40.8.0-1) ...
Selecting previously unselected package python3-virtualenv.
Preparing to unpack .../20-python3-virtualenv_15.1.0+ds-2_all.deb ...
Unpacking python3-virtualenv (15.1.0+ds-2) ...
Selecting previously unselected package unzip.
Preparing to unpack .../21-unzip_6.0-23+deb10u1_amd64.deb ...
Unpacking unzip (6.0-23+deb10u1) ...
Selecting previously unselected package virtualenv.
Preparing to unpack .../22-virtualenv_15.1.0+ds-2_all.deb ...
Unpacking virtualenv (15.1.0+ds-2) ...
Setting up mime-support (3.62) ...
Setting up libmagic-mgc (1:5.35-4+deb10u1) ...
Setting up unzip (6.0-23+deb10u1) ...
Setting up libmagic1:amd64 (1:5.35-4+deb10u1) ...
Setting up file (1:5.35-4+deb10u1) ...
Setting up bzip2 (1.0.6-9.2~deb10u1) ...
Setting up ninja-build (1.8.2-1) ...
Setting up xz-utils (5.2.4-1) ...
update-alternatives: using /usr/bin/xz to provide /usr/bin/lzma (lzma) in auto mode
Setting up libltdl7:amd64 (2.4.6-9) ...
Setting up librhash0:amd64 (1.3.8-1) ...
Setting up python-pip-whl (18.1-5) ...
Setting up cmake-data (3.13.4-1) ...
Setting up libmpdec2:amd64 (2.4.2-2) ...
Setting up libxml2:amd64 (2.9.4+dfsg1-7+b3) ...
Setting up libjsoncpp1:amd64 (1.7.4-3) ...
Setting up libpython3.7-stdlib:amd64 (3.7.3-2+deb10u1) ...
Setting up libtool (2.4.6-9) ...
Setting up libarchive13:amd64 (3.3.3-4+deb10u1) ...
Setting up libltdl-dev:amd64 (2.4.6-9) ...
Setting up cmake (3.13.4-1) ...
Setting up libpython3-stdlib:amd64 (3.7.3-1) ...
Setting up python3.7 (3.7.3-2+deb10u1) ...
Setting up python3 (3.7.3-1) ...
running python rtupdate hooks for python3.7...
running python post-rtupdate hooks for python3.7...
Setting up python3-lib2to3 (3.7.3-1) ...
Setting up python3-pkg-resources (40.8.0-1) ...
Setting up python3-distutils (3.7.3-1) ...
Setting up python3-virtualenv (15.1.0+ds-2) ...
Setting up virtualenv (15.1.0+ds-2) ...
Processing triggers for libc-bin (2.28-10) ...
root@torrents:~# apt install golang
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
golang-1.11 golang-1.11-doc golang-1.11-go golang-1.11-src golang-doc golang-go golang-src libdpkg-perl libfile-fcntllock-perl libglib2.0-0
libglib2.0-data liblocale-gettext-perl pkg-config shared-mime-info xdg-user-dirs
Suggested packages:
bzr | brz mercurial subversion debian-keyring bzr dpkg-dev
The following NEW packages will be installed:
golang golang-1.11 golang-1.11-doc golang-1.11-go golang-1.11-src golang-doc golang-go golang-src libdpkg-perl libfile-fcntllock-perl libglib2.0-0
libglib2.0-data liblocale-gettext-perl pkg-config shared-mime-info xdg-user-dirs
0 upgraded, 16 newly installed, 0 to remove and 0 not upgraded.
Need to get 62.2 MB of archives.
After this operation, 318 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.debian.org/debian buster/main amd64 liblocale-gettext-perl amd64 1.07-3+b4 [18.9 kB]
Get:2 http://deb.debian.org/debian buster/main amd64 golang-1.11-src amd64 1.11.6-1+deb10u3 [13.0 MB]
Get:3 http://deb.debian.org/debian buster/main amd64 golang-1.11-go amd64 1.11.6-1+deb10u3 [41.9 MB]
Get:4 http://deb.debian.org/debian buster/main amd64 golang-1.11-doc all 1.11.6-1+deb10u3 [2,517 kB]
Get:5 http://deb.debian.org/debian buster/main amd64 golang-1.11 all 1.11.6-1+deb10u3 [24.0 kB]
Get:6 http://deb.debian.org/debian buster/main amd64 golang-src amd64 2:1.11~1 [4,344 B]
Get:7 http://deb.debian.org/debian buster/main amd64 golang-go amd64 2:1.11~1 [23.4 kB]
Get:8 http://deb.debian.org/debian buster/main amd64 golang-doc all 2:1.11~1 [4,392 B]
Get:9 http://deb.debian.org/debian buster/main amd64 golang amd64 2:1.11~1 [4,336 B]
Get:10 http://deb.debian.org/debian buster/main amd64 libdpkg-perl all 1.19.7 [1,414 kB]
Get:11 http://deb.debian.org/debian buster/main amd64 libfile-fcntllock-perl amd64 0.22-3+b5 [35.4 kB]
Get:12 http://deb.debian.org/debian buster/main amd64 libglib2.0-0 amd64 2.58.3-2+deb10u2 [1,258 kB]
Get:13 http://deb.debian.org/debian buster/main amd64 libglib2.0-data all 2.58.3-2+deb10u2 [1,110 kB]
Get:14 http://deb.debian.org/debian buster/main amd64 pkg-config amd64 0.29-6 [63.5 kB]
Get:15 http://deb.debian.org/debian buster/main amd64 shared-mime-info amd64 1.10-1 [766 kB]
Get:16 http://deb.debian.org/debian buster/main amd64 xdg-user-dirs amd64 0.17-2 [53.8 kB]
Fetched 62.2 MB in 3s (18.6 MB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package liblocale-gettext-perl.
(Reading database ... 27413 files and directories currently installed.)
Preparing to unpack .../00-liblocale-gettext-perl_1.07-3+b4_amd64.deb ...
Unpacking liblocale-gettext-perl (1.07-3+b4) ...
Selecting previously unselected package golang-1.11-src.
Preparing to unpack .../01-golang-1.11-src_1.11.6-1+deb10u3_amd64.deb ...
Unpacking golang-1.11-src (1.11.6-1+deb10u3) ...
Selecting previously unselected package golang-1.11-go.
Preparing to unpack .../02-golang-1.11-go_1.11.6-1+deb10u3_amd64.deb ...
Unpacking golang-1.11-go (1.11.6-1+deb10u3) ...
Selecting previously unselected package golang-1.11-doc.
Preparing to unpack .../03-golang-1.11-doc_1.11.6-1+deb10u3_all.deb ...
Unpacking golang-1.11-doc (1.11.6-1+deb10u3) ...
Selecting previously unselected package golang-1.11.
Preparing to unpack .../04-golang-1.11_1.11.6-1+deb10u3_all.deb ...
Unpacking golang-1.11 (1.11.6-1+deb10u3) ...
Selecting previously unselected package golang-src.
Preparing to unpack .../05-golang-src_2%3a1.11~1_amd64.deb ...
Unpacking golang-src (2:1.11~1) ...
Selecting previously unselected package golang-go.
Preparing to unpack .../06-golang-go_2%3a1.11~1_amd64.deb ...
Unpacking golang-go (2:1.11~1) ...
Selecting previously unselected package golang-doc.
Preparing to unpack .../07-golang-doc_2%3a1.11~1_all.deb ...
Unpacking golang-doc (2:1.11~1) ...
Selecting previously unselected package golang.
Preparing to unpack .../08-golang_2%3a1.11~1_amd64.deb ...
Unpacking golang (2:1.11~1) ...
Selecting previously unselected package libdpkg-perl.
Preparing to unpack .../09-libdpkg-perl_1.19.7_all.deb ...
Unpacking libdpkg-perl (1.19.7) ...
Selecting previously unselected package libfile-fcntllock-perl.
Preparing to unpack .../10-libfile-fcntllock-perl_0.22-3+b5_amd64.deb ...
Unpacking libfile-fcntllock-perl (0.22-3+b5) ...
Selecting previously unselected package libglib2.0-0:amd64.
Preparing to unpack .../11-libglib2.0-0_2.58.3-2+deb10u2_amd64.deb ...
Unpacking libglib2.0-0:amd64 (2.58.3-2+deb10u2) ...
Selecting previously unselected package libglib2.0-data.
Preparing to unpack .../12-libglib2.0-data_2.58.3-2+deb10u2_all.deb ...
Unpacking libglib2.0-data (2.58.3-2+deb10u2) ...
Selecting previously unselected package pkg-config.
Preparing to unpack .../13-pkg-config_0.29-6_amd64.deb ...
Unpacking pkg-config (0.29-6) ...
Selecting previously unselected package shared-mime-info.
Preparing to unpack .../14-shared-mime-info_1.10-1_amd64.deb ...
Unpacking shared-mime-info (1.10-1) ...
Selecting previously unselected package xdg-user-dirs.
Preparing to unpack .../15-xdg-user-dirs_0.17-2_amd64.deb ...
Unpacking xdg-user-dirs (0.17-2) ...
Setting up xdg-user-dirs (0.17-2) ...
Setting up libfile-fcntllock-perl (0.22-3+b5) ...
Setting up libglib2.0-0:amd64 (2.58.3-2+deb10u2) ...
No schema files found: doing nothing.
Setting up golang-1.11-src (1.11.6-1+deb10u3) ...
Setting up golang-1.11-go (1.11.6-1+deb10u3) ...
Setting up libglib2.0-data (2.58.3-2+deb10u2) ...
Setting up shared-mime-info (1.10-1) ...
Setting up libdpkg-perl (1.19.7) ...
Setting up golang-src (2:1.11~1) ...
Setting up liblocale-gettext-perl (1.07-3+b4) ...
Setting up golang-1.11-doc (1.11.6-1+deb10u3) ...
Setting up golang-go (2:1.11~1) ...
Setting up pkg-config (0.29-6) ...
Setting up golang-1.11 (1.11.6-1+deb10u3) ...
Setting up golang-doc (2:1.11~1) ...
Setting up golang (2:1.11~1) ...
Processing triggers for libc-bin (2.28-10) ...
root@torrents:~# go get -u github.com/bazelbuild/buildtools/buildifier
# github.com/bazelbuild/buildtools/buildifier/utils
go/src/github.com/bazelbuild/buildtools/buildifier/utils/utils.go:163:14: undefined: strings.ReplaceAll
root@torrents:~# go get -u github.com/bazelbuild/buildtools/buildozer
root@torrents:~# bazel build //source/exe:envoy-static
-bash: /usr/local/bin/bazel: Permission denied
root@torrents:~# chmod +x /usr/local/bin/bazel
root@torrents:~# bazel build //source/exe:envoy-static
2020/05/01 01:36:22 Downloading https://releases.bazel.build/3.1.0/release/bazel-3.1.0-linux-x86_64...
Extracting Bazel installation...
ERROR: The 'build' command is only supported from within a workspace (below a directory having a WORKSPACE file).
See documentation at https://docs.bazel.build/versions/master/build-ref.html#workspace
root@torrents:~# cd envoy/
root@torrents:~/envoy# bazel build //source/exe:envoy-static
2020/05/01 01:36:38 Downloading https://releases.bazel.build/3.0.0/release/bazel-3.0.0-linux-x86_64...
WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files:
/root/envoy/tools/bazel.rc
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
INFO: Analyzed target //source/exe:envoy-static (580 packages loaded, 20535 targets configured).
INFO: Found 1 target...
INFO: From CcCmakeMakeRule external/envoy/bazel/foreign_cc/zlib/include [for host]:
[37 / 2,597] 4 actions running
Compiling external/com_google_protobuf/src/google/protobuf/compiler/cpp/cpp_message.cc [for host]; 6s processwrapper-sandbox
Compiling external/com_google_protobuf/src/google/protobuf/compiler/cpp/cpp_helpers.cc [for host]; 5s processwrapper-sandbox
Compiling external/com_google_protobuf/src/google/protobuf/compiler/cpp/cpp_file.cc [for host]; 2s processwrapper-sandbox
Compiling external/com_google_protobuf/src/google/protobuf/compiler/cpp/cpp_generator.cc [for host]; 1s processwrapper-sandbox
^C
Target //source/exe:envoy-static failed to build
Use --verbose_failures to see the command lines of failed build steps.
ERROR: build interruptedng temp directories
INFO: Elapsed time: 88.393s, Critical Path: 16.18s
INFO: 20 processes: 20 processwrapper-sandbox.
FAILED: Build did NOT complete successfully
root@torrents:~/envoy# chmod +x /usr/local/bin/bazel
Full log (not much to see it instantly crashes):
java.lang.IllegalArgumentException: Multiple entries with same key: Writeback=924 and Writeback=924
at com.google.common.collect.ImmutableMap.conflictException(ImmutableMap.java:215)
at com.google.common.collect.ImmutableMap.checkNoConflict(ImmutableMap.java:209)
at com.google.common.collect.RegularImmutableMap.checkNoConflictInKeyBucket(RegularImmutableMap.java:147)
at com.google.common.collect.RegularImmutableMap.fromEntryArray(RegularImmutableMap.java:110)
at com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:393)
at com.google.devtools.build.lib.unix.ProcMeminfoParser.<init>(ProcMeminfoParser.java:62)
at com.google.devtools.build.lib.actions.LocalHostResourceManagerLinux.getMemoryInMbHelper(LocalHostResourceManagerLinux.java:86)
at com.google.devtools.build.lib.actions.LocalHostResourceManagerLinux.getMemoryInMb(LocalHostResourceManagerLinux.java:40)
at com.google.devtools.build.lib.actions.LocalHostResourceManagerLinux.getLocalHostResources(LocalHostResourceManagerLinux.java:46)
at com.google.devtools.build.lib.actions.LocalHostCapacity.getNewLocalHostCapacity(LocalHostCapacity.java:46)
at com.google.devtools.build.lib.actions.LocalHostCapacity.getLocalHostCapacity(LocalHostCapacity.java:34)
at com.google.devtools.build.lib.buildtool.BuildRequestOptions$JobsConverter.lambda$new$0(BuildRequestOptions.java:465)
at com.google.devtools.build.lib.util.ResourceConverter.applyOperator(ResourceConverter.java:136)
at com.google.devtools.build.lib.util.ResourceConverter.convert(ResourceConverter.java:122)
at com.google.devtools.build.lib.util.ResourceConverter.convert(ResourceConverter.java:41)
at com.google.devtools.common.options.OptionDefinition.getDefaultValue(OptionDefinition.java:270)
at com.google.devtools.common.options.OptionValueDescription$DefaultOptionValueDescription.getValue(OptionValueDescription.java:123)
at com.google.devtools.common.options.OptionsParserImpl.parse(OptionsParserImpl.java:378)
at com.google.devtools.common.options.OptionsParserImpl.parse(OptionsParserImpl.java:325)
at com.google.devtools.common.options.OptionsParser.parseWithSourceFunction(OptionsParser.java:642)
at com.google.devtools.build.lib.runtime.BlazeOptionHandler.parseArgsAndConfigs(BlazeOptionHandler.java:207)
at com.google.devtools.build.lib.runtime.BlazeOptionHandler.parseOptions(BlazeOptionHandler.java:274)
at com.google.devtools.build.lib.runtime.BlazeCommandDispatcher.execExclusively(BlazeCommandDispatcher.java:275)
at com.google.devtools.build.lib.runtime.BlazeCommandDispatcher.exec(BlazeCommandDispatcher.java:208)
at com.google.devtools.build.lib.server.GrpcServerImpl.executeCommand(GrpcServerImpl.java:603)
at com.google.devtools.build.lib.server.GrpcServerImpl.lambda$run$2(GrpcServerImpl.java:659)
at io.grpc.Context$1.run(Context.java:595)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
ERROR: bazel crash in async thread:
java.lang.IllegalArgumentException: Multiple entries with same key: Writeback=924 and Writeback=924
at com.google.common.collect.ImmutableMap.conflictException(ImmutableMap.java:215)
at com.google.common.collect.ImmutableMap.checkNoConflict(ImmutableMap.java:209)
at com.google.common.collect.RegularImmutableMap.checkNoConflictInKeyBucket(RegularImmutableMap.java:147)
at com.google.common.collect.RegularImmutableMap.fromEntryArray(RegularImmutableMap.java:110)
at com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:393)
at com.google.devtools.build.lib.unix.ProcMeminfoParser.<init>(ProcMeminfoParser.java:62)
at com.google.devtools.build.lib.actions.LocalHostResourceManagerLinux.getMemoryInMbHelper(LocalHostResourceManagerLinux.java:86)
at com.google.devtools.build.lib.actions.LocalHostResourceManagerLinux.getMemoryInMb(LocalHostResourceManagerLinux.java:40)
at com.google.devtools.build.lib.actions.LocalHostResourceManagerLinux.getLocalHostResources(LocalHostResourceManagerLinux.java:46)
at com.google.devtools.build.lib.actions.LocalHostCapacity.getNewLocalHostCapacity(LocalHostCapacity.java:46)
at com.google.devtools.build.lib.actions.LocalHostCapacity.getLocalHostCapacity(LocalHostCapacity.java:34)
at com.google.devtools.build.lib.buildtool.BuildRequestOptions$JobsConverter.lambda$new$0(BuildRequestOptions.java:465)
at com.google.devtools.build.lib.util.ResourceConverter.applyOperator(ResourceConverter.java:136)
at com.google.devtools.build.lib.util.ResourceConverter.convert(ResourceConverter.java:122)
at com.google.devtools.build.lib.util.ResourceConverter.convert(ResourceConverter.java:41)
at com.google.devtools.common.options.OptionDefinition.getDefaultValue(OptionDefinition.java:270)
at com.google.devtools.common.options.OptionValueDescription$DefaultOptionValueDescription.getValue(OptionValueDescription.java:123)
at com.google.devtools.common.options.OptionsParserImpl.parse(OptionsParserImpl.java:378)
at com.google.devtools.common.options.OptionsParserImpl.parse(OptionsParserImpl.java:325)
at com.google.devtools.common.options.OptionsParser.parseWithSourceFunction(OptionsParser.java:642)
at com.google.devtools.build.lib.runtime.BlazeOptionHandler.parseArgsAndConfigs(BlazeOptionHandler.java:207)
at com.google.devtools.build.lib.runtime.BlazeOptionHandler.parseOptions(BlazeOptionHandler.java:274)
at com.google.devtools.build.lib.runtime.BlazeCommandDispatcher.execExclusively(BlazeCommandDispatcher.java:275)
at com.google.devtools.build.lib.runtime.BlazeCommandDispatcher.exec(BlazeCommandDispatcher.java:208)
at com.google.devtools.build.lib.server.GrpcServerImpl.executeCommand(GrpcServerImpl.java:603)
at com.google.devtools.build.lib.server.GrpcServerImpl.lambda$run$2(GrpcServerImpl.java:659)
at io.grpc.Context$1.run(Context.java:595)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
WARNING: If you want to report crashes, leaking of sensitive information, and/or other security issues, please consider reporting them using appropriate channels.
Issue Template
Title: Bazel will no longer start
Description: When trying to build the most recent version of envoy I keep getting the following error. Fresh debian container, fresh fedora container, same result.
Problem is only in LXC containers I have discovered. Compiles just fine on bare metal.
I realise that this is not an envoy issue, but I have no idea where else to post it.
Logs: