Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build the project #832

Closed
k0eff opened this issue Apr 15, 2022 · 13 comments
Closed

Cannot build the project #832

k0eff opened this issue Apr 15, 2022 · 13 comments
Assignees
Labels
question Further information is requested

Comments

@k0eff
Copy link

k0eff commented Apr 15, 2022

Title: One line description
Can't build the project neither in Centos 7, nor in Debian 10, Ubuntu 18.04 LTS

Description:

What issue is being seen? Describe what should be happening instead of
the bug, for example: Nighthawk should not crash, the expected value isn't
returned, etc.

The build is difficult mainly due to the lack of a description how to do that.
The Dockefile in Docker hub doesn't show what env is needed to build properly.
This page: https://getnighthawk.dev/docs/building-nighthawk/ shows some recommendations which imply that a Debian-based system is required, however a build cannot be successful neither in Debian 10 nor Ubuntu 18.04.
After installing all the required packages (please note that in the link above it is not mentioned that gcc-9 is required whose installation breaks a scripted installation of all packages in Debian, due to the need to merge sshd_config via Debian's UI when installing openssh (which is ignored even when modifying the DEBIAN_FRONTEND env var); neither is mentioned Ubuntu's issues with gcc-9 which installs in /usr/bin/gcc-9 leaving /usr/bin/gcc coming from the g++ package but remaining at version 7.5; neither any specific requirements for OS and packages are mentioned leaving the user unaware what should be done).
Anyway, after installing and configuring all the packages which seems to be required after debugging step by step I've got the following error:

root@vm1:/home/vm1user/benchmark/nighthawk# bazel build -c opt //:nighthawk
INFO: Analyzed target //:nighthawk (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
ERROR: /root/.cache/bazel/_bazel_root/664f29de160d46f0d280928f1ea14135/external/com_google_protobuf/BUILD:513:10: Compiling src/google/protobuf/compiler/main.cc failed: undeclared inclusion(s) in rule '@com_google_protobuf//:protoc':
this rule is missing dependency declarations for the following files included by 'src/google/protobuf/compiler/main.cc':
  '/usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h'
  '/usr/lib/gcc/x86_64-linux-gnu/7/include/stdarg.h'
  '/usr/lib/gcc/x86_64-linux-gnu/7/include/stdint.h'
Target //:nighthawk failed to build
Use --verbose_failures to see the command lines of failed build steps.
ERROR: /root/.cache/bazel/_bazel_root/664f29de160d46f0d280928f1ea14135/external/com_github_cncf_udpa/xds/annotations/v3/BUILD:5:18 Middleman _middlemen/@com_Ugithub_Ucncf_Uudpa_S_Sxds_Sannotations_Sv3_Cpkg-BazelCppSemantics_build_arch_k8-opt failed: undeclared inclusion(s) in rule '@com_google_protobuf//:protoc':
this rule is missing dependency declarations for the following files included by 'src/google/protobuf/compiler/main.cc':
  '/usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h'
  '/usr/lib/gcc/x86_64-linux-gnu/7/include/stdarg.h'
  '/usr/lib/gcc/x86_64-linux-gnu/7/include/stdint.h'
INFO: Elapsed time: 1.370s, Critical Path: 0.82s
INFO: 4 processes: 4 internal.
FAILED: Build did NOT complete successfully

Please, anyone, provide a more detailed description what is required to build the project.

Reproduction steps:

Include sample requests, environment, etc. All data and inputs
required to reproduce the bug.

  1. Create a VM in Azure with the following OS:
    publisher = "Canonical"
    offer     = "UbuntuServer"
    sku       = "18_04-lts-gen2"
    version   = "18.04.202204010"
  1. Execute the following script to set up the Ubuntu box:
#!/bin/bash
set -x
echo ${password} | sudo -S -u root -v
sudo apt install software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt update
sudo apt install -y nginx git wget gcc python3 vim curl autoconf automake cmake curl libtool make ninja-build patch python3-pip unzip virtualenv
sudo ln -s /usr/bin/gcc-9 /usr/bin/gcc
sudo systemctl restart nginx

# Envoy Nighthawk setup
wget -O bazel https://github.com/bazelbuild/bazel/releases/download/5.1.1/bazel-5.1.1-linux-x86_64
sudo chmod a+x ./bazel
sudo mv ./bazel /usr/bin/bazel
git clone https://github.com/envoyproxy/nighthawk
cd nighthawk/
bazel build -c opt //:nighthawk

echo "Provisioning Finished!"

Note: If there are privacy concerns, sanitize the data prior to
sharing.

Logs:

Include the Nighthawk logs.

Note: If there are privacy concerns, sanitize the data prior to
sharing.

Call Stack:

If the Envoy binary is crashing, a call stack is required.
Please refer to the Bazel Stack trace documentation.

@k0eff k0eff added the bug Something isn't working label Apr 15, 2022
@bryanwux
Copy link

bryanwux commented Apr 18, 2022

Try to build with previous commits may be helpful. ba3b5d0 works for me

@k0eff
Copy link
Author

k0eff commented Apr 18, 2022

Thank you! It's good that I'm not alone! I'll try and post the result here!

@k0eff
Copy link
Author

k0eff commented Apr 18, 2022

ba3b5d0 failed for me:

ERROR: /home/vm1user/benchmark/nighthawk/source/client/BUILD:57:17: Compiling source/client/process_impl.cc failed: (Exit 1): gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 274 arguments skipped)

Use --sandbox_debug to see verbose messages from the sandbox
source/client/process_impl.cc: In static member function 'static absl::StatusOr<std::unique_ptr<Nighthawk::Client::Process> > Nighthawk::Client::ProcessImpl::CreateProcessImpl(const Nighthawk::Client::Options&, Envoy::Network::DnsResolverFactory&, envoy::config::core::v3::TypedExtensionConfig, Envoy::Event::TimeSystem&, const std::shared_ptr<Envoy::ProcessWide>&)':
source/client/process_impl.cc:230:10: error: could not convert 'process' from 'std::unique_ptr<Nighthawk::Client::ProcessImpl>' to 'absl::StatusOr<std::unique_ptr<Nighthawk::Client::Process> >'
   return process;
          ^~~~~~~
Target //:nighthawk failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 111.391s, Critical Path: 58.70s
INFO: 61 processes: 8 internal, 53 linux-sandbox.
FAILED: Build did NOT complete successfully

@k0eff
Copy link
Author

k0eff commented Apr 18, 2022

Can't build with neither of these:

@bryanwux
Copy link

bryanwux commented Apr 18, 2022

ba3b5d0 failed for me:

ERROR: /home/vm1user/benchmark/nighthawk/source/client/BUILD:57:17: Compiling source/client/process_impl.cc failed: (Exit 1): gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 274 arguments skipped)

Use --sandbox_debug to see verbose messages from the sandbox
source/client/process_impl.cc: In static member function 'static absl::StatusOr<std::unique_ptr<Nighthawk::Client::Process> > Nighthawk::Client::ProcessImpl::CreateProcessImpl(const Nighthawk::Client::Options&, Envoy::Network::DnsResolverFactory&, envoy::config::core::v3::TypedExtensionConfig, Envoy::Event::TimeSystem&, const std::shared_ptr<Envoy::ProcessWide>&)':
source/client/process_impl.cc:230:10: error: could not convert 'process' from 'std::unique_ptr<Nighthawk::Client::ProcessImpl>' to 'absl::StatusOr<std::unique_ptr<Nighthawk::Client::Process> >'
   return process;
          ^~~~~~~
Target //:nighthawk failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 111.391s, Critical Path: 58.70s
INFO: 61 processes: 8 internal, 53 linux-sandbox.
FAILED: Build did NOT complete successfully

It looks like this is a gcc problem. Probably try to build with a clean environment using Dockerfile? I have no clue on this since I am not an expert in gcc.

@mum4k mum4k self-assigned this Apr 18, 2022
@mum4k
Copy link
Collaborator

mum4k commented Apr 18, 2022

@k0eff thank you for the report. As @bryanwux indicated the attempted builds seem to be using gcc. The main supported way of building Nighthawk is with clang.

Assuming there isn't a particular need to use gcc, could you try with clang?

Try following this guide which has the steps needed to setup the build environment. If that works, we can look into improving our documentation.

@mum4k
Copy link
Collaborator

mum4k commented Apr 18, 2022

One more note - instead of running the bazel commands directly, could you try using our CI script which sets up the toolchains?

ci/do_ci.sh build

@mum4k mum4k added question Further information is requested and removed bug Something isn't working labels Apr 19, 2022
@k0eff
Copy link
Author

k0eff commented Apr 19, 2022

I am following the same guide you mentioned however it doesn't work. To sum up, lemme show my cloudinit script which executes on a pure Ubuntu 18.04 LTS. This setup is using the commit @bryanwux confirmed workin, following @mum4k's advice to use the ci/do_ci.sh script and following the official guide to install additional packages

sudo apt update
sudo apt-get install -y autoconf automake cmake curl libtool make ninja-build patch python3-pip unzip virtualenv clang

# Install bazelisk instead of bazel
sudo wget -O /usr/local/bin/bazel https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-$([ $(uname -m) = "aarch64" ] && echo "arm64" || echo "amd64")
sudo chmod +x /usr/local/bin/bazel

mkdir benchmark
cd benchmark/

git clone https://github.com/envoyproxy/nighthawk
cd nighthawk/
git checkout ba3b5d0bcc57c334f34e1c323c6bb564781caa60 
echo "build --config=clang" >> user.bazelrc

ci/do_ci.sh build

Here's a complete log of the build:



vm1user@vm1:~$ cd benchmark/nighthawk/
vm1user@vm1:~/benchmark/nighthawk$
vm1user@vm1:~/benchmark/nighthawk$
vm1user@vm1:~/benchmark/nighthawk$
vm1user@vm1:~/benchmark/nighthawk$
vm1user@vm1:~/benchmark/nighthawk$ ci/do_ci.sh
must be one of [opt_build, build,test,clang_tidy,coverage,coverage_integration,asan,tsan,benchmark_with_own_binaries,docker,check_format,fix_format,test_gcc]
vm1user@vm1:~/benchmark/nighthawk$
vm1user@vm1:~/benchmark/nighthawk$
vm1user@vm1:~/benchmark/nighthawk$
vm1user@vm1:~/benchmark/nighthawk$ ci/do_ci.sh build
clang/clang++ toolchain configured
ci/do_ci.sh: line 57: bazel: command not found
vm1user@vm1:~/benchmark/nighthawk$ cd
vm1user@vm1:~$ sudo wget -O /usr/local/bin/bazel https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-$([ $(uname -m) = "aarch64" ] && echo "arm64" || echo "amd64")
--2022-04-19 07:52:59--  https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-amd64
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github.com/bazelbuild/bazelisk/releases/download/v1.11.0/bazelisk-linux-amd64 [following]
--2022-04-19 07:52:59--  https://github.com/bazelbuild/bazelisk/releases/download/v1.11.0/bazelisk-linux-amd64
Reusing existing connection to github.com:443.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/149661467/ac07a1b6-24bb-4857-868a-4a1816401ade?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220419%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220419T075259Z&X-Amz-Expires=300&X-Amz-Signature=73eb0f93952049ce190ef9fc552465b21d3d717eeac6f6f3b1cbf58643bb21ad&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=149661467&response-content-disposition=attachment%3B%20filename%3Dbazelisk-linux-amd64&response-content-type=application%2Foctet-stream [following]
--2022-04-19 07:52:59--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/149661467/ac07a1b6-24bb-4857-868a-4a1816401ade?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220419%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220419T075259Z&X-Amz-Expires=300&X-Amz-Signature=73eb0f93952049ce190ef9fc552465b21d3d717eeac6f6f3b1cbf58643bb21ad&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=149661467&response-content-disposition=attachment%3B%20filename%3Dbazelisk-linux-amd64&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.109.133, 185.199.108.133, 185.199.111.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.109.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5152768 (4.9M) [application/octet-stream]
Saving to: '/usr/local/bin/bazel'

/usr/local/bin/bazel                              100%[===========================================================================================================>]   4.91M  --.-KB/s    in 0.09s

2022-04-19 07:53:00 (53.7 MB/s) - '/usr/local/bin/bazel' saved [5152768/5152768]

vm1user@vm1:~$ sudo chmod +x /usr/local/bin/bazel
vm1user@vm1:~$
vm1user@vm1:~$ cd benchmark/
vm1user@vm1:~/benchmark$
vm1user@vm1:~/benchmark$
vm1user@vm1:~/benchmark$
vm1user@vm1:~/benchmark$ cd nighthawk/
vm1user@vm1:~/benchmark/nighthawk$ ci/do_ci.sh build
clang/clang++ toolchain configured
2022/04/19 07:53:18 Downloading https://releases.bazel.build/4.2.1/release/bazel-4.2.1-linux-x86_64...
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
INFO: SHA256 (https://golang.org/dl/?mode=json&include=all) = 6fcae9bbdd6275d99be6d5fc2b77b2b8f83e362520d8a461968e64c6d95dfe01
INFO: Analyzed target //:nighthawk (389 packages loaded, 19256 targets configured).
INFO: Found 1 target...
INFO: From Generating C++ proto_library //api/client:base:
api/client/service.proto:5:1: warning: Import google/protobuf/duration.proto is unused.
INFO: From Generating C++ proto_library //api/adaptive_load:adaptive_load_proto:
api/adaptive_load/benchmark_result.proto:10:1: warning: Import google/rpc/status.proto is unused.
api/adaptive_load/adaptive_load.proto:12:1: warning: Import google/rpc/status.proto is unused.
INFO: From Generating Descriptor Set proto_library //api/client:base:
api/client/service.proto:5:1: warning: Import google/protobuf/duration.proto is unused.
INFO: From Generating Descriptor Set proto_library //api/adaptive_load:adaptive_load_proto:
api/adaptive_load/benchmark_result.proto:10:1: warning: Import google/rpc/status.proto is unused.
api/adaptive_load/adaptive_load.proto:12:1: warning: Import google/rpc/status.proto is unused.
INFO: From Compiling absl/container/internal/hashtablez_sampler.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/container/internal/raw_hash_set.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/synchronization/blocking_counter.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/base/internal/spinlock_wait.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/synchronization/internal/create_thread_identity.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/synchronization/internal/waiter.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/synchronization/internal/per_thread_sem.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/base/internal/spinlock.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/synchronization/notification.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/debugging/stacktrace.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/debugging/internal/address_is_readable.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/synchronization/mutex.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/debugging/internal/vdso_support.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/debugging/symbolize.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/base/internal/low_level_alloc.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/strings/str_replace.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/debugging/internal/demangle.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/time/clock.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/strings/internal/memutil.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/time/civil_time.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/time/time.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/time/duration.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/strings/charconv.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/synchronization/internal/graphcycles.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/strings/ascii.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/time/format.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/strings/escaping.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
external/com_google_absl/absl/strings/escaping.cc:144:18: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wconversion]
          *d++ = ch;
               ~ ^~
external/com_google_absl/absl/strings/escaping.cc:177:18: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wconversion]
          *d++ = ch;
               ~ ^~
external/com_google_absl/absl/strings/escaping.cc:502:9: warning: implicit conversion loses integer precision: 'unsigned int' to 'unsigned char' [-Wconversion]
        GET_INPUT(first, 4);
        ^~~~~~~~~~~~~~~~~~~
external/com_google_absl/absl/strings/escaping.cc:463:29: note: expanded from macro 'GET_INPUT'
    if (absl::ascii_isspace(ch) && szsrc >= remain) goto label; \
        ~~~~                ^~
external/com_google_absl/absl/strings/escaping.cc:504:9: warning: implicit conversion loses integer precision: 'unsigned int' to 'unsigned char' [-Wconversion]
        GET_INPUT(second, 3);
        ^~~~~~~~~~~~~~~~~~~~
external/com_google_absl/absl/strings/escaping.cc:463:29: note: expanded from macro 'GET_INPUT'
    if (absl::ascii_isspace(ch) && szsrc >= remain) goto label; \
        ~~~~                ^~
external/com_google_absl/absl/strings/escaping.cc:506:9: warning: implicit conversion loses integer precision: 'unsigned int' to 'unsigned char' [-Wconversion]
        GET_INPUT(third, 2);
        ^~~~~~~~~~~~~~~~~~~
external/com_google_absl/absl/strings/escaping.cc:463:29: note: expanded from macro 'GET_INPUT'
    if (absl::ascii_isspace(ch) && szsrc >= remain) goto label; \
        ~~~~                ^~
external/com_google_absl/absl/strings/escaping.cc:508:9: warning: implicit conversion loses integer precision: 'unsigned int' to 'unsigned char' [-Wconversion]
        GET_INPUT(fourth, 1);
        ^~~~~~~~~~~~~~~~~~~~
external/com_google_absl/absl/strings/escaping.cc:463:29: note: expanded from macro 'GET_INPUT'
    if (absl::ascii_isspace(ch) && szsrc >= remain) goto label; \
        ~~~~                ^~
external/com_google_absl/absl/strings/escaping.cc:521:27: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wconversion]
      dest[destidx + 2] = temp;
                        ~ ^~~~
external/com_google_absl/absl/strings/escaping.cc:523:27: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wconversion]
      dest[destidx + 1] = temp;
                        ~ ^~~~
external/com_google_absl/absl/strings/escaping.cc:525:23: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wconversion]
      dest[destidx] = temp;
                    ~ ^~~~
external/com_google_absl/absl/strings/escaping.cc:536:9: warning: implicit conversion loses integer precision: 'unsigned int' to 'unsigned char' [-Wconversion]
        GET_INPUT(first_no_dest, 4);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
external/com_google_absl/absl/strings/escaping.cc:463:29: note: expanded from macro 'GET_INPUT'
    if (absl::ascii_isspace(ch) && szsrc >= remain) goto label; \
        ~~~~                ^~
external/com_google_absl/absl/strings/escaping.cc:537:9: warning: implicit conversion loses integer precision: 'unsigned int' to 'unsigned char' [-Wconversion]
        GET_INPUT(second_no_dest, 3);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/com_google_absl/absl/strings/escaping.cc:463:29: note: expanded from macro 'GET_INPUT'
    if (absl::ascii_isspace(ch) && szsrc >= remain) goto label; \
        ~~~~                ^~
external/com_google_absl/absl/strings/escaping.cc:538:9: warning: implicit conversion loses integer precision: 'unsigned int' to 'unsigned char' [-Wconversion]
        GET_INPUT(third_no_dest, 2);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
external/com_google_absl/absl/strings/escaping.cc:463:29: note: expanded from macro 'GET_INPUT'
    if (absl::ascii_isspace(ch) && szsrc >= remain) goto label; \
        ~~~~                ^~
external/com_google_absl/absl/strings/escaping.cc:539:9: warning: implicit conversion loses integer precision: 'unsigned int' to 'unsigned char' [-Wconversion]
        GET_INPUT(fourth_no_dest, 1);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/com_google_absl/absl/strings/escaping.cc:463:29: note: expanded from macro 'GET_INPUT'
    if (absl::ascii_isspace(ch) && szsrc >= remain) goto label; \
        ~~~~                ^~
external/com_google_absl/absl/strings/escaping.cc:553:28: warning: implicit conversion loses integer precision: 'unsigned int' to 'unsigned char' [-Wconversion]
      !absl::ascii_isspace(ch))
       ~~~~                ^~
external/com_google_absl/absl/strings/escaping.cc:572:33: warning: implicit conversion loses integer precision: 'unsigned int' to 'unsigned char' [-Wconversion]
        if (absl::ascii_isspace(ch)) {
            ~~~~                ^~
external/com_google_absl/absl/strings/escaping.cc:593:31: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wconversion]
          dest[destidx + 2] = temp;
                            ~ ^~~~
external/com_google_absl/absl/strings/escaping.cc:595:31: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wconversion]
          dest[destidx + 1] = temp;
                            ~ ^~~~
external/com_google_absl/absl/strings/escaping.cc:597:27: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wconversion]
          dest[destidx] = temp;
                        ~ ^~~~
external/com_google_absl/absl/strings/escaping.cc:622:25: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wconversion]
        dest[destidx] = temp;
                      ~ ^~~~
external/com_google_absl/absl/strings/escaping.cc:633:29: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wconversion]
        dest[destidx + 1] = temp;
                          ~ ^~~~
external/com_google_absl/absl/strings/escaping.cc:635:25: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wconversion]
        dest[destidx] = temp;
                      ~ ^~~~
external/com_google_absl/absl/strings/escaping.cc:826:57: warning: implicit conversion loses integer precision: 'int' to '__gnu_cxx::__alloc_traits<std::allocator<char> >::value_type' (aka 'char') [-Wconversion]
    to[i] = (kHexValueLenient[from[i * 2] & 0xFF] << 4) +
          ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
external/com_google_absl/absl/strings/escaping.cc:936:9: note: in instantiation of function template specialization 'absl::(anonymous namespace)::HexStringToBytesInternal<std::__cxx11::basic_string<char> &>' requested here
  absl::HexStringToBytesInternal<std::string&>(from.data(), result, num);
        ^
25 warnings generated.
INFO: From Compiling absl/strings/internal/charconv_bigint.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
external/com_google_absl/absl/strings/internal/charconv_bigint.cc:345:26: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wconversion]
    result.push_back('0' + next_digit);
           ~~~~~~~~~ ~~~~^~~~~~~~~~~~
external/com_google_absl/absl/strings/internal/charconv_bigint.cc:345:26: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wconversion]
    result.push_back('0' + next_digit);
           ~~~~~~~~~ ~~~~^~~~~~~~~~~~
external/com_google_absl/absl/strings/internal/charconv_bigint.cc:354:16: note: in instantiation of member function 'absl::strings_internal::BigUnsigned<4>::ToString' requested here
template class BigUnsigned<4>;
               ^
external/com_google_absl/absl/strings/internal/charconv_bigint.cc:345:26: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wconversion]
    result.push_back('0' + next_digit);
           ~~~~~~~~~ ~~~~^~~~~~~~~~~~
external/com_google_absl/absl/strings/internal/charconv_bigint.cc:355:16: note: in instantiation of member function 'absl::strings_internal::BigUnsigned<84>::ToString' requested here
template class BigUnsigned<84>;
               ^
6 warnings generated.
INFO: From Compiling absl/strings/match.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/strings/internal/charconv_parse.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/synchronization/barrier.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/strings/str_cat.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
external/com_google_absl/absl/strings/str_cat.cc:59:19: warning: implicit conversion loses integer precision: 'unsigned long' to 'char' [-Wconversion]
  *--writer = '0' + value;
            ~ ~~~~^~~~~~~
4 warnings generated.
INFO: From Compiling absl/strings/numbers.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
external/com_google_absl/absl/strings/numbers.cc:193:21: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wconversion]
    *buffer++ = '0' + digits;
              ~ ~~~~^~~~~~~~
external/com_google_absl/absl/strings/numbers.cc:200:21: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wconversion]
    *buffer++ = '0' + digits;
              ~ ~~~~^~~~~~~~
external/com_google_absl/absl/strings/numbers.cc:207:21: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wconversion]
    *buffer++ = '0' + digits;
              ~ ~~~~^~~~~~~~
external/com_google_absl/absl/strings/numbers.cc:213:19: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wconversion]
  *buffer++ = '0' + digits;
            ~ ~~~~^~~~~~~~
external/com_google_absl/absl/strings/numbers.cc:604:18: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wconversion]
    *out++ = '0' + dig1;
           ~ ~~~~^~~~~~
8 warnings generated.
INFO: From Compiling absl/debugging/internal/elf_mem_image.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/strings/string_view.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/strings/substitute.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
external/com_google_absl/absl/strings/substitute.cc:149:19: warning: implicit conversion loses integer precision: 'unsigned long' to 'char' [-Wconversion]
  *--writer = '0' + value;
            ~ ~~~~^~~~~~~
4 warnings generated.
INFO: From Compiling absl/strings/internal/utf8.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
external/com_google_absl/absl/strings/internal/utf8.cc:30:22: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wconversion]
    buffer[0] = 0xC0 | utf8_char;
              ~ ~~~~~^~~~~~~~~~~
external/com_google_absl/absl/strings/internal/utf8.cc:37:22: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wconversion]
    buffer[0] = 0xE0 | utf8_char;
              ~ ~~~~~^~~~~~~~~~~
external/com_google_absl/absl/strings/internal/utf8.cc:46:22: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wconversion]
    buffer[0] = 0xF0 | utf8_char;
              ~ ~~~~~^~~~~~~~~~~
6 warnings generated.
INFO: From Compiling absl/strings/internal/ostringstream.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/base/internal/cycleclock.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/strings/internal/escaping.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/strings/str_split.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/base/internal/unscaledcycleclock.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/base/internal/thread_identity.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/base/internal/sysinfo.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
INFO: From Compiling absl/base/internal/raw_logging.cc [for host]:
warning: unknown warning option '-Wno-implicit-float-conversion'; did you mean '-Wno-float-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-float-conversion'; did you mean '-Wno-float-overflow-conversion'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-implicit-int-conversion' [-Wunknown-warning-option]
3 warnings generated.
ERROR: /home/vm1user/.cache/bazel/_bazel_vm1user/664f29de160d46f0d280928f1ea14135/external/envoy/bazel/foreign_cc/BUILD:201:12: Foreign Cc - CMake: Building event failed: (Exit 1): bash failed: error executing command
  (cd /home/vm1user/.cache/bazel/_bazel_vm1user/664f29de160d46f0d280928f1ea14135/sandbox/linux-sandbox/485/execroot/nighthawk && \
  exec env - \
    BAZEL_COMPILER=clang \
    BAZEL_LINKLIBS=-l%:libstdc++.a \
    BAZEL_LINKOPTS=-lm \
    CC=clang \
    CXX=clang++ \
    HOME=/home/vm1user \
    PATH=/home/vm1user/.cache/bazelisk/downloads/bazelbuild/bazel-4.2.1-linux-x86_64/bin:/opt/llvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin \
  /bin/bash -c bazel-out/k8-fastbuild/bin/external/envoy/bazel/foreign_cc/event_foreign_cc/wrapper_build_script.sh)
Execution platform: @local_config_platform//:host

Use --sandbox_debug to see verbose messages from the sandbox
rules_foreign_cc: Build failed!
rules_foreign_cc: Keeping temp build directory and dependencies directory for debug.
rules_foreign_cc: Please note that the directories inside a sandbox are still cleaned unless you specify --sandbox_debug Bazel command line flag.
rules_foreign_cc: Printing build logs:
_____ BEGIN BUILD LOGS _____

Bazel external C/C++ Rules. Building library event

Environment:______________
BAZEL_LINKLIBS=-l%:libstdc++.a
EXT_BUILD_ROOT=/home/vm1user/.cache/bazel/_bazel_vm1user/664f29de160d46f0d280928f1ea14135/sandbox/linux-sandbox/485/execroot/nighthawk
INSTALLDIR=/home/vm1user/.cache/bazel/_bazel_vm1user/664f29de160d46f0d280928f1ea14135/sandbox/linux-sandbox/485/execroot/nighthawk/bazel-out/k8-fastbuild/bin/external/envoy/bazel/foreign_cc/event
BAZEL_LINKOPTS=-lm
CC=clang
BAZEL_COMPILER=clang
PWD=/home/vm1user/.cache/bazel/_bazel_vm1user/664f29de160d46f0d280928f1ea14135/sandbox/linux-sandbox/485/execroot/nighthawk
HOME=/home/vm1user
BUILD_TMPDIR=/home/vm1user/.cache/bazel/_bazel_vm1user/664f29de160d46f0d280928f1ea14135/sandbox/linux-sandbox/485/execroot/nighthawk/bazel-out/k8-fastbuild/bin/external/envoy/bazel/foreign_cc/event.build_tmpdir
TMPDIR=/tmp
EXT_BUILD_DEPS=/home/vm1user/.cache/bazel/_bazel_vm1user/664f29de160d46f0d280928f1ea14135/sandbox/linux-sandbox/485/execroot/nighthawk/bazel-out/k8-fastbuild/bin/external/envoy/bazel/foreign_cc/event.ext_build_deps
CXX=clang++
SHLVL=3
BUILD_LOG=bazel-out/k8-fastbuild/bin/external/envoy/bazel/foreign_cc/event_foreign_cc/CMake.log
BUILD_SCRIPT=bazel-out/k8-fastbuild/bin/external/envoy/bazel/foreign_cc/event_foreign_cc/build_script.sh
BUILD_WRAPPER_SCRIPT=bazel-out/k8-fastbuild/bin/external/envoy/bazel/foreign_cc/event_foreign_cc/wrapper_build_script.sh
PATH=/home/vm1user/.cache/bazel/_bazel_vm1user/664f29de160d46f0d280928f1ea14135/sandbox/linux-sandbox/485/execroot/nighthawk:/home/vm1user/.cache/bazelisk/downloads/bazelbuild/bazel-4.2.1-linux-x86_64/bin:/opt/llvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
_=/usr/bin/env
__________________________
+ cmake -DCMAKE_AR=/usr/bin/ar '-DCMAKE_SHARED_LINKER_FLAGS=-shared -fuse-ld=/usr/bin/ld.gold -Wl,-no-as-needed -Wl,-z,relro,-z,now -B/usr/bin -lm -l:libstdc++.a -fuse-ld=lld' '-DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=/usr/bin/ld.gold -Wl,-no-as-needed -Wl,-z,relro,-z,now -B/usr/bin -lm -l:libstdc++.a -fuse-ld=lld' -DEVENT__DISABLE_OPENSSL=on -DEVENT__DISABLE_MBEDTLS=on -DEVENT__DISABLE_REGRESS=on -DEVENT__DISABLE_TESTS=on -DEVENT__LIBRARY_TYPE=STATIC -D_GNU_SOURCE=on -DCMAKE_BUILD_TYPE=Bazel -DCMAKE_INSTALL_PREFIX=/home/vm1user/.cache/bazel/_bazel_vm1user/664f29de160d46f0d280928f1ea14135/sandbox/linux-sandbox/485/execroot/nighthawk/bazel-out/k8-fastbuild/bin/external/envoy/bazel/foreign_cc/event -DCMAKE_PREFIX_PATH=/home/vm1user/.cache/bazel/_bazel_vm1user/664f29de160d46f0d280928f1ea14135/sandbox/linux-sandbox/485/execroot/nighthawk/bazel-out/k8-fastbuild/bin/external/envoy/bazel/foreign_cc/event.ext_build_deps -DCMAKE_RANLIB= -DCMAKE_MAKE_PROGRAM=ninja -G Ninja /home/vm1user/.cache/bazel/_bazel_vm1user/664f29de160d46f0d280928f1ea14135/sandbox/linux-sandbox/485/execroot/nighthawk/external/com_github_libevent_libevent
-- The C compiler identification is Clang 6.0.0
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found Git: /usr/bin/git (found version "2.17.1")
fatal: not a git repository (or any of the parent directories): .git
-- Performing Test check_c_compiler_flag__fdiagnostics_color_always
-- Performing Test check_c_compiler_flag__fdiagnostics_color_always - Success
-- Performing Test check_c_compiler_flag__Wall
-- Performing Test check_c_compiler_flag__Wall - Success
-- Performing Test check_c_compiler_flag__Wextra
-- Performing Test check_c_compiler_flag__Wextra - Success
-- Performing Test check_c_compiler_flag__Wno_unused_parameter
-- Performing Test check_c_compiler_flag__Wno_unused_parameter - Success
-- Performing Test check_c_compiler_flag__Wstrict_aliasing
-- Performing Test check_c_compiler_flag__Wstrict_aliasing - Success
-- Performing Test check_c_compiler_flag__Wstrict_prototypes
-- Performing Test check_c_compiler_flag__Wstrict_prototypes - Success
-- Performing Test check_c_compiler_flag__fno_strict_aliasing
-- Performing Test check_c_compiler_flag__fno_strict_aliasing - Success
-- Performing Test check_c_compiler_flag__Wmissing_prototypes
-- Performing Test check_c_compiler_flag__Wmissing_prototypes - Success
-- Performing Test check_c_compiler_flag__Winit_self
-- Performing Test check_c_compiler_flag__Winit_self - Success
-- Performing Test check_c_compiler_flag__Wmissing_field_initializers
-- Performing Test check_c_compiler_flag__Wmissing_field_initializers - Success
-- Performing Test check_c_compiler_flag__Wdeclaration_after_statement
-- Performing Test check_c_compiler_flag__Wdeclaration_after_statement - Success
-- Performing Test check_c_compiler_flag__Waddress
-- Performing Test check_c_compiler_flag__Waddress - Success
-- Performing Test check_c_compiler_flag__Wnormalized_id
-- Performing Test check_c_compiler_flag__Wnormalized_id - Failed
-- Performing Test check_c_compiler_flag__Woverride_init
-- Performing Test check_c_compiler_flag__Woverride_init - Failed
-- Performing Test check_c_compiler_flag__Wlogical_op
-- Performing Test check_c_compiler_flag__Wlogical_op - Failed
-- Performing Test check_c_compiler_flag__Wwrite_strings
-- Performing Test check_c_compiler_flag__Wwrite_strings - Success
-- Performing Test check_c_compiler_flag__Wno_unused_function
-- Performing Test check_c_compiler_flag__Wno_unused_function - Success
-- Looking for include file fcntl.h
-- Looking for include file fcntl.h - found
-- Looking for include files fcntl.h, inttypes.h
-- Looking for include files fcntl.h, inttypes.h - found
-- Looking for 3 include files fcntl.h, ..., memory.h
-- Looking for 3 include files fcntl.h, ..., memory.h - found
-- Looking for 4 include files fcntl.h, ..., signal.h
-- Looking for 4 include files fcntl.h, ..., signal.h - found
-- Looking for 5 include files fcntl.h, ..., stdarg.h
-- Looking for 5 include files fcntl.h, ..., stdarg.h - found
-- Looking for 6 include files fcntl.h, ..., stddef.h
-- Looking for 6 include files fcntl.h, ..., stddef.h - found
-- Looking for 7 include files fcntl.h, ..., stdint.h
-- Looking for 7 include files fcntl.h, ..., stdint.h - found
-- Looking for 8 include files fcntl.h, ..., stdlib.h
-- Looking for 8 include files fcntl.h, ..., stdlib.h - found
-- Looking for 9 include files fcntl.h, ..., string.h
-- Looking for 9 include files fcntl.h, ..., string.h - found
-- Looking for 10 include files fcntl.h, ..., errno.h
-- Looking for 10 include files fcntl.h, ..., errno.h - found
-- Looking for 11 include files fcntl.h, ..., unistd.h
-- Looking for 11 include files fcntl.h, ..., unistd.h - found
-- Looking for 12 include files fcntl.h, ..., time.h
-- Looking for 12 include files fcntl.h, ..., time.h - found
-- Looking for 13 include files fcntl.h, ..., sys/types.h
-- Looking for 13 include files fcntl.h, ..., sys/types.h - found
-- Looking for 14 include files fcntl.h, ..., sys/stat.h
-- Looking for 14 include files fcntl.h, ..., sys/stat.h - found
-- Looking for 15 include files fcntl.h, ..., sys/time.h
-- Looking for 15 include files fcntl.h, ..., sys/time.h - found
-- Looking for 16 include files fcntl.h, ..., sys/param.h
-- Looking for 16 include files fcntl.h, ..., sys/param.h - found
-- Looking for 17 include files fcntl.h, ..., netdb.h
-- Looking for 17 include files fcntl.h, ..., netdb.h - found
-- Looking for 18 include files fcntl.h, ..., dlfcn.h
-- Looking for 18 include files fcntl.h, ..., dlfcn.h - found
-- Looking for 19 include files fcntl.h, ..., arpa/inet.h
-- Looking for 19 include files fcntl.h, ..., arpa/inet.h - found
-- Looking for 20 include files fcntl.h, ..., poll.h
-- Looking for 20 include files fcntl.h, ..., poll.h - found
-- Looking for 21 include files fcntl.h, ..., port.h
-- Looking for 21 include files fcntl.h, ..., port.h - not found
-- Looking for 21 include files fcntl.h, ..., sys/socket.h
-- Looking for 21 include files fcntl.h, ..., sys/socket.h - found
-- Looking for 22 include files fcntl.h, ..., sys/random.h
-- Looking for 22 include files fcntl.h, ..., sys/random.h - found
-- Looking for 23 include files fcntl.h, ..., sys/un.h
-- Looking for 23 include files fcntl.h, ..., sys/un.h - found
-- Looking for 24 include files fcntl.h, ..., sys/devpoll.h
-- Looking for 24 include files fcntl.h, ..., sys/devpoll.h - not found
-- Looking for 24 include files fcntl.h, ..., sys/epoll.h
-- Looking for 24 include files fcntl.h, ..., sys/epoll.h - found
-- Looking for 25 include files fcntl.h, ..., sys/eventfd.h
-- Looking for 25 include files fcntl.h, ..., sys/eventfd.h - found
-- Looking for 26 include files fcntl.h, ..., sys/event.h
-- Looking for 26 include files fcntl.h, ..., sys/event.h - not found
-- Looking for 26 include files fcntl.h, ..., sys/ioctl.h
-- Looking for 26 include files fcntl.h, ..., sys/ioctl.h - found
-- Looking for 27 include files fcntl.h, ..., sys/mman.h
-- Looking for 27 include files fcntl.h, ..., sys/mman.h - found
-- Looking for 28 include files fcntl.h, ..., sys/queue.h
-- Looking for 28 include files fcntl.h, ..., sys/queue.h - found
-- Looking for 29 include files fcntl.h, ..., sys/select.h
-- Looking for 29 include files fcntl.h, ..., sys/select.h - found
-- Looking for 30 include files fcntl.h, ..., sys/sendfile.h
-- Looking for 30 include files fcntl.h, ..., sys/sendfile.h - found
-- Looking for 31 include files fcntl.h, ..., sys/uio.h
-- Looking for 31 include files fcntl.h, ..., sys/uio.h - found
-- Looking for 32 include files fcntl.h, ..., sys/wait.h
-- Looking for 32 include files fcntl.h, ..., sys/wait.h - found
-- Looking for 33 include files fcntl.h, ..., sys/resource.h
-- Looking for 33 include files fcntl.h, ..., sys/resource.h - found
-- Looking for 34 include files fcntl.h, ..., sys/timerfd.h
-- Looking for 34 include files fcntl.h, ..., sys/timerfd.h - found
-- Looking for 35 include files fcntl.h, ..., netinet/in.h
-- Looking for 35 include files fcntl.h, ..., netinet/in.h - found
-- Looking for 36 include files fcntl.h, ..., netinet/in6.h
-- Looking for 36 include files fcntl.h, ..., netinet/in6.h - not found
-- Looking for 36 include files fcntl.h, ..., netinet/tcp.h
-- Looking for 36 include files fcntl.h, ..., netinet/tcp.h - found
-- Looking for 37 include files fcntl.h, ..., ifaddrs.h
-- Looking for 37 include files fcntl.h, ..., ifaddrs.h - found
-- Looking for getaddrinfo
-- Looking for getaddrinfo - found
-- Looking for getnameinfo
-- Looking for getnameinfo - found
-- Looking for getprotobynumber
-- Looking for getprotobynumber - found
-- Looking for getservbyname
-- Looking for getservbyname - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for inet_ntop
-- Looking for inet_ntop - found
-- Looking for inet_pton
-- Looking for inet_pton - found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for signal
-- Looking for signal - found
-- Looking for strtoll
-- Looking for strtoll - found
-- Looking for splice
-- Looking for splice - found
-- Looking for strlcpy
-- Looking for strlcpy - not found
-- Looking for strsep
-- Looking for strsep - found
-- Looking for strtok_r
-- Looking for strtok_r - found
-- Looking for vasprintf
-- Looking for vasprintf - found
-- Looking for timerclear
-- Looking for timerclear - found
-- Looking for timercmp
-- Looking for timercmp - found
-- Looking for timerisset
-- Looking for timerisset - found
-- Looking for timeradd
-- Looking for timeradd - found
-- Looking for nanosleep
-- Looking for nanosleep - found
-- Looking for putenv
-- Looking for putenv - found
-- Looking for umask
-- Looking for umask - found
-- Looking for clock_gettime
-- Looking for clock_gettime - found
-- Looking for getifaddrs
-- Looking for getifaddrs - found
-- Looking for select
-- Looking for select - found
-- Looking for epoll_create
-- Looking for epoll_create - found
-- Looking for epoll_create1
-- Looking for epoll_create1 - found
-- Looking for epoll_ctl
-- Looking for epoll_ctl - found
-- Looking for eventfd
-- Looking for eventfd - found
-- Looking for poll
-- Looking for poll - found
-- Looking for port_create
-- Looking for port_create - not found
-- Looking for kqueue
-- Looking for kqueue - not found
-- Looking for fcntl
-- Looking for fcntl - found
-- Looking for mmap
-- Looking for mmap - found
-- Looking for pipe
-- Looking for pipe - found
-- Looking for pipe2
-- Looking for pipe2 - found
-- Looking for sendfile
-- Looking for sendfile - found
-- Looking for sigaction
-- Looking for sigaction - found
-- Looking for strsignal
-- Looking for strsignal - found
-- Looking for sysctl
-- Looking for sysctl - not found
-- Looking for accept4
-- Looking for accept4 - found
-- Looking for arc4random
-- Looking for arc4random - not found
-- Looking for arc4random_buf
-- Looking for arc4random_buf - not found
-- Looking for arc4random_addrandom
-- Looking for arc4random_addrandom - not found
-- Looking for getrandom
-- Looking for getrandom - found
-- Looking for getegid
-- Looking for getegid - found
-- Looking for geteuid
-- Looking for geteuid - found
-- Looking for issetugid
-- Looking for issetugid - not found
-- Looking for usleep
-- Looking for usleep - found
-- Looking for timerfd_create
-- Looking for timerfd_create - found
-- Looking for setenv
-- Looking for setenv - found
-- Looking for unsetenv
-- Looking for unsetenv - found
-- Looking for setrlimit
-- Looking for setrlimit - found
-- Looking for gethostbyname_r
-- Looking for gethostbyname_r - found
-- Checking prototype gethostbyname_r for EVENT__HAVE_GETHOSTBYNAME_R_3_ARG - False
-- Checking prototype gethostbyname_r for EVENT__HAVE_GETHOSTBYNAME_R_5_ARG - False
-- Checking prototype gethostbyname_r for EVENT__HAVE_GETHOSTBYNAME_R_6_ARG - True
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of struct sockaddr_un
-- Check size of struct sockaddr_un - done
-- Check size of uint8_t
-- Check size of uint8_t - done
-- Check size of uint16_t
-- Check size of uint16_t - done
-- Check size of uint32_t
-- Check size of uint32_t - done
-- Check size of uint64_t
-- Check size of uint64_t - done
-- Check size of short
-- Check size of short - done
-- Check size of int
-- Check size of int - done
-- Check size of unsigned
-- Check size of unsigned - done
-- Check size of unsigned int
-- Check size of unsigned int - done
-- Check size of long
-- Check size of long - done
-- Check size of long long
-- Check size of long long - done
-- Performing Test HAVE_INLINE
-- Performing Test HAVE_INLINE - Success
-- Looking for __func__
-- Looking for __func__ - found
-- Looking for __FUNCTION__
-- Looking for __FUNCTION__ - found
-- Looking for TAILQ_FOREACH
-- Looking for TAILQ_FOREACH - found
-- Performing Test EVENT__HAVE_DECL_CTL_KERN
-- Performing Test EVENT__HAVE_DECL_CTL_KERN - Success
-- Looking for CTL_KERN - found
-- Performing Test EVENT__HAVE_DECL_KERN_ARND
-- Performing Test EVENT__HAVE_DECL_KERN_ARND - Failed
-- Looking for KERN_ARND - not found
-- Looking for F_SETFD
-- Looking for F_SETFD - found
-- Check size of fd_mask
-- Check size of fd_mask - done
-- Check size of size_t
-- Check size of size_t - done
-- Check size of off_t
-- Check size of off_t - done
-- Check size of ssize_t
-- Check size of ssize_t - done
-- Check size of SSIZE_T
-- Check size of SSIZE_T - failed
-- Check size of socklen_t
-- Check size of socklen_t - done
-- Check size of pid_t
-- Check size of pid_t - done
-- Check size of pthread_t
-- Check size of pthread_t - done
-- Check size of uintptr_t
-- Check size of uintptr_t - done
-- Check size of void *
-- Check size of void * - done
-- Check size of time_t
-- Check size of time_t - done
-- Check size of struct addrinfo
-- Check size of struct addrinfo - done
-- Check size of struct in6_addr
-- Check size of struct in6_addr - done
-- Performing Test EVENT__HAVE_STRUCT_IN6_ADDR_S6_ADDR16
-- Performing Test EVENT__HAVE_STRUCT_IN6_ADDR_S6_ADDR16 - Success
-- Performing Test EVENT__HAVE_STRUCT_IN6_ADDR_S6_ADDR32
-- Performing Test EVENT__HAVE_STRUCT_IN6_ADDR_S6_ADDR32 - Success
-- Check size of sa_family_t
-- Check size of sa_family_t - done
-- Check size of struct sockaddr_in6
-- Check size of struct sockaddr_in6 - done
-- Performing Test EVENT__HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN
-- Performing Test EVENT__HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN - Failed
-- Performing Test EVENT__HAVE_STRUCT_SOCKADDR_IN_SIN_LEN
-- Performing Test EVENT__HAVE_STRUCT_SOCKADDR_IN_SIN_LEN - Failed
-- Check size of struct sockaddr_storage
-- Check size of struct sockaddr_storage - done
-- Performing Test EVENT__HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
-- Performing Test EVENT__HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY - Success
-- Performing Test EVENT__HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY
-- Performing Test EVENT__HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY - Failed
-- Check size of struct linger
-- Check size of struct linger - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
CMake Warning at CMakeLists.txt:1516 (export):
  Cannot create package registry file:

    /home/vm1user/.cmake/packages/libevent/197f29022b426e36f75e6a06aa5117ac

  No such file or directory



--
--         ---( Libevent 2.2.0-alpha-dev )---
--
-- Available event backends:
-- CMAKE_BINARY_DIR:         /home/vm1user/.cache/bazel/_bazel_vm1user/664f29de160d46f0d280928f1ea14135/sandbox/linux-sandbox/485/execroot/nighthawk/bazel-out/k8-fastbuild/bin/external/envoy/bazel/foreign_cc/event.build_tmpdir
-- CMAKE_CURRENT_BINARY_DIR: /home/vm1user/.cache/bazel/_bazel_vm1user/664f29de160d46f0d280928f1ea14135/sandbox/linux-sandbox/485/execroot/nighthawk/bazel-out/k8-fastbuild/bin/external/envoy/bazel/foreign_cc/event.build_tmpdir
-- CMAKE_SOURCE_DIR:         /home/vm1user/.cache/bazel/_bazel_vm1user/664f29de160d46f0d280928f1ea14135/sandbox/linux-sandbox/485/execroot/nighthawk/external/com_github_libevent_libevent
-- CMAKE_CURRENT_SOURCE_DIR: /home/vm1user/.cache/bazel/_bazel_vm1user/664f29de160d46f0d280928f1ea14135/sandbox/linux-sandbox/485/execroot/nighthawk/external/com_github_libevent_libevent
-- PROJECT_BINARY_DIR:       /home/vm1user/.cache/bazel/_bazel_vm1user/664f29de160d46f0d280928f1ea14135/sandbox/linux-sandbox/485/execroot/nighthawk/bazel-out/k8-fastbuild/bin/external/envoy/bazel/foreign_cc/event.build_tmpdir
-- PROJECT_SOURCE_DIR:       /home/vm1user/.cache/bazel/_bazel_vm1user/664f29de160d46f0d280928f1ea14135/sandbox/linux-sandbox/485/execroot/nighthawk/external/com_github_libevent_libevent
-- CMAKE_MODULE_PATH:        /home/vm1user/.cache/bazel/_bazel_vm1user/664f29de160d46f0d280928f1ea14135/sandbox/linux-sandbox/485/execroot/nighthawk/external/com_github_libevent_libevent/cmake/
-- CMAKE_COMMAND:            /usr/bin/cmake
-- CMAKE_ROOT:               /usr/share/cmake-3.10
-- CMAKE_SYSTEM:             Linux-5.4.0-1074-azure
-- CMAKE_SYSTEM_NAME:        Linux
-- CMAKE_SYSTEM_VERSION:     5.4.0-1074-azure
-- CMAKE_SYSTEM_PROCESSOR:   x86_64
-- CMAKE_SKIP_RPATH:         NO
-- CMAKE_VERBOSE_MAKEFILE:   FALSE
-- CMAKE_C_FLAGS:            -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -fcolor-diagnostics -fno-omit-frame-pointer -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -fPIC -fexceptions -fdiagnostics-color=always -Wall -Wextra -Wno-unused-parameter -Wstrict-aliasing -Wstrict-prototypes -fno-strict-aliasing -Wmissing-prototypes -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement -Waddress -Wwrite-strings -Wno-unused-function
-- CMAKE_BUILD_TYPE:         Bazel
-- CMAKE_C_COMPILER:         /usr/bin/clang (id Clang, clang 1, GNUC 1)
-- CMAKE_AR:                 /usr/bin/ar
-- CMAKE_RANLIB:             :
--
-- Configuring done
-- Generating done
-- Build files have been written to: /home/vm1user/.cache/bazel/_bazel_vm1user/664f29de160d46f0d280928f1ea14135/sandbox/linux-sandbox/485/execroot/nighthawk/bazel-out/k8-fastbuild/bin/external/envoy/bazel/foreign_cc/event.build_tmpdir
+ cmake --build . --config Release
[1/77] Building C object CMakeFiles/bench.dir/test/bench.c.o
[2/77] Building C object CMakeFiles/bench_cascade.dir/test/bench_cascade.c.o
[3/77] Building C object CMakeFiles/event_core_static.dir/bufferevent.c.o
[4/77] Building C object CMakeFiles/bench_httpclient.dir/test/bench_httpclient.c.o
[5/77] Building C object CMakeFiles/event_core_static.dir/bufferevent_filter.c.o
[6/77] Building C object CMakeFiles/event_core_static.dir/bufferevent_ratelim.c.o
[7/77] Building C object CMakeFiles/event_core_static.dir/buffer.c.o
[8/77] Building C object CMakeFiles/event_core_static.dir/bufferevent_pair.c.o
[9/77] Building C object CMakeFiles/event_core_static.dir/evthread.c.o
[10/77] Building C object CMakeFiles/event_core_static.dir/bufferevent_sock.c.o
[11/77] Building C object CMakeFiles/event_core_static.dir/evmap.c.o
[12/77] Building C object CMakeFiles/event_core_static.dir/evutil_rand.c.o
[13/77] Building C object CMakeFiles/event_core_static.dir/evutil_time.c.o
[14/77] Building C object CMakeFiles/event_core_static.dir/evutil.c.o
[15/77] Building C object CMakeFiles/event_core_static.dir/listener.c.o
[16/77] Building C object CMakeFiles/event_core_static.dir/watch.c.o
[17/77] Building C object CMakeFiles/event_core_static.dir/event.c.o
[18/77] Building C object CMakeFiles/event_core_static.dir/log.c.o
[19/77] Building C object CMakeFiles/event_core_static.dir/strlcpy.c.o
[20/77] Building C object CMakeFiles/event_core_static.dir/signal.c.o
[21/77] Building C object CMakeFiles/event_core_static.dir/select.c.o
[22/77] Building C object CMakeFiles/event_pthreads_static.dir/evthread_pthread.c.o
[23/77] Building C object CMakeFiles/event_core_static.dir/epoll.c.o
[24/77] Building C object CMakeFiles/event_core_static.dir/poll.c.o
[25/77] Linking C static library lib/libevent_core.a
[26/77] Building C object CMakeFiles/event_extra_static.dir/event_tagging.c.o
[27/77] Linking C static library lib/libevent_pthreads.a
[28/77] Building C object CMakeFiles/event_extra_static.dir/evrpc.c.o
[29/77] Building C object CMakeFiles/event_static.dir/bufferevent_filter.c.o
[30/77] Building C object CMakeFiles/event_static.dir/bufferevent_pair.c.o
[31/77] Building C object CMakeFiles/event_extra_static.dir/http.c.o
[32/77] Building C object CMakeFiles/event_static.dir/buffer.c.o
[33/77] Building C object CMakeFiles/event_static.dir/bufferevent.c.o
[34/77] Building C object CMakeFiles/event_extra_static.dir/evdns.c.o
[35/77] Linking C static library lib/libevent_extra.a
[36/77] Building C object CMakeFiles/event_static.dir/bufferevent_ratelim.c.o
[37/77] Building C object CMakeFiles/event_static.dir/bufferevent_sock.c.o
[38/77] Linking C executable bin/bench_cascade
FAILED: bin/bench_cascade
: && /usr/bin/clang -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -fcolor-diagnostics -fno-omit-frame-pointer -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -fPIC -fexceptions -fdiagnostics-color=always -Wall -Wextra -Wno-unused-parameter -Wstrict-aliasing -Wstrict-prototypes -fno-strict-aliasing -Wmissing-prototypes -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement -Waddress -Wwrite-strings -Wno-unused-function  -fuse-ld=/usr/bin/ld.gold -Wl,-no-as-needed -Wl,-z,relro,-z,now -B/usr/bin -lm -l:libstdc++.a -fuse-ld=lld   -rdynamic CMakeFiles/bench_cascade.dir/test/bench_cascade.c.o  -o bin/bench_cascade  -lpthread lib/libevent_extra.a lib/libevent_core.a -lpthread && :
clang: error: invalid linker name in argument '-fuse-ld=lld'
[39/77] Building C object CMakeFiles/event_static.dir/evthread.c.o
[40/77] Linking C executable bin/bench
FAILED: bin/bench
: && /usr/bin/clang -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -fcolor-diagnostics -fno-omit-frame-pointer -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -fPIC -fexceptions -fdiagnostics-color=always -Wall -Wextra -Wno-unused-parameter -Wstrict-aliasing -Wstrict-prototypes -fno-strict-aliasing -Wmissing-prototypes -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement -Waddress -Wwrite-strings -Wno-unused-function  -fuse-ld=/usr/bin/ld.gold -Wl,-no-as-needed -Wl,-z,relro,-z,now -B/usr/bin -lm -l:libstdc++.a -fuse-ld=lld   -rdynamic CMakeFiles/bench.dir/test/bench.c.o  -o bin/bench  -lpthread lib/libevent_extra.a lib/libevent_core.a -lpthread && :
clang: error: invalid linker name in argument '-fuse-ld=lld'
[41/77] Building C object CMakeFiles/event_static.dir/evmap.c.o
[42/77] Linking C executable bin/bench_httpclient
FAILED: bin/bench_httpclient
: && /usr/bin/clang -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -fcolor-diagnostics -fno-omit-frame-pointer -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -fPIC -fexceptions -fdiagnostics-color=always -Wall -Wextra -Wno-unused-parameter -Wstrict-aliasing -Wstrict-prototypes -fno-strict-aliasing -Wmissing-prototypes -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement -Waddress -Wwrite-strings -Wno-unused-function  -fuse-ld=/usr/bin/ld.gold -Wl,-no-as-needed -Wl,-z,relro,-z,now -B/usr/bin -lm -l:libstdc++.a -fuse-ld=lld   -rdynamic CMakeFiles/bench_httpclient.dir/test/bench_httpclient.c.o  -o bin/bench_httpclient  -lpthread lib/libevent_extra.a lib/libevent_core.a -lpthread && :
clang: error: invalid linker name in argument '-fuse-ld=lld'
[43/77] Building C object CMakeFiles/event_static.dir/event.c.o
ninja: build stopped: subcommand failed.
_____ END BUILD LOGS _____
rules_foreign_cc: Build wrapper script location: bazel-out/k8-fastbuild/bin/external/envoy/bazel/foreign_cc/event_foreign_cc/wrapper_build_script.sh
rules_foreign_cc: Build script location: bazel-out/k8-fastbuild/bin/external/envoy/bazel/foreign_cc/event_foreign_cc/build_script.sh
rules_foreign_cc: Build log location: bazel-out/k8-fastbuild/bin/external/envoy/bazel/foreign_cc/event_foreign_cc/CMake.log

Target //:nighthawk failed to build
INFO: Elapsed time: 277.252s, Critical Path: 20.02s
INFO: 642 processes: 53 internal, 589 linux-sandbox.
FAILED: Build did NOT complete successfully

@mum4k
Copy link
Collaborator

mum4k commented Apr 19, 2022

Thank you for including the details. The problem here is that Ubuntu 18.04 LTS defaults to Clang/LLVM 6+, while building Envoy according to their documentation requires Clang/LLVM 7+ with Clang/LLVM 9+ preferred. I haven't been able to build Envoy with anything below Clang/LLVM 12+. Note that Nighthawk uses Envoy internals, so building Envoy is a prerequisite to building Nighthawk.

I would recommend building on a newer version of Ubuntu, since there isn't an obvious way of installing Clang/LLVM 12+ on Ubuntu 18.04 LTS (at least I didn't find one). I tested this on a fresh install of Ubuntu 20.04 LTS server. These are the steps I executed to get to a working build. These steps were run after the steps from your last comment here.

  1. Install lld which seems to be missing from the instructions:
sudo apt install lld
  1. Install Clang/LLVM 12+:
sudo apt install -y clang-12 llvm-12 lld-12 lldb-12
sudo apt install clang-{format,tidy,tools}-12 clang-12-doc clang-12-examples
  1. Switch the system to using Clang/LLVM 12+ by default. I prefer using update-alternatives, i.e. commands from a script like this one, just changing the version to 12. This is what I executed:
sudo update-alternatives --remove-all llvm
sudo update-alternatives --remove-all clang

# llvm-12 and clang-12
sudo update-alternatives \
  --install /usr/lib/llvm              llvm             /usr/lib/llvm-12  20 \
  --slave   /usr/bin/llvm-config       llvm-config      /usr/bin/llvm-config-12  \
	--slave   /usr/bin/llvm-ar           llvm-ar          /usr/bin/llvm-ar-12 \
	--slave   /usr/bin/llvm-as           llvm-as          /usr/bin/llvm-as-12 \
	--slave   /usr/bin/llvm-bcanalyzer   llvm-bcanalyzer  /usr/bin/llvm-bcanalyzer-12 \
	--slave   /usr/bin/llvm-cov          llvm-cov         /usr/bin/llvm-cov-12 \
	--slave   /usr/bin/llvm-diff         llvm-diff        /usr/bin/llvm-diff-12 \
	--slave   /usr/bin/llvm-dis          llvm-dis         /usr/bin/llvm-dis-12 \
	--slave   /usr/bin/llvm-dwarfdump    llvm-dwarfdump   /usr/bin/llvm-dwarfdump-12 \
	--slave   /usr/bin/llvm-extract      llvm-extract     /usr/bin/llvm-extract-12 \
	--slave   /usr/bin/llvm-link         llvm-link        /usr/bin/llvm-link-12 \
	--slave   /usr/bin/llvm-mc           llvm-mc          /usr/bin/llvm-mc-12 \
	--slave   /usr/bin/llvm-mcmarkup     llvm-mcmarkup    /usr/bin/llvm-mcmarkup-12 \
	--slave   /usr/bin/llvm-nm           llvm-nm          /usr/bin/llvm-nm-12 \
	--slave   /usr/bin/llvm-objdump      llvm-objdump     /usr/bin/llvm-objdump-12 \
	--slave   /usr/bin/llvm-ranlib       llvm-ranlib      /usr/bin/llvm-ranlib-12 \
	--slave   /usr/bin/llvm-readobj      llvm-readobj     /usr/bin/llvm-readobj-12 \
	--slave   /usr/bin/llvm-rtdyld       llvm-rtdyld      /usr/bin/llvm-rtdyld-12 \
	--slave   /usr/bin/llvm-size         llvm-size        /usr/bin/llvm-size-12 \
	--slave   /usr/bin/llvm-stress       llvm-stress      /usr/bin/llvm-stress-12 \
	--slave   /usr/bin/llvm-symbolizer   llvm-symbolizer  /usr/bin/llvm-symbolizer-12 \
	--slave   /usr/bin/llvm-tblgen       llvm-tblgen      /usr/bin/llvm-tblgen-12

sudo update-alternatives \
  --install /usr/bin/clang                 clang                  /usr/bin/clang-12     20 \
  --slave   /usr/bin/clang++               clang++                /usr/bin/clang++-12 \
  --slave   /usr/bin/lld                   lld                    /usr/bin/lld-12 \
  --slave   /usr/bin/clang-format          clang-format           /usr/bin/clang-format-12  \
  --slave   /usr/bin/clang-tidy            clang-tidy             /usr/bin/clang-tidy-12  \
  --slave   /usr/bin/clang-tidy-diff.py    clang-tidy-diff.py     /usr/bin/clang-tidy-diff-12.py \
  --slave   /usr/bin/clang-include-fixer   clang-include-fixer    /usr/bin/clang-include-fixer-12 \
  --slave   /usr/bin/clang-offload-bundler clang-offload-bundler  /usr/bin/clang-offload-bundler-12 \
  --slave   /usr/bin/clangd                clangd                 /usr/bin/clangd-12 \
  --slave   /usr/bin/clang-check           clang-check            /usr/bin/clang-check-12 \
  --slave   /usr/bin/scan-view             scan-view              /usr/bin/scan-view-12 \
  --slave   /usr/bin/clang-apply-replacements clang-apply-replacements /usr/bin/clang-apply-replacements-12 \
  --slave   /usr/bin/clang-query           clang-query            /usr/bin/clang-query-12 \
  --slave   /usr/bin/modularize            modularize             /usr/bin/modularize-12 \
  --slave   /usr/bin/sancov                sancov                 /usr/bin/sancov-12 \
  --slave   /usr/bin/c-index-test          c-index-test           /usr/bin/c-index-test-12 \
  --slave   /usr/bin/clang-reorder-fields  clang-reorder-fields   /usr/bin/clang-reorder-fields-12 \
  --slave   /usr/bin/clang-change-namespace clang-change-namespace  /usr/bin/clang-change-namespace-12 \
  --slave   /usr/bin/clang-import-test     clang-import-test      /usr/bin/clang-import-test-12 \
  --slave   /usr/bin/scan-build            scan-build             /usr/bin/scan-build-12 \
  --slave   /usr/bin/scan-build-py         scan-build-py          /usr/bin/scan-build-py-12 \
  --slave   /usr/bin/clang-cl              clang-cl               /usr/bin/clang-cl-12 \
  --slave   /usr/bin/clang-rename          clang-rename           /usr/bin/clang-rename-12 \
  --slave   /usr/bin/find-all-symbols      find-all-symbols       /usr/bin/find-all-symbols-12 \
  --slave   /usr/bin/lldb                  lldb                   /usr/bin/lldb-12 \
  --slave   /usr/bin/lldb-server           lldb-server            /usr/bin/lldb-server-12
  1. Verify we are using Clang/LLVM 12+:
$ clang -v
Ubuntu clang version 12.0.0-3ubuntu1~20.04.5
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/9
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/9
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/9
Candidate multilib: .;@m64
Selected multilib: .;@m64
  1. Completely expunge bazel cache after the Clang / LLVM version change:
$ bazel clean --expunge
$ bazel shutdown
  1. Run the build command.
$ ci/do_ci.sh build
clang/clang++ toolchain configured
INFO: Analyzed target //:nighthawk (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
Target //:nighthawk up-to-date:
  bazel-bin/nighthawk_adaptive_load_client
  bazel-bin/nighthawk_client
  bazel-bin/nighthawk_output_transform
  bazel-bin/nighthawk_service
  bazel-bin/nighthawk_test_server

< ... output redacted ... >

INFO: Elapsed time: 707.858s, Critical Path: 46.60s
INFO: 2324 processes: 12 internal, 2312 linux-sandbox.
INFO: Build completed successfully, 2324 total actions
INFO: Analyzed target //tools:update_cli_readme_documentation (4 packages loaded, 16 targets configured).
INFO: Found 1 target...
Target //tools:update_cli_readme_documentation up-to-date:
  bazel-bin/tools/update_cli_readme_documentation
INFO: Elapsed time: 0.614s, Critical Path: 0.02s
INFO: 6 processes: 6 internal.
INFO: Build completed successfully, 6 total actions
INFO: Build completed successfully, 6 total actions

@k0eff
Copy link
Author

k0eff commented Apr 20, 2022

Nighthawk was built successfully! Hooray!
Here are the details and thank you for your explanation @mum4k

Target //:nighthawk up-to-date:
  bazel-bin/nighthawk_adaptive_load_client
  bazel-bin/nighthawk_client
  bazel-bin/nighthawk_output_transform
  bazel-bin/nighthawk_service
  bazel-bin/nighthawk_test_server
INFO: Elapsed time: 3044.729s, Critical Path: 141.91s
INFO: 3376 processes: 101 internal, 3275 linux-sandbox.
INFO: Build completed successfully, 3376 total actions
INFO: Analyzed target //tools:update_cli_readme_documentation (4 packages loaded, 16 targets configured).
INFO: Found 1 target...
Target //tools:update_cli_readme_documentation up-to-date:
  bazel-bin/tools/update_cli_readme_documentation
INFO: Elapsed time: 2.462s, Critical Path: 0.05s
INFO: 6 processes: 6 internal.
INFO: Build completed successfully, 6 total actions
INFO: Build completed successfully, 6 total actions
/usr/bin/env: 'python': No such file or directory

This is the cloudinit script which provisions everything needed on Ubuntu 20.04

# Using Ubuntu 20.04
sudo apt-get install -y autoconf automake cmake curl libtool make ninja-build patch python3-pip unzip virtualenv clang 
sudo apt install -y lld clang-12 llvm-12 lld-12 lldb-12
sudo apt install -y clang-{format,tidy,tools}-12 clang-12-doc clang-12-examples
sudo update-alternatives \
  --install /usr/lib/llvm              llvm             /usr/lib/llvm-12  20 \
  --slave   /usr/bin/llvm-config       llvm-config      /usr/bin/llvm-config-12  \
	--slave   /usr/bin/llvm-ar           llvm-ar          /usr/bin/llvm-ar-12 \
	--slave   /usr/bin/llvm-as           llvm-as          /usr/bin/llvm-as-12 \
	--slave   /usr/bin/llvm-bcanalyzer   llvm-bcanalyzer  /usr/bin/llvm-bcanalyzer-12 \
	--slave   /usr/bin/llvm-cov          llvm-cov         /usr/bin/llvm-cov-12 \
	--slave   /usr/bin/llvm-diff         llvm-diff        /usr/bin/llvm-diff-12 \
	--slave   /usr/bin/llvm-dis          llvm-dis         /usr/bin/llvm-dis-12 \
	--slave   /usr/bin/llvm-dwarfdump    llvm-dwarfdump   /usr/bin/llvm-dwarfdump-12 \
	--slave   /usr/bin/llvm-extract      llvm-extract     /usr/bin/llvm-extract-12 \
	--slave   /usr/bin/llvm-link         llvm-link        /usr/bin/llvm-link-12 \
	--slave   /usr/bin/llvm-mc           llvm-mc          /usr/bin/llvm-mc-12 \
	--slave   /usr/bin/llvm-mcmarkup     llvm-mcmarkup    /usr/bin/llvm-mcmarkup-12 \
	--slave   /usr/bin/llvm-nm           llvm-nm          /usr/bin/llvm-nm-12 \
	--slave   /usr/bin/llvm-objdump      llvm-objdump     /usr/bin/llvm-objdump-12 \
	--slave   /usr/bin/llvm-ranlib       llvm-ranlib      /usr/bin/llvm-ranlib-12 \
	--slave   /usr/bin/llvm-readobj      llvm-readobj     /usr/bin/llvm-readobj-12 \
	--slave   /usr/bin/llvm-rtdyld       llvm-rtdyld      /usr/bin/llvm-rtdyld-12 \
	--slave   /usr/bin/llvm-size         llvm-size        /usr/bin/llvm-size-12 \
	--slave   /usr/bin/llvm-stress       llvm-stress      /usr/bin/llvm-stress-12 \
	--slave   /usr/bin/llvm-symbolizer   llvm-symbolizer  /usr/bin/llvm-symbolizer-12 \
	--slave   /usr/bin/llvm-tblgen       llvm-tblgen      /usr/bin/llvm-tblgen-12

sudo update-alternatives \
  --install /usr/bin/clang                 clang                  /usr/bin/clang-12     20 \
  --slave   /usr/bin/clang++               clang++                /usr/bin/clang++-12 \
  --slave   /usr/bin/lld                   lld                    /usr/bin/lld-12 \
  --slave   /usr/bin/clang-format          clang-format           /usr/bin/clang-format-12  \
  --slave   /usr/bin/clang-tidy            clang-tidy             /usr/bin/clang-tidy-12  \
  --slave   /usr/bin/clang-tidy-diff.py    clang-tidy-diff.py     /usr/bin/clang-tidy-diff-12.py \
  --slave   /usr/bin/clang-include-fixer   clang-include-fixer    /usr/bin/clang-include-fixer-12 \
  --slave   /usr/bin/clang-offload-bundler clang-offload-bundler  /usr/bin/clang-offload-bundler-12 \
  --slave   /usr/bin/clangd                clangd                 /usr/bin/clangd-12 \
  --slave   /usr/bin/clang-check           clang-check            /usr/bin/clang-check-12 \
  --slave   /usr/bin/scan-view             scan-view              /usr/bin/scan-view-12 \
  --slave   /usr/bin/clang-apply-replacements clang-apply-replacements /usr/bin/clang-apply-replacements-12 \
  --slave   /usr/bin/clang-query           clang-query            /usr/bin/clang-query-12 \
  --slave   /usr/bin/modularize            modularize             /usr/bin/modularize-12 \
  --slave   /usr/bin/sancov                sancov                 /usr/bin/sancov-12 \
  --slave   /usr/bin/c-index-test          c-index-test           /usr/bin/c-index-test-12 \
  --slave   /usr/bin/clang-reorder-fields  clang-reorder-fields   /usr/bin/clang-reorder-fields-12 \
  --slave   /usr/bin/clang-change-namespace clang-change-namespace  /usr/bin/clang-change-namespace-12 \
  --slave   /usr/bin/clang-import-test     clang-import-test      /usr/bin/clang-import-test-12 \
  --slave   /usr/bin/scan-build            scan-build             /usr/bin/scan-build-12 \
  --slave   /usr/bin/scan-build-py         scan-build-py          /usr/bin/scan-build-py-12 \
  --slave   /usr/bin/clang-cl              clang-cl               /usr/bin/clang-cl-12 \
  --slave   /usr/bin/clang-rename          clang-rename           /usr/bin/clang-rename-12 \
  --slave   /usr/bin/find-all-symbols      find-all-symbols       /usr/bin/find-all-symbols-12 \
  --slave   /usr/bin/lldb                  lldb                   /usr/bin/lldb-12 \
  --slave   /usr/bin/lldb-server           lldb-server            /usr/bin/lldb-server-12

clang -v


# Install bazelisk instead of bazel
sudo wget -O /usr/local/bin/bazel https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-$([ $(uname -m) = "aarch64" ] && echo "arm64" || echo "amd64")
sudo chmod +x /usr/local/bin/bazel



# Envoy Nighthawk setup
git clone https://github.com/envoyproxy/nighthawk
cd nighthawk/
git checkout ba3b5d0bcc57c334f34e1c323c6bb564781caa60
echo "build --config=clang" >> user.bazelrc


# ci/do_ci.sh build # Run it manually as it takes around 1 hour

@k0eff
Copy link
Author

k0eff commented Apr 20, 2022

Just for the protocol... something that's not obvious in the documentation ->

Once there is a successful build one needs to run:

<repo_dir>/bazel-bin/nighthawk_client --help

@mum4k
Copy link
Collaborator

mum4k commented Apr 21, 2022

Thank you for confirming @k0eff. I have prepared #838 that updates the instructions in our README. Please feel free to review and comment.

I also opened layer5io/getnighthawk#262 to discuss how to update the instructions on the getnighthawk page.

mum4k added a commit that referenced this issue Apr 22, 2022
Addresses concerns raised in #832 and #833.

Signed-off-by: Jakub Sobon <[email protected]>
@mum4k
Copy link
Collaborator

mum4k commented Apr 28, 2022

Closing this as we have addressed it in the Nighthawk's documentation.

Once again thank you for reporting this @k0eff.

@mum4k mum4k closed this as completed Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants