build from source in jetson nano bazel report error
Hi @Stave604671 , 

From the log stack it seems related to java environment and logged under warning and it might not affect the build. Could you please confirm whether the build is failing or just you want to report about warnings ?

With latest versions I am sure there is no problem with builds.We have tested the builds on Ubuntu VMs and found success.Could you please confirm whether any reason for sticking to TF 2.6 version as we are not actively supporting the older versions. Request you to please cross check with latest versions.

I have cross checked the build with Master and could not notice any such warning. Please refer to attached logs below.

```
(bazel2) suryanarayanay@surya-ubuntu20:~/tensorflow$ bazel build //tensorflow/tools/pip_package:build_pip_package &>60343logs.txt

INFO: Options provided by the client:
  Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'build' from /home/suryanarayanay/tensorflow/.bazelrc:
  Inherited 'common' options: --experimental_repo_remote_exec
INFO: Reading rc options for 'build' from /home/suryanarayanay/tensorflow/.bazelrc:
  'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility
INFO: Reading rc options for 'build' from /home/suryanarayanay/tensorflow/.tf_configure.bazelrc:
  'build' options: --action_env PYTHON_BIN_PATH=/home/suryanarayanay/miniconda3/bin/python3 --action_env PYTHON_LIB_PATH=/home/suryanarayanay/miniconda3/lib/python3.10/site-packages --python_path=/home/suryanarayanay/miniconda3/bin/python3
INFO: Reading rc options for 'build' from /home/suryanarayanay/tensorflow/.bazelrc:
  'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils
INFO: Found applicable config definition build:short_logs in file /home/suryanarayanay/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING
INFO: Found applicable config definition build:v2 in file /home/suryanarayanay/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
INFO: Found applicable config definition build:linux in file /home/suryanarayanay/tensorflow/.bazelrc: --host_copt=-w --copt=-Wno-all --copt=-Wno-extra --copt=-Wno-deprecated --copt=-Wno-deprecated-declarations --copt=-Wno-ignored-attributes --copt=-Wno-array-bounds --copt=-Wunused-result --copt=-Werror=unused-result --copt=-Wswitch --copt=-Werror=switch --copt=-Wno-error=unused-but-set-variable --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --config=dynamic_kernels --distinct_host_configuration=false --experimental_guard_against_concurrent_changes
INFO: Found applicable config definition build:dynamic_kernels in file /home/suryanarayanay/tensorflow/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS
Loading: 
Loading: 0 packages loaded
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (0 packages loaded, 0 targets configured)
INFO: Analyzed target //tensorflow/tools/pip_package:build_pip_package (0 packages loaded, 1343 targets configured).

INFO: Found 1 target...
[0 / 15] [Prepa] BazelWorkspaceStatusAction stable-status.txt
[82 / 119] Compiling src/util.cpp; 0s local ... (8 actions, 7 running)
[83 / 119] Compiling src/idl_gen_text.cpp; 2s local ... (8 actions running)
[84 / 119] Compiling src/idl_gen_text.cpp; 3s local ... (8 actions running)
[85 / 119] Compiling src/idl_gen_text.cpp; 4s local ... (8 actions running)
[89 / 119] Compiling src/idl_gen_python.cpp; 4s local ... (8 actions running)
[90 / 119] Compiling src/idl_gen_python.cpp; 6s local ... (8 actions running)
[91 / 119] Compiling src/idl_gen_python.cpp; 8s local ... (8 actions running)
[94 / 119] Compiling src/idl_gen_rust.cpp; 9s local ... (8 actions running)
[99 / 119] Compiling src/idl_gen_cpp.cpp; 8s local ... (7 actions running)
[103 / 119] Compiling src/idl_gen_cpp.cpp; 10s local ... (8 actions running)
[105 / 119] Compiling src/idl_gen_cpp.cpp; 13s local ... (8 actions running)
[123 / 318] Compiling src/idl_gen_java.cpp; 8s local ... (8 actions running)
[132 / 318] Compiling src/idl_parser.cpp; 11s local ... (8 actions running)
[140 / 318] Compiling src/idl_parser.cpp; 15s local ... (8 actions running)
[150 / 318] Compiling src/idl_parser.cpp; 20s local ... (8 actions running)
[169 / 318] Compiling src/google/protobuf/compiler/python/pyi_generator.cc; 4s local ... (8 actions running)
[186 / 318] Compiling src/google/protobuf/compiler/java/field.cc; 3s local ... (8 actions running)
[206 / 318] Compiling src/google/protobuf/compiler/csharp/csharp_helpers.cc; 2s local ... (8 actions running)
[231 / 318] Compiling src/google/protobuf/struct.pb.cc; 5s local ... (8 actions running)
[264 / 318] Compiling src/google/protobuf/compiler/cpp/message.cc; 10s local ... (8 actions, 7 running)
[302 / 318] Compiling src/google/protobuf/descriptor.cc; 12s local ... (8 actions, 7 running)
[372 / 451] Compiling src/google/protobuf/descriptor.cc; 6s local ... (8 actions, 7 running)
[419 / 451] Compiling src/google/protobuf/text_format.cc; 5s local ... (8 actions, 7 running)
[649 / 3,019] Compiling llvm/lib/TableGen/TGParser.cpp; 7s local ... (8 actions, 7 running)
[734 / 3,019] Compiling llvm/lib/Support/Path.cpp; 4s local ... (8 actions, 7 running)
[807 / 3,019] Compiling llvm/utils/TableGen/AsmMatcherEmitter.cpp; 10s local ... (8 actions, 7 running)
[844 / 3,019] Compiling llvm/utils/TableGen/AsmWriterEmitter.cpp; 10s local ... (8 actions, 7 running)
[947 / 3,019] Compiling llvm/lib/Support/Program.cpp; 3s local ... (8 actions, 7 running)
[1,059 / 3,024] Compiling mlir/tools/mlir-tblgen/OpFormatGen.cpp; 11s local ... (8 actions, 7 running)
[1,438 / 3,028] Compiling tensorflow/core/ir/ops.cc; 19s local ... (8 actions, 7 running)
[1,517 / 3,028] Compiling tensorflow/core/protobuf/meta_graph.pb.cc; 9s local ... (8 actions, 7 running)
[1,641 / 3,034] Compiling tensorflow/core/common_runtime/device_set.cc; 8s local ... (8 actions, 7 running)
[1,693 / 3,034] Compiling tensorflow/core/common_runtime/inline_function_utils.cc; 13s local ... (8 actions, 7 running)
[1,759 / 3,034] Compiling tensorflow/core/grappler/optimizers/memory_optimizer.cc; 20s local ... (8 actions, 7 running)
[2,035 / 3,347] Compiling tensorflow/core/grappler/optimizers/auto_mixed_precision.cc; 19s local ... (8 actions, 7 running)
[2,315 / 3,349] Compiling mlir/lib/IR/OperationSupport.cpp; 6s local ... (8 actions, 7 running)
[2,648 / 3,349] Compiling tensorflow/core/transforms/utils/eval_utils.cc; 7s local ... (8 actions, 7 running)
[2,976 / 3,349] Compiling tensorflow/core/ir/importexport/convert_types.cc; 7s local ... (8 actions, 7 running)
[3,293 / 3,349] Compiling tensorflow/core/util/tensor_bundle/tensor_bundle.cc; 14s local ... (8 actions running)
[4,197 / 10,183] Compiling tensorflow/core/kernels/reverse_op.cc; 39s local ... (8 actions running)
[5,137 / 11,053] Compiling tensorflow/core/kernels/ragged_tensor_to_tensor_op.cc; 28s local ... (8 actions running)
[5,433 / 11,065] Compiling tensorflow/lite/kernels/conv.cc; 28s local ... (8 actions running)
[5,525 / 11,066] Compiling tensorflow/dtensor/mlir/dtensor_allreduce_scatter_optimization.cc; 31s local ... (8 actions running)
[5,921 / 11,329] Compiling tensorflow/compiler/mlir/lite/transforms/optimize.cc; 47s local ... (8 actions running)
[6,100 / 11,329] Compiling tensorflow/core/kernels/fft_ops.cc; 32s local ... (8 actions running)
[6,443 / 11,329] Compiling tensorflow/core/kernels/gather_nd_op_cpu_impl_3.cc; 9s local ... (8 actions, 7 running)
[6,950 / 11,329] Compiling tensorflow/core/kernels/cwise_op_xlogy.cc; 33s local ... (8 actions, 7 running)
[7,367 / 11,329] Compiling tensorflow/compiler/mlir/tensorflow/transforms/localize_var_handles.cc; 27s local ... (8 actions, 7 running)
[7,776 / 11,330] Compiling tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc; 182s local ... (8 actions, 7 running)
[8,295 / 11,330] Compiling llvm/lib/Target/AArch64/GISel/AArch64PreLegalizerCombiner.cpp; 17s local ... (8 actions, 7 running)
[8,635 / 11,330] Compiling tensorflow/dtensor/mlir/op_to_device_cluster.cc; 28s local ... (8 actions, 7 running)
```

My build interrupted by VM disconnection.But I am sure it can be succeeded. Please check with latest versions and let us know if having issues. Thanks!
 > From the log stack it seems related to java environment and logged under warning and it might not affect the build. Could you please confirm whether the build is failing or just you want to report about warnings ?
> 
> With latest versions I am sure there is no problem with builds.We have tested the builds on Ubuntu VMs and found success.Could you please confirm whether any reason for sticking to TF 2.6 version as we are not actively supporting the older versions. Request you to please cross check with latest versions.
> 
> I have cross checked the build with Master and could not notice any such warning. Please refer to attached logs below.

Thank you very much for your reply to my question. My requirement is within the scope of edge calculation. The operating system supported by jetson nano affects glibc<=2.28. So the higher version of me is a little difficult. In addition, the version of java --version here is this, I do not know whether you are consistent with this under the virtual machine, or bazel3.7.2 requires other versions of java to successfully compile tensorflow.
`java --version`

openjdk 11.0.18 2023-01-17
OpenJDK Runtime Environment (build 11.0.18+10-post-Ubuntu-0ubuntu118.04.1)
OpenJDK 64-Bit Server VM (build 11.0.18+10-post-Ubuntu-0ubuntu118.04.1, mixed mode)

In this picture, I used to install the gpu. The gpu and cpu have the same problem. I will feed back the screenshot of the failed installation of the cpu version to you later。
![image](https://user-images.githubusercontent.com/59908449/233373363-689285a8-3b5a-4a61-9610-217bce1b98e2.png)
```

Starting local Bazel server and connecting to it...
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'build' from /home/jetson/tensorflow/.bazelrc:
  Inherited 'common' options: --experimental_repo_remote_exec
INFO: Reading rc options for 'build' from /home/jetson/.bazelrc:
  Inherited 'common' options: --enable_platform_specific_config
INFO: Reading rc options for 'build' from /home/jetson/tensorflow/.bazelrc:
  'build' options: --define framework_shared_object=true --java_toolchain=@tf_toolchains//toolchains/java:tf_java_toolchain --host_java_toolchain=@tf_toolchains//toolchains/java:tf_java_toolchain --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true
INFO: Reading rc options for 'build' from /home/jetson/tensorflow/.tf_configure.bazelrc:
  'build' options: --action_env PYTHON_BIN_PATH=/home/jetson/miniforge3/envs/py38/bin/python3 --action_env PYTHON_LIB_PATH=/home/jetson/miniforge3/envs/py38/lib/python3.8/site-packages --python_path=/home/jetson/miniforge3/envs/py38/bin/python3
INFO: Found applicable config definition build:short_logs in file /home/jetson/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING
INFO: Found applicable config definition build:v2 in file /home/jetson/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
INFO: Found applicable config definition build:linux in file /home/jetson/tensorflow/.bazelrc: --copt=-w --host_copt=-w --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++14 --host_cxxopt=-std=c++14 --config=dynamic_kernels --distinct_host_configuration=false
INFO: Found applicable config definition build:dynamic_kernels in file /home/jetson/tensorflow/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
DEBUG: /home/jetson/experiment/tensorflow_pkg/external/tf_runtime/third_party/cuda/dependencies.bzl:51:10: The following command will download NVIDIA proprietary software. By using the software you agree to comply with the terms of the license agreement that accompanies the software. If you do not agree to the terms of the license agreement, do not use the software.
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
    currently loading: tensorflow/tools/pip_package
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (1 packages loaded, 0 targets configured)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (22 packages loaded, 14 targets configured)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (55 packages loaded, 14 targets configured)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (56 packages loaded, 14 targets configured)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (76 packages loaded, 111 targets configured)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (105 packages loaded, 237 targets configured)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (127 packages loaded, 2665 targets configured)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (150 packages loaded, 3007 targets configured)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (168 packages loaded, 3228 targets configured)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (205 packages loaded, 3811 targets configured)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (208 packages loaded, 3811 targets configured)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (208 packages loaded, 3811 targets configured)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (208 packages loaded, 3811 targets configured)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (208 packages loaded, 3811 targets configured)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (208 packages loaded, 3811 targets configured)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (219 packages loaded, 3908 targets configured)
DEBUG: Rule 'io_bazel_rules_docker' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1556410077 -0400"
DEBUG: Repository io_bazel_rules_docker instantiated at:
  /home/jetson/tensorflow/WORKSPACE:23:14: in <toplevel>
  /home/jetson/tensorflow/tensorflow/workspace0.bzl:108:34: in workspace
  /home/jetson/experiment/tensorflow_pkg/external/bazel_toolchains/repositories/repositories.bzl:37:23: in repositories
Repository rule git_repository defined at:
  /home/jetson/experiment/tensorflow_pkg/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel>
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (225 packages loaded, 4008 targets configured)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (225 packages loaded, 4008 targets configured)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (225 packages loaded, 4008 targets configured)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (264 packages loaded, 4132 targets configured)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (299 packages loaded, 4140 targets configured)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (303 packages loaded, 4140 targets configured)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (345 packages loaded, 7081 targets configured)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (414 packages loaded, 11877 targets configured)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (421 packages loaded, 17093 targets configured)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (421 packages loaded, 17093 targets configured)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (421 packages loaded, 17093 targets configured)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (421 packages loaded, 17093 targets configured)
INFO: Analyzed target //tensorflow/tools/pip_package:build_pip_package (428 packages loaded, 25904 targets configured).
INFO: Found 1 target...
[0 / 305] [Prepa] BazelWorkspaceStatusAction stable-status.txt ... (2 actions, 0 running)
[106 / 843] Compiling com_google_protobuf/src/google/protobuf/compiler/java/java_message_builder.cc; 7s local ... (4 actions, 3 running)
[319 / 933] Compiling tensorflow/python/tfe_wrapper.cc; 8s local ... (4 actions, 3 running)
[605 / 933] Compiling llvm-project/llvm/lib/Support/YAMLTraits.cpp; 7s local ... (4 actions, 3 running)
[814 / 1,259] Compiling tensorflow/lite/kernels/floor.cc; 8s local ... (4 actions, 3 running)
[960 / 1,263] Compiling tensorflow/lite/kernels/batch_matmul.cc; 11s local ... (4 actions, 3 running)
[1,355 / 1,686] Compiling com_google_protobuf/src/google/protobuf/util/internal/proto_writer.cc; 9s local ... (4 actions, 3 running)
[1,606 / 3,264] Compiling llvm-project/llvm/lib/DebugInfo/CodeView/EnumTables.cpp; 27s local ... (4 actions, 3 running)
[1,868 / 3,300] Compiling llvm-project/llvm/lib/IR/SafepointIRVerifier.cpp; 19s local ... (4 actions, 3 running)
[2,000 / 3,300] Compiling llvm-project/llvm/lib/IR/Instructions.cpp; 31s local ... (4 actions, 3 running)
[2,187 / 3,345] Compiling llvm-project/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp; 18s local ... (4 actions, 3 running)
[2,301 / 3,345] Compiling llvm-project/llvm/lib/Transforms/Utils/CallGraphUpdater.cpp; 9s local ... (4 actions, 3 running)
[2,448 / 3,345] Compiling llvm-project/llvm/lib/CodeGen/TargetLoweringBase.cpp; 21s local ... (4 actions, 3 running)
[2,642 / 3,345] Compiling llvm-project/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp; 19s local ... (4 actions running)
[2,862 / 3,345] Compiling llvm-project/llvm/lib/Target/X86/X86TargetTransformInfo.cpp; 32s local ... (4 actions, 3 running)
[4,085 / 4,587] Compiling llvm-project/mlir/lib/IR/Diagnostics.cpp; 13s local ... (4 actions, 3 running)
[5,435 / 6,419] Compiling tensorflow/tools/proto_text/gen_proto_text_functions_lib.cc; 28s local ... (3 actions, 2 running)
[5,992 / 6,419] Compiling tensorflow/core/util/example_proto_fast_parsing.cc; 37s local ... (4 actions, 3 running)
[6,625 / 9,288] Compiling tensorflow/core/kernels/cwise_op_select.cc; 1433s local ... (4 actions running)
[6,649 / 9,288] Compiling tensorflow/core/kernels/cwise_op_select.cc; 3778s local ... (4 actions running)
[6,661 / 9,288] Compiling tensorflow/core/kernels/cwise_op_greater.cc; 4624s local ... (4 actions running)
[6,663 / 9,288] Compiling tensorflow/core/kernels/cwise_op_greater.cc; 7760s local ... (4 actions running)
[6,667 / 9,288] Compiling tensorflow/core/kernels/cwise_op_greater_equal.cc; 7010s local ... (4 actions running)
[6,685 / 9,288] Compiling tensorflow/core/kernels/cwise_op_div.cc; 5661s local ... (4 actions running)
[6,781 / 9,288] Compiling tensorflow/compiler/xla/service/qr_expander.cc; 32s local ... (4 actions, 3 running)
[7,131 / 9,322] Compiling tensorflow/core/kernels/linalg/svd_op_complex128.cc; 2690s local ... (3 actions running)
[7,178 / 9,322] Compiling tensorflow/core/kernels/matmul_op_real.cc; 50s local ... (4 actions running)
[7,180 / 9,322] Compiling tensorflow/core/kernels/matmul_op_real.cc; 7307s local ... (4 actions running)
[7,218 / 9,322] Compiling tensorflow/core/kernels/matmul_op_real.cc; 15604s local ... (4 actions running)
[7,277 / 9,322] Compiling tensorflow/core/kernels/matmul_op_real.cc; 25169s local ... (4 actions running)
[7,400 / 9,322] Compiling tensorflow/core/kernels/matmul_op_real.cc; 36163s local ... (4 actions running)
[7,408 / 9,322] Compiling tensorflow/core/kernels/matmul_op_real.cc; 48846s local ... (4 actions running)

Server terminated abruptly (error code: 1, error message: 'Received RST_STREAM with error code 8', log file: '/home/jetson/experiment/tensorflow_pkg/server/jvm.out')
```
 Hi @Stave604671 ,

I have not installed java environment as latest default build seems not supporting java builds. I have cross checked the [.bazelrc-TF2.6v](https://github.com/tensorflow/tensorflow/blob/r2.6/.bazelrc#L104) file in TF 2.6 version and found there are default java tool chains are built which is not the case with latest versions.Please refer to [.bazelrc](https://github.com/tensorflow/tensorflow/blob/r2.12/.bazelrc) file of TF 2.12 for reference which has no default build for java.
May be this will throw some pointers on your issue. 

I would like to know whether your project or OS has dependencies with java.

Our team also not actively supporting TF2.6 version now as it is quiet older.

So is there any way you can able replicate the issue with latest versions.Since our build instructions were tested only for Ubuntu OS as per attached [source](https://www.tensorflow.org/install/source#:~:text=Build%20a%20TensorFlow%20pip%20package%20from%20source%20and%20install%20it%20on%20Ubuntu%20Linux%20and%20macOS.%20While%20the%20instructions%20might%20work%20for%20other%20systems%2C%20it%20is%20only%20tested%20and%20supported%20for%20Ubuntu%20and%20macOS.)
 > Hi @Stave604671 ,
> 
> I have not installed java environment as latest default build seems not supporting java builds. I have cross checked the [.bazelrc-TF2.6v](https://github.com/tensorflow/tensorflow/blob/r2.6/.bazelrc#L104) file in TF 2.6 version and found there are default java tool chains are built which is not the case with latest versions.Please refer to [.bazelrc](https://github.com/tensorflow/tensorflow/blob/r2.12/.bazelrc) file of TF 2.12 for reference which has no default build for java. May be this will throw some pointers on your issue.
> 
> I would like to know whether your project or OS has dependencies with java.
> 
> Our team also not actively supporting TF2.6 version now as it is quiet older.
> 
> So is there any way you can able replicate the issue with latest versions.Since our build instructions were tested only for Ubuntu OS as per attached [source](https://www.tensorflow.org/install/source#:~:text=Build%20a%20TensorFlow%20pip%20package%20from%20source%20and%20install%20it%20on%20Ubuntu%20Linux%20and%20macOS.%20While%20the%20instructions%20might%20work%20for%20other%20systems%2C%20it%20is%20only%20tested%20and%20supported%20for%20Ubuntu%20and%20macOS.)

ok  I have switched the version you mentioned here. Do you have any requirements for the version of gcc and bazel? The environment variables ' _TF_MIN_BAZEL_VERSION  _TF_MAX_BAZEL_VERSION' mentioned in the installation instructions are not mentioned in the file you refer to.https://github.com/tensorflow/tensorflow/blob/r2.12/.bazelrc
my bazel version is 3.7.2 and gcc --version is 7.5.0
(py38) jetson@jetson-desktop:~/tensorflow$ git status
On branch r2.12
Your branch is up to date with 'origin/r2.12'.

nothing to commit, working tree clean
(py38) jetson@jetson-desktop:~/tensorflow$ bazel build --config=cuda //tensorflow/tools/pip_package:build_pip_package
INFO: Reading rc options for 'build' from /home/jetson/tensorflow/.bazelrc:
  'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility
ERROR: --experimental_link_static_libraries_once=false :: Unrecognized option: --experimental_link_static_libraries_once=false
 Hi @Stave604671 ,

You can find the bazel versions and GCC versions required for each version from the documentation [source](https://www.tensorflow.org/install/source#linux).

For Tf 2.12v :


Version | Python version | Compiler | Build tools
-- | -- | -- | --
tensorflow-2.12.0 | 3.8-3.11 | GCC 9.3.1 | Bazel 5.3.0




There is no need to set  `_TF_MIN_BAZEL_VERSION` or  `_TF_MAX_BAZEL_VERSION`.Required bazel version for each version mentioned in source code [here](https://github.com/tensorflow/tensorflow/blob/master/.bazelversion). Please download bazel 5.3.0 version or bazelisk. Bazelisk will use the bazel versions configured for respective TF version automatically. Please follow the documentation instructions [here](https://www.tensorflow.org/install/source#install_bazel).

Please try with correct configurations and let us know if still fails. Thanks!

 This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you. This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further. Are you satisfied with the resolution of your issue?
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60343">Yes</a>
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60343">No</a>

<details><summary>Click to expand!</summary> 
 
 ### Issue Type

Build/Install

### Have you reproduced the bug with TF nightly?

Yes

### Source

source

### Tensorflow Version

r2.6

### Custom Code

Yes

### OS Platform and Distribution

linux ubuntu18.04 jetpack461

### Mobile device

_No response_

### Python version

3.8

### Bazel version

3.7.2

### GCC/Compiler version

7.5.0

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current Behaviour?

i want install tensorflow-cpu==2.6 on jetson nano and python>=3.8 jetpack 4.61

### Standalone code to reproduce the issue

```shell
git checkout r2.6
./configure 
You have bazel 3.7.2- (@non-git) installed.
Please specify the location of python. [Default is /home/jetson/miniforge3/envs/py38/bin/python3]: 


Found possible Python library paths:
  /home/jetson/miniforge3/envs/py38/lib/python3.8/site-packages
Please input the desired Python library path to use.  Default is [/home/jetson/miniforge3/envs/py38/lib/python3.8/site-packages]

Do you wish to build TensorFlow with ROCm support? [y/N]: 
No ROCm support will be enabled for TensorFlow.

Do you wish to build TensorFlow with CUDA support? [y/N]: 
No CUDA support will be enabled for TensorFlow.

Do you wish to download a fresh release of clang? (Experimental) [y/N]: 
Clang will not be downloaded.

Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is -Wno-sign-compare]: 


Would you like to interactively configure ./WORKSPACE for Android builds? [y/N]: 
Not configuring the WORKSPACE for Android builds.

bazel --output_base=/home/jetson/experiment/tensorflow_pkg build //tensorflow/tools/pip_package:build_pip_package
```


### Relevant log output

```shell
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.devtools.build.lib.unsafe.StringUnsafe (file:/home/jetson/.cache/bazel/_bazel_jetson/install/55993bca119e0c9410de59d485012347/A-server.jar) to constructor java.lang.String(byte[],byte)
WARNING: Please consider reporting this to the maintainers of com.google.devtools.build.lib.unsafe.StringUnsafe
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
```
</details>