Skip to content

Instantly share code, notes, and snippets.

@stanpalatnik
Created October 10, 2023 15:54
Show Gist options
  • Save stanpalatnik/fa52de67632ca8f7b7fcddd3c89169df to your computer and use it in GitHub Desktop.
Save stanpalatnik/fa52de67632ca8f7b7fcddd3c89169df to your computer and use it in GitHub Desktop.
BUILD_WITH_CONTAINER=1 TARGET_OS=linux make build_wasm build build_envoy exportcache
export PATH=/usr/lib/llvm/bin:/usr/local/go/bin:/gobin:/usr/local/google-cloud-sdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CC=clang CXX=clang++ && bazel build --config=libc++ --config=release //extensions:metadata_exchange.wasm
Starting local Bazel server and connecting to it...
INFO: Analyzed target //extensions:metadata_exchange.wasm (184 packages loaded, 20750 targets configured).
INFO: Found 1 target...
ERROR: /home/.cache/bazel/_bazel_root/1e0bb3bee2d09d2e4ad3523530d3b40c/external/com_github_google_flatbuffers/src/BUILD.bazel:9:11: Compiling src/util.cpp [for tool] failed: (Exit 1): clang-12 failed: error executing command (from target @com_github_google_flatbuffers//src:flatbuffers) /usr/lib/llvm/bin/clang-12 -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -Wno-free-nonheap-object -fcolor-diagnostics -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' ... (remaining 26 arguments skipped)
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
src/main/tools/process-wrapper-legacy.cc:80: "execvp(/usr/lib/llvm/bin/clang-12, ...)": No such file or directory
Target //extensions:metadata_exchange.wasm failed to build
Use --verbose_failures to see the command lines of failed build steps.
ERROR: /work/extensions/common/BUILD:162:11 Middleman _middlemen/_S_Sextensions_Scommon_Cnode_Uinfo_Ufb_Ucc-cc_library-compile failed: (Exit 1): clang-12 failed: error executing command (from target @com_github_google_flatbuffers//src:flatbuffers) /usr/lib/llvm/bin/clang-12 -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -Wno-free-nonheap-object -fcolor-diagnostics -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' ... (remaining 26 arguments skipped)
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
INFO: Elapsed time: 4.128s, Critical Path: 0.19s
INFO: 11 processes: 11 internal.
FAILED: Build did NOT complete successfully
Makefile.core.mk:87: recipe for target 'build_wasm' failed
make[1]: *** [build_wasm] Error 1
make: *** [Makefile:44: build_wasm] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment