Skip to content

deps: Bump org_llvm_llvm -> 12.0.1, com_github_wavm_wavm -> 9ffd3e2#18747

Merged
phlax merged 4 commits intoenvoyproxy:mainfrom
phlax:deps-bump-wavm-llvm
Oct 28, 2021
Merged

deps: Bump org_llvm_llvm -> 12.0.1, com_github_wavm_wavm -> 9ffd3e2#18747
phlax merged 4 commits intoenvoyproxy:mainfrom
phlax:deps-bump-wavm-llvm

Conversation

@phlax
Copy link
Member

@phlax phlax commented Oct 25, 2021

Signed-off-by: Ryan Northey ryan@synca.io

Commit Message:
Additional Description:

Following up on comments:

#18521 (comment)

#15021 (comment)

Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

Signed-off-by: Ryan Northey <ryan@synca.io>
@repokitteh-read-only
Copy link

CC @envoyproxy/dependency-shepherds: Your approval is needed for changes made to (bazel/.*repos.*\.bzl)|(bazel/dependency_imports\.bzl)|(api/bazel/.*\.bzl)|(.*/requirements\.txt)|(.*\.patch).

🐱

Caused by: #18747 was opened by phlax.

see: more, trace.

@repokitteh-read-only repokitteh-read-only bot added the deps Approval required for changes to Envoy's external dependencies label Oct 25, 2021
@phlax
Copy link
Member Author

phlax commented Oct 25, 2021

cc @moderation @lizan @PiotrSikora

Signed-off-by: Ryan Northey <ryan@synca.io>
@phlax phlax force-pushed the deps-bump-wavm-llvm branch from 42cff95 to 28e9627 Compare October 26, 2021 11:15
@phlax
Copy link
Member Author

phlax commented Oct 26, 2021

still (or now) failing with

ERROR: /build/tmp/_bazel_envoybuild/400406edc57d332f0b9b805d2b8e33a1/external/envoy/bazel/foreign_cc/BUILD:239:12: output 'external/envoy/bazel/foreign_cc/llvm/lib/libPolly.a' was not created
ERROR: /build/tmp/_bazel_envoybuild/400406edc57d332f0b9b805d2b8e33a1/external/envoy/bazel/foreign_cc/BUILD:239:12: output 'external/envoy/bazel/foreign_cc/llvm/lib/libPollyISL.a' was not created
ERROR: /build/tmp/_bazel_envoybuild/400406edc57d332f0b9b805d2b8e33a1/external/envoy/bazel/foreign_cc/BUILD:239:12: Foreign Cc - CMake: Building llvm failed: not all outputs were created or valid

https://dev.azure.com/cncf/envoy/_build/results?buildId=92843&view=logs&j=e969334a-0e55-5c18-ac96-8b546753391e&t=b5329a9e-93c7-5412-9f4c-6f8d659e1b57&l=13156

Copy link
Contributor

@PiotrSikora PiotrSikora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still (or now) failing with

ERROR: /build/tmp/_bazel_envoybuild/400406edc57d332f0b9b805d2b8e33a1/external/envoy/bazel/foreign_cc/BUILD:239:12: output 'external/envoy/bazel/foreign_cc/llvm/lib/libPolly.a' was not created
ERROR: /build/tmp/_bazel_envoybuild/400406edc57d332f0b9b805d2b8e33a1/external/envoy/bazel/foreign_cc/BUILD:239:12: output 'external/envoy/bazel/foreign_cc/llvm/lib/libPollyISL.a' was not created
ERROR: /build/tmp/_bazel_envoybuild/400406edc57d332f0b9b805d2b8e33a1/external/envoy/bazel/foreign_cc/BUILD:239:12: Foreign Cc - CMake: Building llvm failed: not all outputs were created or valid

https://dev.azure.com/cncf/envoy/_build/results?buildId=92843&view=logs&j=e969334a-0e55-5c18-ac96-8b546753391e&t=b5329a9e-93c7-5412-9f4c-6f8d659e1b57&l=13156

Apply this patch to fix it (tested with both: WAVM and WAMR):

--- a/bazel/foreign_cc/BUILD
+++ b/bazel/foreign_cc/BUILD
@@ -289,33 +289,57 @@ envoy_cmake(
             # ...inside the `envoy-build-ubuntu` image - this assumes a build image
             # with the correct/updated llvm version.
             #
+            "libLLVMWindowsManifest.a",
+            "libLLVMXRay.a",
+            "libLLVMLibDriver.a",
+            "libLLVMDlltoolDriver.a",
+            "libLLVMCoverage.a",
+            "libLLVMLineEditor.a",
+            "libLLVMX86Disassembler.a",
             "libLLVMX86AsmParser.a",
+            "libLLVMX86CodeGen.a",
             "libLLVMX86Desc.a",
             "libLLVMX86Info.a",
-            "libLLVMMCDisassembler.a",
             "libLLVMOrcJIT.a",
+            "libLLVMMCJIT.a",
             "libLLVMJITLink.a",
             "libLLVMOrcTargetProcess.a",
             "libLLVMOrcShared.a",
-            "libLLVMMIRParser.a",
+            "libLLVMInterpreter.a",
+            "libLLVMExecutionEngine.a",
+            "libLLVMRuntimeDyld.a",
+            "libLLVMSymbolize.a",
+            "libLLVMDebugInfoPDB.a",
+            "libLLVMDebugInfoGSYM.a",
+            "libLLVMOption.a",
+            "libLLVMObjectYAML.a",
+            "libLLVMMCA.a",
+            "libLLVMMCDisassembler.a",
             "libLLVMLTO.a",
-            "libLLVMExtensions.a",
-            "libPolly.a",
-            "libPollyISL.a",
             "libLLVMPasses.a",
+            "libLLVMCFGuard.a",
+            "libLLVMCoroutines.a",
             "libLLVMObjCARCOpts.a",
             "libLLVMHelloNew.a",
-            "libLLVMCoroutines.a",
             "libLLVMipo.a",
-            "libLLVMInstrumentation.a",
             "libLLVMVectorize.a",
             "libLLVMLinker.a",
-            "libLLVMIRReader.a",
+            "libLLVMInstrumentation.a",
             "libLLVMFrontendOpenMP.a",
-            "libLLVMInterpreter.a",
-            "libLLVMExecutionEngine.a",
-            "libLLVMRuntimeDyld.a",
+            "libLLVMFrontendOpenACC.a",
+            "libLLVMExtensions.a",
+            "libLLVMDWARFLinker.a",
+            "libLLVMGlobalISel.a",
+            "libLLVMMIRParser.a",
+            "libLLVMAsmPrinter.a",
+            "libLLVMDebugInfoDWARF.a",
+            "libLLVMSelectionDAG.a",
             "libLLVMCodeGen.a",
+            "libLLVMIRReader.a",
+            "libLLVMAsmParser.a",
+            "libLLVMInterfaceStub.a",
+            "libLLVMFileCheck.a",
+            "libLLVMFuzzMutate.a",
             "libLLVMTarget.a",
             "libLLVMScalarOpts.a",
             "libLLVMInstCombine.a",
@@ -324,7 +348,6 @@ envoy_cmake(
             "libLLVMBitWriter.a",
             "libLLVMAnalysis.a",
             "libLLVMProfileData.a",
-            "libLLVMDebugInfoDWARF.a",
             "libLLVMObject.a",
             "libLLVMTextAPI.a",
             "libLLVMMCParser.a",
@@ -332,11 +355,11 @@ envoy_cmake(
             "libLLVMDebugInfoCodeView.a",
             "libLLVMDebugInfoMSF.a",
             "libLLVMBitReader.a",
-            "libLLVMAsmParser.a",
             "libLLVMCore.a",
             "libLLVMRemarks.a",
             "libLLVMBitstreamReader.a",
             "libLLVMBinaryFormat.a",

phlax added 2 commits October 27, 2021 14:40
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
@phlax
Copy link
Member Author

phlax commented Oct 27, 2021

Apply this patch to fix it...

@PiotrSikora thanks, applied

You need to either build LLVM from sources locally and run...

i have simplified/updated the message about regenerating this list - lmk if this is more accurate

Copy link
Contributor

@PiotrSikora PiotrSikora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Note: compile_time_options timeouts and coverage fails for some reason.

@PiotrSikora
Copy link
Contributor

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #18747 (comment) was created by @PiotrSikora.

see: more, trace.

@phlax phlax requested review from moderation and wrowe October 28, 2021 11:28
@wrowe
Copy link
Contributor

wrowe commented Oct 28, 2021

/LGTM deps

Thanks!

@wrowe
Copy link
Contributor

wrowe commented Oct 28, 2021

/lgtm deps

@repokitteh-read-only repokitteh-read-only bot removed the deps Approval required for changes to Envoy's external dependencies label Oct 28, 2021
@phlax
Copy link
Member Author

phlax commented Oct 28, 2021

@wrowe can i get a maintainer stamp please

Copy link
Contributor

@wrowe wrowe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks correct, Linux side anyways. This may cause some chaos with mobile, win32 etc, we have to see if this is shared on those platforms.

@phlax
Copy link
Member Author

phlax commented Oct 28, 2021

i think it at least gives us consistency with llvm used elsewhere

@phlax phlax merged commit a931ef4 into envoyproxy:main Oct 28, 2021
mpuncel added a commit to mpuncel/envoy that referenced this pull request Oct 29, 2021
* main: (221 commits)
  deps: Bump `protobuf` -> 3.19.0 (envoyproxy#18471)
  tooling: auto-assign dependency shephards (envoyproxy#18794)
  clang-tidy: Return from diff fun if empty diff (envoyproxy#18815)
  repokitteh: Block PRs pending deps approval (envoyproxy#18814)
  deps: Bump `org_llvm_llvm` -> 12.0.1, `com_github_wavm_wavm` -> 9ffd3e2 (envoyproxy#18747)
  dns resolvers: add All lookup mode (envoyproxy#18464)
  doc: fix link formatting for TLS session_timeout (envoyproxy#18790)
  ext_authz: Set response flag and code details to UAEX when denied (envoyproxy#18740)
  socket options: add support for directly creating ipv4/ipv6 pairs (envoyproxy#18769)
  ecds: make onConfigUpdate generic over filter type (envoyproxy#18061)
  bazel: update CMake instructions in EXTERNAL_DEPS.md (envoyproxy#18799)
  upstream: fix typo in comment (envoyproxy#18798)
  runtime: removing envoy.reloadable_features.grpc_json_transcoder_adhere_to_buffer_limits (envoyproxy#18696)
  bazel: Add CC=clang to clang configuration (envoyproxy#18732)
  fix error request id in the dubbbo local reply (envoyproxy#18741)
  event: assert the case of both read and closed event registered (envoyproxy#18265)
  tcp proxy connect tunneling: improved testing (envoyproxy#18784)
  deps: Bump `protoc-gen-validate` -> 0.6.2 (envoyproxy#18742)
  deps: Bump `rules_pkg` -> ad57589 (envoyproxy#18746)
  bazel: copy .bazelversion for envoy filter examples (envoyproxy#18730)
  ...

Signed-off-by: Michael Puncel <mpuncel@squareup.com>
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

Successfully merging this pull request may close these issues.

3 participants