Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bazel build issue #1

Open
RoboticsIntelligence opened this issue Jun 28, 2021 · 10 comments
Open

bazel build issue #1

RoboticsIntelligence opened this issue Jun 28, 2021 · 10 comments

Comments

@RoboticsIntelligence
Copy link

New with the Isaac and bazel.

Following the direction, after changing the path to "/home/user/isaac-sdk" and to ran the "bazel build" command from the package as instructed, I got the following error:

-----------Error
WARNING: Usage: bazel build .
Invoke bazel help build for full description of usage and options.
Your request is correct, but requested an empty set of targets. Nothing will be built.
ERROR: no such package '@com_nvidia_isaac//third_party': No WORKSPACE file found in /home/user/.cache/bazel/_bazel_x/df27c2fbab5c087887dcfca680e7380b/external/com_nvidia_isaac
INFO: Elapsed time: 0.059s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)

Any help would be appreciated.

Thanks.

@lenpuc
Copy link
Collaborator

lenpuc commented Jun 28, 2021

Hi, thanks for reaching out.

I am currently not sure what exactly is happening there. Could you provide all the versions you are using for the build.

Furthermore there appears to be a similar Issue on the nvidia forums: https://forums.developer.nvidia.com/t/error-on-build-example/167914
Maybe their suggestions help?

@uahic
Copy link
Collaborator

uahic commented Jun 28, 2021

Hi!
it seems indeed (as far as we can judge at this moment) it is the same error @puck-fzi pointed to.

I would suggest that you try to modify the 'WORKSPACE' file in the root folder of this git-repository and change line 32 to the path of the ISAAC SDK that you are using, with the subtle change (since version 2020.2) of adding ./sdk, so in total:
<path_to_nvidias_sdk>/sdk

Let us know if this worked out for you

@RoboticsIntelligence
Copy link
Author

RoboticsIntelligence commented Jun 29, 2021

Thank you for your help and time specially given it is an old project.

@puck-fzi Here is what I have:

$ bazel --version
bazel 3.1.0
$ whereis bazel
bazel: /usr/local/bin/bazel /usr/local/lib/bazel

Isaac SDK - 2021.1
location: /home/user/isaac-sdk

@uahic I have tried those suggestions mentioned here --> https://forums.developer.nvidia.com/t/error-on-build-example/167914
but it did not work as it did not work for them. Last update was three months ago reporting the same issue.

I have been using the Isaac SDK 2021.1 since it came out and it is working okay with their examples.

Again, your help/comments/suggestions highly appreciated.

@RoboticsIntelligence
Copy link
Author

@puck-fzi @uahic
FYI: New update on the issue from Nvidia folks: https://forums.developer.nvidia.com/t/error-on-build-example/167914/7

@lenpuc
Copy link
Collaborator

lenpuc commented Jul 5, 2021

Thanks for providing us with your system setup.

Did you try the approach from the NVIDIA Forums? If yes, did this help or resolve some of the issues?

We will have a look into it as well, it might take some time though until we can provide a solution

@uahic
Copy link
Collaborator

uahic commented Jul 5, 2021

@RoboticsIntelligence I adjusted all our Bazel files according to Isaac 2021.1

Currently I am able to compile the main app but not websight (missing shared object files for websight), not sure where the issue there resides at the moment, I need to check more in detail. Beyond compiling the main app I am currently not able to test the migrated code on a real sensor as I need to request it first and it might take a while (home office)

Step 1: Adjust the WORKSPACE file again in the main folder, you need to change 2 paths in line 32 and 37, respectively.
Step 2: Run bazel run //packages/sick/apps:sick_safetyscanner_test with your SICK sensor attached
Step 3: Let us know if that works for you

Please check out the following new branch and let us know if the sensor app runs correctly
https://github.com/SICKAG/sick_safetyscanners_isaac/tree/migration_2021_1

@RoboticsIntelligence
Copy link
Author

RoboticsIntelligence commented Aug 4, 2021

@uahic

Sorry for the late reply.

Good news is that I am able to build the package.

I will report back after test run on the live Sick NanoScan3.

Thank you for your help.

@RoboticsIntelligence
Copy link
Author

@uahic

I was able to successfully run on the live Sick NanoScan3 the bazel run //packages/sick/apps:sick_safetyscanner_test command.

But received the following errors when ran the bazel run //packages/sick/apps:sick_safetyscanner_websight

x@alien:~/sick_safetyscanners_isaac$ bazel run //packages/sick/apps:sick_safetyscanner_websight
INFO: Analyzed target //packages/sick/apps:sick_safetyscanner_websight (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
Target //packages/sick/apps:sick_safetyscanner_websight up-to-date:
bazel-bin/packages/sick/apps/run_sick_safetyscanner_websight
bazel-bin/packages/sick/apps/sick_safetyscanner_websight
INFO: Elapsed time: 0.197s, Critical Path: 0.01s
INFO: 0 processes.
INFO: Build completed successfully, 1 total action
INFO: Running command line: bazel-bin/packages/sick/apps/sick_safetyscanner_websINFO: Build completed successfully, 1 total action
2021-08-04 11:25:26.046 WARN external/com_nvidia_isaac_engine/engine/alice/backend/application_json_loader.cpp@183: This application does not have an explicit scheduler configuration. One will be autogenerated to the best of the system's abilities if possible.
2021-08-04 11:25:26.046 INFO external/com_nvidia_isaac_engine/engine/alice/backend/redis_backend.cpp@40: Successfully connected to Redis server.

2021-08-04 11:25:26.046 WARN external/com_nvidia_isaac_engine/engine/alice/backend/backend.cpp@200: This application does not have an execution group configuration. One will be autogenerated to the best of the systems abilities if possible.
2021-08-04 11:25:26.047 WARN external/com_nvidia_isaac_engine/engine/gems/scheduler/scheduler.cpp@341: No default execution groups specified. Attempting to create scheduler configuration for 12 remaining cores. This may be non optimal for the system and application.
2021-08-04 11:25:26.047 INFO external/com_nvidia_isaac_engine/engine/gems/scheduler/scheduler.cpp@291: Scheduler execution groups are:
2021-08-04 11:25:26.047 INFO external/com_nvidia_isaac_engine/engine/gems/scheduler/scheduler.cpp@300: BlockerGroup: Cores = [3, 4, 5], Workers = No
2021-08-04 11:25:26.047 INFO external/com_nvidia_isaac_engine/engine/gems/scheduler/scheduler.cpp@300: WorkerGroup: Cores = [11, 10, 9, 8, 7, 6, 1, 0, 2], Workers = Yes
2021-08-04 11:25:26.049 INFO external/com_nvidia_isaac_engine/engine/alice/backend/modules.cpp@271: Loaded module 'packages/sick/libsick_module.so': Now has 29 components total
2021-08-04 11:25:26.049 ERROR external/com_nvidia_isaac_engine/engine/alice/backend/modules.cpp@295: external/com_nvidia_isaac/packages/sight/libsight_module.so: /home/x/.cache/bazel/_bazel_x/df27c2fbab5c087887dcfca680e7380b/execroot/sick_safetyscanners/bazel-out/k8-opt/bin/packages/sick/apps/sick_safetyscanner_websight.runfiles/sick_safetyscanners//external/com_nvidia_isaac/packages/sight/libsight_module.so: cannot open shared object file: No such file or directory
2021-08-04 11:25:26.049 ERROR external/com_nvidia_isaac_engine/engine/alice/backend/modules.cpp@295: external/com_nvidia_isaac/packages/utils/libutils_module.so: /home/x/.cache/bazel/_bazel_x/df27c2fbab5c087887dcfca680e7380b/execroot/sick_safetyscanners/bazel-out/k8-opt/bin/packages/sick/apps/sick_safetyscanner_websight.runfiles/sick_safetyscanners//external/com_nvidia_isaac/packages/utils/libutils_module.so: cannot open shared object file: No such file or directory
2021-08-04 11:25:26.049 ERROR external/com_nvidia_isaac_engine/engine/alice/backend/modules.cpp@295: external/com_nvidia_isaac/packages/viewers/libviewers_module.so: /home/x/.cache/bazel/_bazel_x/df27c2fbab5c087887dcfca680e7380b/execroot/sick_safetyscanners/bazel-out/k8-opt/bin/packages/sick/apps/sick_safetyscanner_websight.runfiles/sick_safetyscanners//external/com_nvidia_isaac/packages/viewers/libviewers_module.so: cannot open shared object file: No such file or directory
2021-08-04 11:25:26.049 PANIC external/com_nvidia_isaac_engine/engine/alice/backend/modules.cpp@297: Could not load all required modules for application

| Isaac application terminated unexpectedly |

#1 external/com_nvidia_isaac_engine/engine/alice/tools/main(+0x6ccba) [0x55f177090cba]
#02 external/com_nvidia_isaac_engine/engine/alice/tools/main(+0xe4130) [0x55f177108130]
#03 external/com_nvidia_isaac_engine/engine/alice/tools/main(+0xe44a0) [0x55f1771084a0]
#04 /lib/x86_64-linux-gnu/libpthread.so.0(+0x12980) [0x7f892da59980]
#05 /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7) [0x7f892d0f3fb7]
#06 /lib/x86_64-linux-gnu/libc.so.6(abort+0x141) [0x7f892d0f5921]
#07 external/com_nvidia_isaac_engine/engine/alice/tools/main(+0x781ae) [0x55f17709c1ae]
#08 external/com_nvidia_isaac_engine/engine/alice/tools/main(+0x315a7) [0x55f1770555a7]
#09 external/com_nvidia_isaac_engine/engine/alice/tools/main(+0x33a69) [0x55f177057a69]
#10 external/com_nvidia_isaac_engine/engine/alice/tools/main(+0x33dbf) [0x55f177057dbf]
#11 external/com_nvidia_isaac_engine/engine/alice/tools/main(+0x12873) [0x55f177036873]
#12 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7f892d0d6bf7]
#13 external/com_nvidia_isaac_engine/engine/alice/tools/main(+0x17eca) [0x55f17703beca]

Minidump written to: /tmp/5710ac94-81c6-4b66-4b482fac-576655d9.dmp
Aborted

Thank you for your help.

@uahic
Copy link
Collaborator

uahic commented Aug 9, 2021

@RoboticsIntelligence It seems that the shared object for the web-sight module is incorrectly referenced (likely my mistake)

/sick/apps/sick_safetyscanner_websight.runfiles/sick_safetyscanners//external/com_nvidia_isaac/packages/sight/libsight_module.so: cannot open shared object file: No such file or directory

I will come back at you and take a look into this issue

@RoboticsIntelligence
Copy link
Author

@RoboticsIntelligence It seems that the shared object for the web-sight module is incorrectly referenced (likely my mistake)

/sick/apps/sick_safetyscanner_websight.runfiles/sick_safetyscanners//external/com_nvidia_isaac/packages/sight/libsight_module.so: cannot open shared object file: No such file or directory

I will come back at you and take a look into this issue

@uahic Did you find the time to get the issue resolve?

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

No branches or pull requests

3 participants