Skip to content

Add support for Linux RISC-V 64#102607

Open
IgnotaYun wants to merge 9 commits intotensorflow:masterfrom
IgnotaYun:riscv64
Open

Add support for Linux RISC-V 64#102607
IgnotaYun wants to merge 9 commits intotensorflow:masterfrom
IgnotaYun:riscv64

Conversation

@IgnotaYun
Copy link
Contributor

@IgnotaYun IgnotaYun commented Oct 20, 2025

This commit fixes #102159 which prevented TensorFlow from compiling on RISC-V 64 due to missing codepath in the build system.

RFC: Currently this patch overrides timeout of rules_python for all platforms which is obviously not ideal. How do we set pip package timeout here in Tensorflow?

See also:

@google-ml-butler google-ml-butler bot added the size:L CL Change Size: Large label Oct 20, 2025
@google-ml-butler google-ml-butler bot added the awaiting review Pull request awaiting review label Oct 20, 2025
@github-project-automation github-project-automation bot moved this to Assigned Reviewer in PR Queue Oct 20, 2025
@github-project-automation github-project-automation bot moved this from Assigned Reviewer to Reviewer Requested Changes in PR Queue Oct 20, 2025
@IgnotaYun IgnotaYun force-pushed the riscv64 branch 2 times, most recently from 079c8e9 to 0ebb5ee Compare October 20, 2025 18:18
@Sherlockzhangjinge
Copy link

Thanks for your help, but this is for master branch(2.21.0), whose rules_python is 1.6.0. but tf2.20.0 , tf2.19.1 and tf2.20.0 using rules_python0.39.0. they have totally different structures. I failed apply your patchs:rules_python_riscv64_pypi.patch

@IgnotaYun
Copy link
Contributor Author

Thanks for your help, but this is for master branch(2.21.0), whose rules_python is 1.6.0. but tf2.20.0 , tf2.19.1 and tf2.20.0 using rules_python0.39.0. they have totally different structures. I failed apply your patchs:rules_python_riscv64_pypi.patch

Checkout https://github.com/infiWang/tensorflow/tree/v2.20.0-riscv64 . Btw, I don't think TF release branch accepts PR?

@mihaimaruseac
Copy link
Contributor

I don't think TF release branch accepts PR?

We don't. All changes need to occur on main branch and then they'll be included in the releases.

mihaimaruseac
mihaimaruseac previously approved these changes Oct 28, 2025
Copy link
Contributor

@mihaimaruseac mihaimaruseac left a comment

Choose a reason for hiding this comment

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

Tentatively approving, but I think this will need more reviewers

@google-ml-butler google-ml-butler bot added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process labels Oct 28, 2025
@github-project-automation github-project-automation bot moved this from Reviewer Requested Changes to Approved by Reviewer in PR Queue Oct 28, 2025
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Oct 28, 2025
@google-ml-butler google-ml-butler bot removed the ready to pull PR ready for merge process label Oct 29, 2025
@google-ml-butler google-ml-butler bot added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process labels Oct 29, 2025
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Oct 29, 2025
@Sherlockzhangjinge
Copy link

Have you meet "Traceback (most recent call last):
File "", line 1, in
File "/python/venv311/lib/python3.11/site-packages/tensorflow/init.py", line 49, in
from tensorflow._api.v2 import internal
File "/python/venv311/lib/python3.11/site-packages/tensorflow/_api/v2/internal/init.py", line 8, in
from tensorflow._api.v2.internal import autograph
File "/python/venv311/lib/python3.11/site-packages/tensorflow/_api/v2/internal/autograph/init.py", line 8, in
from tensorflow.python.autograph.core.ag_ctx import control_status_ctx # line: 34
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/venv311/lib/python3.11/site-packages/tensorflow/python/autograph/core/ag_ctx.py", line 21, in
from tensorflow.python.autograph.utils import ag_logging
File "/python/venv311/lib/python3.11/site-packages/tensorflow/python/autograph/utils/init.py", line 17, in
from tensorflow.python.autograph.utils.context_managers import control_dependency_on_returns
File "/python/venv311/lib/python3.11/site-packages/tensorflow/python/autograph/utils/context_managers.py", line 19, in
from tensorflow.python.framework import ops
File "/python/venv311/lib/python3.11/site-packages/tensorflow/python/framework/ops.py", line 49, in
from tensorflow.python.client import pywrap_tf_session
File "/python/venv311/lib/python3.11/site-packages/tensorflow/python/client/pywrap_tf_session.py", line 19, in
from tensorflow.python.client._pywrap_tf_session import *
ImportError: /python/venv311/lib/python3.11/site-packages/tensorflow/python/client/_pywrap_tf_session.so: undefined symbol: _ZN17pybind11_protobuf16GenericProtoCastEPN6google8protobuf7MessageEN8pybind1119return_value_policyENS4_6handleEb"
when you import tf after compiling and pip install on riscv64?

@IgnotaYun
Copy link
Contributor Author

IgnotaYun commented Nov 2, 2025

@Sherlockzhangjinge Please wrap the log in a code block and fold it.

Yes, but only with GCC for some reason. Use ./configure to set Clang and do a bazel clean --expunge before building.

Clang-17 and Clang-20 have been verified to be working; Clang-19 should also work; Clang-18 ICEed on my machine however.

A broken and a working example Screenshot 2025-10-16 at 2 29 52 PM Screenshot 2025-10-17 at 2 50 18 PM

copybara-service bot pushed a commit to openxla/xla that referenced this pull request Nov 3, 2025
Imported from GitHub PR tensorflow/tensorflow#102607

This commit fixes #102159 which prevented TensorFlow from compiling on RISC-V 64 due to missing codepath in the build system.

RFC: Currently this patch overrides timeout of rules_python for all platforms which is obviously not ideal. How do we set pip package timeout here in Tensorflow?

See also:
- bazelbuild/bazel#25236
- bazelbuild/bazel#25699
- bazel-contrib/rules_python#3350
- #32812
- tensorflow/runtime#135
Copybara import of the project:

--
13b7db883e6ea0aa631490fb5f806c55ceea7cb5 by gns <[email protected]>:

[XLA:CPU] Add support for riscv64

Co-authored-by: Levi Zim <[email protected]>

--
a00c3a3ba94664798960cbc2fb0a6746fe0c3ac1 by gns <[email protected]>:

Add missing llvm:: namespace qualifiers for DTensor

Add the `llvm::` namespace prefix to `cast` and `isa`
where it was missing in the DTensor MLIR code.

--
febc5abc56ab302f5f39fe20176ed00c0c95cb7e by gns <[email protected]>:

runtime: add missing stdint header

Co-authored-by: Levi Zim <[email protected]>

--
6bf63fec56a6d961b06d932fe69b76eae89d8cb7 by gns <[email protected]>:

Add riscv64 support patch for rules_python

bazel-contrib/rules_python#3350

--
68c44fa9613d5577f36c51a192c932795e13ed83 by gns <[email protected]>:

tools: py: add riscv64 to pip and manylinux compilance test

--
3f2fe1e0256476449f64658219d997727c9cc534 by gns <[email protected]>:

Lift timeout of rules_python for BFS wheels

--
252a9b7ad2336b7abbb94e269b4a976b45d5d6e7 by gns <[email protected]>:

Revert llvm toolchain patch for riscv64

As already upstreamed.

Co-authored-by: Levi Zim <[email protected]>

--
51047a86131e991ffea74fccb8f55e3521237a64 by gns <[email protected]>:

Lift timeout for BFS wheels during pip init

--
3b8276420031969423c9a1f150341a0e41fa372e by gns <[email protected]>:

Refresh `rules_python` riscv64 patch

Co-authored-by: Levi Zim <[email protected]>

Merging this change closes #102607

FUTURE_COPYBARA_INTEGRATE_REVIEW=tensorflow/tensorflow#102607 from infiWang:riscv64 3b8276420031969423c9a1f150341a0e41fa372e
PiperOrigin-RevId: 825073762
copybara-service bot pushed a commit to openxla/xla that referenced this pull request Nov 26, 2025
Imported from GitHub PR tensorflow/tensorflow#102607

This commit fixes #102159 which prevented TensorFlow from compiling on RISC-V 64 due to missing codepath in the build system.

RFC: Currently this patch overrides timeout of rules_python for all platforms which is obviously not ideal. How do we set pip package timeout here in Tensorflow?

See also:
- bazelbuild/bazel#25236
- bazelbuild/bazel#25699
- bazel-contrib/rules_python#3350
- #32812
- tensorflow/runtime#135
Copybara import of the project:

--
13b7db883e6ea0aa631490fb5f806c55ceea7cb5 by gns <[email protected]>:

[XLA:CPU] Add support for riscv64

Co-authored-by: Levi Zim <[email protected]>

--
a00c3a3ba94664798960cbc2fb0a6746fe0c3ac1 by gns <[email protected]>:

Add missing llvm:: namespace qualifiers for DTensor

Add the `llvm::` namespace prefix to `cast` and `isa`
where it was missing in the DTensor MLIR code.

--
febc5abc56ab302f5f39fe20176ed00c0c95cb7e by gns <[email protected]>:

runtime: add missing stdint header

Co-authored-by: Levi Zim <[email protected]>

--
6bf63fec56a6d961b06d932fe69b76eae89d8cb7 by gns <[email protected]>:

Add riscv64 support patch for rules_python

bazel-contrib/rules_python#3350

--
68c44fa9613d5577f36c51a192c932795e13ed83 by gns <[email protected]>:

tools: py: add riscv64 to pip and manylinux compilance test

--
3f2fe1e0256476449f64658219d997727c9cc534 by gns <[email protected]>:

Lift timeout of rules_python for BFS wheels

--
252a9b7ad2336b7abbb94e269b4a976b45d5d6e7 by gns <[email protected]>:

Revert llvm toolchain patch for riscv64

As already upstreamed.

Co-authored-by: Levi Zim <[email protected]>

--
51047a86131e991ffea74fccb8f55e3521237a64 by gns <[email protected]>:

Lift timeout for BFS wheels during pip init

--
3b8276420031969423c9a1f150341a0e41fa372e by gns <[email protected]>:

Refresh `rules_python` riscv64 patch

Co-authored-by: Levi Zim <[email protected]>

Merging this change closes #102607

FUTURE_COPYBARA_INTEGRATE_REVIEW=tensorflow/tensorflow#102607 from infiWang:riscv64 3b8276420031969423c9a1f150341a0e41fa372e
PiperOrigin-RevId: 836231774
copybara-service bot pushed a commit to openxla/xla that referenced this pull request Nov 26, 2025
Imported from GitHub PR tensorflow/tensorflow#102607

This commit fixes #102159 which prevented TensorFlow from compiling on RISC-V 64 due to missing codepath in the build system.

RFC: Currently this patch overrides timeout of rules_python for all platforms which is obviously not ideal. How do we set pip package timeout here in Tensorflow?

See also:
- bazelbuild/bazel#25236
- bazelbuild/bazel#25699
- bazel-contrib/rules_python#3350
- #32812
- tensorflow/runtime#135
Copybara import of the project:

--
13b7db883e6ea0aa631490fb5f806c55ceea7cb5 by gns <[email protected]>:

[XLA:CPU] Add support for riscv64

Co-authored-by: Levi Zim <[email protected]>

--
a00c3a3ba94664798960cbc2fb0a6746fe0c3ac1 by gns <[email protected]>:

Add missing llvm:: namespace qualifiers for DTensor

Add the `llvm::` namespace prefix to `cast` and `isa`
where it was missing in the DTensor MLIR code.

--
febc5abc56ab302f5f39fe20176ed00c0c95cb7e by gns <[email protected]>:

runtime: add missing stdint header

Co-authored-by: Levi Zim <[email protected]>

--
6bf63fec56a6d961b06d932fe69b76eae89d8cb7 by gns <[email protected]>:

Add riscv64 support patch for rules_python

bazel-contrib/rules_python#3350

--
68c44fa9613d5577f36c51a192c932795e13ed83 by gns <[email protected]>:

tools: py: add riscv64 to pip and manylinux compilance test

--
3f2fe1e0256476449f64658219d997727c9cc534 by gns <[email protected]>:

Lift timeout of rules_python for BFS wheels

--
252a9b7ad2336b7abbb94e269b4a976b45d5d6e7 by gns <[email protected]>:

Revert llvm toolchain patch for riscv64

As already upstreamed.

Co-authored-by: Levi Zim <[email protected]>

--
51047a86131e991ffea74fccb8f55e3521237a64 by gns <[email protected]>:

Lift timeout for BFS wheels during pip init

--
3b8276420031969423c9a1f150341a0e41fa372e by gns <[email protected]>:

Refresh `rules_python` riscv64 patch

Co-authored-by: Levi Zim <[email protected]>

Merging this change closes #102607

FUTURE_COPYBARA_INTEGRATE_REVIEW=tensorflow/tensorflow#102607 from infiWang:riscv64 3b8276420031969423c9a1f150341a0e41fa372e
PiperOrigin-RevId: 836231774
copybara-service bot pushed a commit to openxla/xla that referenced this pull request Dec 2, 2025
Imported from GitHub PR tensorflow/tensorflow#102607

This commit fixes #102159 which prevented TensorFlow from compiling on RISC-V 64 due to missing codepath in the build system.

RFC: Currently this patch overrides timeout of rules_python for all platforms which is obviously not ideal. How do we set pip package timeout here in Tensorflow?

See also:
- bazelbuild/bazel#25236
- bazelbuild/bazel#25699
- bazel-contrib/rules_python#3350
- #32812
- tensorflow/runtime#135
Copybara import of the project:

--
13b7db883e6ea0aa631490fb5f806c55ceea7cb5 by gns <[email protected]>:

[XLA:CPU] Add support for riscv64

Co-authored-by: Levi Zim <[email protected]>

--
a00c3a3ba94664798960cbc2fb0a6746fe0c3ac1 by gns <[email protected]>:

Add missing llvm:: namespace qualifiers for DTensor

Add the `llvm::` namespace prefix to `cast` and `isa`
where it was missing in the DTensor MLIR code.

--
febc5abc56ab302f5f39fe20176ed00c0c95cb7e by gns <[email protected]>:

runtime: add missing stdint header

Co-authored-by: Levi Zim <[email protected]>

--
6bf63fec56a6d961b06d932fe69b76eae89d8cb7 by gns <[email protected]>:

Add riscv64 support patch for rules_python

bazel-contrib/rules_python#3350

--
68c44fa9613d5577f36c51a192c932795e13ed83 by gns <[email protected]>:

tools: py: add riscv64 to pip and manylinux compilance test

--
3f2fe1e0256476449f64658219d997727c9cc534 by gns <[email protected]>:

Lift timeout of rules_python for BFS wheels

--
252a9b7ad2336b7abbb94e269b4a976b45d5d6e7 by gns <[email protected]>:

Revert llvm toolchain patch for riscv64

As already upstreamed.

Co-authored-by: Levi Zim <[email protected]>

--
51047a86131e991ffea74fccb8f55e3521237a64 by gns <[email protected]>:

Lift timeout for BFS wheels during pip init

--
3b8276420031969423c9a1f150341a0e41fa372e by gns <[email protected]>:

Refresh `rules_python` riscv64 patch

Co-authored-by: Levi Zim <[email protected]>

Merging this change closes #102607

FUTURE_COPYBARA_INTEGRATE_REVIEW=tensorflow/tensorflow#102607 from infiWang:riscv64 3b8276420031969423c9a1f150341a0e41fa372e
PiperOrigin-RevId: 836231774
Copy link
Contributor

@mihaimaruseac mihaimaruseac left a comment

Choose a reason for hiding this comment

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

ERROR: Traceback (most recent call last):
	File ".../tensorflow/tools/pip_package/BUILD", line 443, column 33, in <toplevel>
		verify_manylinux_compliance_test(
	File "/root/.cache/bazel/_bazel_root/ea483706e4f40e2efb3464442bfeb24e/external/local_xla/third_party/py/py_manylinux_compliance_test.bzl", line 5, column 5, in verify_manylinux_compliance_test
		def verify_manylinux_compliance_test(
Error: verify_manylinux_compliance_test() got unexpected keyword argument: riscv64_compliance_tag (did you mean 'aarch64_compliance_tag'?)
ERROR: package contains errors: tensorflow/tools/pip_package
Loading: 683 packages loaded
    currently loading: tensorflow/lite ... (136 packages)
ERROR: package contains errors: tensorflow/tools/pip_package: Traceback (most recent call last):
	File ".../tensorflow/tools/pip_package/BUILD", line 443, column 33, in <toplevel>
		verify_manylinux_compliance_test(
	File "/root/.cache/bazel/_bazel_root/ea483706e4f40e2efb3464442bfeb24e/external/local_xla/third_party/py/py_manylinux_compliance_test.bzl", line 5, column 5, in verify_manylinux_compliance_test
		def verify_manylinux_compliance_test(
Error: verify_manylinux_compliance_test() got unexpected keyword argument: riscv64_compliance_tag (did you mean 'aarch64_compliance_tag'?)

@github-project-automation github-project-automation bot moved this from Approved by Reviewer to Reviewer Requested Changes in PR Queue Dec 2, 2025
copybara-service bot pushed a commit to openxla/xla that referenced this pull request Dec 2, 2025
Imported from GitHub PR tensorflow/tensorflow#102607

This commit fixes #102159 which prevented TensorFlow from compiling on RISC-V 64 due to missing codepath in the build system.

RFC: Currently this patch overrides timeout of rules_python for all platforms which is obviously not ideal. How do we set pip package timeout here in Tensorflow?

See also:
- bazelbuild/bazel#25236
- bazelbuild/bazel#25699
- bazel-contrib/rules_python#3350
- #32812
- tensorflow/runtime#135
Copybara import of the project:

--
13b7db883e6ea0aa631490fb5f806c55ceea7cb5 by gns <[email protected]>:

[XLA:CPU] Add support for riscv64

Co-authored-by: Levi Zim <[email protected]>

--
a00c3a3ba94664798960cbc2fb0a6746fe0c3ac1 by gns <[email protected]>:

Add missing llvm:: namespace qualifiers for DTensor

Add the `llvm::` namespace prefix to `cast` and `isa`
where it was missing in the DTensor MLIR code.

--
febc5abc56ab302f5f39fe20176ed00c0c95cb7e by gns <[email protected]>:

runtime: add missing stdint header

Co-authored-by: Levi Zim <[email protected]>

--
6bf63fec56a6d961b06d932fe69b76eae89d8cb7 by gns <[email protected]>:

Add riscv64 support patch for rules_python

bazel-contrib/rules_python#3350

--
68c44fa9613d5577f36c51a192c932795e13ed83 by gns <[email protected]>:

tools: py: add riscv64 to pip and manylinux compilance test

--
3f2fe1e0256476449f64658219d997727c9cc534 by gns <[email protected]>:

Lift timeout of rules_python for BFS wheels

--
252a9b7ad2336b7abbb94e269b4a976b45d5d6e7 by gns <[email protected]>:

Revert llvm toolchain patch for riscv64

As already upstreamed.

Co-authored-by: Levi Zim <[email protected]>

--
51047a86131e991ffea74fccb8f55e3521237a64 by gns <[email protected]>:

Lift timeout for BFS wheels during pip init

--
3b8276420031969423c9a1f150341a0e41fa372e by gns <[email protected]>:

Refresh `rules_python` riscv64 patch

Co-authored-by: Levi Zim <[email protected]>

Merging this change closes #102607

FUTURE_COPYBARA_INTEGRATE_REVIEW=tensorflow/tensorflow#102607 from infiWang:riscv64 3b8276420031969423c9a1f150341a0e41fa372e
PiperOrigin-RevId: 836231774
copybara-service bot pushed a commit to openxla/xla that referenced this pull request Dec 2, 2025
Imported from GitHub PR tensorflow/tensorflow#102607

This commit fixes #102159 which prevented TensorFlow from compiling on RISC-V 64 due to missing codepath in the build system.

RFC: Currently this patch overrides timeout of rules_python for all platforms which is obviously not ideal. How do we set pip package timeout here in Tensorflow?

See also:
- bazelbuild/bazel#25236
- bazelbuild/bazel#25699
- bazel-contrib/rules_python#3350
- #32812
- tensorflow/runtime#135
Copybara import of the project:

--
13b7db883e6ea0aa631490fb5f806c55ceea7cb5 by gns <[email protected]>:

[XLA:CPU] Add support for riscv64

Co-authored-by: Levi Zim <[email protected]>

--
a00c3a3ba94664798960cbc2fb0a6746fe0c3ac1 by gns <[email protected]>:

Add missing llvm:: namespace qualifiers for DTensor

Add the `llvm::` namespace prefix to `cast` and `isa`
where it was missing in the DTensor MLIR code.

--
febc5abc56ab302f5f39fe20176ed00c0c95cb7e by gns <[email protected]>:

runtime: add missing stdint header

Co-authored-by: Levi Zim <[email protected]>

--
6bf63fec56a6d961b06d932fe69b76eae89d8cb7 by gns <[email protected]>:

Add riscv64 support patch for rules_python

bazel-contrib/rules_python#3350

--
68c44fa9613d5577f36c51a192c932795e13ed83 by gns <[email protected]>:

tools: py: add riscv64 to pip and manylinux compilance test

--
3f2fe1e0256476449f64658219d997727c9cc534 by gns <[email protected]>:

Lift timeout of rules_python for BFS wheels

--
252a9b7ad2336b7abbb94e269b4a976b45d5d6e7 by gns <[email protected]>:

Revert llvm toolchain patch for riscv64

As already upstreamed.

Co-authored-by: Levi Zim <[email protected]>

--
51047a86131e991ffea74fccb8f55e3521237a64 by gns <[email protected]>:

Lift timeout for BFS wheels during pip init

--
3b8276420031969423c9a1f150341a0e41fa372e by gns <[email protected]>:

Refresh `rules_python` riscv64 patch

Co-authored-by: Levi Zim <[email protected]>

Merging this change closes #102607

FUTURE_COPYBARA_INTEGRATE_REVIEW=tensorflow/tensorflow#102607 from infiWang:riscv64 3b8276420031969423c9a1f150341a0e41fa372e
PiperOrigin-RevId: 836231774
copybara-service bot pushed a commit to openxla/xla that referenced this pull request Dec 2, 2025
Imported from GitHub PR tensorflow/tensorflow#102607

This commit fixes #102159 which prevented TensorFlow from compiling on RISC-V 64 due to missing codepath in the build system.

RFC: Currently this patch overrides timeout of rules_python for all platforms which is obviously not ideal. How do we set pip package timeout here in Tensorflow?

See also:
- bazelbuild/bazel#25236
- bazelbuild/bazel#25699
- bazel-contrib/rules_python#3350
- #32812
- tensorflow/runtime#135
Copybara import of the project:

--
13b7db883e6ea0aa631490fb5f806c55ceea7cb5 by gns <[email protected]>:

[XLA:CPU] Add support for riscv64

Co-authored-by: Levi Zim <[email protected]>

--
a00c3a3ba94664798960cbc2fb0a6746fe0c3ac1 by gns <[email protected]>:

Add missing llvm:: namespace qualifiers for DTensor

Add the `llvm::` namespace prefix to `cast` and `isa`
where it was missing in the DTensor MLIR code.

--
febc5abc56ab302f5f39fe20176ed00c0c95cb7e by gns <[email protected]>:

runtime: add missing stdint header

Co-authored-by: Levi Zim <[email protected]>

--
6bf63fec56a6d961b06d932fe69b76eae89d8cb7 by gns <[email protected]>:

Add riscv64 support patch for rules_python

bazel-contrib/rules_python#3350

--
68c44fa9613d5577f36c51a192c932795e13ed83 by gns <[email protected]>:

tools: py: add riscv64 to pip and manylinux compilance test

--
3f2fe1e0256476449f64658219d997727c9cc534 by gns <[email protected]>:

Lift timeout of rules_python for BFS wheels

--
252a9b7ad2336b7abbb94e269b4a976b45d5d6e7 by gns <[email protected]>:

Revert llvm toolchain patch for riscv64

As already upstreamed.

Co-authored-by: Levi Zim <[email protected]>

--
51047a86131e991ffea74fccb8f55e3521237a64 by gns <[email protected]>:

Lift timeout for BFS wheels during pip init

--
3b8276420031969423c9a1f150341a0e41fa372e by gns <[email protected]>:

Refresh `rules_python` riscv64 patch

Co-authored-by: Levi Zim <[email protected]>

Merging this change closes #102607

FUTURE_COPYBARA_INTEGRATE_REVIEW=tensorflow/tensorflow#102607 from infiWang:riscv64 3b8276420031969423c9a1f150341a0e41fa372e
PiperOrigin-RevId: 836231774
@keerthanakadiri
Copy link
Contributor

Hi @infiWang, Can you please reslove the conflicts? Thank you !

@google-ml-butler google-ml-butler bot removed the ready to pull PR ready for merge process label Jan 9, 2026
@IgnotaYun
Copy link
Contributor Author

Sorry for missing here, busy with other projects.

Hi @infiWang, Can you please reslove the conflicts? Thank you !

Rebased and resolved. Sorry for the inconvenience.

ERROR: Traceback (most recent call last):
	File ".../tensorflow/tools/pip_package/BUILD", line 443, column 33, in <toplevel>
		verify_manylinux_compliance_test(
	File "/root/.cache/bazel/_bazel_root/ea483706e4f40e2efb3464442bfeb24e/external/local_xla/third_party/py/py_manylinux_compliance_test.bzl", line 5, column 5, in verify_manylinux_compliance_test
		def verify_manylinux_compliance_test(
Error: verify_manylinux_compliance_test() got unexpected keyword argument: riscv64_compliance_tag (did you mean 'aarch64_compliance_tag'?)
ERROR: package contains errors: tensorflow/tools/pip_package
Loading: 683 packages loaded
    currently loading: tensorflow/lite ... (136 packages)
ERROR: package contains errors: tensorflow/tools/pip_package: Traceback (most recent call last):
	File ".../tensorflow/tools/pip_package/BUILD", line 443, column 33, in <toplevel>
		verify_manylinux_compliance_test(
	File "/root/.cache/bazel/_bazel_root/ea483706e4f40e2efb3464442bfeb24e/external/local_xla/third_party/py/py_manylinux_compliance_test.bzl", line 5, column 5, in verify_manylinux_compliance_test
		def verify_manylinux_compliance_test(
Error: verify_manylinux_compliance_test() got unexpected keyword argument: riscv64_compliance_tag (did you mean 'aarch64_compliance_tag'?)

Sorry, but how do you reproduce this?

@mihaimaruseac
Copy link
Contributor

bazel build //tensorflow:tensorflow/tools/pip_package or something like that

@IgnotaYun
Copy link
Contributor Author

Hmm, I can't reproduce that on my side🤔

image

@mihaimaruseac
Copy link
Contributor

What is the bazel version you are using?

@IgnotaYun
Copy link
Contributor Author

@mihaimaruseac
Copy link
Contributor

Oh, we're probably missing that backport.

@google-ml-butler google-ml-butler bot added the awaiting review Pull request awaiting review label Feb 24, 2026
@keerthanakadiri keerthanakadiri added stat:awaiting response Status - Awaiting response from author and removed awaiting review Pull request awaiting review labels Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L CL Change Size: Large stat:awaiting response Status - Awaiting response from author

Projects

Status: Reviewer Requested Changes

Development

Successfully merging this pull request may close these issues.

Can't compile tensorflow 2.19.1 on riscv

6 participants