Git Product home page Git Product logo

istio-envoy-arm64's People

Contributors

dependabot[bot] avatar morlay avatar renovate-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

istio-envoy-arm64's Issues

Docs

Could I ask you kindly to provide detailed documentation how to compile Istio on ARM64?

medium post with a tutorial or something :-) ?

miss error when build in arm linux

Loading: 0 packages loaded
currently loading: src/envoy
Analyzing: target //src/envoy:envoy (1 packages loaded, 0 targets configured)
WARNING: /root/.cache/bazel/_bazel_root/596b0cd1ad0211ef049437fdd23e86ea/external/remote_java_tools_linux/BUILD:671:1: in hdrs attribute of cc_library rule @remote_java_tools_linux//:combiners: Artifact 'external/remote_java_tools_linux/java_tools/src/tools/singlejar/zip_headers.h' is duplicated (through '@remote_java_tools_linux//:transient_bytes' and '@remote_java_tools_linux//:zip_headers'). Since this rule was created by the macro 'cc_library', the error might have been caused by the macro implementation
Analyzing: target //src/envoy:envoy (640 packages loaded, 29868 targets configured)
Analyzing: target //src/envoy:envoy (648 packages loaded, 32815 targets configured)
INFO: Analyzed target //src/envoy:envoy (649 packages loaded, 36029 targets configured).
INFO: Found 1 target...
[0 / 3] [Prepa] BazelWorkspaceStatusAction stable-status.txt
INFO: From Executing genrule @com_lightstep_tracer_cpp//:generate_version_h:
CMake Warning at CMakeLists.txt:74 (message):
WITH_GRPC is not set; building without dynamic loading support.

-- The C compiler identification is Clang 9.0.0
-- The CXX compiler identification is Clang 9.0.0
-- Check for working C compiler: /usr/lib/llvm-9/bin/clang
-- Check for working C compiler: /usr/lib/llvm-9/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/lib/llvm-9/bin/clang++
-- Check for working CXX compiler: /usr/lib/llvm-9/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/tmp.GqM18YeMYn
-- Cache values
BUILD_SHARED_LIBS:BOOL=ON
BUILD_STATIC_LIBS:BOOL=ON
CMAKE_BUILD_TYPE:STRING=
CMAKE_INSTALL_PREFIX:PATH=/usr/local
DEFAULT_SSL_ROOTS_PEM:STRING=
HEADERS_ONLY:BOOL=ON
WITH_CARES:BOOL=OFF
WITH_DYNAMIC_LOAD:BOOL=ON
WITH_GRPC:BOOL=OFF
WITH_LIBEVENT:BOOL=OFF
INFO: From Executing genrule @io_opentracing_cpp//:generate_version_h:
-- The C compiler identification is Clang 9.0.0
-- The CXX compiler identification is Clang 9.0.0
-- Check for working C compiler: /usr/lib/llvm-9/bin/clang
-- Check for working C compiler: /usr/lib/llvm-9/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/lib/llvm-9/bin/clang++
-- Check for working CXX compiler: /usr/lib/llvm-9/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- clang-tidy found: /usr/lib/llvm-9/bin/clang-tidy
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/tmp.c5KWwgNpkf
-- Cache values
BUILD_DYNAMIC_LOADING:BOOL=ON
BUILD_MOCKTRACER:BOOL=OFF
BUILD_SHARED_LIBS:BOOL=ON
BUILD_STATIC_LIBS:BOOL=ON
BUILD_TESTING:BOOL=OFF
CLANG_TIDY_EXE:FILEPATH=/usr/lib/llvm-9/bin/clang-tidy
CMAKE_BUILD_TYPE:STRING=
CMAKE_INSTALL_PREFIX:PATH=/usr/local
ENABLE_LINTING:BOOL=ON
INFO: From CcCmakeMakeRule external/envoy/bazel/foreign_cc/zlib/include [for host]:
rules_foreign_cc: Cleaning temp directories
INFO: From CcCmakeMakeRule external/envoy/bazel/foreign_cc/zlib/include:
[1,219 / 4,559] Compiling external/com_google_protobuf/src/google/protobuf/api.pb.cc [for host]; 1s processwrapper-sandbox ... (8 actions, 7 running)
[1,476 / 4,560] CcCmakeMakeRule external/envoy/bazel/foreign_cc/nghttp2/include; 20s processwrapper-sandbox ... (8 actions, 7 running)
rules_foreign_cc: Cleaning temp directories
INFO: From CcCmakeMakeRule external/envoy/bazel/foreign_cc/nghttp2/include:
rules_foreign_cc: Cleaning temp directories
INFO: From Compiling external/antlr4_runtimes/runtime/Cpp/runtime/src/atn/ParserATNSimulator.cpp:
external/antlr4_runtimes/runtime/Cpp/runtime/src/atn/ParserATNSimulator.cpp:56:42: warning: field 'parser' will be initialized after field 'decisionToDFA' [-Wreorder]
: ATNSimulator(atn, sharedContextCache), parser(parser), decisionToDFA(decisionToDFA) {
^
1 warning generated.
INFO: From Compiling external/antlr4_runtimes/runtime/Cpp/runtime/src/Vocabulary.cpp:
In file included from external/antlr4_runtimes/runtime/Cpp/runtime/src/Vocabulary.cpp:8:
external/antlr4_runtimes/runtime/Cpp/runtime/src/Vocabulary.h:19:17: warning: explicitly defaulted copy assignment operator is implicitly deleted [-Wdefaulted-function-deleted]
Vocabulary& operator=(Vocabulary const&) = default;
^
external/antlr4_runtimes/runtime/Cpp/runtime/src/Vocabulary.h:187:36: note: copy assignment operator of 'Vocabulary' is implicitly deleted because field '_literalNames' has no copy assignment operator
std::vectorstd::string const _literalNames;
^
1 warning generated.
INFO: From Compiling external/antlr4_runtimes/runtime/Cpp/runtime/src/LexerInterpreter.cpp:
In file included from external/antlr4_runtimes/runtime/Cpp/runtime/src/LexerInterpreter.cpp:11:
external/antlr4_runtimes/runtime/Cpp/runtime/src/Vocabulary.h:19:17: warning: explicitly defaulted copy assignment operator is implicitly deleted [-Wdefaulted-function-deleted]
Vocabulary& operator=(Vocabulary const&) = default;
^
external/antlr4_runtimes/runtime/Cpp/runtime/src/Vocabulary.h:187:36: note: copy assignment operator of 'Vocabulary' is implicitly deleted because field '_literalNames' has no copy assignment operator
std::vectorstd::string const _literalNames;
^
1 warning generated.
INFO: From Compiling external/antlr4_runtimes/runtime/Cpp/runtime/src/DiagnosticErrorListener.cpp:
In file included from external/antlr4_runtimes/runtime/Cpp/runtime/src/DiagnosticErrorListener.cpp:7:
external/antlr4_runtimes/runtime/Cpp/runtime/src/atn/ATNConfig.h:90:16: warning: explicitly defaulted copy assignment operator is implicitly deleted [-Wdefaulted-function-deleted]
ATNConfig& operator=(ATNConfig const&) = default;
^
external/antlr4_runtimes/runtime/Cpp/runtime/src/atn/ATNConfig.h:41:18: note: copy assignment operator of 'ATNConfig' is implicitly deleted because field 'alt' is of const-qualified type 'const size_t' (aka 'const unsigned long')
const size_t alt;
^
1 warning generated.
INFO: From Compiling external/antlr4_runtimes/runtime/Cpp/runtime/src/Parser.cpp:
In file included from external/antlr4_runtimes/runtime/Cpp/runtime/src/Parser.cpp:22:
external/antlr4_runtimes/runtime/Cpp/runtime/src/tree/pattern/ParseTreePattern.h:33:23: warning: explicitly defaulted copy assignment operator is implicitly deleted [-Wdefaulted-function-deleted]
ParseTreePattern& operator=(ParseTreePattern const&) = default;
^
external/antlr4_runtimes/runtime/Cpp/runtime/src/tree/pattern/ParseTreePattern.h:92:15: note: copy assignment operator of 'ParseTreePattern' is implicitly deleted because field 'patternRuleIndex' is of const-qualified type 'const int'
const int patternRuleIndex;
^
1 warning generated.
INFO: From Compiling external/antlr4_runtimes/runtime/Cpp/runtime/src/DefaultErrorStrategy.cpp:
In file included from external/antlr4_runtimes/runtime/Cpp/runtime/src/DefaultErrorStrategy.cpp:17:
external/antlr4_runtimes/runtime/Cpp/runtime/src/Vocabulary.h:19:17: warning: explicitly defaulted copy assignment operator is implicitly deleted [-Wdefaulted-function-deleted]
Vocabulary& operator=(Vocabulary const&) = default;
^
external/antlr4_runtimes/runtime/Cpp/runtime/src/Vocabulary.h:187:36: note: copy assignment operator of 'Vocabulary' is implicitly deleted because field '_literalNames' has no copy assignment operator
std::vectorstd::string const _literalNames;
^
1 warning generated.
ERROR: /root/.cache/bazel/_bazel_root/596b0cd1ad0211ef049437fdd23e86ea/external/com_googlesource_chromium_v8/BUILD.bazel:21:1: Executing genrule @com_googlesource_chromium_v8//:build failed (Exit 1) process-wrapper failed: error executing command
(cd /root/.cache/bazel/_bazel_root/596b0cd1ad0211ef049437fdd23e86ea/sandbox/processwrapper-sandbox/624/execroot/io_istio_proxy &&
exec env -
BAZEL_COMPILER=clang
BAZEL_CXXOPTS='-stdlib=libc++'
BAZEL_LINKLIBS=-l%:libc++.a:-l%:libc++abi.a:-lm
BAZEL_LINKOPTS=-lm
CC=clang
CXX=clang++
CXXFLAGS='-stdlib=libc++'
LDFLAGS='-stdlib=libc++'
PATH=/usr/lib/llvm-9/bin:/usr/lib/llvm-9/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
TMPDIR=/tmp
/root/.cache/bazel/_bazel_root/install/f40bcc048855e8aaa3d5878d1079cbde/process-wrapper '--timeout=0' '--kill_delay=15' /bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh; #!/bin/bash

set -e

This works only on Linux-{x86_64,s390x,aarch64} and macOS-x86_64.

case "$(uname -s)-$(uname -m)" in
Linux-x86_64|Linux-s390x|Linux-aarch64|Darwin-x86_64)
;;
*)
echo "ERROR: wee8 is currently supported only on Linux-{x86_64,s390x,aarch64} and macOS-x86_64." >&2
exit 1
esac

Bazel magic.

ROOT=$(dirname external/com_googlesource_chromium_v8/wee8/BUILD.gn)/..
pushd $ROOT/wee8

Clean after previous build.

rm -rf out/wee8

Export compiler configuration.

if [[ ( uname == "Darwin" && ${CXX-} == "" ) || ${CXX-} == "clang" ]]; then
export IS_CLANG=true
export CC=${CC:-clang}
export CXX=${CXX:-clang++}
else
export IS_CLANG=false
export CC=${CC:-gcc}
export CXX=${CXX:-g++}
fi

export AR=${AR:-ar}
export NM=${NM:-nm}

Hook sanitizers.

if [[ ${ENVOY_ASAN-} == "1" ]]; then
WEE8_BUILD_ARGS+=" is_asan=true"
WEE8_BUILD_ARGS+=" is_lsan=true"
fi
if [[ ${ENVOY_UBSAN_VPTR-} == "1" ]]; then
WEE8_BUILD_ARGS+=" is_ubsan=true"
WEE8_BUILD_ARGS+=" is_ubsan_vptr=true"
fi
if [[ ${ENVOY_MSAN-} == "1" ]]; then
WEE8_BUILD_ARGS+=" is_msan=true"
export LDFLAGS="${LDFLAGS} -L/opt/libcxx_msan/lib -Wl,-rpath,/opt/libcxx_msan/lib"
fi
if [[ ${ENVOY_TSAN-} == "1" ]]; then
WEE8_BUILD_ARGS+=" is_tsan=true"
fi

Release build.

WEE8_BUILD_ARGS+=" is_debug=false"

Clang or not Clang, that is the question.

WEE8_BUILD_ARGS+=" is_clang=$IS_CLANG"

Hack to disable bleeding-edge compiler flags.

WEE8_BUILD_ARGS+=" use_xcode_clang=true"

Use local toolchain.

WEE8_BUILD_ARGS+=" custom_toolchain="//build/toolchain/linux/unbundle:default""

Use local stdlibc++ / libc++.

WEE8_BUILD_ARGS+=" use_custom_libcxx=false"

Use local sysroot.

WEE8_BUILD_ARGS+=" use_sysroot=false"

Disable unused GLib2 dependency.

WEE8_BUILD_ARGS+=" use_glib=false"

Expose debug symbols.

WEE8_BUILD_ARGS+=" v8_expose_symbols=true"

Build monolithic library.

WEE8_BUILD_ARGS+=" is_component_build=false"
WEE8_BUILD_ARGS+=" v8_enable_i18n_support=false"
WEE8_BUILD_ARGS+=" v8_enable_gdbjit=false"
WEE8_BUILD_ARGS+=" v8_use_external_startup_data=false"

Disable read-only heap, since it'''s leaky and HEAPCHECK complains about it.

TODO(PiotrSikora): remove when fixed upstream.

WEE8_BUILD_ARGS+=" v8_enable_shared_ro_heap=false"

Support Arm64

if [[ uname -m == "aarch64" ]]; then
WEE8_BUILD_ARGS+=" target_cpu="arm64""
fi

Build wee8.

if [[ "$(uname -s)" == "Darwin" ]]; then
gn=buildtools/mac/gn
ninja=third_party/depot_tools/ninja
elif [[ "$(uname -s)-$(uname -m)" == "Linux-x86_64" ]]; then
gn=buildtools/linux64/gn
ninja=third_party/depot_tools/ninja
else

Using system default ninja & gn tools

gn=$(command -v gn)
ninja=$(command -v ninja)
fi
"$gn" gen out/wee8 --args="$WEE8_BUILD_ARGS"
"$ninja" -C out/wee8 wee8

Move compiled library to the expected destinations.

popd
mv $ROOT/wee8/out/wee8/obj/libwee8.a bazel-out/aarch64-opt/bin/external/com_googlesource_chromium_v8/libwee8.a
')
/root/.cache/bazel/_bazel_root/596b0cd1ad0211ef049437fdd23e86ea/sandbox/processwrapper-sandbox/624/execroot/io_istio_proxy/external/com_googlesource_chromium_v8/wee8 /root/.cache/bazel/_bazel_root/596b0cd1ad0211ef049437fdd23e86ea/sandbox/processwrapper-sandbox/624/execroot/io_istio_proxy

build generate_bytecode_builtins_list failed

[55/898] CXX obj/v8_libbase/vlq-base64.o
[56/898] CXX obj/v8_libbase/region-allocator.o
[57/898] CXX obj/src/inspector/inspector/Profiler.o
[58/898] CXX obj/src/inspector/inspector/inspected-context.o
[59/898] CXX obj/v8_libbase/random-number-generator.o
[60/898] CXX obj/v8_libbase/stack_trace_posix.o
[61/898] CXX obj/v8_libbase/platform-posix.o
[62/898] CXX obj/v8_libbase/platform-posix-time.o
[63/898] CXX obj/torque_base/implementation-visitor.o
[64/898] CXX obj/v8_libbase/platform-linux.o
[65/898] CXX obj/v8_libplatform/default-worker-threads-task-runner.o
[66/898] CXX obj/v8_libplatform/delayed-task-queue.o
[67/898] CXX obj/v8_libplatform/trace-buffer.o
[68/898] CXX obj/v8_libplatform/task-queue.o
[69/898] CXX obj/src/inspector/inspector/injected-script.o
[70/898] CXX obj/v8_libplatform/default-platform.o
[71/898] CXX obj/v8_libbase/cpu.o
[72/898] CXX obj/v8_libplatform/trace-object.o
[73/898] CXX obj/v8_libplatform/default-foreground-task-runner.o
[74/898] CXX obj/v8_libplatform/tracing-controller.o
[75/898] STAMP obj/build/win/default_exe_manifest.stamp
[76/898] CXX obj/v8_libplatform/trace-config.o
[77/898] CXX obj/v8_libbase/bounded-page-allocator.o
[78/898] CXX obj/v8_libbase/division-by-constant.o
[79/898] CXX obj/v8_libplatform/trace-writer.o
[80/898] CXX obj/v8_libbase/file-utils.o
[81/898] CXX obj/v8_libbase/stack_trace.o
[82/898] CXX obj/v8_libbase/bits.o
[83/898] CXX obj/v8_libbase/functional.o
[84/898] AR obj/libv8_libbase.a
[85/898] LINK ./bytecode_builtins_list_generator
[86/898] ACTION //:generate_bytecode_builtins_list(//build/toolchain/linux/unbundle:default)
FAILED: gen/builtins-generated/bytecodes-builtins-list.h
python ../../tools/run.py ./bytecode_builtins_list_generator gen/builtins-generated/bytecodes-builtins-list.h
[87/898] CXX obj/src/inspector/inspector/v8-heap-profiler-agent-impl.o
[88/898] CXX obj/torque_base/torque-parser.o
[89/898] CXX obj/src/inspector/inspector/v8-schema-agent-impl.o
[90/898] CXX obj/src/inspector/inspector/v8-regex.o
[91/898] CXX obj/src/inspector/inspector/v8-inspector-session-impl.o
[92/898] CXX obj/src/inspector/inspector/v8-runtime-agent-impl.o
[93/898] CXX obj/src/inspector/inspector/v8-profiler-agent-impl.o
[94/898] CXX obj/src/inspector/inspector/v8-debugger.o
[95/898] CXX obj/src/inspector/inspector/v8-inspector-impl.o
ninja: build stopped: subcommand failed.
Target //src/envoy:envoy failed to build
INFO: Elapsed time: 1148.929s, Critical Path: 84.86s
INFO: 3589 processes: 3588 processwrapper-sandbox, 1 worker.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully
make: *** [build_envoy] Error 1

used build image to build ,occous
gen/builtins-generated/bytecodes-builtins-list.h error

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.