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

"make clean" tries to delete system files #6807

Open
emerth opened this issue Jul 21, 2019 · 0 comments

Comments

@emerth
Copy link

commented Jul 21, 2019

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):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.