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

"No such file or directory" when input make -j for local installation #11

Open
FANG-Zhiwei opened this issue Jul 9, 2024 · 4 comments
Assignees

Comments

@FANG-Zhiwei
Copy link

Hi, I'm doing the local installation on my linux
Linux ren7 5.15.0-113-generic #123~20.04.1-Ubuntu SMP Wed Jun 12 17:33:13 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
I created a conda environment python==3.8 before installation.

The following is OK
git clone -b gcs-science-robotics git@github.com:wrangelvid/drake.git mkdir drake-build cd drake-build cmake -DWITH_MOSEK=ON [-DWITH_GUROBI=ON -DWITH_ROBOTLOCOMOTION_SNOPT=ON] ../drake

But when input
make -j
the terminal says
[ 12%] Performing build step for 'drake_cxx_python' [INFO 17:29:02.157 src/main/cpp/option_processor.cc:407] Looking for the following rc files: /etc/bazel.bazelrc,/home/ren7/zhiwei/drake/.bazelrc,/home/ren7/.bazelrc,/home/ren7/zhiwei/drake-build/bazel.rc [INFO 17:29:02.157 src/main/cpp/rc_file.cc:56] Parsing the RcFile /etc/bazel.bazelrc [INFO 17:29:02.157 src/main/cpp/rc_file.cc:56] Parsing the RcFile /home/ren7/zhiwei/drake/.bazelrc [INFO 17:29:02.157 src/main/cpp/rc_file.cc:56] Parsing the RcFile /home/ren7/zhiwei/drake/tools/bazel.rc [INFO 17:29:02.157 src/main/cpp/rc_file.cc:56] Parsing the RcFile /home/ren7/zhiwei/drake/tools/cc_toolchain/bazel.rc [INFO 17:29:02.157 src/main/cpp/rc_file.cc:56] Parsing the RcFile /home/ren7/zhiwei/drake/tools/dynamic_analysis/bazel.rc [INFO 17:29:02.158 src/main/cpp/rc_file.cc:56] Parsing the RcFile /home/ren7/zhiwei/drake/tools/lint/bazel.rc [INFO 17:29:02.158 src/main/cpp/rc_file.cc:56] Parsing the RcFile /home/ren7/zhiwei/drake/gen/environment.bazelrc [FATAL 17:29:02.158 src/main/cpp/blaze.cc:1104] Unexpected error reading .blazerc file '/home/ren7/zhiwei/drake/gen/environment.bazelrc': (error: 2): No such file or directory make[2]: *** [CMakeFiles/drake_cxx_python.dir/build.make:112: drake_cxx_python-prefix/src/drake_cxx_python-stamp/drake_cxx_python-build] Error 37 make[1]: *** [CMakeFiles/Makefile2:860: CMakeFiles/drake_cxx_python.dir/all] Error 2 make: *** [Makefile:163: all] Error 2
I also checked the drake repo at github but no "./drake/gen" dir, neither.
Could you please suggest about this?
Thank you!

@RussTedrake
Copy link
Contributor

I do think it will be increasingly difficult to build that branch going forward, as dependencies continue to move forward.

Fortunately, we've now reimplemented (and improved) most all of the examples from the paper in Drake's master branch. You can find links to them all from my notes. This is the best single starting point: https://underactuated.mit.edu/optimization.html#gcs (the quadrotors are in the underactuated repo, the manipulation examples are in the manipulation repo; both are linked from here).

@wrangelvid -- will let you look and decide if it's fixable or might be WONTFIX. :-(

@wrangelvid
Copy link
Collaborator

I am pretty sure it's because of this line. I did recommend a few folks to comment it out, but I wonder if there is something that changed in drake that made it work.

@FANG-Zhiwei
Copy link
Author

I do think it will be increasingly difficult to build that branch going forward, as dependencies continue to move forward.

Fortunately, we've now reimplemented (and improved) most all of the examples from the paper in Drake's master branch. You can find links to them all from my notes. This is the best single starting point: https://underactuated.mit.edu/optimization.html#gcs (the quadrotors are in the underactuated repo, the manipulation examples are in the manipulation repo; both are linked from here).

@wrangelvid -- will let you look and decide if it's fixable or might be WONTFIX. :-(

Thank you very much for your reply! I will check the master branch and wrangelvid's suggestion below!

@FANG-Zhiwei
Copy link
Author

I am pretty sure it's because of this line. I did recommend a few folks to comment it out, but I wonder if there is something that changed in drake that made it work.

Hi, thank you very much for your help! I commented that line and did make -j again but found this
Scanning dependencies of target drake_cxx_python [ 12%] Creating directories for 'drake_cxx_python' [ 25%] No download step for 'drake_cxx_python' [ 37%] No patch step for 'drake_cxx_python' [ 50%] No update step for 'drake_cxx_python' [ 62%] Performing configure step for 'drake_cxx_python' [ 75%] Performing build step for 'drake_cxx_python' Starting local Bazel server and connecting to it... ERROR: Config value 'omp' is not defined in any .rc file make[2]: *** [CMakeFiles/drake_cxx_python.dir/build.make:112: drake_cxx_python-prefix/src/drake_cxx_python-stamp/drake_cxx_python-build] Error 2 make[1]: *** [CMakeFiles/Makefile2:860: CMakeFiles/drake_cxx_python.dir/all] Error 2 make: *** [Makefile:163: all] Error 2
Could you also suggest this?
Thank you!

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