Envoy Setup error in Mac m3 pro

13 views
Skip to first unread message

Lakshmanan Narayanan

unread,
Aug 4, 2024, 9:35:11 PMAug 4
to envoy-dev

Hi Team,
 

I am trying to setup envoy in my mac m3 pro and I am new to envoy.

 

Initially I was getting error in <source>/contrib/hyperscan where the BUILD reported condition does not match for the OS I was using. Hence I tried adding

 

"//conditions:default": [

        ],

 

In below files. envoy/contrib/hyperscan/regex_engines/source/BUILD and /envoy/contrib/hyperscan/matching/input_matchers/test/BUILD

 

I was just trying to avoid that error and it worked.

 

Then I am stuck at this error.

 

+ /private/tmp/envoy-compdb/_bazel_lakshmanan/cc82a613c06445c6d9370455207c94b0/sandbox/darwin-sandbox/12/execroot/envoy/bazel-out/darwin_arm64-opt-exec-2B5CBBC6/bin/external/rules_foreign_cc/toolchains/private/make/bin/make lib MOREFLAGS=-fPIC BUILD_SHARED=no PREFIX=/private/tmp/envoy-compdb/_bazel_lakshmanan/cc82a613c06445c6d9370455207c94b0/sandbox/darwin-sandbox/12/execroot/envoy/bazel-out/darwin_arm64-fastbuild/bin/external/envoy/bazel/foreign_cc/lz4

make[1]: Entering directory '/private/tmp/envoy-compdb/_bazel_lakshmanan/cc82a613c06445c6d9370455207c94b0/sandbox/darwin-sandbox/12/execroot/envoy/external/com_github_lz4_lz4/lib'

compiling static library

error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: no output file specified (specify with -o output)

Usage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-sacLT] [-no_warning_for_no_symbols]

Usage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -dynamic [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name] [-compatibility_version #] [-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [-seg_addr_table <filename>] [-seg_addr_table_filename <file_system_path>] [-all_load] [-noall_load]

make[1]: *** [Makefile:105: liblz4.a] Error 1

make[1]: Leaving directory '/private/tmp/envoy-compdb/_bazel_lakshmanan/cc82a613c06445c6d9370455207c94b0/sandbox/darwin-sandbox/12/execroot/envoy/external/com_github_lz4_lz4/lib'

make: *** [Makefile:57: liblz4.a] Error 2

_____ END BUILD LOGS _____

rules_foreign_cc: Build wrapper script location: bazel-out/darwin_arm64-fastbuild/bin/external/envoy/bazel/foreign_cc/lz4_foreign_cc/wrapper_build_script.sh

rules_foreign_cc: Build script location: bazel-out/darwin_arm64-fastbuild/bin/external/envoy/bazel/foreign_cc/lz4_foreign_cc/build_script.sh

rules_foreign_cc: Build log location: bazel-out/darwin_arm64-fastbuild/bin/external/envoy/bazel/foreign_cc/lz4_foreign_cc/Make.log

 

Can some one please let me know how to avoid this error and run tools/vscode/refresh_compdb.sh successfully ?

I am following this page for setting up

 

https://github.com/envoyproxy/envoy/blob/main/tools/vscode/README.md

 

I am not using the devcontainer yet. 

Lakshmanan Narayanan

unread,
Aug 6, 2024, 3:44:26 AMAug 6
to envoy-dev
The Devcontainer is having the below issue
https://github.com/envoyproxy/envoy-build-tools/issues/311
Reply all
Reply to author
Forward
0 new messages