We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
build failed under my machine
Description:
Linux sxf-VirtualBox 5.8.0-55-generic #62~20.04.1-Ubuntu SMP Wed Jun 2 08:55:04 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
git branch: v1.18.3
root@sxf-VirtualBox:~/data/envoy# bazel build -c opt //source/exe:envoy-static Starting local Bazel server and connecting to it... ... still trying to connect to local Bazel server after 10 seconds ... INFO: SHA256 (https://golang.org/dl/?mode=json&include=all) = 6efc06a1bd0a710df5cbaa2fd314f9a3f702f7d9cd59ee2bd53c2a02aa8c4475 INFO: Analyzed target //source/exe:envoy-static (811 packages loaded, 42436 targets configured). INFO: Found 1 target... ERROR: /root/.cache/bazel/_bazel_sxf/a679faf35b0885b1980141e056332896/external/envoy/bazel/foreign_cc/BUILD:349:21: error executing shell command: '/bin/bash -c #!/usr/bin/env bash function cleanup_function() { local ecode=$? if [ $ecode -eq 0 ]; then cleanup_on_success else cleanup_on_failure fi } set -e function cleanup_on_success() { printf...' failed (Exit 127): bash failed: error executing command /bin/bash -c ... (remaining 1 argument(s) skipped) Use --sandbox_debug to see verbose messages from the sandbox bash failed: error executing command /bin/bash -c ... (remaining 1 argument(s) skipped) 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 #0.0.8. Building library 'zlib' Environment:______________ BUILD_SCRIPT=bazel-out/host/bin/external/envoy/bazel/foreign_cc/zlib/logs/CMake_script.sh EXT_BUILD_ROOT=/root/.cache/bazel/_bazel_sxf/a679faf35b0885b1980141e056332896/sandbox/linux-sandbox/11/execroot/envoy BUILD_LOG=bazel-out/host/bin/external/envoy/bazel/foreign_cc/zlib/logs/CMake.log PWD=/root/.cache/bazel/_bazel_sxf/a679faf35b0885b1980141e056332896/sandbox/linux-sandbox/11/execroot/envoy TMPDIR=/tmp EXT_BUILD_DEPS=/tmp/tmp.ctLMi5W1dT BUILD_TMPDIR=/tmp/tmp.q2kIldxpLc SHLVL=2 INSTALLDIR=/root/.cache/bazel/_bazel_sxf/a679faf35b0885b1980141e056332896/sandbox/linux-sandbox/11/execroot/envoy/bazel-out/host/bin/external/envoy/bazel/foreign_cc/zlib PATH=/root/.cache/bazel/_bazel_sxf/a679faf35b0885b1980141e056332896/sandbox/linux-sandbox/11/execroot/envoy:/bin:/usr/bin:/usr/local/bin _=/bin/env __________________________ bazel-out/host/bin/external/envoy/bazel/foreign_cc/zlib/logs/CMake_script.sh: line 36: cmake: command not found _____ END BUILD LOGS _____ Printing build script: _____ BEGIN BUILD SCRIPT _____ #!/usr/bin/env bash function children_to_path() { if [ -d $EXT_BUILD_DEPS/bin ]; then local tools=$(find $EXT_BUILD_DEPS/bin -maxdepth 1 -mindepth 1) for tool in $tools; do if [[ -d "$tool" ]] || [[ -L "$tool" ]]; then export PATH=$PATH:$tool fi done fi } function replace_in_files() { if [ -d "$1" ]; then find -L $1 -type f \( -name "*.pc" -or -name "*.la" -or -name "*-config" -or -name "*.cmake" \) -exec sed -i 's@'"$2"'@'"$3"'@g' {} ';' fi } printf "" printf "Bazel external C/C++ Rules #0.0.8. Building library 'zlib'\n" printf "" set -e export EXT_BUILD_ROOT=$(pwd) export BUILD_TMPDIR=$(mktemp -d) export EXT_BUILD_DEPS=$(mktemp -d) export INSTALLDIR=$EXT_BUILD_ROOT/bazel-out/host/bin/external/envoy/bazel/foreign_cc/zlib export PATH="$EXT_BUILD_ROOT:$PATH" mkdir -p $INSTALLDIR printf "Environment:______________\n" env printf "__________________________\n" children_to_path $EXT_BUILD_DEPS/bin export PATH="$EXT_BUILD_DEPS/bin:$PATH" cd $BUILD_TMPDIR export INSTALL_PREFIX="zlib" CC="/usr/bin/gcc" CXX="/usr/bin/gcc" CFLAGS="-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 -fdata-sections -fno-canonical-system-headers -Wno-builtin-macro-redefined -D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\"" CXXFLAGS="-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 -fdata-sections -std=c++0x -fno-canonical-system-headers -Wno-builtin-macro-redefined -D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\"" ASMFLAGS="-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 -fdata-sections -fno-canonical-system-headers -Wno-builtin-macro-redefined -D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\"" cmake -DCMAKE_AR="/usr/bin/ar" -DCMAKE_SHARED_LINKER_FLAGS="-shared -fuse-ld=gold -Wl,-no-as-needed -Wl,-z,relro,-z,now -B/usr/bin -pass-exit-codes -lm -Wl,--gc-sections -l:libstdc++.a" -DCMAKE_EXE_LINKER_FLAGS="-fuse-ld=gold -Wl,-no-as-needed -Wl,-z,relro,-z,now -B/usr/bin -pass-exit-codes -lm -Wl,--gc-sections -l:libstdc++.a" -DCMAKE_CXX_COMPILER_FORCED="on" -DCMAKE_C_COMPILER_FORCED="on" -DSKIP_BUILD_EXAMPLES="on" -DBUILD_SHARED_LIBS="off" -DZLIB_COMPAT="on" -DZLIB_ENABLE_TESTS="off" -DWITH_OPTIM="on" -DWITH_SSE4="off" -DWITH_NEW_STRATEGIES="off" -DUNALIGNED_OK="off" -DCMAKE_BUILD_TYPE="Bazel" -DCMAKE_PREFIX_PATH="$EXT_BUILD_DEPS" -DCMAKE_INSTALL_PREFIX="$INSTALL_PREFIX" -DCMAKE_RANLIB="" -GNinja $EXT_BUILD_ROOT/external/net_zlib ninja -v ninja -v install cp -L -r --no-target-directory "$BUILD_TMPDIR/$INSTALL_PREFIX" "$INSTALLDIR" replace_in_files $INSTALLDIR $BUILD_TMPDIR \${EXT_BUILD_DEPS} replace_in_files $INSTALLDIR $EXT_BUILD_DEPS \${EXT_BUILD_DEPS} mkdir -p $EXT_BUILD_ROOT/bazel-out/host/bin/external/envoy/bazel/foreign_cc/copy_zlib/zlib cp -L -r --no-target-directory "$INSTALLDIR" "$EXT_BUILD_ROOT/bazel-out/host/bin/external/envoy/bazel/foreign_cc/copy_zlib/zlib" touch $EXT_BUILD_ROOT/bazel-out/host/bin/external/envoy/bazel/foreign_cc/empty_zlib.txt cd $EXT_BUILD_ROOT _____ END BUILD SCRIPT _____ rules_foreign_cc: Build script location: bazel-out/host/bin/external/envoy/bazel/foreign_cc/zlib/logs/CMake_script.sh rules_foreign_cc: Build log location: bazel-out/host/bin/external/envoy/bazel/foreign_cc/zlib/logs/CMake.log Target //source/exe:envoy-static failed to build Use --verbose_failures to see the command lines of failed build steps. ERROR: /root/.cache/bazel/_bazel_sxf/a679faf35b0885b1980141e056332896/external/envoy_api/envoy/annotations/BUILD:5:18 error executing shell command: '/bin/bash -c #!/usr/bin/env bash function cleanup_function() { local ecode=$? if [ $ecode -eq 0 ]; then cleanup_on_success else cleanup_on_failure fi } set -e function cleanup_on_success() { printf...' failed (Exit 127): bash failed: error executing command /bin/bash -c ... (remaining 1 argument(s) skipped) Use --sandbox_debug to see verbose messages from the sandbox bash failed: error executing command /bin/bash -c ... (remaining 1 argument(s) skipped) Use --sandbox_debug to see verbose messages from the sandbox INFO: Elapsed time: 146.969s, Critical Path: 5.09s INFO: 30 processes: 20 internal, 10 linux-sandbox. FAILED: Build did NOT complete successfully
install document: https://github.com/envoyproxy/envoy/blob/a0ca08b69974cc0296e242bfb1c2d4e252d832b5/bazel/README.md
The text was updated successfully, but these errors were encountered:
bazel-out/host/bin/external/envoy/bazel/foreign_cc/zlib/logs/CMake_script.sh: line 36: cmake: command not found
Seems miss some commands.
Sorry, something went wrong.
No branches or pull requests
build failed under my machine
Description:
Linux sxf-VirtualBox 5.8.0-55-generic #62~20.04.1-Ubuntu SMP Wed Jun 2 08:55:04 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
git branch: v1.18.3
install document: https://github.com/envoyproxy/envoy/blob/a0ca08b69974cc0296e242bfb1c2d4e252d832b5/bazel/README.md
The text was updated successfully, but these errors were encountered: