Bazel build problem

I tried bazel build //apps/samples/stereo_dummy after installing isaac-sdk. My bazel version is 2.0.0, gpu is V100, os is Ubuntu18.04, nvidia driver is 440.95. But I encountered the following problem:

INFO: Call stack for the definition of repository 'cuda_x86_64' which is a http_ar
chive (rule definition at /home/flexivsu/.cache/bazel/_bazel_flexivsu/e28d28445065
972a67dca19a5eae9144/external/bazel_tools/tools/build_defs/repo/http.bzl:292:16):
 - /home/flexivsu/isaac/engine/build/isaac.bzl:425:9
 - /home/flexivsu/isaac/engine/build/isaac.bzl:432:5
 - /home/flexivsu/isaac/third_party/engine.bzl:299:5
 - /home/flexivsu/isaac/WORKSPACE:19:1
WARNING: Download from https://developer.nvidia.com/isaac/download/third_party/cud
a-10-0-cudnn7-6-3-28-x86_64-tar-xz failed: class java.io.IOException Tried to reco
nnect at offset 6,155,494 but server didn't support it
ERROR: An error occurred during the fetch of repository 'cuda_x86_64':
   java.io.IOException: Error downloading [https://developer.nvidia.com/isaac/down
load/third_party/cuda-10-0-cudnn7-6-3-28-x86_64-tar-xz] to /home/flexivsu/.cache/b
azel/_bazel_flexivsu/e28d28445065972a67dca19a5eae9144/external/cuda_x86_64/cuda-10
-0-cudnn7-6-3-28-x86_64-tar-xz.tar.xz: Tried to reconnect at offset 6,155,494 but
server didn't support it
ERROR: /home/flexivsu/isaac/third_party/BUILD:13:1: //third_party:nppif depends on
 @cuda_x86_64//:nppif in repository @cuda_x86_64 which failed to fetch. no such pa
ckage '@cuda_x86_64//': java.io.IOException: Error downloading [https://developer.
nvidia.com/isaac/download/third_party/cuda-10-0-cudnn7-6-3-28-x86_64-tar-xz] to /h
ome/flexivsu/.cache/bazel/_bazel_flexivsu/e28d28445065972a67dca19a5eae9144/externa
l/cuda_x86_64/cuda-10-0-cudnn7-6-3-28-x86_64-tar-xz.tar.xz: Tried to reconnect at
offset 6,155,494 but server didn't support it
ERROR: /home/flexivsu/isaac/third_party/BUILD:13:1: //third_party:cuda depends on
@cuda_x86_64//:cuda in repository @cuda_x86_64 which failed to fetch. no such package '@cuda_x86_64//': java.io.IOException: Error downloading [https://developer.nvidia.com/isaac/download/third_party/cuda-10-0-cudnn7-6-3-28-x86_64-tar-xz] to /home/flexivsu/.cache/bazel/_bazel_flexivsu/e28d28445065972a67dca19a5eae9144/external/cuda_x86_64/cuda-10-0-cudnn7-6-3-28-x86_64-tar-xz.tar.xz: Tried to reconnect at offset 6,155,494 but server didn't support it
ERROR: /home/flexivsu/isaac/third_party/BUILD:13:1: //third_party:npps depends on
@cuda_x86_64//:npps in repository @cuda_x86_64 which failed to fetch. no such package '@cuda_x86_64//': java.io.IOException: Error downloading [https://developer.nvidia.com/isaac/download/third_party/cuda-10-0-cudnn7-6-3-28-x86_64-tar-xz] to /home/flexivsu/.cache/bazel/_bazel_flexivsu/e28d28445065972a67dca19a5eae9144/external/cuda_x86_64/cuda-10-0-cudnn7-6-3-28-x86_64-tar-xz.tar.xz: Tried to reconnect at offset 6,155,494 but server didn't support it
ERROR: /home/flexivsu/isaac/third_party/BUILD:13:1: //third_party:nppig depends on @cuda_x86_64//:nppig in repository @cuda_x86_64 which failed to fetch. no such package '@cuda_x86_64//': java.io.IOException: Error downloading [https://developer.nvidia.com/isaac/download/third_party/cuda-10-0-cudnn7-6-3-28-x86_64-tar-xz] to /home/flexivsu/.cache/bazel/_bazel_flexivsu/e28d28445065972a67dca19a5eae9144/external/cuda_x86_64/cuda-10-0-cudnn7-6-3-28-x86_64-tar-xz.tar.xz: Tried to reconnect at
offset 6,155,494 but server didn't support it
ERROR: /home/flexivsu/isaac/third_party/BUILD:13:1: //third_party:nppitc depends on @cuda_x86_64//:nppitc in repository @cuda_x86_64 which failed to fetch. no such
package '@cuda_x86_64//': java.io.IOException: Error downloading [https://developer.nvidia.com/isaac/download/third_party/cuda-10-0-cudnn7-6-3-28-x86_64-tar-xz] to
/home/flexivsu/.cache/bazel/_bazel_flexivsu/e28d28445065972a67dca19a5eae9144/external/cuda_x86_64/cuda-10-0-cudnn7-6-3-28-x86_64-tar-xz.tar.xz: Tried to reconnect at offset 6,155,494 but server didn't support it
DEBUG: Rule 'isaac_assets' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "032d56b65d17acf360cab1145e57cdeb0a0d2e25814624a90d44766e624e40f1"
DEBUG: Call stack for the definition of repository 'isaac_assets' which is a http_archive (rule definition at /home/flexivsu/.cache/bazel/_bazel_flexivsu/e28d28445065972a67dca19a5eae9144/external/bazel_tools/tools/build_defs/repo/http.bzl:292:16):
 - /home/flexivsu/isaac/engine/build/isaac.bzl:425:9
 - /home/flexivsu/isaac/engine/build/isaac.bzl:432:5
 - /home/flexivsu/isaac/third_party/engine.bzl:317:5
 - /home/flexivsu/isaac/WORKSPACE:19:1
WARNING: errors encountered while analyzing target '//apps/samples/stereo_dummy:stereo_dummy': it will not be built
INFO: Analyzed target //apps/samples/stereo_dummy:stereo_dummy (0 packages loaded, 0 targets configured).
INFO: Found 0 targets...
ERROR: command succeeded, but there were loading phase errors
INFO: Elapsed time: 224.613s, Critical Path: 0.00s
INFO: 0 processes.
FAILED: Build did NOT complete successfully

Does anybody have the same problem?

Are you conected to internet when you try stereo_dummy ?
‘cuda_x86_64’ which is a http_archive -> need internet to download the archive

Regards,
Planktos

I finally solved the problem. It seems the problem is lack of .bashrc file in isaac-sdk folder.

Congrat ! I also had an issue with .bashrc and saw many posts that had the same issue, nvidia shoud do something about this file…

Regards