You are not logged in.
Trying to compile ROS2 with `colcon`, currently getting some weird permission error with `colcon build --merge-install --install-base /opt/ros2/foxy`, as per instructions on the wiki. I have write permissions to the target directory, but for what it's worth, the error occurs with `sudo colcon build [...]` as well.
--- stderr: uncrustify_vendor
make[5]: /usr/local/bin/python: Permission denied
make[5]: *** [CMakeFiles/uncrustify.dir/build.make:93: src/options.cpp] Error 127
make[5]: *** Waiting for unfinished jobs....
make[5]: /usr/local/bin/python: Permission denied
make[5]: *** [CMakeFiles/uncrustify.dir/build.make:112: src/option_enum.cpp] Error 127
make[5]: /usr/local/bin/python: Permission denied
make[5]: *** [CMakeFiles/uncrustify.dir/build.make:85: src/option_enum.h] Error 127
make[4]: *** [CMakeFiles/Makefile2:803: CMakeFiles/uncrustify.dir/all] Error 2
make[3]: *** [Makefile:182: all] Error 2
make[2]: *** [CMakeFiles/uncrustify-0.68.1.dir/build.make:133: uncrustify-0.68.1-prefix/src/uncrustify-0.68.1-stamp/uncrustify-0.68.1-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:97: CMakeFiles/uncrustify-0.68.1.dir/all] Error 2
make: *** [Makefile:160: all] Error 2
Also, I have tried the same procedure on my laptop and it all went fine. I haven't updated it in a while, so perhaps there are some dependencies at earlier versions which may be related to this issue?
Last edited by joaocandre (2021-02-27 20:19:49)
Offline
Upon closer inspection, I realized that `/usr/local/bin/python` is not actually the binary provided by the `python` package, and has not been updated in a few months, but since it's under `/usr/local/bin` it takes precedence over the up-to-date python binary under `/usr/bin`. I have no idea why exactly why is there was a python binary there, but deleting the file solved this issue.
Offline