tensorflow.inc: fix fetch of LLVM for XLA
PATCH 1/1 tensorflow.inc: fix fetch of LLVM for XLA
Building tensorflow-lite fails in do_compile when Bazel fetches llvm-raw:
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/909041e4802c4b9a2223ca04099f35bf1dbbd460.tar.gz
failed: class java.io.FileNotFoundException GET returned 404 Not Found
...
Error in download_and_extract: java.io.IOException: Error downloading [...]:
Checksum was 00b1077e029fa57e6f2d9ac24936a49acf23ebc051b04f487131116258be6248
but wanted 3f986184ee126677dbd77edb16d6b82c057ec869fefd7a9871979941e52e837a
The archive pinned by XLA is not on mirror.tensorflow.org, and the archive GitHub now generates for the same LLVM commit has a different checksum, so the pin can no longer be satisfied from either URL.
Pin the checksum of the archive GitHub currently serves. Future upstream releases will point to a newer LLVM commit.
--- ...01-xla-update-sha256-of-LLVM-archive.patch | 28 +++++++++++++++++++ recipes-framework/tensorflow/tensorflow.inc | 1 + 2 files changed, 29 insertions(+) create mode 100644 recipes-framework/tensorflow/files/0001-xla-update-sha256-of-LLVM-archive.patch
recipes-framework/tensorflow/files/0001-xla-update-sha256-of-LLVM-archive.patch new file +28 -0
@@ -0,0 +1,28 @@ +From: Daniel Drake <[email protected]> +Subject: [PATCH] xla: update sha256 of LLVM archive + +Bazel can no longer fetch llvm-raw. The mirror.tensorflow.org copy of the +archive returns 404, and the archive GitHub now generates for the same LLVM +commit has a different checksum than the one pinned here. + +Pin the checksum of the archive GitHub currently serves. The LLVM commit is +unchanged. + +Upstream-Status: Inappropriate [workaround for a regenerated GitHub archive; upstream master pins a newer LLVM commit] +Signed-off-by: Daniel Drake <[email protected]> +--- + third_party/xla/third_party/llvm/workspace.bzl | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/third_party/xla/third_party/llvm/workspace.bzl b/third_party/xla/third_party/llvm/workspace.bzl +--- a/third_party/xla/third_party/llvm/workspace.bzl ++++ b/third_party/xla/third_party/llvm/workspace.bzl +@@ -5,7 +5,7 @@ + def repo(name): + """Imports LLVM.""" + LLVM_COMMIT = "909041e4802c4b9a2223ca04099f35bf1dbbd460" +- LLVM_SHA256 = "3f986184ee126677dbd77edb16d6b82c057ec869fefd7a9871979941e52e837a" ++ LLVM_SHA256 = "00b1077e029fa57e6f2d9ac24936a49acf23ebc051b04f487131116258be6248" + + tf_http_archive( + name = name,
recipes-framework/tensorflow/tensorflow.inc +1 -0
@@ -27,6 +27,7 @@ SRC_URI = "git://github.com/tensorflow/tensorflow.git;branch=r2.21;protocol=http file://0001-set-x83_64-to-arch-of-whl.patch \ file://0001-fix-compile-failed-with-clang-21.patch \ file://0001-fix-clang-22.patch \ + file://0001-xla-update-sha256-of-LLVM-archive.patch \ " DEPENDS += " \
Signature · 1 line
2.56.0
I've the same locally (and I didn't send it, just because jenkins servers never triggered it, so I was wondering if it's something specific to my local builds).
Quoted 84 lines · Daniel Drake via lists.yoctoproject.org
Building tensorflow-lite fails in
do_compilewhen Bazel fetches llvm-raw:WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/909041e4802c4b9a2223ca04099f35bf1dbbd460.tar.gz
failed: class java.io.FileNotFoundException GET returned 404 Not Found
...
Error indownload_and_extract: java.io.IOException: Error downloading [...]:
Checksum was00b1077e029fa57e6f2d9ac24936a49acf23ebc051b04f487131116258be6248
but wanted3f986184ee126677dbd77edb16d6b82c057ec869fefd7a9871979941e52e837aThe archive pinned by XLA is not on mirror.tensorflow.org, and the archive GitHub now generates for the same LLVM commit has a different checksum, so the pin can no longer be satisfied from either URL.
Pin the checksum of the archive GitHub currently serves. Future upstream releases will point to a newer LLVM commit.
Signed-off-by Daniel Drake <[email protected]>--- ...01-xla-update-sha256-of-LLVM-archive.patch | 28 +++++++++++++++++++ recipes-framework/tensorflow/tensorflow.inc | 1 + 2 files changed, 29 insertions(+) create mode 100644 recipes-framework/tensorflow/files/0001-xla-update-sha256-of-LLVM-archive.patchrecipes-framework/tensorflow/files/0001-xla-update-sha256-of-LLVM-archive.patch new file +28
-0@@ -0,0 +1,28 @@ +From: Daniel Drake <[email protected]> +Subject: [PATCH] xla: update sha256 of LLVM archive + +Bazel can no longer fetch llvm-raw. The mirror.tensorflow.org copy of the +archive returns 404, and the archive GitHub now generates for the same LLVM +commit has a different checksum than the one pinned here. + +Pin the checksum of the archive GitHub currently serves. The LLVM commit is +unchanged. + +Upstream-Status: Inappropriate [workaround for a regenerated GitHub archive; upstream master pins a newer LLVM commit] +Signed-off-by: Daniel Drake <[email protected]> +--- + third_party/xla/third_party/llvm/workspace.bzl | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/third_party/xla/third_party/llvm/workspace.bzl b/third_party/xla/third_party/llvm/workspace.bzl +--- a/third_party/xla/third_party/llvm/workspace.bzl ++++ b/third_party/xla/third_party/llvm/workspace.bzl +@@ -5,7 +5,7 @@ + def repo(name): + """Imports LLVM.""" + LLVM_COMMIT = "909041e4802c4b9a2223ca04099f35bf1dbbd460" +- LLVM_SHA256 = "3f986184ee126677dbd77edb16d6b82c057ec869fefd7a9871979941e52e837a" ++ LLVM_SHA256 = "00b1077e029fa57e6f2d9ac24936a49acf23ebc051b04f487131116258be6248" + + tf_http_archive( + name = name,recipes-framework/tensorflow/tensorflow.inc +1
-1@@ -27,6 +27,7 @@ SRC_URI = "git://github.com/tensorflow/tensorflow.git;branch=r2.21;protocol=http file://0001-set-x83_64-to-arch-of-whl.patch \ file://0001-fix-compile-failed-with-clang-21.patch \ file://0001-fix-clang-22.patch \ + file://0001-xla-update-sha256-of-LLVM-archive.patch \ " DEPENDS += " \ --2.56.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#5170): https://lists.yoctoproject.org/g/yocto-patches/message/5170
Mute This Topic: https://lists.yoctoproject.org/mt/121975268/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto-patches/leave/13388836/3617156/66960823/xyzzy [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-