"make clean" tries to delete system files. See below in steps to reproduce. Had I been running the build as root, I imagine I would have some serious problems now.
Obviously this is not good.
Steps to reproduce
Run make.
Interrupt it after a while.
Run make clean
(edit) Later after getting pycaffe and distribute targets to build, I did another make clean,
and **now it also wants to delete /usr/local/lib/python2.7/dist-packages/numpy***.
Note that I never ran a "make install" or anything like, and I did all my work on this as a regular user. Caffe build procedure does not own any of these files under /usr/local and could not have installed them.
Issue summary
"make clean" tries to delete system files. See below in steps to reproduce. Had I been running the build as root, I imagine I would have some serious problems now.
Obviously this is not good.
Steps to reproduce
Run make. Interrupt it after a while. Run make clean
Output:
emerth@gpu:~/TF/caffe-git-2019-07-20$ make clean rm: cannot remove '/usr/local/lib/python2.7/site-packages': Permission denied rm: cannot remove '/usr/local/lib/python2.7/dist-packages': Permission denied rm: cannot remove '/usr/local/lib/libprotobuf-lite.so': Permission denied rm: cannot remove '/usr/local/lib/libprotobuf.so.9': Permission denied rm: cannot remove '/usr/local/lib/libprotoc.so': Permission denied rm: cannot remove '/usr/local/lib/libprotobuf.la': Permission denied rm: cannot remove '/usr/local/lib/libprotobuf-lite.so.9': Permission denied rm: cannot remove '/usr/local/lib/python3.6/dist-packages': Permission denied rm: cannot remove '/usr/local/lib/libprotoc.so.9': Permission denied rm: cannot remove '/usr/local/lib/libprotobuf-lite.la': Permission denied rm: cannot remove '/usr/local/lib/libprotoc.so.9.0.1': Permission denied rm: cannot remove '/usr/local/lib/libprotobuf-lite.a': Permission denied rm: cannot remove '/usr/local/lib/libprotoc.a': Permission denied rm: cannot remove '/usr/local/lib/libprotoc.la': Permission denied rm: cannot remove '/usr/local/lib/libprotobuf.so': Permission denied rm: cannot remove '/usr/local/lib/libprotobuf-lite.so.9.0.1': Permission denied rm: cannot remove '/usr/local/lib/pkgconfig/protobuf.pc': Permission denied rm: cannot remove '/usr/local/lib/pkgconfig/protobuf-lite.pc': Permission denied rm: cannot remove '/usr/local/lib/libprotobuf.so.9.0.1': Permission denied rm: cannot remove '/usr/local/lib/libprotobuf.a': Permission denied Makefile:660: recipe for target 'clean' failed make: [clean] Error 1 (ignored
(edit) Later after getting pycaffe and distribute targets to build, I did another make clean, and **now it also wants to delete /usr/local/lib/python2.7/dist-packages/numpy***.
Note that I never ran a "make install" or anything like, and I did all my work on this as a regular user. Caffe build procedure does not own any of these files under /usr/local and could not have installed them.
Tried solutions
Not applicable.
System configuration
Operating system: Ubuntu 18.04. Clean install + "apt-get dist-upgrade"
Compiler: g++ (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
CUDA version (if applicable): 10.0
CUDNN version (if applicable): libcudnn7_7.6.1.34-1+cuda10.0_amd64.deb, libcudnn7-dev_7.6.1.34-1+cuda10.0_amd64.deb
BLAS: ii libatlas-base-dev:amd64 3.10.3-5 amd64 Automatically Tuned Linear Algebra Software, generic static ii libatlas-cpp-0.6-2:amd64 0.6.3-4ubuntu1 amd64 World Forge wire protocol library - runtime libs ii libatlas-cpp-0.6-dev:amd64 0.6.3-4ubuntu1 amd64 World Forge wire protocol library - developer files ii libatlas-cpp-0.6-tools 0.6.3-4ubuntu1 amd64 World Forge wire protocol library - tools ii libatlas3-base:amd64 3.10.3-5 amd64 Automatically Tuned Linear Algebra Software, generic shared
Python version (if using pycaffe): python 2.7 Ubuntu 18.04 default installed.
MATLAB version (if using matcaffe):