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

[ppc64le] Build failed on ppc64le for envoy-openssl #167

Closed
Swapnali911 opened this issue May 31, 2024 · 3 comments
Closed

[ppc64le] Build failed on ppc64le for envoy-openssl #167

Swapnali911 opened this issue May 31, 2024 · 3 comments

Comments

@Swapnali911
Copy link
Contributor

Hi All,

We are facing build failures when building envoy-openssl branch v1.28 on RHEL9.2. Error is as follows
Can someone assist me in resolving this issue.

# bazel build -c opt --config=libc++ envoy --config=clang --define=wasm=disabled --cxxopt=-fpermissive
ERROR: /home/envoy/check_openssl/envoy-openssl/source/exe/BUILD:35:17: Illegal ambiguous match on configurable attribute "deps" in //source/exe:envoy_common_lib:
//bazel:linux_ppc
//bazel:disable_http3
Multiple matches are not allowed unless one is unambiguously more specialized or they resolve to the same value. See https://bazel.build/reference/be/functions#select.
INFO: Repository build_bazel_rules_swift instantiated at:
  /home/envoy/check_openssl/envoy-openssl/WORKSPACE:30:25: in <toplevel>
  /home/envoy/check_openssl/envoy-openssl/bazel/dependency_imports.bzl:32:29: in envoy_dependency_imports
  /root/.cache/bazel/_bazel_root/0cab9e149d5530907041b1f9089d77ad/external/build_bazel_rules_apple/apple/repositories.bzl:124:15: in apple_rules_dependencies
  /root/.cache/bazel/_bazel_root/0cab9e149d5530907041b1f9089d77ad/external/build_bazel_rules_apple/apple/repositories.bzl:86:14: in _maybe
Repository rule http_archive defined at:
  /root/.cache/bazel/_bazel_root/0cab9e149d5530907041b1f9089d77ad/external/bazel_tools/tools/build_defs/repo/http.bzl:372:31: in <toplevel>
ERROR: Analysis of target '//:envoy' failed; build aborted:
INFO: Elapsed time: 5.565s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (238 packages loaded, 819 targets configured)
    currently loading: @com_github_grpc_grpc//
    Fetching repository @com_google_absl; starting
    Fetching ...0cab9e149d5530907041b1f9089d77ad/external/com_google_absl; Extracting c8b33b0191a2db8364cacf94b267ea8a3f20ad83.tar.gz
    Fetching repository @com_github_gperftools_gperftools; starting
    Fetching ...el_root/0cab9e149d5530907041b1f9089d77ad/external/com_github_gperftools_gperftools; Extracting gperftools-2.10.tar.gz
    Fetching repository @com_github_gabime_spdlog; starting
    Fetching ...cache/bazel/_bazel_root/0cab9e149d5530907041b1f9089d77ad/external/com_github_gabime_spdlog; Extracting v1.12.0.tar.gz
    Fetching repository @com_googlesource_code_re2; starting
    Fetching ...ot/0cab9e149d5530907041b1f9089d77ad/external/com_googlesource_code_re2; Extracting 2023-09-01.tar.gz ... (11 fetches)

cc @NishikantThorat

@tedjpoole
Copy link
Contributor

The problem here (in source/exe/BUILD and test/config_test/BUILD) is the use of a single select() over the two orthogonal concerns of platform & http3 support. This can lead to multiple matches (//bazel:linux_ppc and //bazel:disable_http3 in this case) which is ambiguous and therefore an error.

We need to somehow split the platform and http3 selection into separate select()s

@tedjpoole
Copy link
Contributor

I've created envoyproxy/envoy#34482 because this really should be discussed & fixed further upstream if possible

@Swapnali911
Copy link
Contributor Author

Resolved by envoyproxy/envoy#34483

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants