catkin_make operation not permitted
I recently experienced a problem with catkin_make. I am unsure what changed before I experienced the error as I had been using my computer for a couple of weeks without needing to use catkin_make, but I had been using the files in my catkin_ws in that two week period. Therefore, I am uncertain what was the initial cause of the error (the error is included in the code segment below).
amanda@jade-shadow:~/catkin_ws$ catkin_make
Base path: /home/amanda/catkin_ws
Source space: /home/amanda/catkin_ws/src
Build space: /home/amanda/catkin_ws/build
Devel space: /home/amanda/catkin_ws/devel
Install space: /home/amanda/catkin_ws/install
####
#### Running command: "cmake /home/amanda/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/amanda/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/amanda/catkin_ws/install" in "/home/amanda/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/amanda/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/amanda/catkin_ws/devel;/opt/ros/hydro
-- This workspace overlays: /home/amanda/catkin_ws/devel;/opt/ros/hydro
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Python version: 2.7
-- Using Debian Python package layout
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/amanda/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- catkin 0.5.86
Traceback (most recent call last):
File "/home/amanda/catkin_ws/build/catkin_generated/generate_cached_setup.py", line 29, in <module>
os.chmod(output_filename, mode | stat.S_IXUSR)
OSError: [Errno 1] Operation not permitted: '/home/amanda/catkin_ws/build/catkin_generated/setup_cached.sh'
CMake Error at /opt/ros/hydro/share/catkin/cmake/safe_execute_process.cmake:11 (message):
execute_process(/usr/bin/python
"/home/amanda/catkin_ws/build/catkin_generated/generate_cached_setup.py")
returned error code 1
Call Stack (most recent call first):
/opt/ros/hydro/share/catkin/cmake/all.cmake:178 (safe_execute_process)
/opt/ros/hydro/share/catkin/cmake/catkinConfig.cmake:20 (include)
CMakeLists.txt:52 (find_package)
-- Configuring incomplete, errors occurred!
Invoking "cmake" failed
Other than the very first time I ran catkin_make, I received the following error message, which looks very similar:
amanda@jade-shadow:~/catkin_ws$ catkin_make
Base path: /home/amanda/catkin_ws
Source space: /home/amanda/catkin_ws/src
Build space: /home/amanda/catkin_ws/build
Devel space: /home/amanda/catkin_ws/devel
Install space: /home/amanda/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/amanda/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/amanda/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/amanda/catkin_ws/devel;/opt/ros/hydro
-- This workspace overlays: /home/amanda/catkin_ws/devel;/opt/ros/hydro
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Python version: 2.7
-- Using Debian Python package layout
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/amanda/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- catkin 0.5.86
Traceback (most recent call last):
File "/home/amanda/catkin_ws/build/catkin_generated/generate_cached_setup.py", line 29, in <module>
os.chmod(output_filename, mode | stat.S_IXUSR)
OSError: [Errno 1] Operation not permitted: '/home/amanda/catkin_ws/build/catkin_generated/setup_cached.sh'
CMake Error at /opt/ros/hydro/share/catkin/cmake/safe_execute_process.cmake:11 (message):
execute_process(/usr/bin/python
"/home/amanda/catkin_ws/build/catkin_generated/generate_cached_setup.py")
returned error code 1
Call Stack (most recent call first):
/opt/ros/hydro/share/catkin/cmake/all.cmake:178 (safe_execute_process)
/opt ...